<div dir="ltr">you still seem to have a parsing error, but the XML response looks good to me? I matched it against mine and they look the same. Do you have proper line returns, etc?<div><br></div><div>I agree your action should be changed (add the user prefix before 4444)<br>
<div><span style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,0)"> <action application="bridge" data="user/</span><a href="mailto:4444@123.176.38.68" target="_blank" style="font-family:arial,sans-serif;font-size:13px">4444@123.176.38.68</a><span style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,0)">"/></span><br>
</div></div><div><br></div><div>Hopefully someone else can spot the error with the XML.</div><div>Good luck,</div><div>Ian.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, May 8, 2014 at 8:50 AM, Shaik Raheemuddin <span dir="ltr"><<a href="mailto:sraheemuddin@cts-in.com" target="_blank">sraheemuddin@cts-in.com</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">Hi lan,<br>I changed for Caller-Destination-Number, dialplan response has info realted to that user only.<br>
<b>Beelow is response for dialplan :</b><br><?xml version="1.0" encoding="UTF-8" standalone="no"?><document type="freeswitch/xml"><section name="dialplan" description="RE Dial Plan For FreeSwitch"><context name="public"><extension name="4444"><condition field="destination_number" expression="^4444$"><action application="bridge" data="<a href="mailto:4444@123.176.38.68" target="_blank">4444@123.176.38.68</a>"/></condition></extension></context></section></document><br>
<b>Below is response for /tmp/de0d9d30-d6ad-11e3-8617-bbf894de80fe.tmp.xml</b><br> <?xml version="1.0" encoding="UTF-8" standalone="no"?><document type="freeswitch/xml"><section name="dialplan" description="RE Dial Plan For FreeSwitch"><context name="public"><extension name="4444"><condition field="destination_number" expression="^4444$"><action application="bridge" data="<a href="mailto:4444@123.176.38.68" target="_blank">4444@123.176.38.68</a>"/></condition></extension></context></section></document><br>
<span style="background-color:rgb(255,255,0)">I think i am wrong with action in condition <action application="bridge" data="<a href="mailto:4444@123.176.38.68" target="_blank">4444@123.176.38.68</a>"/></span><br>
<b>Below is response in fs_cli after xml_curl debug_on</b><br>2014-05-08 18:09:59.393512 [NOTICE] switch_channel.c:1050 New Channel sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> [de0a1368-d6ad-11e3-8614-bbf894de80fe]<br>
2014-05-08 18:09:59.393512 [DEBUG] switch_core_session.c:1016 Send signal sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> [BREAK]<br>2014-05-08 18:09:59.393512 [DEBUG] switch_core_session.c:1016 Send signal sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> [BREAK]<br>
2014-05-08 18:09:59.413661 [DEBUG] switch_core_state_machine.c:415 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) Running State Change CS_NEW<br>2014-05-08 18:09:59.413661 [DEBUG] sofia.c:7877 sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> receiving invite from <a href="http://49.204.247.24:29644" target="_blank">49.204.247.24:29644</a> version: 1.2.23 32bit<br>
2014-05-08 18:09:59.413661 [DEBUG] sofia.c:8034 IP 49.204.247.24 Rejected by acl "domains". Falling back to Digest auth.<br>2014-05-08 18:09:59.413661 [DEBUG] switch_core_state_machine.c:434 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) State NEW<br>
2014-05-08 18:09:59.413661 [DEBUG] switch_core_session.c:1016 Send signal sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> [BREAK]<br>2014-05-08 18:09:59.413661 [DEBUG] sofia.c:1792 detaching session de0a1368-d6ad-11e3-8614-bbf894de80fe<br>
2014-05-08 18:09:59.413661 [DEBUG] sofia.c:1888 Re-attaching to session de0a1368-d6ad-11e3-8614-bbf894de80fe<br>2014-05-08 18:09:59.413661 [DEBUG] switch_core_session.c:1016 Send signal sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> [BREAK]<br>
2014-05-08 18:09:59.413661 [DEBUG] switch_core_session.c:1016 Send signal sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> [BREAK]<br>2014-05-08 18:09:59.433518 [DEBUG] sofia.c:7877 sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> receiving invite from <a href="http://49.204.247.24:29644" target="_blank">49.204.247.24:29644</a> version: 1.2.23 32bit<br>
2014-05-08 18:09:59.433518 [DEBUG] sofia.c:8034 IP 49.204.247.24 Rejected by acl "domains". Falling back to Digest auth.<br>2014-05-08 18:09:59.433518 [DEBUG] sofia.c:5815 Channel sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> entering state [received][100]<br>
2014-05-08 18:09:59.433518 [DEBUG] sofia.c:5828 Remote SDP:<br>v=0<br>o=- 13044025785847924 1 IN IP4 49.204.247.24<div class=""><br>s=X-Lite 4 release 4.5.5 stamp 71236<br>c=IN IP4 49.204.247.24<br>t=0 0<br></div>m=audio 57054 RTP/AVP 125 9 0 8 100 101<div class="">
<br>
a=rtpmap:125 opus/48000/2<br>a=fmtp:125 useinbandfec=1<br>a=rtpmap:100 speex/16000<br>a=rtpmap:101 telephone-event/8000<br>a=fmtp:101 0-15<br><br></div>2014-05-08 18:09:59.433518 [DEBUG] sofia.c:6075 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) State Change CS_NEW -> CS_INIT<br>
2014-05-08 18:09:59.433518 [DEBUG] switch_core_session.c:1351 Send signal sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> [BREAK]<br>2014-05-08 18:09:59.433518 [DEBUG] switch_core_state_machine.c:415 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) Running State Change CS_INIT<br>
2014-05-08 18:09:59.433518 [DEBUG] switch_core_state_machine.c:455 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) State INIT<br>2014-05-08 18:09:59.433518 [DEBUG] mod_sofia.c:87 sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> SOFIA INIT<br>
2014-05-08 18:09:59.433518 [DEBUG] mod_sofia.c:127 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) State Change CS_INIT -> CS_ROUTING<br>2014-05-08 18:09:59.433518 [DEBUG] switch_core_session.c:1351 Send signal sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> [BREAK]<br>
2014-05-08 18:09:59.433518 [DEBUG] switch_core_state_machine.c:455 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) State INIT going to sleep<br>2014-05-08 18:09:59.433518 [DEBUG] switch_core_state_machine.c:415 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) Running State Change CS_ROUTING<br>
2014-05-08 18:09:59.433518 [DEBUG] switch_channel.c:2163 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) Callstate Change DOWN -> RINGING<br>2014-05-08 18:09:59.433518 [DEBUG] switch_core_state_machine.c:471 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) State ROUTING<br>
2014-05-08 18:09:59.433518 [DEBUG] mod_sofia.c:150 sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> SOFIA ROUTING<br>2014-05-08 18:09:59.433518 [DEBUG] switch_core_state_machine.c:117 sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> Standard ROUTING<br>
2014-05-08 18:09:59.433518 [INFO] mod_dialplan_xml.c:558 Processing 4321 <4321>->4444 in context public<br>2014-05-08 18:09:59.473525 [ERR] mod_xml_curl.c:307 Error Parsing Result! [<a href="http://123.176.38.68:9000/freeswitchdata" target="_blank">http://123.176.38.68:9000/freeswitchdata</a>]<br>
data: [hostname=cts-wow&section=dialplan&tag_name=&key_name=&key_value=&Event-Name=REQUEST_PARAMS&Core-UUID=435bc226-d685-11e3-84f5-bbf894de80fe&FreeSWITCH-Hostname=cts-wow&FreeSWITCH-Switchname=cts-wow&FreeSWITCH-IPv4=123.176.38.68&FreeSWITCH-IPv6=%3A%3A1&Event-Date-Local=2014-05-08%2018%3A09%3A59&Event-Date-GMT=Thu,%2008%20May%202014%2012%3A39%3A59%20GMT&Event-Date-Timestamp=1399552799433518&Event-Calling-File=mod_dialplan_xml.c&Event-Calling-Function=dialplan_xml_locate&Event-Calling-Line-Number=529&Event-Sequence=3936&Channel-State=CS_ROUTING&Channel-Call-State=RINGING&Channel-State-Number=2&Channel-Name=sofia/internal/4321%40123.176.38.68&Unique-ID=de0a1368-d6ad-11e3-8614-bbf894de80fe&Call-Direction=inbound&Presence-Call-Direction=inbound&Channel-HIT-Dialplan=true&Channel-Presence-ID=4321%40123.176.38.68&Channel-Call-UUID=de0a1368-d6ad-11e3-8614-bbf894de80fe&Answer-State=ringing&Caller-Direction=inbound&Caller-Username=4321&Caller-Dialplan=XML&Caller-Caller-ID-Name=4321&Caller-Caller-ID-Number=4321&Caller-Orig-Caller-ID-Name=4321&Caller-Orig-Caller-ID-Number=4321&Caller-Network-Addr=49.204.247.24&Caller-ANI=4321&Caller-Destination-Number=4444&Caller-Unique-ID=de0a1368-d6ad-11e3-8614-bbf894de80fe&Caller-Source=mod_sofia&Caller-Context=public&Caller-Channel-Name=sofia/internal/4321%40123.176.38.68&Caller-Profile-Index=1&Caller-Profile-Created-Time=1399552799433518&Caller-Channel-Created-Time=1399552799433518&Caller-Channel-Answered-Time=0&Caller-Channel-Progress-Time=0&Caller-Channel-Progress-Media-Time=0&Caller-Channel-Hangup-Time=0&Caller-Channel-Transfer-Time=0&Caller-Channel-Resurrect-Time=0&Caller-Channel-Bridged-Time=0&Caller-Channel-Last-Hold=0&Caller-Channel-Hold-Accum=0&Caller-Screen-Bit=true&Caller-Privacy-Hide-Name=false&Caller-Privacy-Hide-Number=false&variable_direction=inbound&variable_uuid=de0a1368-d6ad-11e3-8614-bbf894de80fe&variable_session_id=33&variable_sip_from_user=4321&variable_sip_from_uri=4321%40123.176.38.68&variable_sip_from_host=123.176.38.68&variable_channel_name=sofia/internal/4321%40123.176.38.68&variable_sip_call_id=M2JmZmU0MWIxNmNkZmY4MTU2NTM1MWM1ZmE4OTE0ZDU&variable_sip_local_network_addr=123.176.38.68&variable_sip_network_ip=49.204.247.24&variable_sip_network_port=29644&variable_sip_received_ip=49.204.247.24&variable_sip_received_port=29644&variable_sip_via_protocol=udp&variable_sip_authorized=true&variable_Event-Name=REQUEST_PARAMS&variable_Core-UUID=435bc226-d685-11e3-84f5-bbf894de80fe&variable_FreeSWITCH-Hostname=cts-wow&variable_FreeSWITCH-Switchname=cts-wow&variable_FreeSWITCH-IPv4=123.176.38.68&variable_FreeSWITCH-IPv6=%3A%3A1&variable_Event-Date-Local=2014-05-08%2018%3A09%3A59&variable_Event-Date-GMT=Thu,%2008%20May%202014%2012%3A39%3A59%20GMT&variable_Event-Date-Timestamp=1399552799433518&variable_Event-Calling-File=sofia.c&variable_Event-Calling-Function=sofia_handle_sip_i_invite&variable_Event-Calling-Line-Number=8076&variable_Event-Sequence=3929&variable_sip_number_alias=4321&variable_sip_auth_username=4321&variable_sip_auth_realm=123.176.38.68&variable_number_alias=4321&variable_requested_domain_name=123.176.38.68&variable_user_name=4321&variable_domain_name=123.176.38.68&variable_sip_from_user_stripped=4321&variable_sip_from_tag=43d0594c&variable_sofia_profile_name=internal&variable_recovery_profile_name=internal&variable_sip_full_via=SIP/2.0/UDP%2049.204.247.24%3A29644%3Bbranch%3Dz9hG4bK-d8754z-8f161014d0929a6f-1---d8754z-%3Brport%3D29644&variable_sip_full_from=%3Csip%3A4321%40123.176.38.68%3E%3Btag%3D43d0594c&variable_sip_to_display=4444numb&variable_sip_full_to=%224444numb%22%20%3Csip%3A4444%40123.176.38.68%3E&variable_sip_req_user=4444&variable_sip_req_uri=4444%40123.176.38.68&variable_sip_req_host=123.176.38.68&variable_sip_to_user=4444&variable_sip_to_uri=4444%40123.176.38.68&variable_sip_to_host=123.176.38.68&variable_sip_contact_user=4321&variable_sip_contact_port=29644&variable_sip_contact_uri=4321%4049.204.247.24%3A29644&variable_sip_contact_host=49.204.247.24&variable_rtp_use_codec_string=G722,PCMU,PCMA,GSM&variable_sip_user_agent=X-Lite%20release%204.5.5%20%20stamp%2071236&variable_sip_via_host=49.204.247.24&variable_sip_via_port=29644&variable_sip_via_rport=29644&variable_max_forwards=70&variable_presence_id=4321%40123.176.38.68&variable_switch_r_sdp=v%3D0%0D%0Ao%3D-%2013044025785847924%201%20IN%20IP4%2049.204.247.24%0D%0As%3DX-Lite%204%20release%204.5.5%20%20stamp%2071236%0D%0Ac%3DIN%20IP4%2049.204.247.24%0D%0At%3D0%200%0D%0Am%3Daudio%2057054%20RTP/AVP%20125%209%200%208%20100%20101%0D%0Aa%3Drtpmap%3A125%20opus/48000/2%0D%0Aa%3Dfmtp%3A125%20useinbandfec%3D1%0D%0Aa%3Drtpmap%3A100%20speex/16000%0D%0Aa%3Drtpmap%3A101%20telephone-event/8000%0D%0Aa%3Dfmtp%3A101%200-15%0D%0A&variable_ep_codec_string=G722%408000h%4020i%4064000b,PCMU%408000h%4020i%4064000b,PCMA%408000h%4020i%4064000b&variable_endpoint_disposition=DELAYED%20NEGOTIATION&variable_call_uuid=de0a1368-d6ad-11e3-8614-bbf894de80fe&Hunt-Direction=inbound&Hunt-Username=4321&Hunt-Dialplan=XML&Hunt-Caller-ID-Name=4321&Hunt-Caller-ID-Number=4321&Hunt-Orig-Caller-ID-Name=4321&Hunt-Orig-Caller-ID-Number=4321&Hunt-Network-Addr=49.204.247.24&Hunt-ANI=4321&Hunt-Destination-Number=4444&Hunt-Unique-ID=de0a1368-d6ad-11e3-8614-bbf894de80fe&Hunt-Source=mod_sofia&Hunt-Context=public&Hunt-Channel-Name=sofia/internal/4321%40123.176.38.68&Hunt-Profile-Index=1&Hunt-Profile-Created-Time=1399552799433518&Hunt-Channel-Created-Time=1399552799433518&Hunt-Channel-Answered-Time=0&Hunt-Channel-Progress-Time=0&Hunt-Channel-Progress-Media-Time=0&Hunt-Channel-Hangup-Time=0&Hunt-Channel-Transfer-Time=0&Hunt-Channel-Resurrect-Time=0&Hunt-Channel-Bridged-Time=0&Hunt-Channel-Last-Hold=0&Hunt-Channel-Hold-Accum=0&Hunt-Screen-Bit=true&Hunt-Privacy-Hide-Name=false&Hunt-Privacy-Hide-Number=false]<br>
2014-05-08 18:09:59.473525 [CONSOLE] mod_xml_curl.c:318 XML response is in /tmp/de0d9d30-d6ad-11e3-8617-bbf894de80fe.tmp.xml<div class=""><br>Dialplan: sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> parsing [public->unloop] continue=false<br>
Dialplan: sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> Regex (PASS) [unloop] ${unroll_loops}(true) =~ /^true$/ break=on-false<br>Dialplan: sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> Regex (FAIL) [unloop] ${sip_looped_call}() =~ /^true$/ break=on-false<br>
Dialplan: sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> parsing [public->outside_call] continue=true<br>Dialplan: sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> Absolute Condition [outside_call]<br>
Dialplan: sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> Action set(outside_call=true)<br>Dialplan: sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> Action export(RFC2822_DATE=${strftime(%a, %d %b %Y %T %z)})<br>
Dialplan: sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> parsing [public->call_debug] continue=true<br>Dialplan: sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> Regex (FAIL) [call_debug] ${call_debug}(false) =~ /^true$/ break=never<br>
Dialplan: sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> parsing [public->public_extensions] continue=false<br>Dialplan: sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> Regex (FAIL) [public_extensions] destination_number(4444) =~ /^(10[01][0-9])$/ break=on-false<br>
Dialplan: sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> parsing [public->public_did] continue=false<br>Dialplan: sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> Regex (FAIL) [public_did] destination_number(4444) =~ /^(5551212)$/ break=on-false<br>
</div>
2014-05-08 18:09:59.473525 [DEBUG] switch_core_state_machine.c:167 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) State Change CS_ROUTING -> CS_EXECUTE<br>2014-05-08 18:09:59.473525 [DEBUG] switch_core_session.c:1351 Send signal sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> [BREAK]<br>
2014-05-08 18:09:59.473525 [DEBUG] switch_core_state_machine.c:471 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) State ROUTING going to sleep<br>2014-05-08 18:09:59.473525 [DEBUG] switch_core_state_machine.c:415 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) Running State Change CS_EXECUTE<br>
2014-05-08 18:09:59.473525 [DEBUG] switch_core_state_machine.c:478 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) State EXECUTE<br>2014-05-08 18:09:59.473525 [DEBUG] mod_sofia.c:243 sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> SOFIA EXECUTE<br>
2014-05-08 18:09:59.473525 [DEBUG] switch_core_state_machine.c:209 sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> Standard EXECUTE<br>EXECUTE sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> set(outside_call=true)<br>
2014-05-08 18:09:59.473525 [DEBUG] mod_dptools.c:1402 sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> SET [outside_call]=[true]<br>EXECUTE sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> export(RFC2822_DATE=Thu, 08 May 2014 18:09:59 +0530)<br>
2014-05-08 18:09:59.473525 [DEBUG] switch_channel.c:1242 EXPORT (export_vars) [RFC2822_DATE]=[Thu, 08 May 2014 18:09:59 +0530]<br>2014-05-08 18:09:59.473525 [NOTICE] switch_core_state_machine.c:262 sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> has executed the last dialplan instruction, hanging up.<br>
2014-05-08 18:09:59.473525 [NOTICE] switch_core_state_machine.c:264 Hangup sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> [CS_EXECUTE] [NORMAL_CLEARING]<br>2014-05-08 18:09:59.473525 [DEBUG] switch_channel.c:3187 Send signal sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> [KILL]<br>
2014-05-08 18:09:59.473525 [DEBUG] switch_core_session.c:1351 Send signal sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> [BREAK]<br>2014-05-08 18:09:59.473525 [DEBUG] switch_core_state_machine.c:478 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) State EXECUTE going to sleep<br>
2014-05-08 18:09:59.473525 [DEBUG] switch_core_state_machine.c:415 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) Running State Change CS_HANGUP<br>2014-05-08 18:09:59.473525 [DEBUG] switch_core_state_machine.c:678 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) Callstate Change RINGING -> HANGUP<br>
2014-05-08 18:09:59.473525 [DEBUG] switch_core_state_machine.c:680 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) State HANGUP<br>2014-05-08 18:09:59.473525 [DEBUG] mod_sofia.c:506 Channel sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> hanging up, cause: NORMAL_CLEARING<br>
2014-05-08 18:09:59.473525 [DEBUG] mod_sofia.c:640 Responding to INVITE with: 480<br>2014-05-08 18:09:59.473525 [DEBUG] switch_core_state_machine.c:48 sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> Standard HANGUP, cause: NORMAL_CLEARING<br>
2014-05-08 18:09:59.473525 [DEBUG] switch_core_state_machine.c:680 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) State HANGUP going to sleep<br>2014-05-08 18:09:59.473525 [DEBUG] switch_core_state_machine.c:447 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) State Change CS_HANGUP -> CS_REPORTING<br>
2014-05-08 18:09:59.473525 [DEBUG] switch_core_session.c:1351 Send signal sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> [BREAK]<br>2014-05-08 18:09:59.473525 [DEBUG] switch_core_state_machine.c:415 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) Running State Change CS_REPORTING<br>
2014-05-08 18:09:59.473525 [DEBUG] switch_core_state_machine.c:764 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) State REPORTING<br>2014-05-08 18:09:59.473525 [DEBUG] switch_core_state_machine.c:92 sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> Standard REPORTING, cause: NORMAL_CLEARING<br>
2014-05-08 18:09:59.473525 [DEBUG] switch_core_state_machine.c:764 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) State REPORTING going to sleep<br>2014-05-08 18:09:59.473525 [DEBUG] switch_core_state_machine.c:441 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) State Change CS_REPORTING -> CS_DESTROY<br>
2014-05-08 18:09:59.473525 [DEBUG] switch_core_session.c:1351 Send signal sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> [BREAK]<br>2014-05-08 18:09:59.473525 [DEBUG] switch_core_session.c:1559 Session 33 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) Locked, Waiting on external entities<br>
2014-05-08 18:09:59.473525 [NOTICE] switch_core_session.c:1577 Session 33 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) Ended<br>2014-05-08 18:09:59.473525 [NOTICE] switch_core_session.c:1581 Close Channel sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> [CS_DESTROY]<br>
2014-05-08 18:09:59.473525 [DEBUG] switch_core_state_machine.c:566 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) Callstate Change HANGUP -> DOWN<br>2014-05-08 18:09:59.473525 [DEBUG] switch_core_state_machine.c:569 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) Running State Change CS_DESTROY<br>
2014-05-08 18:09:59.473525 [DEBUG] switch_core_state_machine.c:579 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) State DESTROY<br>2014-05-08 18:09:59.473525 [DEBUG] mod_sofia.c:399 sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> SOFIA DESTROY<br>
2014-05-08 18:09:59.473525 [DEBUG] switch_core_state_machine.c:99 sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> Standard DESTROY<br>2014-05-08 18:09:59.473525 [DEBUG] switch_core_state_machine.c:579 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) State DESTROY going to sleep<br>
</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, May 8, 2014 at 5:35 PM, Ian McMaster <span dir="ltr"><<a href="mailto:ian.mcmaster@gmail.com" target="_blank">ian.mcmaster@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 dir="ltr">You are close.<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Your xml_curl server is being passed the GET parameters, including:</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px">section=</span><span style="font-family:arial,sans-serif;font-size:13px">dialplan</span><br><div><span style="font-family:arial,sans-serif;font-size:13px">Caller-Destination-Number=</span><span style="font-family:arial,sans-serif;font-size:13px">4444</span><br>
</div></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">You have an XML formatting error in your response. (Note that if you know the caller destination is 4444, your response need only have statements for that scenario).</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Can you please type "xml_curl debug_on" in the fs_cli to turn on debugging, then make the call again. This will capture your server's response, after which the XML error can be found.</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px">Can you then post the contents of the captured file.</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Thanks,</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px">Ian.</span></div><div><br></div></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, May 8, 2014 at 6:47 AM, Shaik Raheemuddin <span dir="ltr"><<a href="mailto:sraheemuddin@cts-in.com" target="_blank">sraheemuddin@cts-in.com</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"><div><div><div><div>Hi <br><br></div>i did seperate response based on "section"<br><br>Below is dialplan response:<br>
<br><?xml version="1.0" encoding="UTF-8" standalone="no"?><document type="freeswitch/xml"><section name="dialplan" description="RE Dial Plan For FreeSwitch"><context name="public"><extension name="1234"><condition field="destination_number" expression="^1234$"><action application="bridge" data="<a href="mailto:1234@123.176.38.68" target="_blank">1234@123.176.38.68</a>"/></condition></extension><extension name="4321"><condition field="destination_number" expression="^4321$"><action application="bridge" data="<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>"/></condition></extension><extension name="4444"><condition field="destination_number" expression="^4444$"><action application="bridge" data="<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>"/></condition></extension></context></section></document> <br>
<br></div>Below is directory response:<br><document type="freeswitch/xml"><section name="directory"><domain name="123.176.38.68"><params><param name="dial-string" value="{presence_id=${dialed_user}@${dialed_domain}}${sofia_contact(${dialed_user}@${dialed_domain})}"/></params><groups><group name="public"><users><user id="1234" cacheable="true"><params><param name="reverse-auth-user" value="1234" /><param name="reverse-auth-pass" value="1234" /></params></user><user id="4321" cacheable="true"><params><param name="reverse-auth-user" value="4321" /><param name="reverse-auth-pass" value="4321" /></params></user><user id="4444" cacheable="true"><params><param name="reverse-auth-user" value="4444" /><param name="reverse-auth-pass" value="4444" /></params></user></users></group></groups></domain></section></document><br>
<br><br></div>But still i am unable to make call :<br></div>All i want is to establish a call between user "4321" and user "4444"<br><div><div><div>But in vain:<br></div><div>Below is fs_cli response on call<br>
<br>2014-05-08 16:12:48.993513 [NOTICE] switch_channel.c:1050 New Channel sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> [7f96903c-d69d-11e3-85d0-bbf894de80fe]<br>2014-05-08 16:12:48.993513 [DEBUG] switch_core_session.c:1016 Send signal sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> [BREAK]<br>
2014-05-08 16:12:48.993513 [DEBUG] switch_core_session.c:1016 Send signal sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> [BREAK]<br>2014-05-08 16:12:48.993513 [DEBUG] switch_core_state_machine.c:415 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) Running State Change CS_NEW<br>
2014-05-08 16:12:48.993513 [DEBUG] sofia.c:7877 sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> receiving invite from <a href="http://49.204.247.24:29644" target="_blank">49.204.247.24:29644</a> version: 1.2.23 32bit<br>
2014-05-08 16:12:48.993513 [DEBUG] sofia.c:8034 IP 49.204.247.24 Rejected by acl "domains". Falling back to Digest auth.<br>2014-05-08 16:12:48.993513 [DEBUG] switch_core_state_machine.c:434 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) State NEW<br>
2014-05-08 16:12:48.993513 [DEBUG] switch_core_session.c:1016 Send signal sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> [BREAK]<br>2014-05-08 16:12:48.993513 [DEBUG] sofia.c:1792 detaching session 7f96903c-d69d-11e3-85d0-bbf894de80fe<br>
2014-05-08 16:12:49.013519 [DEBUG] sofia.c:1888 Re-attaching to session 7f96903c-d69d-11e3-85d0-bbf894de80fe<br>2014-05-08 16:12:49.013519 [DEBUG] switch_core_session.c:1016 Send signal sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> [BREAK]<br>
2014-05-08 16:12:49.013519 [DEBUG] switch_core_session.c:1016 Send signal sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> [BREAK]<br>2014-05-08 16:12:49.013519 [DEBUG] sofia.c:7877 sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> receiving invite from <a href="http://49.204.247.24:29644" target="_blank">49.204.247.24:29644</a> version: 1.2.23 32bit<br>
2014-05-08 16:12:49.013519 [DEBUG] sofia.c:8034 IP 49.204.247.24 Rejected by acl "domains". Falling back to Digest auth.<br>2014-05-08 16:12:49.013519 [DEBUG] sofia.c:5815 Channel sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> entering state [received][100]<br>
2014-05-08 16:12:49.013519 [DEBUG] sofia.c:5828 Remote SDP:<br>v=0<br>o=- 13044018739612067 1 IN IP4 49.204.247.24<br>s=X-Lite 4 release 4.5.5 stamp 71236<br>c=IN IP4 49.204.247.24<br>t=0 0<br>m=audio 50318 RTP/AVP 125 9 0 8 100 101<br>
a=rtpmap:125 opus/48000/2<br>a=fmtp:125 useinbandfec=1<br>a=rtpmap:100 speex/16000<br>a=rtpmap:101 telephone-event/8000<br>a=fmtp:101 0-15<br><br>2014-05-08 16:12:49.013519 [DEBUG] sofia.c:6075 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) State Change CS_NEW -> CS_INIT<br>
2014-05-08 16:12:49.013519 [DEBUG] switch_core_session.c:1351 Send signal sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> [BREAK]<br>2014-05-08 16:12:49.013519 [DEBUG] switch_core_state_machine.c:415 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) Running State Change CS_INIT<br>
2014-05-08 16:12:49.013519 [DEBUG] switch_core_state_machine.c:455 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) State INIT<br>2014-05-08 16:12:49.013519 [DEBUG] mod_sofia.c:87 sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> SOFIA INIT<br>
2014-05-08 16:12:49.013519 [DEBUG] mod_sofia.c:127 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) State Change CS_INIT -> CS_ROUTING<br>2014-05-08 16:12:49.013519 [DEBUG] switch_core_session.c:1351 Send signal sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> [BREAK]<br>
2014-05-08 16:12:49.013519 [DEBUG] switch_core_state_machine.c:455 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) State INIT going to sleep<br>2014-05-08 16:12:49.013519 [DEBUG] switch_core_state_machine.c:415 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) Running State Change CS_ROUTING<br>
2014-05-08 16:12:49.013519 [DEBUG] switch_channel.c:2163 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) Callstate Change DOWN -> RINGING<br>2014-05-08 16:12:49.013519 [DEBUG] switch_core_state_machine.c:471 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) State ROUTING<br>
2014-05-08 16:12:49.013519 [DEBUG] mod_sofia.c:150 sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> SOFIA ROUTING<br>2014-05-08 16:12:49.013519 [DEBUG] switch_core_state_machine.c:117 sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> Standard ROUTING<br>
2014-05-08 16:12:49.013519 [INFO] mod_dialplan_xml.c:558 Processing 4321 <4321>->4444 in context public<br>2014-05-08 16:12:49.073516 [ERR] mod_xml_curl.c:307 Error Parsing Result! [<a href="http://123.176.38.68:9000/freeswitchdata" target="_blank">http://123.176.38.68:9000/freeswitchdata</a>]<br>
data: [hostname=cts-wow&section=dialplan&tag_name=&key_name=&key_value=&Event-Name=REQUEST_PARAMS&Core-UUID=435bc226-d685-11e3-84f5-bbf894de80fe&FreeSWITCH-Hostname=cts-wow&FreeSWITCH-Switchname=cts-wow&FreeSWITCH-IPv4=123.176.38.68&FreeSWITCH-IPv6=%3A%3A1&Event-Date-Local=2014-05-08%2016%3A12%3A49&Event-Date-GMT=Thu,%2008%20May%202014%2010%3A42%3A49%20GMT&Event-Date-Timestamp=1399545769013519&Event-Calling-File=mod_dialplan_xml.c&Event-Calling-Function=dialplan_xml_locate&Event-Calling-Line-Number=529&Event-Sequence=2646&Channel-State=CS_ROUTING&Channel-Call-State=RINGING&Channel-State-Number=2&Channel-Name=sofia/internal/4321%40123.176.38.68&Unique-ID=7f96903c-d69d-11e3-85d0-bbf894de80fe&Call-Direction=inbound&Presence-Call-Direction=inbound&Channel-HIT-Dialplan=true&Channel-Presence-ID=4321%40123.176.38.68&Channel-Call-UUID=7f96903c-d69d-11e3-85d0-bbf894de80fe&Answer-State=ringing&Caller-Direction=inbound&Caller-Username=4321&Caller-Dialplan=XML&Caller-Caller-ID-Name=4321&Caller-Caller-ID-Number=4321&Caller-Orig-Caller-ID-Name=4321&Caller-Orig-Caller-ID-Number=4321&Caller-Network-Addr=49.204.247.24&Caller-ANI=4321&Caller-Destination-Number=4444&Caller-Unique-ID=7f96903c-d69d-11e3-85d0-bbf894de80fe&Caller-Source=mod_sofia&Caller-Context=public&Caller-Channel-Name=sofia/internal/4321%40123.176.38.68&Caller-Profile-Index=1&Caller-Profile-Created-Time=1399545769013519&Caller-Channel-Created-Time=1399545769013519&Caller-Channel-Answered-Time=0&Caller-Channel-Progress-Time=0&Caller-Channel-Progress-Media-Time=0&Caller-Channel-Hangup-Time=0&Caller-Channel-Transfer-Time=0&Caller-Channel-Resurrect-Time=0&Caller-Channel-Bridged-Time=0&Caller-Channel-Last-Hold=0&Caller-Channel-Hold-Accum=0&Caller-Screen-Bit=true&Caller-Privacy-Hide-Name=false&Caller-Privacy-Hide-Number=false&variable_direction=inbound&variable_uuid=7f96903c-d69d-11e3-85d0-bbf894de80fe&variable_session_id=25&variable_sip_from_user=4321&variable_sip_from_uri=4321%40123.176.38.68&variable_sip_from_host=123.176.38.68&variable_channel_name=sofia/internal/4321%40123.176.38.68&variable_sip_call_id=NDRhMmQ1N2E4N2QzMWNmNjNlYzc5ZjVhNWM3NDE0NWU&variable_sip_local_network_addr=123.176.38.68&variable_sip_network_ip=49.204.247.24&variable_sip_network_port=29644&variable_sip_received_ip=49.204.247.24&variable_sip_received_port=29644&variable_sip_via_protocol=udp&variable_sip_authorized=true&variable_Event-Name=REQUEST_PARAMS&variable_Core-UUID=435bc226-d685-11e3-84f5-bbf894de80fe&variable_FreeSWITCH-Hostname=cts-wow&variable_FreeSWITCH-Switchname=cts-wow&variable_FreeSWITCH-IPv4=123.176.38.68&variable_FreeSWITCH-IPv6=%3A%3A1&variable_Event-Date-Local=2014-05-08%2016%3A12%3A49&variable_Event-Date-GMT=Thu,%2008%20May%202014%2010%3A42%3A49%20GMT&variable_Event-Date-Timestamp=1399545769013519&variable_Event-Calling-File=sofia.c&variable_Event-Calling-Function=sofia_handle_sip_i_invite&variable_Event-Calling-Line-Number=8076&variable_Event-Sequence=2639&variable_sip_number_alias=4321&variable_sip_auth_username=4321&variable_sip_auth_realm=123.176.38.68&variable_number_alias=4321&variable_requested_domain_name=123.176.38.68&variable_user_name=4321&variable_domain_name=123.176.38.68&variable_sip_from_user_stripped=4321&variable_sip_from_tag=6979ac76&variable_sofia_profile_name=internal&variable_recovery_profile_name=internal&variable_sip_full_via=SIP/2.0/UDP%2049.204.247.24%3A29644%3Bbranch%3Dz9hG4bK-d8754z-94fc6578221ffd36-1---d8754z-%3Brport%3D29644&variable_sip_full_from=%3Csip%3A4321%40123.176.38.68%3E%3Btag%3D6979ac76&variable_sip_to_display=4321numb&variable_sip_full_to=%224321numb%22%20%3Csip%3A4444%40123.176.38.68%3E&variable_sip_req_user=4444&variable_sip_req_uri=4444%40123.176.38.68&variable_sip_req_host=123.176.38.68&variable_sip_to_user=4444&variable_sip_to_uri=4444%40123.176.38.68&variable_sip_to_host=123.176.38.68&variable_sip_contact_user=4321&variable_sip_contact_port=29644&variable_sip_contact_uri=4321%4049.204.247.24%3A29644&variable_sip_contact_host=49.204.247.24&variable_rtp_use_codec_string=G722,PCMU,PCMA,GSM&variable_sip_user_agent=X-Lite%20release%204.5.5%20%20stamp%2071236&variable_sip_via_host=49.204.247.24&variable_sip_via_port=29644&variable_sip_via_rport=29644&variable_max_forwards=70&variable_presence_id=4321%40123.176.38.68&variable_switch_r_sdp=v%3D0%0D%0Ao%3D-%2013044018739612067%201%20IN%20IP4%2049.204.247.24%0D%0As%3DX-Lite%204%20release%204.5.5%20%20stamp%2071236%0D%0Ac%3DIN%20IP4%2049.204.247.24%0D%0At%3D0%200%0D%0Am%3Daudio%2050318%20RTP/AVP%20125%209%200%208%20100%20101%0D%0Aa%3Drtpmap%3A125%20opus/48000/2%0D%0Aa%3Dfmtp%3A125%20useinbandfec%3D1%0D%0Aa%3Drtpmap%3A100%20speex/16000%0D%0Aa%3Drtpmap%3A101%20telephone-event/8000%0D%0Aa%3Dfmtp%3A101%200-15%0D%0A&variable_ep_codec_string=G722%408000h%4020i%4064000b,PCMU%408000h%4020i%4064000b,PCMA%408000h%4020i%4064000b&variable_endpoint_disposition=DELAYED%20NEGOTIATION&variable_call_uuid=7f96903c-d69d-11e3-85d0-bbf894de80fe&Hunt-Direction=inbound&Hunt-Username=4321&Hunt-Dialplan=XML&Hunt-Caller-ID-Name=4321&Hunt-Caller-ID-Number=4321&Hunt-Orig-Caller-ID-Name=4321&Hunt-Orig-Caller-ID-Number=4321&Hunt-Network-Addr=49.204.247.24&Hunt-ANI=4321&Hunt-Destination-Number=4444&Hunt-Unique-ID=7f96903c-d69d-11e3-85d0-bbf894de80fe&Hunt-Source=mod_sofia&Hunt-Context=public&Hunt-Channel-Name=sofia/internal/4321%40123.176.38.68&Hunt-Profile-Index=1&Hunt-Profile-Created-Time=1399545769013519&Hunt-Channel-Created-Time=1399545769013519&Hunt-Channel-Answered-Time=0&Hunt-Channel-Progress-Time=0&Hunt-Channel-Progress-Media-Time=0&Hunt-Channel-Hangup-Time=0&Hunt-Channel-Transfer-Time=0&Hunt-Channel-Resurrect-Time=0&Hunt-Channel-Bridged-Time=0&Hunt-Channel-Last-Hold=0&Hunt-Channel-Hold-Accum=0&Hunt-Screen-Bit=true&Hunt-Privacy-Hide-Name=false&Hunt-Privacy-Hide-Number=false]<br>
Dialplan: sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> parsing [public->unloop] continue=false<br>Dialplan: sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> Regex (PASS) [unloop] ${unroll_loops}(true) =~ /^true$/ break=on-false<br>
Dialplan: sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> Regex (FAIL) [unloop] ${sip_looped_call}() =~ /^true$/ break=on-false<br>Dialplan: sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> parsing [public->outside_call] continue=true<br>
Dialplan: sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> Absolute Condition [outside_call]<br>Dialplan: sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> Action set(outside_call=true)<br>
Dialplan: sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> Action export(RFC2822_DATE=${strftime(%a, %d %b %Y %T %z)})<br>Dialplan: sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> parsing [public->call_debug] continue=true<br>
Dialplan: sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> Regex (FAIL) [call_debug] ${call_debug}(false) =~ /^true$/ break=never<br>Dialplan: sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> parsing [public->public_extensions] continue=false<br>
Dialplan: sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> Regex (FAIL) [public_extensions] destination_number(4444) =~ /^(10[01][0-9])$/ break=on-false<br>Dialplan: sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> parsing [public->public_did] continue=false<br>
Dialplan: sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> Regex (FAIL) [public_did] destination_number(4444) =~ /^(5551212)$/ break=on-false<br>2014-05-08 16:12:49.073516 [DEBUG] switch_core_state_machine.c:167 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) State Change CS_ROUTING -> CS_EXECUTE<br>
2014-05-08 16:12:49.073516 [DEBUG] switch_core_session.c:1351 Send signal sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> [BREAK]<br>2014-05-08 16:12:49.073516 [DEBUG] switch_core_state_machine.c:471 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) State ROUTING going to sleep<br>
2014-05-08 16:12:49.073516 [DEBUG] switch_core_state_machine.c:415 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) Running State Change CS_EXECUTE<br>2014-05-08 16:12:49.073516 [DEBUG] switch_core_state_machine.c:478 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) State EXECUTE<br>
2014-05-08 16:12:49.073516 [DEBUG] mod_sofia.c:243 sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> SOFIA EXECUTE<br>2014-05-08 16:12:49.073516 [DEBUG] switch_core_state_machine.c:209 sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> Standard EXECUTE<br>
EXECUTE sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> set(outside_call=true)<br>2014-05-08 16:12:49.073516 [DEBUG] mod_dptools.c:1402 sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> SET [outside_call]=[true]<br>
EXECUTE sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> export(RFC2822_DATE=Thu, 08 May 2014 16:12:49 +0530)<br>2014-05-08 16:12:49.073516 [DEBUG] switch_channel.c:1242 EXPORT (export_vars) [RFC2822_DATE]=[Thu, 08 May 2014 16:12:49 +0530]<br>
2014-05-08 16:12:49.073516 [NOTICE] switch_core_state_machine.c:262 sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> has executed the last dialplan instruction, hanging up.<br>2014-05-08 16:12:49.073516 [NOTICE] switch_core_state_machine.c:264 Hangup sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> [CS_EXECUTE] [NORMAL_CLEARING]<br>
2014-05-08 16:12:49.073516 [DEBUG] switch_channel.c:3187 Send signal sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> [KILL]<br>2014-05-08 16:12:49.073516 [DEBUG] switch_core_session.c:1351 Send signal sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> [BREAK]<br>
2014-05-08 16:12:49.073516 [DEBUG] switch_core_state_machine.c:478 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) State EXECUTE going to sleep<br>2014-05-08 16:12:49.073516 [DEBUG] switch_core_state_machine.c:415 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) Running State Change CS_HANGUP<br>
2014-05-08 16:12:49.073516 [DEBUG] switch_core_state_machine.c:678 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) Callstate Change RINGING -> HANGUP<br>2014-05-08 16:12:49.073516 [DEBUG] switch_core_state_machine.c:680 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) State HANGUP<br>
2014-05-08 16:12:49.073516 [DEBUG] mod_sofia.c:506 Channel sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> hanging up, cause: NORMAL_CLEARING<br>2014-05-08 16:12:49.073516 [DEBUG] mod_sofia.c:640 Responding to INVITE with: 480<br>
2014-05-08 16:12:49.073516 [DEBUG] switch_core_state_machine.c:48 sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> Standard HANGUP, cause: NORMAL_CLEARING<br>2014-05-08 16:12:49.073516 [DEBUG] switch_core_state_machine.c:680 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) State HANGUP going to sleep<br>
2014-05-08 16:12:49.073516 [DEBUG] switch_core_state_machine.c:447 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) State Change CS_HANGUP -> CS_REPORTING<br>2014-05-08 16:12:49.073516 [DEBUG] switch_core_session.c:1351 Send signal sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> [BREAK]<br>
2014-05-08 16:12:49.073516 [DEBUG] switch_core_state_machine.c:415 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) Running State Change CS_REPORTING<br>2014-05-08 16:12:49.073516 [DEBUG] switch_core_state_machine.c:764 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) State REPORTING<br>
2014-05-08 16:12:49.073516 [DEBUG] switch_core_state_machine.c:92 sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> Standard REPORTING, cause: NORMAL_CLEARING<br>2014-05-08 16:12:49.073516 [DEBUG] switch_core_state_machine.c:764 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) State REPORTING going to sleep<br>
2014-05-08 16:12:49.073516 [DEBUG] switch_core_state_machine.c:441 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) State Change CS_REPORTING -> CS_DESTROY<br>2014-05-08 16:12:49.073516 [DEBUG] switch_core_session.c:1351 Send signal sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> [BREAK]<br>
2014-05-08 16:12:49.073516 [DEBUG] switch_core_session.c:1559 Session 25 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) Locked, Waiting on external entities<br>2014-05-08 16:12:49.073516 [NOTICE] switch_core_session.c:1577 Session 25 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) Ended<br>
2014-05-08 16:12:49.073516 [NOTICE] switch_core_session.c:1581 Close Channel sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> [CS_DESTROY]<br>2014-05-08 16:12:49.073516 [DEBUG] switch_core_state_machine.c:566 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) Callstate Change HANGUP -> DOWN<br>
2014-05-08 16:12:49.073516 [DEBUG] switch_core_state_machine.c:569 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) Running State Change CS_DESTROY<br>2014-05-08 16:12:49.073516 [DEBUG] switch_core_state_machine.c:579 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) State DESTROY<br>
2014-05-08 16:12:49.073516 [DEBUG] mod_sofia.c:399 sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> SOFIA DESTROY<br>2014-05-08 16:12:49.073516 [DEBUG] switch_core_state_machine.c:99 sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a> Standard DESTROY<br>
2014-05-08 16:12:49.073516 [DEBUG] switch_core_state_machine.c:579 (sofia/internal/<a href="mailto:4321@123.176.38.68" target="_blank">4321@123.176.38.68</a>) State DESTROY going to sleep<br></div></div></div></div><div class="gmail_extra">
<div><div>
<br><br><div class="gmail_quote">On Wed, May 7, 2014 at 7:26 PM, Ian McMaster <span dir="ltr"><<a href="mailto:ian.mcmaster@gmail.com" target="_blank">ian.mcmaster@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 dir="ltr">First, I am not sure if mixing together 'sections' in the response is a good practice. The xml_curl post parameters will request a "section" (i.e. configuration, directory or dialplan) and the response can be more tailored than you have (you are mixing directory and dialplan responses).<div>
Your xml_curl dialplan response has two conditions (unroll_loops and sip_looped_call) - are both true? If you created the same extension in the regular public dialplan,and turned off xml_curl would the call be processed?</div>
<div>It would be a good idea to turn on debug (xml_curl debug_on) and make sure that your xml_curl server is responding when calling 1234->4321.</div><div><br>Not sure what else could be the problem.</div><span><font color="#888888"><div>
Ian.</div>
</font></span></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 7, 2014 at 5:32 AM, raheem <span dir="ltr"><<a href="mailto:sraheemuddin@cts-in.com" target="_blank">sraheemuddin@cts-in.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
I am trying to use mod xml curl with freeswitch.<br>
<br>
I have configured in "xml_curl.conf.xml " gateway url to<br>
<br>
<br>
<br>
<br>
where in at server it sends below response<br>
<br>
<document type="freeswitch/xml"><br>
<section name="dialplan" description="RE Dial Plan For FreeSwitch"><br>
<context name="public"><br>
<extension name="unloop"><br>
<condition field="${unroll_loops}" expression="^true$"/><br>
<condition field="${sip_looped_call}" expression="^true$"><br>
<action application="deflect" data="${destination_number}"/><br>
</condition></extension></context></section><br>
<section name="directory"><br>
<domain name="123.176.38.68"><br>
<params><br>
<br>
</params><br>
<users><br>
<user id="1234" cacheable="true"><br>
<params><br>
<br>
<br>
</params><br>
</user><br>
<user id="4321" cacheable="true"><br>
<params><br>
<br>
</params><br>
</user><br>
</users><br>
</domain><br>
</section><br>
</document><br>
<br>
I am unable to make call for below error<br>
2014-05-06 12:44:15.313984 [INFO] mod_dialplan_xml.c:558 Processing 1234<br>
<1234>->4321 in context public<br>
2014-05-06 12:44:15.633985 [INFO] switch_core_state_machine.c:192 No Route,<br>
Aborting<br>
<br>
I guess i am missing in dialplan part<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://freeswitch-users.2379917.n2.nabble.com/dial-plan-in-mod-xml-curl-tp7596111.html" target="_blank">http://freeswitch-users.2379917.n2.nabble.com/dial-plan-in-mod-xml-curl-tp7596111.html</a><br>
Sent from the freeswitch-users mailing list archive at Nabble.com.<br>
<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>
</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></div></div><span><font color="#888888">-- <br>Thanks and Regards<br>Shaik Raheemuddin<div><img src="https://dl.dropbox.com/u/59093525/qrcode.png"><br><br><br>
</div>
</font></span></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>
</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>Thanks and Regards<br>Shaik Raheemuddin<div><img src="https://dl.dropbox.com/u/59093525/qrcode.png"><br><br><br></div>
</div>
</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>