Just my luck. It didn't work :(<div>Here is what I did...</div><div><div><br></div><div> <extension name="MY TEST"></div><div> <condition field="destination_number" expression="8027"></div>
<div> <action application="answer"/></div><div> <action application="set" data="transfer_ringback=/tmp/WPJ_MUSIC_QUEUE_4.wav"/></div><div> <action application="set" data="tts_engine=flite"/></div>
<div> <action application="set" data="tts_voice=kal"/></div><div> <action application="play_and_get_digits" data="4 16 3 7000 # phrase:Callidus_OD_Prompt phrase:Callidus_invalid_entry case_number \d+" /></div>
<div> <action application="transfer" data="data_dip"/></div><div> </condition></div><div> </extension></div><div><br></div><div><extension name="data dip"></div>
<div> <condition field="destination_number" expression="^data_dip$"></div><div> <action application="pre_answer"/> <!-- tried both pre_answer and ring_ready --></div><div>
<action application="lua" data="callidus_get_customer_info.lua ${case_number} OnDemand" /></div><div> <action application="answer"/></div><div> </condition></div><div>
</extension></div><div><br></div><div>The following is the logs from FS</div><div><br></div><div><div>2013-01-25 18:20:59.210491 [DEBUG] switch_rtp.c:1927 Starting timer [soft] 160 bytes per 20ms</div><div>2013-01-25 18:20:59.210491 [DEBUG] sofia_glue.c:3609 Set 2833 dtmf send payload to 101</div>
<div>2013-01-25 18:20:59.210491 [DEBUG] sofia_glue.c:3615 Set 2833 dtmf receive payload to 101</div><div>2013-01-25 18:20:59.210491 [DEBUG] sofia_glue.c:3642 sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> Set rtp dtmf delay to 40</div>
<div>2013-01-25 18:20:59.210491 [NOTICE] sofia_glue.c:4253 Pre-Answer sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a>!</div><div>2013-01-25 18:20:59.210491 [DEBUG] switch_channel.c:3083 (sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a>) Callstate Change RINGING -> EARLY</div>
<div>2013-01-25 18:20:59.210491 [DEBUG] mod_sofia.c:854 Local SDP sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a>:</div><div>v=0</div><div>o=FreeSWITCH 1359139145 1359139146 IN IP4 10.191.210.141</div>
<div>s=FreeSWITCH</div><div>c=IN IP4 10.191.210.141</div><div>t=0 0</div><div>m=audio 27714 RTP/AVP 0 101</div><div>a=rtpmap:0 PCMU/8000</div><div>a=rtpmap:101 telephone-event/8000</div><div>a=fmtp:101 0-16</div><div>a=silenceSupp:off - - - -</div>
<div>a=ptime:20</div><div>a=sendrecv</div><div><br></div><div>2013-01-25 18:20:59.210491 [DEBUG] switch_core_session.c:823 Send signal sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> [BREAK]</div>
<div>2013-01-25 18:20:59.210491 [DEBUG] switch_channel.c:3342 (sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a>) Callstate Change EARLY -> ACTIVE</div><div>2013-01-25 18:20:59.210491 [NOTICE] mod_dptools.c:1176 Channel [sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a>] has been answered</div>
<div>2013-01-25 18:20:59.210491 [DEBUG] switch_core_session.c:969 Send signal sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> [BREAK]</div><div>2013-01-25 18:20:59.210491 [DEBUG] sofia.c:5591 Channel sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> entering state [completed][200]</div>
<div>EXECUTE sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> set(transfer_ringback=/tmp/WPJ_MUSIC_QUEUE_4.wav)</div><div>2013-01-25 18:20:59.210491 [DEBUG] mod_dptools.c:1344 sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> SET [transfer_ringback]=[/tmp/WPJ_MUSIC_QUEUE_4.wav]</div>
<div>EXECUTE sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> set(tts_engine=flite)</div><div>2013-01-25 18:20:59.210491 [DEBUG] mod_dptools.c:1344 sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> SET [tts_engine]=[flite]</div>
<div>EXECUTE sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> set(tts_voice=kal)</div><div>2013-01-25 18:20:59.210491 [DEBUG] mod_dptools.c:1344 sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> SET [tts_voice]=[kal]</div>
<div>EXECUTE sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> play_and_get_digits(4 16 3 7000 # phrase:Callidus_OD_Prompt phrase:Callidus_invalid_entry case_number \d+)</div><div>2013-01-25 18:20:59.210491 [DEBUG] switch_ivr_play_say.c:67 No language specified - Using [en]</div>
<div>2013-01-25 18:20:59.231540 [DEBUG] switch_ivr_play_say.c:244 Handle play-file:[/usr/local/freeswitch/sounds/en/us/callie/ivr/8000/ivr-please_enter_the.wav] (en:en)</div><div>2013-01-25 18:20:59.231540 [DEBUG] switch_ivr_play_say.c:1309 Codec Activated L16@8000hz 1 channels 20ms</div>
<div>2013-01-25 18:20:59.231540 [DEBUG] switch_core_session.c:969 Send signal sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> [BREAK]</div><div>2013-01-25 18:20:59.231540 [DEBUG] switch_core_session.c:969 Send signal sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> [BREAK]</div>
<div>2013-01-25 18:20:59.231540 [DEBUG] switch_core_session.c:969 Send signal sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> [BREAK]</div><div>2013-01-25 18:20:59.250478 [DEBUG] sofia.c:5591 Channel sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> entering state [ready][200]</div>
<div>2013-01-25 18:20:59.291532 [DEBUG] switch_rtp.c:3606 Correct ip/port confirmed.</div><div>2013-01-25 18:20:59.950314 [DEBUG] switch_ivr_play_say.c:1682 done playing file /usr/local/freeswitch/sounds/en/us/callie/ivr/8000/ivr-please_enter_the.wav</div>
<div>2013-01-25 18:21:00.010301 [DEBUG] switch_ivr_play_say.c:244 Handle speak-text:[case number,] (en:en)</div><div>2013-01-25 18:21:00.010301 [DEBUG] switch_ivr_play_say.c:2481 OPEN TTS flite</div><div>2013-01-25 18:21:00.010301 [DEBUG] switch_ivr_play_say.c:2490 Raw Codec Activated</div>
<div>2013-01-25 18:21:00.030327 [DEBUG] switch_ivr_play_say.c:2172 Speaking text: case number,</div><div>2013-01-25 18:21:01.710910 [DEBUG] switch_ivr_play_say.c:2369 done speaking text</div><div>2013-01-25 18:21:01.770904 [DEBUG] switch_ivr_play_say.c:244 Handle play-file:[/usr/local/freeswitch/sounds/en/us/callie/ivr/8000/ivr-followed_by_pound.wav] (en:en)</div>
<div>2013-01-25 18:21:01.770904 [DEBUG] switch_ivr_play_say.c:1309 Codec Activated L16@8000hz 1 channels 20ms</div><div>2013-01-25 18:21:03.690471 [DEBUG] switch_ivr_play_say.c:1682 done playing file /usr/local/freeswitch/sounds/en/us/callie/ivr/8000/ivr-followed_by_pound.wav</div>
<div>2013-01-25 18:21:04.350311 [DEBUG] switch_rtp.c:3809 RTP RECV DTMF 3:800</div><div>2013-01-25 18:21:04.790211 [DEBUG] switch_rtp.c:3809 RTP RECV DTMF 0:800</div><div>2013-01-25 18:21:05.250108 [DEBUG] switch_rtp.c:3809 RTP RECV DTMF 0:800</div>
<div>2013-01-25 18:21:05.690999 [DEBUG] switch_rtp.c:3809 RTP RECV DTMF 0:800</div><div>2013-01-25 18:21:06.049934 [DEBUG] switch_rtp.c:3809 RTP RECV DTMF 3:800</div><div>2013-01-25 18:21:06.470825 [DEBUG] switch_rtp.c:3809 RTP RECV DTMF 1:800</div>
<div>2013-01-25 18:21:06.790751 [DEBUG] switch_rtp.c:3809 RTP RECV DTMF 8:800</div><div>2013-01-25 18:21:07.191718 [DEBUG] switch_rtp.c:3809 RTP RECV DTMF 4:800</div><div>2013-01-25 18:21:08.230423 [DEBUG] switch_rtp.c:3809 RTP RECV DTMF #:800</div>
<div>2013-01-25 18:21:08.230423 [DEBUG] switch_ivr_play_say.c:2034 Test Regex [30003184][\d+]</div><div>EXECUTE sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> transfer(data_dip)</div>
<div>2013-01-25 18:21:08.230423 [DEBUG] switch_ivr.c:1761 (sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a>) State Change CS_EXECUTE -> CS_ROUTING</div><div>2013-01-25 18:21:08.230423 [DEBUG] switch_core_session.c:1275 Send signal sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> [BREAK]</div>
<div>2013-01-25 18:21:08.230423 [DEBUG] switch_core_session.c:823 Send signal sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> [BREAK]</div><div>2013-01-25 18:21:08.230423 [NOTICE] switch_ivr.c:1767 Transfer sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> to XML[data_dip@public]</div>
<div>2013-01-25 18:21:08.230423 [DEBUG] switch_core_state_machine.c:477 (sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a>) State EXECUTE going to sleep</div><div>2013-01-25 18:21:08.230423 [DEBUG] switch_core_state_machine.c:415 (sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a>) Running State Change CS_ROUTING</div>
<div>2013-01-25 18:21:08.230423 [DEBUG] switch_channel.c:1960 (sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a>) Callstate Change ACTIVE -> RINGING</div><div>2013-01-25 18:21:08.230423 [DEBUG] switch_core_state_machine.c:470 (sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a>) State ROUTING</div>
<div>2013-01-25 18:21:08.230423 [DEBUG] mod_sofia.c:149 sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> SOFIA ROUTING</div><div>2013-01-25 18:21:08.230423 [DEBUG] switch_core_state_machine.c:117 sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> Standard ROUTING</div>
<div>2013-01-25 18:21:08.230423 [INFO] mod_dialplan_xml.c:497 Processing dev7jptest#16502928610#X <16502928610>->data_dip in context public</div><div>Dialplan: sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> parsing [public->unloop] continue=false</div>
<div>Dialplan: sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> Regex (PASS) [unloop] ${unroll_loops}(true) =~ /^true$/ break=on-false</div><div>Dialplan: sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> Regex (FAIL) [unloop] ${sip_looped_call}() =~ /^true$/ break=on-false</div>
<div>Dialplan: sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> parsing [public->outside_call] continue=true</div><div>Dialplan: sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> Absolute Condition [outside_call]</div>
<div>Dialplan: sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> Action set(outside_call=true)</div><div>Dialplan: sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> Action export(RFC2822_DATE=${strftime(%a, %d %b %Y %T %z)})</div>
<div>Dialplan: sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> parsing [public->call_debug] continue=true</div><div>Dialplan: sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> Regex (FAIL) [call_debug] ${call_debug}(false) =~ /^true$/ break=never</div>
<div>Dialplan: sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> parsing [public->public_extensions] continue=false</div><div>Dialplan: sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> Regex (FAIL) [public_extensions] destination_number(data_dip) =~ /^(10[01][0-9])$/ break=on-false</div>
<div>Dialplan: sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> parsing [public->public_did] continue=false</div><div>Dialplan: sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> Regex (FAIL) [public_did] destination_number(data_dip) =~ /^(5551212)$/ break=on-false</div>
<div>Dialplan: sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> parsing [public->9010] continue=false</div><div>Dialplan: sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> Regex (FAIL) [9010] destination_number(data_dip) =~ /^(9010)$/ break=on-false</div>
<div>Dialplan: sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> parsing [public->Callidus_OnDemand_IVR] continue=false</div><div>Dialplan: sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> Regex (FAIL) [Callidus_OnDemand_IVR] destination_number(data_dip) =~ /^(9005)$/ break=on-false</div>
<div>Dialplan: sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> parsing [public->Callidus_OnPremise_IVR] continue=false</div><div>Dialplan: sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> Regex (FAIL) [Callidus_OnPremise_IVR] destination_number(data_dip) =~ /^(9006)$/ break=on-false</div>
<div>Dialplan: sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> parsing [public->MY TEST] continue=false</div><div>Dialplan: sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> Regex (FAIL) [MY TEST] destination_number(data_dip) =~ /8027/ break=on-false</div>
<div>Dialplan: sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> parsing [public->data dip] continue=false</div><div>Dialplan: sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> Regex (PASS) [data dip] destination_number(data_dip) =~ /^data_dip$/ break=on-false</div>
<div>Dialplan: sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> Action pre_answer()</div><div>Dialplan: sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> Action lua(callidus_get_customer_info.lua ${case_number} OnDemand)</div>
<div>Dialplan: sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> Action answer()</div><div>2013-01-25 18:21:08.230423 [DEBUG] switch_core_state_machine.c:167 (sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a>) State Change CS_ROUTING -> CS_EXECUTE</div>
<div>2013-01-25 18:21:08.230423 [DEBUG] switch_core_session.c:1275 Send signal sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> [BREAK]</div><div>2013-01-25 18:21:08.230423 [DEBUG] switch_core_state_machine.c:470 (sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a>) State ROUTING going to sleep</div>
<div>2013-01-25 18:21:08.230423 [DEBUG] switch_core_state_machine.c:415 (sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a>) Running State Change CS_EXECUTE</div><div>2013-01-25 18:21:08.230423 [DEBUG] switch_channel.c:1962 (sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a>) Callstate Change RINGING -> ACTIVE</div>
<div>2013-01-25 18:21:08.230423 [DEBUG] switch_core_state_machine.c:477 (sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a>) State EXECUTE</div><div>2013-01-25 18:21:08.230423 [DEBUG] mod_sofia.c:242 sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> SOFIA EXECUTE</div>
<div>2013-01-25 18:21:08.230423 [DEBUG] switch_core_state_machine.c:209 sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> Standard EXECUTE</div><div>EXECUTE sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> set(outside_call=true)</div>
<div>2013-01-25 18:21:08.230423 [DEBUG] mod_dptools.c:1344 sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> SET [outside_call]=[true]</div><div>EXECUTE sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> export(RFC2822_DATE=Fri, 25 Jan 2013 18:21:08 -0800)</div>
<div>2013-01-25 18:21:08.230423 [DEBUG] switch_channel.c:1118 EXPORT (export_vars) [RFC2822_DATE]=[Fri, 25 Jan 2013 18:21:08 -0800]</div><div>EXECUTE sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> pre_answer()</div>
<div>EXECUTE sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> lua(callidus_get_customer_info.lua 30003184 OnDemand)</div><div>2013-01-25 18:21:08.230423 [DEBUG] mod_curl.c:121 method: get, url: <a href="http://vm6devc11.dev.whitepj.net:8080/edsa/object/SupportCase/CaseNumber___SearchStringField%20is%20SC30003184/assigned,Company?agent=dev7jptest~~jp&_type=json">http://vm6devc11.dev.whitepj.net:8080/edsa/object/SupportCase/CaseNumber___SearchStringField%20is%20SC30003184/assigned,Company?agent=dev7jptest~~jp&_type=json</a></div>
<div>2013-01-25 18:21:14.449993 [DEBUG] mod_curl.c:121 method: get, url: <a href="http://vm6devc11.dev.whitepj.net:8080/edsa/object/employee/InternalIdNumber___SearchLongField%20equalTo%20413056/custentity_vcc_agent_id,custentity_vcc_phone_queue_id?agent=dev7jptest~~jp&_type=json">http://vm6devc11.dev.whitepj.net:8080/edsa/object/employee/InternalIdNumber___SearchLongField%20equalTo%20413056/custentity_vcc_agent_id,custentity_vcc_phone_queue_id?agent=dev7jptest~~jp&_type=json</a></div>
<div>2013-01-25 18:21:20.090845 [DEBUG] mod_curl.c:121 method: get, url: <a href="http://dev7jptest:2e3de0389b11796554e2c9dac9717688@vm6devc11.dev.whitepj.net:8080/tstats/rtstats/agent/test.json">http://dev7jptest:2e3de0389b11796554e2c9dac9717688@vm6devc11.dev.whitepj.net:8080/tstats/rtstats/agent/test.json</a></div>
<div>2013-01-25 18:21:22.150301 [DEBUG] switch_cpp.cpp:1007 sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> destroy/unlink session from object</div><div>EXECUTE sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> answer()</div>
<div>2013-01-25 18:21:22.150301 [NOTICE] switch_core_state_machine.c:262 sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> has executed the last dialplan instruction, hanging up.</div>
<div>2013-01-25 18:21:22.150301 [DEBUG] switch_channel.c:2941 (sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a>) Callstate Change ACTIVE -> HANGUP</div><div>2013-01-25 18:21:22.150301 [NOTICE] switch_core_state_machine.c:264 Hangup sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> [CS_EXECUTE] [NORMAL_CLEARING]</div>
<div>2013-01-25 18:21:22.150301 [DEBUG] switch_channel.c:2964 Send signal sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> [KILL]</div><div>2013-01-25 18:21:22.150301 [DEBUG] switch_core_session.c:1275 Send signal sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> [BREAK]</div>
<div>2013-01-25 18:21:22.150301 [DEBUG] switch_core_state_machine.c:477 (sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a>) State EXECUTE going to sleep</div><div>2013-01-25 18:21:22.150301 [DEBUG] switch_core_state_machine.c:415 (sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a>) Running State Change CS_HANGUP</div>
<div>2013-01-25 18:21:22.150301 [DEBUG] switch_core_state_machine.c:665 (sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a>) State HANGUP</div><div>2013-01-25 18:21:22.150301 [DEBUG] mod_sofia.c:501 Channel sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> hanging up, cause: NORMAL_CLEARING</div>
<div>2013-01-25 18:21:22.150301 [DEBUG] mod_sofia.c:550 Sending BYE to sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a></div><div>2013-01-25 18:21:22.150301 [DEBUG] switch_core_state_machine.c:48 sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> Standard HANGUP, cause: NORMAL_CLEARING</div>
<div>2013-01-25 18:21:22.150301 [DEBUG] switch_core_state_machine.c:665 (sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a>) State HANGUP going to sleep</div><div>2013-01-25 18:21:22.150301 [DEBUG] switch_core_state_machine.c:446 (sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a>) State Change CS_HANGUP -> CS_REPORTING</div>
<div>2013-01-25 18:21:22.150301 [DEBUG] switch_core_session.c:1275 Send signal sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> [BREAK]</div><div>2013-01-25 18:21:22.150301 [DEBUG] switch_core_state_machine.c:415 (sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a>) Running State Change CS_REPORTING</div>
<div>2013-01-25 18:21:22.150301 [DEBUG] switch_core_state_machine.c:747 (sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a>) State REPORTING</div><div>2013-01-25 18:21:22.150301 [DEBUG] switch_core_state_machine.c:92 sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> Standard REPORTING, cause: NORMAL_CLEARING</div>
<div>2013-01-25 18:21:22.150301 [DEBUG] switch_core_state_machine.c:747 (sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a>) State REPORTING going to sleep</div><div>2013-01-25 18:21:22.150301 [DEBUG] switch_core_state_machine.c:440 (sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a>) State Change CS_REPORTING -> CS_DESTROY</div>
<div>2013-01-25 18:21:22.150301 [DEBUG] switch_core_session.c:1275 Send signal sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> [BREAK]</div><div>2013-01-25 18:21:22.150301 [DEBUG] switch_core_session.c:1480 Session 64 (sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a>) Locked, Waiting on external entities</div>
<div>2013-01-25 18:21:22.150301 [NOTICE] switch_core_session.c:1498 Session 64 (sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a>) Ended</div><div>2013-01-25 18:21:22.150301 [NOTICE] switch_core_session.c:1502 Close Channel sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> [CS_DESTROY]</div>
<div>2013-01-25 18:21:22.150301 [DEBUG] switch_core_state_machine.c:554 (sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a>) Callstate Change HANGUP -> DOWN</div><div>2013-01-25 18:21:22.150301 [DEBUG] switch_core_state_machine.c:557 (sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a>) Running State Change CS_DESTROY</div>
<div>2013-01-25 18:21:22.150301 [DEBUG] switch_core_state_machine.c:567 (sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a>) State DESTROY</div><div>2013-01-25 18:21:22.150301 [DEBUG] mod_sofia.c:394 sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> SOFIA DESTROY</div>
<div>2013-01-25 18:21:22.150301 [DEBUG] switch_core_state_machine.c:99 sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a> Standard DESTROY</div><div>2013-01-25 18:21:22.150301 [DEBUG] switch_core_state_machine.c:567 (sofia/external/<a href="mailto:16502928610@10.191.210.148">16502928610@10.191.210.148</a>) State DESTROY going to sleep</div>
<div>freeswitch@internal></div></div><div><br></div><br><div class="gmail_quote">On Fri, Jan 25, 2013 at 5:42 PM, Michael Collins <span dir="ltr"><<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Well, I did think of one thing that you could try. If it works it would be kind of cute:<br><br>Answer the call like you currently do, grab the digits from the caller<br>
Set the transfer_ringback variable to ${hold_music} (or whatever you want them to hear)<br>
Transfer the call to another extension, like this:<br><action application="transfer" data="data_dip"/><br><br>Create a new extension like this:<br><br><extension name="data dip"><br>
<condition field="destination_number" expression="^data_dip$"><br> <action application="ring_ready"/> <!-- or maybe pre_answer (?) --><div class="im"><br> <action application="lua" data="get_customer_info.lua ${case_number}"/><br>
</div>
<action application="answer"/><br> ... do whatever you need to do with the call after the data dip<br> </condition><br></extension><br><br>The theory is that the "please hold while we look up your info..." sound is the "transfer ringback" sound. The target extension "data_dip" then "rings" while it's looking up the info and then "answers" after the lookup is complete.<br>
<br>I didn't try it so please remember that the <a href="http://wiki.freeswitch.org/wiki/Reporting_Bugs#Standard_Disclaimer" target="_blank">standard disclaimer</a> applies. Let us know if you make any headway on this.<span class="HOEnZb"><font color="#888888"><br>
<br>-MC</font></span><div class="HOEnZb"><div class="h5"><br>
<br><div class="gmail_quote">On Fri, Jan 25, 2013 at 4:32 PM, JP <span dir="ltr"><<a href="mailto:jaykris@gmail.com" target="_blank">jaykris@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
MC,<div>Thanks for the info. Unfortunately outbound event socket application is not an option for me right now. I was wondering if the following "ideas" can be of any use to me( I know I am trying clutch at straws, but hope is eternal :))</div>
<div>1. Use "bgapi". Although on the wiki I only see this used with "originate".</div><div>2. Can I use a conference to park the caller there while playing music on another call leg of the conference. Meanwhile can I execute the Lua script :))</div>
<div>3. Can I launch another Lua script from my original one asynchronously?</div><div>4. Can I have a start up Lua script running in the background listening for some custom events and I can have the main caller thread generate the custom event and then start playing long music file. Once the background Lua script is done with the data dip, it can just break the music on the other channel.</div>
<div><br></div><div>That's it from me. Someone help me from sinking... please.</div><div><br></div><div>Thanks,</div><div>-JP</div><div><div><div><br><br><div class="gmail_quote">On Fri, Jan 25, 2013 at 4:10 PM, Michael Collins <span dir="ltr"><<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The problem you're running into is that you are trying to do two different things inside of the thread that is controlling the call flow. Playing sound files and running Lua scripts are synchronous in this context. This seems more suited for an outbound event socket application. Using the event socket you can control the call while doing other things. <br>
<br>Just curious - does anyone have an ESL example of this kind of thing? The wiki could definitely use this kind of example as it is quite useful. I'll look around and see if I can find anything.<br><br>-MC<div>
<div><br><br><div class="gmail_quote">
On Fri, Jan 25, 2013 at 3:00 PM, JP <span dir="ltr"><<a href="mailto:jaykris@gmail.com" target="_blank">jaykris@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>Avi,</div>Thanks for the response. Unfortunately that did not work. This is what I did<div><br></div><div><div><br></div><div> <extension name="MyExtension"></div><div> <condition field="destination_number" expression="9005"></div>
<div> <action application="answer"/></div><div> <action application="play_and_get_digits" data="4 16 3 7000 # phrase:MyPrompt phrase:My_invalid_entry case_number \d+" /></div>
<div> <action application="playback" data="phrase:wait_msg" /></div><div> <action application="sched_broadcast" data="+0 playback::/tmp/WPJ_MUSIC_QUEUE_4.wav"/> </div>
<div> <action application="lua" data="get_customer_info.lua ${case_number}" /></div><div> </condition></div><div> </extension></div><div><br></div><div>The music only plays after the Lua script exits. I played around with the timer value, but that did not help either. Any other ideas?</div>
<div><br></div><div>Thanks<br>JP</div><div><br></div><br><div class="gmail_quote">On Fri, Jan 25, 2013 at 1:22 AM, Avi Marcus <span dir="ltr"><<a href="mailto:avi@avimarcus.net" target="_blank">avi@avimarcus.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">ESL gives you more control, especially to execute things in parallel.<div>If you want to do it within FS, that's a little more complicated, since most things are sequential.</div>
<div><div><br></div><div>
However, if you use the async APIs, then I think it could work:</div><div>1) <a href="http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_sched_broadcast" target="_blank">sched_broadcast</a> -- schedule the playback of your file on the UUID of the channel, for +0, meaning now.</div>
<div>2) run your lua script</div><div>3) Then stop (break) the playback on that uuid: <a href="http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_break" target="_blank">break</a></div><div>4) Continue with your execution.</div>
<div><br>
</div><div>Please wikify your results and let us know how that works out!<br clear="all"><div><div dir="ltr"><span style="font-family:Verdana,Arial,Helvetica,sans-serif;font-size:small">-Avi</span></div></div><br><div class="gmail_quote">
<div><div>
On Fri, Jan 25, 2013 at 3:34 AM, JP <span dir="ltr"><<a href="mailto:jaykris@gmail.com" target="_blank">jaykris@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div>
I want to do the following...<div><br></div><div>1. Play a long music file from a dialplan.</div><div>2. While the music is playing, I want to launch a Lua script to do some data dip.</div><div>3. Once the data is fetched and Lua exits, I want to interrupt the music and continue in the dialplan</div>
<div><br></div><div>How do I do this. Any sample code or pointers would be greatly appreciated.</div><div><br></div><div>Thanks</div>
<br></div></div>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com/" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com/" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org/" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div></div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><br></div></div><span><font color="#888888">-- <br>Michael S Collins<br>Twitter: @mercutioviz<br><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br>
<a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br><br>
</font></span><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>
</div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Michael S Collins<br>Twitter: @mercutioviz<br><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br><a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br><br>
</div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>