<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Total newbie looking for assistance with TCL - SIP and Hookflash to FXO in Call Control</title>
    <link>https://community.cisco.com/t5/call-control/total-newbie-looking-for-assistance-with-tcl-sip-and-hookflash/m-p/3453858#M467</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="SIP Hookflash.png" class="image-1 jive-image" src="/legacyfs/online/fusion/110925_SIP Hookflash.png" style="width: 620px; height: 349px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Sep 2017 00:35:11 GMT</pubDate>
    <dc:creator>Jim.Phillipps</dc:creator>
    <dc:date>2017-09-01T00:35:11Z</dc:date>
    <item>
      <title>Total newbie looking for assistance with TCL - SIP and Hookflash to FXO</title>
      <link>https://community.cisco.com/t5/call-control/total-newbie-looking-for-assistance-with-tcl-sip-and-hookflash/m-p/3453857#M466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i've been tasked with helping a customer integrate a legacy pbx to some new SIP terminals.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call flow is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PSTN --&amp;gt; PBX / ACD -- call delivered to extension 1001 through 1004.&amp;nbsp; These are analog lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The FXS on the PBX is wired to matching FXO on the 2921 Router with the ports configured with PLAR OPX to the SIP devices that are registered to a SIP proxy.&amp;nbsp; So if 1001 gets the call it will go out the analog line, connect to the FXO and Plar to, say 1001 that is the IP phone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This all works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Issue is when the terminal needs to transfer the call back into the old pbx.&amp;nbsp;&amp;nbsp; They need to grab dial tone from the FXS off of the pbx through the FXO and send the call back.&amp;nbsp; Everything i've tried to do has failed and is sending me back to a TCL script with some call handling to be able to release the call back to the pbx off of that incoming call leg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some extremely nice people have shared a similar TCL script with me, and we are finally attacking it, and trying to understand but if someone has some better ideas or a way to pair down the script to make it easy to follow it would be great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i have tried is using CME instead of the sip proxy server and have the terminals register directly.&amp;nbsp; no luck.&amp;nbsp; I used CIPC to see if we can emulate what happens - and actually CIPC has a flash softkey and it worked - so we know it's possible.&amp;nbsp; The flash key does not exist on any SIP profiles for CME.&amp;nbsp; I wanted to pcap a successful flash and transfer but it would not work.&amp;nbsp;&amp;nbsp; Transfer off a cisco ip phone registered as a sip client results in a new call going back, hairpinning the call&amp;nbsp; and not flashing and re-using the same line, and therefore freeing it up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help / direction is appreciated.&amp;nbsp;&amp;nbsp; For those that can help I'll share the TCL with you directly as it is not my work, and was given it by the authors when they solved a similar, but not identical problem.&amp;nbsp; They had a few more constraints.&amp;nbsp;&amp;nbsp; So i know it's doable, i just need help and i'm willing to debug, test and learn.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2017 23:38:49 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/total-newbie-looking-for-assistance-with-tcl-sip-and-hookflash/m-p/3453857#M466</guid>
      <dc:creator>Jim.Phillipps</dc:creator>
      <dc:date>2017-08-31T23:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: Total newbie looking for assistance with TCL - SIP and Hookflash to FXO</title>
      <link>https://community.cisco.com/t5/call-control/total-newbie-looking-for-assistance-with-tcl-sip-and-hookflash/m-p/3453858#M467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="SIP Hookflash.png" class="image-1 jive-image" src="/legacyfs/online/fusion/110925_SIP Hookflash.png" style="width: 620px; height: 349px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2017 00:35:11 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/total-newbie-looking-for-assistance-with-tcl-sip-and-hookflash/m-p/3453858#M467</guid>
      <dc:creator>Jim.Phillipps</dc:creator>
      <dc:date>2017-09-01T00:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: Total newbie looking for assistance with TCL - SIP and Hookflash to FXO</title>
      <link>https://community.cisco.com/t5/call-control/total-newbie-looking-for-assistance-with-tcl-sip-and-hookflash/m-p/3453859#M468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can raise Devnet support case along with your TCL script. Please refer below link for devnet support..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.cisco.com/site/devnet/support/" title="https://developer.cisco.com/site/devnet/support/"&gt;Cisco DevNet: DevNet Developer Support&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Raghavendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2017 05:27:16 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/total-newbie-looking-for-assistance-with-tcl-sip-and-hookflash/m-p/3453859#M468</guid>
      <dc:creator>Raghavendra G V</dc:creator>
      <dc:date>2017-09-01T05:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: Total newbie looking for assistance with TCL - SIP and Hookflash to FXO</title>
      <link>https://community.cisco.com/t5/call-control/total-newbie-looking-for-assistance-with-tcl-sip-and-hookflash/m-p/3453860#M469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Raghavendra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks – no problem purchasing a ticket – from what I read, this should be very achievable for the proper skillset – will the ticket cover this script creation – as i’ve described.  If so – i’ll get support for sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sent from Mail for Windows 10&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 01:38:29 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/total-newbie-looking-for-assistance-with-tcl-sip-and-hookflash/m-p/3453860#M469</guid>
      <dc:creator>Jim.Phillipps</dc:creator>
      <dc:date>2017-09-05T01:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: Total newbie looking for assistance with TCL - SIP and Hookflash to FXO</title>
      <link>https://community.cisco.com/t5/call-control/total-newbie-looking-for-assistance-with-tcl-sip-and-hookflash/m-p/3453861#M470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can help with TCL script modification.TCL script should get "ev_transfer_request" to transfer the call.&lt;/P&gt;&lt;P&gt;The TCL script you shared is able to handle the transfer request, did you try to test the script.&lt;/P&gt;&lt;P&gt;Please collect logs with below debugs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;debug voip app&lt;/P&gt;&lt;P&gt;debug ccsip messages&lt;/P&gt;&lt;P&gt;debug voip ccapi inout&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Raghavendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 04:45:29 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/total-newbie-looking-for-assistance-with-tcl-sip-and-hookflash/m-p/3453861#M470</guid>
      <dc:creator>Raghavendra G V</dc:creator>
      <dc:date>2017-09-05T04:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: Total newbie looking for assistance with TCL - SIP and Hookflash to FXO</title>
      <link>https://community.cisco.com/t5/call-control/total-newbie-looking-for-assistance-with-tcl-sip-and-hookflash/m-p/3453862#M471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks – i’m trying now – that script had a bit much for me to process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I just need to focus on identifying the inbound and outbound call legs and then identifying a message to trigger the transfer and hookflash – i’m setting up the router right now.  Thanks for the tips i’ll see where I get today.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;jim&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sent from Mail for Windows 10&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 12:15:10 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/total-newbie-looking-for-assistance-with-tcl-sip-and-hookflash/m-p/3453862#M471</guid>
      <dc:creator>Jim.Phillipps</dc:creator>
      <dc:date>2017-09-05T12:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: Total newbie looking for assistance with TCL - SIP and Hookflash to FXO</title>
      <link>https://community.cisco.com/t5/call-control/total-newbie-looking-for-assistance-with-tcl-sip-and-hookflash/m-p/3453863#M472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The picture you attached it nice, if can have it more detail that will help to come out with the alternative solution if things do come out with the way you are expecting.&lt;/P&gt;&lt;P&gt;What I like to see is a simple call flow according to that picture, assuming call is from the external caller A to the called party, say 1001(B). Now 1001 need to initiate the transfer, is the transfer to party(C) an external user as well. I think the technical issue is getting the hookflash trigger (the event for Tcl). If the flash doesn't work there are options, like inband DTMF trigger.&lt;/P&gt;&lt;P&gt;For example, called party press "*8" to ask Tcl make a transfer. Any way if you can add a call flow that will be easier to understand the whole picture.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yawming&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Sep 2017 17:36:57 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/total-newbie-looking-for-assistance-with-tcl-sip-and-hookflash/m-p/3453863#M472</guid>
      <dc:creator>yawming</dc:creator>
      <dc:date>2017-09-06T17:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: Total newbie looking for assistance with TCL - SIP and Hookflash to FXO</title>
      <link>https://community.cisco.com/t5/call-control/total-newbie-looking-for-assistance-with-tcl-sip-and-hookflash/m-p/3453864#M473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yawming - you have the callflow exactly.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;External caller A calls hunt group 5000 (the ACD) - that gets routed to the FXS lines on the PBX and then PLAR'd via the FXO to the SIP extensions.&amp;nbsp;&amp;nbsp;&amp;nbsp; Say 1001 answers on the SIP endpoint.&amp;nbsp;&amp;nbsp; They require to transfer BACK through the FXS-FXO &lt;/P&gt;&lt;P&gt;That's where we need the hookflash out to the FXO, grab dialtone off the pbx, then transfer back into the pbx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought originally we could look for a SIP REFER but they are very capable on the SIP side, and can program a "flash" key if required.&amp;nbsp; I think they can send "*8" or any combination of DTMF to be recognized to trigger the send hookflash to the call let attached to the FXO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found an older TCL script that Bryan Deaver put toghether and haven't been back to the customer site yet to test - and I only just got my lab up and working yesterday but my FXO is not recognized.... &lt;IMG src="https://community.cisco.com/legacyfs/online/emoticons/sad.png" /&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does that help clear up the call flow - but yes - you are 100% correct on the requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;---&amp;nbsp; this was Bryan Deaver's script that references using DTMF as a reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;app_hookflash.tcl&lt;/P&gt;&lt;P&gt;#&lt;/P&gt;&lt;P&gt;# written by Bryan Deaver based on the default session application.&lt;/P&gt;&lt;P&gt;# This is an example of converting a * dtmf event into hookflash out the fxo port.&lt;/P&gt;&lt;P&gt;#&lt;/P&gt;&lt;P&gt;# This is written as is with no claims of support.&amp;nbsp; It has been shown to work&lt;/P&gt;&lt;P&gt;# to convert a * h245-alhpanumeric event from callmanager while running on a c2800&lt;/P&gt;&lt;P&gt;# gateway running 12.4(20)T.&amp;nbsp; There are other modifications that would be done&lt;/P&gt;&lt;P&gt;# for example look at * 8 before forwarding the other digits.&lt;/P&gt;&lt;P&gt;# Or converting an A/B/C/D dtmf event into hookflash to interwork with&lt;/P&gt;&lt;P&gt;# other applications.&amp;nbsp; If you find a useful modification, please do drop me a note&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;# at &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:bdeaver@cisco.com"&gt;bdeaver@cisco.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;#&lt;/P&gt;&lt;P&gt;# This is based upon the default session application as seen with&lt;/P&gt;&lt;P&gt;# "show call application voice session" on the router.&amp;nbsp; This provides an&lt;/P&gt;&lt;P&gt;# easy start by which to modify scripts to fit your needs.&lt;/P&gt;&lt;P&gt;#&lt;/P&gt;&lt;P&gt;# The modification of the session script was to add the act_ProcessDTMF function,&lt;/P&gt;&lt;P&gt;# add a section to look for digits coming in from the outgoing call leg&lt;/P&gt;&lt;P&gt;# as well as add an entry to the fsm table.&lt;/P&gt;&lt;P&gt;#&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#---------------------------------&lt;/P&gt;&lt;P&gt;#&amp;nbsp;&amp;nbsp; Example Script&lt;/P&gt;&lt;P&gt;#-----------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc act_Setup { } {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; global dest&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; global beep&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set beep 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if { [infotag get leg_isdid] } {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set dest [infotag get leg_dnis]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; leg proceeding leg_incoming&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; leg setup $dest callInfo leg_incoming&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fsm setstate PLACECALL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; leg setupack leg_incoming&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; playtone leg_incoming tn_dial &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set param(dialPlan) true&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; leg collectdigits leg_incoming param&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc act_GotDest { } {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; global dest&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set status [infotag get evt_status]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if {&amp;nbsp; $status == "cd_004" } {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set dest [infotag get evt_dcdigits]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; leg proceeding leg_incoming&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; leg setup $dest callInfo leg_incoming&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; puts "\nCall [infotag get con_all] got event $status collecting destination"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # use invalid-number cause code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; leg disconnect leg_incoming -c28&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call close&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# here is the process that intercepts the '*' and sends out a hookflash&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc act_ProcessDTMF { } {&lt;/P&gt;&lt;P&gt;# get the dtmf and duration&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set dtmf_value [infotag get evt_digit]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set dtmf_duration [infotag get evt_digit_duration]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if {$dtmf_value == "A"} {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; leg sendhookflash leg_incoming&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else {&lt;/P&gt;&lt;P&gt;# ok, not a * so playout the dtmf event with the same duration&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; leg senddigit leg_incoming $dtmf_value -t $dtmf_duration&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc act_CallSetupDone { } {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; global beep&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set status [infotag get evt_status]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if { $status == "ls_000"} {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set&amp;nbsp; creditTimeLeft [infotag get leg_settlement_time leg_all]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if { ($creditTimeLeft == "unlimited") ||&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ($creditTimeLeft == "uninitialized") } {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; puts "\n Unlimited Time"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # start the timer for ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if { $creditTimeLeft &amp;lt; 10 } {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set beep 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set delay $creditTimeLeft&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set delay [expr $creditTimeLeft - 10]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; timer start leg_timer $delay leg_incoming&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;# setup the outgoing leg to monitor for digits&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set param(consumeDigit) true&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set param(enableReporting) true&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; leg collectdigits leg_outgoing param&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; puts "Call [infotag get con_all] got event $status collecting destination"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call close&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc act_Timer { } {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; global beep&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; global incoming&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; global outgoing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set incoming [infotag get leg_incoming]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set outgoing [infotag get leg_outgoing]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if { $beep == 0 } {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #insert a beep ...to the caller&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; connection destroy con_all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set beep 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; connection destroy con_all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fsm setstate LASTWARN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc act_LastWarn { } {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; media play leg_incoming flash:out_of_time.au }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc act_Destroy { } {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; media play leg_incoming flash:beep.au }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc act_Beeped { } {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; global incoming&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; global outgoing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; connection create $incoming $outgoing }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc act_ConnectedAgain { } {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; timer start leg_timer 10 leg_incoming }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc act_Ignore { } {&lt;/P&gt;&lt;P&gt;# Dummy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; puts "Event Capture"&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc act_Cleanup { } {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; call close&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#------------------&lt;/P&gt;&lt;P&gt;#&amp;nbsp;&amp;nbsp; State Machine&lt;/P&gt;&lt;P&gt;#----------------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp; set fsm(any_state,ev_disconnected)&amp;nbsp; "act_Cleanup&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; same_state"&lt;/P&gt;&lt;P&gt;&amp;nbsp; set fsm(any_state,ev_digit_end)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "act_ProcessDTMF&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; same_state"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set fsm(CALL_INIT,ev_setup_indication) "act_Setup&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GETDEST"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set fsm(GETDEST,ev_collectdigits_done)&amp;nbsp; "act_GotDest&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PLACECALL"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set fsm(PLACECALL,ev_setup_done)&amp;nbsp;&amp;nbsp;&amp;nbsp; "act_CallSetupDone&amp;nbsp;&amp;nbsp;&amp;nbsp; CALLACTIVE"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set fsm(CALLACTIVE,ev_leg_timer)&amp;nbsp;&amp;nbsp;&amp;nbsp; "act_Timer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INSERTBEEP"&lt;/P&gt;&lt;P&gt;&amp;nbsp; set fsm(INSERTBEEP,ev_destroy_done) "act_Destroy&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; same_state"&lt;/P&gt;&lt;P&gt;&amp;nbsp; set fsm(INSERTBEEP,ev_media_done)&amp;nbsp;&amp;nbsp; "act_Beeped&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; same_state"&lt;/P&gt;&lt;P&gt;&amp;nbsp; set fsm(INSERTBEEP,ev_create_done)&amp;nbsp;&amp;nbsp;&amp;nbsp; "act_ConnectedAgain&amp;nbsp;&amp;nbsp; CALLACTIVE"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set fsm(LASTWARN,ev_destroy_done)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "act_LastWarn&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CALLDISCONNECT"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set fsm(CALLACTIVE,ev_disconnected)&amp;nbsp;&amp;nbsp; "act_Cleanup&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CALLDISCONNECT"&lt;/P&gt;&lt;P&gt;&amp;nbsp; set fsm(CALLDISCONNECT,ev_disconnected)&amp;nbsp;&amp;nbsp; "act_Cleanup&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; same_state"&lt;/P&gt;&lt;P&gt;&amp;nbsp; set fsm(CALLDISCONNECT,ev_media_done)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "act_Cleanup&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; same_state"&lt;/P&gt;&lt;P&gt;&amp;nbsp; set fsm(CALLDISCONNECT,ev_disconnect_done) "act_Cleanup&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; same_state"&lt;/P&gt;&lt;P&gt;&amp;nbsp; set fsm(CALLDISCONNECT,ev_leg_timer)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "act_Cleanup&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; same_state"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; fsm define fsm CALL_INIT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Sep 2017 18:54:25 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/total-newbie-looking-for-assistance-with-tcl-sip-and-hookflash/m-p/3453864#M473</guid>
      <dc:creator>Jim.Phillipps</dc:creator>
      <dc:date>2017-09-06T18:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Total newbie looking for assistance with TCL - SIP and Hookflash to FXO</title>
      <link>https://community.cisco.com/t5/call-control/total-newbie-looking-for-assistance-with-tcl-sip-and-hookflash/m-p/3453865#M474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the that SIP proxy created trouble for you.&amp;nbsp; The Tcl script can do SIP refer but you don't use SIP on Tcl gateway. Try the suggestion Raghavendra gave and collect debug first.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Sep 2017 19:27:04 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/total-newbie-looking-for-assistance-with-tcl-sip-and-hookflash/m-p/3453865#M474</guid>
      <dc:creator>yawming</dc:creator>
      <dc:date>2017-09-06T19:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: Total newbie looking for assistance with TCL - SIP and Hookflash to FXO</title>
      <link>https://community.cisco.com/t5/call-control/total-newbie-looking-for-assistance-with-tcl-sip-and-hookflash/m-p/3453866#M475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Raghavendra and Yaw-Ming,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am testing as follows - so i may be introducing different errors... while i wait for my FXO card for my lab i'm running the 2911 in CME mode and have a SIP registered phone.&amp;nbsp;&amp;nbsp; Extension 101.&amp;nbsp;&amp;nbsp;&amp;nbsp; I also have a FXS voice-port 0/1/0 and reference that from&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dial peer 200 pots&lt;/P&gt;&lt;P&gt;service jimflash&lt;/P&gt;&lt;P&gt;destination-pattern 200&lt;/P&gt;&lt;P&gt;port 0/1/0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The jimflash is the tcl that has a lot of parameters, including an ivr number, etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To test i dial 200 from 101 - i would hope that gets 2 call legs set up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i then am looking for any events i can generate from the SIP phone (dtmf, sip REFER, etc) that i can use to trigger the hookflash to the FXS port.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Again - this is a quick lab based on the fact that i don't have my fxo in place - i would think that hooklash should work the same to either fxo or fxs.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not referencing the service or call appliation in the CME portion, when i do - calls don't complete , so i think it only should exist in the dial-peer portion of the call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using the above log captures - there is a lot of information, but i'm not seeing "ev_transfer_request" at all.&amp;nbsp;&amp;nbsp; I tried referencign the above tcl script that Bryan Deaver did where he looks for DTMF and applied that to the dial peer via service hookflash command (both jimflash and hookflash are in the flash:) and i saw no dtmf events.&amp;nbsp;&amp;nbsp; I am going to be at the site tomorrow and i can load both tcl - i just want to make sure i'm invoking them properly via the dial-peer sub command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will be using FXO tomorrow and the call that comes in via sip will be either a cme registered sip client (7841) or the remote soft client tied to the proxy server and referenced with a dial-peer voice xxxx voip command.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyways - if you can confirm where i should put the&amp;nbsp; service &amp;lt;tcl application name&amp;gt;&amp;nbsp; if it's needed other than on those dial peers.&amp;nbsp; I don't know if it will get invoked properly via CME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2017 20:18:37 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/total-newbie-looking-for-assistance-with-tcl-sip-and-hookflash/m-p/3453866#M475</guid>
      <dc:creator>Jim.Phillipps</dc:creator>
      <dc:date>2017-09-07T20:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: Total newbie looking for assistance with TCL - SIP and Hookflash to FXO</title>
      <link>https://community.cisco.com/t5/call-control/total-newbie-looking-for-assistance-with-tcl-sip-and-hookflash/m-p/3453867#M476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TCL script should be applied under incoming dialpeer, hope in your case 200 is incoming dialpeer.&lt;/P&gt;&lt;P&gt;Once you transfer the call TCL script should get "ev_transfer_request" after SIP refer message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please share the logs so that we can take a look.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Raghavendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Sep 2017 04:22:34 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/total-newbie-looking-for-assistance-with-tcl-sip-and-hookflash/m-p/3453867#M476</guid>
      <dc:creator>Raghavendra G V</dc:creator>
      <dc:date>2017-09-08T04:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: Total newbie looking for assistance with TCL - SIP and Hookflash to FXO</title>
      <link>https://community.cisco.com/t5/call-control/total-newbie-looking-for-assistance-with-tcl-sip-and-hookflash/m-p/3453868#M477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Raghanvendra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I now have the exact scenario as per my diagram above.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will receive an inbound call via the FXO.&amp;nbsp;&amp;nbsp; Send it out via PLAR to proxy, with a SIP phone registered to it.&amp;nbsp;&amp;nbsp; Once answered i will attemp to transfer and see what messages get generated based on the recommended debug.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will&amp;nbsp; use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;voice port 0/2/0&lt;/P&gt;&lt;P&gt;description "FXO port to PBX"&lt;/P&gt;&lt;P&gt;connection plar opx 101 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dial-peer 101 voip&lt;/P&gt;&lt;P&gt;description "dial peer to sip proxy with extension 101"&lt;/P&gt;&lt;P&gt;destination-pattern 101&lt;/P&gt;&lt;P&gt;session target ipv4: 10.10.10.90&lt;/P&gt;&lt;P&gt;session protocol sipv2&lt;/P&gt;&lt;P&gt;codec g711ulaw&lt;/P&gt;&lt;P&gt;dtmf-relay rtp-nte&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dial-peer voice 201 pora&lt;/P&gt;&lt;P&gt;port 0/2/0&lt;/P&gt;&lt;P&gt;service jimflash&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And i will look for the messages -&amp;nbsp; the tcl script i load is the one i shared with you over email, not the one pasted above from Bryan Deaver that is looking for DTMF events - correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll grab the logs and see what is going on.&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks so much for the assistance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Sep 2017 13:51:40 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/total-newbie-looking-for-assistance-with-tcl-sip-and-hookflash/m-p/3453868#M477</guid>
      <dc:creator>Jim.Phillipps</dc:creator>
      <dc:date>2017-09-08T13:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: Total newbie looking for assistance with TCL - SIP and Hookflash to FXO</title>
      <link>https://community.cisco.com/t5/call-control/total-newbie-looking-for-assistance-with-tcl-sip-and-hookflash/m-p/3453869#M478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to reproduce my diagram and I made&amp;nbsp; calls in - I don't think I have the script initialized properly as there are some parameters I think I need to populate - perhaps you can verify - attached is the debug and script and configuration of the router connected to the FXO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call came in from PSTN onto FXO and was Connection PLAR OPX to 101.&lt;/P&gt;&lt;P&gt;101 is a sip phone on a cme system.&amp;nbsp; once the call was up I would hit transfer - I indicated where in the logs - to see what would happen - after the timeout I attempted to transfer again, and then I hung up.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Sep 2017 02:58:44 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/total-newbie-looking-for-assistance-with-tcl-sip-and-hookflash/m-p/3453869#M478</guid>
      <dc:creator>Jim.Phillipps</dc:creator>
      <dc:date>2017-09-09T02:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: Total newbie looking for assistance with TCL - SIP and Hookflash to FXO</title>
      <link>https://community.cisco.com/t5/call-control/total-newbie-looking-for-assistance-with-tcl-sip-and-hookflash/m-p/3453870#M479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I realize I used the script for using *8 to detect a transfer request instead - here is what happened after I hit *8&amp;nbsp;&amp;nbsp; I'll load the other script and try to set the variables properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Sep 2017 03:37:19 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/total-newbie-looking-for-assistance-with-tcl-sip-and-hookflash/m-p/3453870#M479</guid>
      <dc:creator>Jim.Phillipps</dc:creator>
      <dc:date>2017-09-09T03:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: Total newbie looking for assistance with TCL - SIP and Hookflash to FXO</title>
      <link>https://community.cisco.com/t5/call-control/total-newbie-looking-for-assistance-with-tcl-sip-and-hookflash/m-p/3453871#M480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this is the result of using the script that is suppose to take the refer and do a hookflash.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is the parameters = it was originally written to reference a IVR at ext 253.&amp;nbsp; I used the same parameters but pointed it to 101 and removed the connection plar opx 101 command.&amp;nbsp; Instead the service hookflash command in the dial-peer voice 201 pots invoked the tcl and it dialed 101 for me - from there once answered at 101 I hit the transfer key in an attempt to generate a sip refer to trigger a hookflash...&amp;nbsp; attached are the debugs.&lt;/P&gt;&lt;P&gt; thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Sep 2017 04:02:55 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/total-newbie-looking-for-assistance-with-tcl-sip-and-hookflash/m-p/3453871#M480</guid>
      <dc:creator>Jim.Phillipps</dc:creator>
      <dc:date>2017-09-09T04:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: Total newbie looking for assistance with TCL - SIP and Hookflash to FXO</title>
      <link>https://community.cisco.com/t5/call-control/total-newbie-looking-for-assistance-with-tcl-sip-and-hookflash/m-p/3453872#M481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am going through the logs - I see:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p&amp;nbsp; 9 03:52:05.741: (CALLDISCONNECT(2), ev_leg_timer(1)--(act_Cleanup)--&amp;gt;(any_state(0))&lt;/P&gt;&lt;P&gt;Sep&amp;nbsp; 9 03:52:05.741: (IVRACTIVE(3), ev_transfer_request(230)--(act_IVRActive)--&amp;gt;(SENDHFLASH(4))&lt;/P&gt;&lt;P&gt;Sep&amp;nbsp; 9 03:52:05.741: (CALLDISCONNECT(2), ev_media_done(200)--(act_Cleanup)--&amp;gt;(any_state(0))&lt;/P&gt;&lt;P&gt;Sep&amp;nbsp; 9 03:52:05.741: (SENDDIGITS(5), ev_media_done(200)--(act_DigitSend)--&amp;gt;(CALLEND(6))&lt;/P&gt;&lt;P&gt;Sep&amp;nbsp; 9 03:52:05.741: (SENDHFLASH(4), ev_disconnect_done(23)--(act_HookFlash)--&amp;gt;(SENDDIGITS(5))&lt;/P&gt;&lt;P&gt;Sep&amp;nbsp; 9 03:52:05.741: (any_state(0), ev_disconnected(22)--(act_Cleanup)--&amp;gt;(any_state(0))&lt;/P&gt;&lt;P&gt;Sep&amp;nbsp; 9 03:52:05.741: (CALLEND(6), ev_media_done(200)--(act_Cleanup)--&amp;gt;(CALLDISCONNECT(2))&lt;/P&gt;&lt;P&gt;Sep&amp;nbsp; 9 03:52:05.741: (CALLDISCONNECT(2), ev_disconnect_done(23)--(act_Cleanup)--&amp;gt;(any_state(0))&lt;/P&gt;&lt;P&gt;Sep&amp;nbsp; 9 03:52:05.741: (CALLDISCONNECT(2), ev_disconnected(22)--(act_Cleanup)--&amp;gt;(any_state(0))&lt;/P&gt;&lt;P&gt;Sep&amp;nbsp; 9 03:52:05.741: (CONNECTIVR(7), ev_setup_done(257)--(act_IVRConnected)--&amp;gt;(IVRACTIVE(3))&lt;/P&gt;&lt;P&gt;Sep&amp;nbsp; 9 03:52:05.741: (CALL_INIT(1), ev_setup_indication(37)--(act_Setup)--&amp;gt;(CONNECTIVR(7))&lt;/P&gt;&lt;P&gt;Sep&amp;nbsp; 9 03:52:05.741: FSM start state CALL_INIT(1)&lt;/P&gt;&lt;P&gt;Sep&amp;nbsp; 9 03:52:05.741: //-1//AFW_:EE3E7F4100000:/Tcl_Link: Script hookflash succesfully linked.&lt;/P&gt;&lt;P&gt;Sep&amp;nbsp; 9 03:52:05.741: //-1//AFW_:EE3E7F4100000:/AFW_ExecEnv_SetScript: Num of packTable entries: 26&lt;/P&gt;&lt;P&gt;Sep&amp;nbsp; 9 03:52:05.741: //-1//AFW_:EE3E7F4100000:/AFW_ExecEnv_RestoreDataBackup: Script DataArea empty, do backup&lt;/P&gt;&lt;P&gt;Sep&amp;nbsp; 9 03:52:05.741: //-1//AFW_:EE3E7F4100000:/AFW_ExecEnv_RestoreDataBackup: Script TokenTable empty, do backup&lt;/P&gt;&lt;P&gt;Sep&amp;nbsp; 9 03:52:05.741: //-1//AFW_:EE3E7F4100000:/AFW_ExecEnv_Initiate: Execenv = 0x3E7F4100&lt;/P&gt;&lt;P&gt;Sep&amp;nbsp; 9 03:52:05.741: //-1//AFW_:EE3E7F4100000:/AFW_ExecEnv_SetCallCorID:&lt;/P&gt;&lt;P&gt;Sep&amp;nbsp; 9 03:52:05.741:&amp;nbsp; CallCorID is&amp;nbsp; Ig}WW,p&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so I think I'm close - as I'm seeing the ev_transfer_request and the sendhflash&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if this is working i'll need to somehow modify this so it's not tied to this specific IVR number of 253 (I sent it to 101) - it would be good to have this invoked and have the voice port connect to the appropriate number via the connection plar opx XXX command and not have it hardwired.&amp;nbsp; then - if this is working it could be used for all numbers.&amp;nbsp;&amp;nbsp; anyways - was exciting to see the SENDHFLASH message....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Sep 2017 04:11:05 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/total-newbie-looking-for-assistance-with-tcl-sip-and-hookflash/m-p/3453872#M481</guid>
      <dc:creator>Jim.Phillipps</dc:creator>
      <dc:date>2017-09-09T04:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: Total newbie looking for assistance with TCL - SIP and Hookflash to FXO</title>
      <link>https://community.cisco.com/t5/call-control/total-newbie-looking-for-assistance-with-tcl-sip-and-hookflash/m-p/3453873#M482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is call answered at sip phone as I don't see call setupdone event in the logs. I don't see any sip refer message also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Raghavendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Sep 2017 19:53:34 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/total-newbie-looking-for-assistance-with-tcl-sip-and-hookflash/m-p/3453873#M482</guid>
      <dc:creator>Raghavendra G V</dc:creator>
      <dc:date>2017-09-09T19:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Total newbie looking for assistance with TCL - SIP and Hookflash to FXO</title>
      <link>https://community.cisco.com/t5/call-control/total-newbie-looking-for-assistance-with-tcl-sip-and-hookflash/m-p/3453874#M483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;Hi. The call original ages from the fxo to the 8851 sip phone registered on another CME at 10.10.20.90. Once I had the call established i pressed transfer on the 8851 (far end CME) - and then those event messages on the fxo router were created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought that the script triggered those messages based on the transfer button being pressed causing a sip refer - but I guess not.&amp;nbsp; I'll look at it again. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a sip trunk between the router with the fxo and the CME with the 8851 registered.&amp;nbsp;&amp;nbsp; I figured this was the best way to simulate the environment as they have sip clients registered off of a proxy server and that talks to their 2921 router.&amp;nbsp; They also have similar sip protocol based dual peers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should I be looking for some messages on the cme side as well - se if it sends sip refer to fxo router where the tcl script is loaded on the pots dial peer?&amp;nbsp; No reason to load the script on the dial beer from the fxo router out to the CME is there?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Sep 2017 23:59:10 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/total-newbie-looking-for-assistance-with-tcl-sip-and-hookflash/m-p/3453874#M483</guid>
      <dc:creator>Jim.Phillipps</dc:creator>
      <dc:date>2017-09-10T23:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: Total newbie looking for assistance with TCL - SIP and Hookflash to FXO</title>
      <link>https://community.cisco.com/t5/call-control/total-newbie-looking-for-assistance-with-tcl-sip-and-hookflash/m-p/3453875#M484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't see any SIP refer message or ev_transfer request in the logs which you attached. when you transfer from CME sip phone you need to look for refer message in FXO router.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also try jimflash.tcl which can receive DTMF digits.you need a small change in script to send hookflash to incoming leg when it recieve * and then the rest of digits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc act_ProcessDTMF { } {&lt;BR /&gt;# get the dtmf and duration&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set dtmf_value [infotag get evt_digit]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set dtmf_duration [infotag get evt_digit_duration]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;if {$dtmf_value == "*"} {&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; leg sendhookflash leg_incoming&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else {&lt;BR /&gt;# ok, not a * so playout the dtmf event with the same duration&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; leg senddigit leg_incoming $dtmf_value -t $dtmf_duration&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Raghavendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Sep 2017 06:30:24 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/total-newbie-looking-for-assistance-with-tcl-sip-and-hookflash/m-p/3453875#M484</guid>
      <dc:creator>Raghavendra G V</dc:creator>
      <dc:date>2017-09-11T06:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: Total newbie looking for assistance with TCL - SIP and Hookflash to FXO</title>
      <link>https://community.cisco.com/t5/call-control/total-newbie-looking-for-assistance-with-tcl-sip-and-hookflash/m-p/3453876#M485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should see below log when you get ev_transfer_request after SIP refer message.&lt;/P&gt;&lt;P&gt;050275: *Sep 11 07:02:40.601: //88//AFW_:/AFW_FSM_Drive: ACTION BEGIN: ------(IVRACTIVE[3],ev_transfer_request[222])---[act_IVRActive]------&lt;BR /&gt;050276: *Sep 11 07:02:40.601: //88//TCL :/tcl_InfotagObjCmd:&amp;nbsp; infotag get evt_transfer_info transferDest&lt;BR /&gt;050277: *Sep 11 07:02:40.601: //88//TCL :/tcl_InfotagGetObjCmd: infotag get evt_transfer_info transferDest&lt;BR /&gt;050278: *Sep 11 07:02:40.601: //88//AFW_:/vtr_ev_transfer_info: argc 3 argindex 2&lt;BR /&gt;050279: *Sep 11 07:02:40.601: //88//AFW_:/vtr_ev_transfer_info:&amp;nbsp; transferTo&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Raghavendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Sep 2017 06:47:47 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/total-newbie-looking-for-assistance-with-tcl-sip-and-hookflash/m-p/3453876#M485</guid>
      <dc:creator>Raghavendra G V</dc:creator>
      <dc:date>2017-09-11T06:47:47Z</dc:date>
    </item>
  </channel>
</rss>

