[Freeswitch-users] dial plan in mod xml curl
Shaik Raheemuddin
sraheemuddin at cts-in.com
Fri May 9 14:49:24 MSD 2014
Hi lan,
I removed XML parsing error by removing <?xml version="1.0"
encoding="UTF-8" standalone="no"?>
Its working now.
Thanks
On Thu, May 8, 2014 at 7:43 PM, Ian McMaster <ian.mcmaster at gmail.com> wrote:
>
> This is a sample working dialplan response from a test system (this use
> case is not complete):
>
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> <document type="freeswitch/xml">
> <section description="Description" name="dialplan">
> <context name="default">
> <extension name="Local extension 101">
> <condition>
> <action application="export" data="dialed_extension=101"/>
> <action application="set" data="ringback=${us-ring}"/>
> <action application="set"
> data="transfer_ringback=$${hold_music}"/>
> <action application="set" data="call_timeout=30"/>
> <action application="set" data="hangup_after_bridge=true"/>
> <action application="set" data="continue_on_fail=true"/>
> <action application="bridge" data="user/101 at 192.168.2.7"/>
> </condition>
> </extension>
> </context>
> </section>
> </document>
>
>
> This is a typical directory response:
>
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> <document type="freeswitch/xml">
> <section name="directory">
> <domain name="192.168.2.7">
> <user id="101">
> <params>
> <param name="password" value="xxxx"/>
> <param name="dial-string"
> value="{^^:sip_invite_domain=${dialed_domain}:presence_id=${dialed_user}@
> ${dialed_domain}}${sofia_contact(*/${dialed_user}@${dialed_domain})}"/>
> </params>
> <variables>
> <variable name="accountcode" value="101"/>
> <variable name="user_context" value="default"/>
> <variable name="effective_caller_id_name" value="xxxxx"/>
> <variable name="effective_caller_id_number" value="xxxxx"/>
> </variables>
> </user>
> </domain>
> </section>
> </document>
>
>
>
> On Thu, May 8, 2014 at 9:48 AM, Shaik Raheemuddin <sraheemuddin at cts-in.com
> > wrote:
>
>> Hi lan,
>> can you post your xml for dial plan and directory, if its not a problem.
>> Thanks in advance
>>
>>
>> On Thu, May 8, 2014 at 6:52 PM, Ian McMaster <ian.mcmaster at gmail.com>wrote:
>>
>>> 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?
>>>
>>> I agree your action should be changed (add the user prefix before 4444)
>>> <action application="bridge" data="user/4444 at 123.176.38.68"/>
>>>
>>> Hopefully someone else can spot the error with the XML.
>>> Good luck,
>>> Ian.
>>>
>>>
>>> On Thu, May 8, 2014 at 8:50 AM, Shaik Raheemuddin <
>>> sraheemuddin at cts-in.com> wrote:
>>>
>>>> Hi lan,
>>>> I changed for Caller-Destination-Number, dialplan response has info
>>>> realted to that user only.
>>>> *Beelow is response for dialplan :*
>>>> <?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="4444 at 123.176.38.68
>>>> "/></condition></extension></context></section></document>
>>>> *Below is response for
>>>> /tmp/de0d9d30-d6ad-11e3-8617-bbf894de80fe.tmp.xml*
>>>> <?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="4444 at 123.176.38.68
>>>> "/></condition></extension></context></section></document>
>>>> I think i am wrong with action in condition <action
>>>> application="bridge" data="4444 at 123.176.38.68"/>
>>>> *Below is response in fs_cli after xml_curl debug_on*
>>>> 2014-05-08 18:09:59.393512 [NOTICE] switch_channel.c:1050 New Channel
>>>> sofia/internal/4321 at 123.176.38.68[de0a1368-d6ad-11e3-8614-bbf894de80fe]
>>>> 2014-05-08 18:09:59.393512 [DEBUG] switch_core_session.c:1016 Send
>>>> signal sofia/internal/4321 at 123.176.38.68 [BREAK]
>>>> 2014-05-08 18:09:59.393512 [DEBUG] switch_core_session.c:1016 Send
>>>> signal sofia/internal/4321 at 123.176.38.68 [BREAK]
>>>> 2014-05-08 18:09:59.413661 [DEBUG] switch_core_state_machine.c:415
>>>> (sofia/internal/4321 at 123.176.38.68) Running State Change CS_NEW
>>>> 2014-05-08 18:09:59.413661 [DEBUG] sofia.c:7877 sofia/internal/
>>>> 4321 at 123.176.38.68 receiving invite from 49.204.247.24:29644 version:
>>>> 1.2.23 32bit
>>>> 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.
>>>> 2014-05-08 18:09:59.413661 [DEBUG] switch_core_state_machine.c:434
>>>> (sofia/internal/4321 at 123.176.38.68) State NEW
>>>> 2014-05-08 18:09:59.413661 [DEBUG] switch_core_session.c:1016 Send
>>>> signal sofia/internal/4321 at 123.176.38.68 [BREAK]
>>>> 2014-05-08 18:09:59.413661 [DEBUG] sofia.c:1792 detaching session
>>>> de0a1368-d6ad-11e3-8614-bbf894de80fe
>>>> 2014-05-08 18:09:59.413661 [DEBUG] sofia.c:1888 Re-attaching to session
>>>> de0a1368-d6ad-11e3-8614-bbf894de80fe
>>>> 2014-05-08 18:09:59.413661 [DEBUG] switch_core_session.c:1016 Send
>>>> signal sofia/internal/4321 at 123.176.38.68 [BREAK]
>>>> 2014-05-08 18:09:59.413661 [DEBUG] switch_core_session.c:1016 Send
>>>> signal sofia/internal/4321 at 123.176.38.68 [BREAK]
>>>> 2014-05-08 18:09:59.433518 [DEBUG] sofia.c:7877 sofia/internal/
>>>> 4321 at 123.176.38.68 receiving invite from 49.204.247.24:29644 version:
>>>> 1.2.23 32bit
>>>> 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.
>>>> 2014-05-08 18:09:59.433518 [DEBUG] sofia.c:5815 Channel sofia/internal/
>>>> 4321 at 123.176.38.68 entering state [received][100]
>>>> 2014-05-08 18:09:59.433518 [DEBUG] sofia.c:5828 Remote SDP:
>>>> v=0
>>>> o=- 13044025785847924 1 IN IP4 49.204.247.24
>>>>
>>>> s=X-Lite 4 release 4.5.5 stamp 71236
>>>> c=IN IP4 49.204.247.24
>>>> t=0 0
>>>> m=audio 57054 RTP/AVP 125 9 0 8 100 101
>>>>
>>>> a=rtpmap:125 opus/48000/2
>>>> a=fmtp:125 useinbandfec=1
>>>> a=rtpmap:100 speex/16000
>>>> a=rtpmap:101 telephone-event/8000
>>>> a=fmtp:101 0-15
>>>>
>>>> 2014-05-08 18:09:59.433518 [DEBUG] sofia.c:6075 (sofia/internal/
>>>> 4321 at 123.176.38.68) State Change CS_NEW -> CS_INIT
>>>> 2014-05-08 18:09:59.433518 [DEBUG] switch_core_session.c:1351 Send
>>>> signal sofia/internal/4321 at 123.176.38.68 [BREAK]
>>>> 2014-05-08 18:09:59.433518 [DEBUG] switch_core_state_machine.c:415
>>>> (sofia/internal/4321 at 123.176.38.68) Running State Change CS_INIT
>>>> 2014-05-08 18:09:59.433518 [DEBUG] switch_core_state_machine.c:455
>>>> (sofia/internal/4321 at 123.176.38.68) State INIT
>>>> 2014-05-08 18:09:59.433518 [DEBUG] mod_sofia.c:87 sofia/internal/
>>>> 4321 at 123.176.38.68 SOFIA INIT
>>>> 2014-05-08 18:09:59.433518 [DEBUG] mod_sofia.c:127 (sofia/internal/
>>>> 4321 at 123.176.38.68) State Change CS_INIT -> CS_ROUTING
>>>> 2014-05-08 18:09:59.433518 [DEBUG] switch_core_session.c:1351 Send
>>>> signal sofia/internal/4321 at 123.176.38.68 [BREAK]
>>>> 2014-05-08 18:09:59.433518 [DEBUG] switch_core_state_machine.c:455
>>>> (sofia/internal/4321 at 123.176.38.68) State INIT going to sleep
>>>> 2014-05-08 18:09:59.433518 [DEBUG] switch_core_state_machine.c:415
>>>> (sofia/internal/4321 at 123.176.38.68) Running State Change CS_ROUTING
>>>> 2014-05-08 18:09:59.433518 [DEBUG] switch_channel.c:2163
>>>> (sofia/internal/4321 at 123.176.38.68) Callstate Change DOWN -> RINGING
>>>> 2014-05-08 18:09:59.433518 [DEBUG] switch_core_state_machine.c:471
>>>> (sofia/internal/4321 at 123.176.38.68) State ROUTING
>>>> 2014-05-08 18:09:59.433518 [DEBUG] mod_sofia.c:150 sofia/internal/
>>>> 4321 at 123.176.38.68 SOFIA ROUTING
>>>> 2014-05-08 18:09:59.433518 [DEBUG] switch_core_state_machine.c:117
>>>> sofia/internal/4321 at 123.176.38.68 Standard ROUTING
>>>> 2014-05-08 18:09:59.433518 [INFO] mod_dialplan_xml.c:558 Processing
>>>> 4321 <4321>->4444 in context public
>>>> 2014-05-08 18:09:59.473525 [ERR] mod_xml_curl.c:307 Error Parsing
>>>> Result! [http://123.176.38.68:9000/freeswitchdata]
>>>> data:
>>>> [hostname=cts-wow§ion=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]
>>>> 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
>>>>
>>>> Dialplan: sofia/internal/4321 at 123.176.38.68 parsing [public->unloop]
>>>> continue=false
>>>> Dialplan: sofia/internal/4321 at 123.176.38.68 Regex (PASS) [unloop]
>>>> ${unroll_loops}(true) =~ /^true$/ break=on-false
>>>> Dialplan: sofia/internal/4321 at 123.176.38.68 Regex (FAIL) [unloop]
>>>> ${sip_looped_call}() =~ /^true$/ break=on-false
>>>> Dialplan: sofia/internal/4321 at 123.176.38.68 parsing
>>>> [public->outside_call] continue=true
>>>> Dialplan: sofia/internal/4321 at 123.176.38.68 Absolute Condition
>>>> [outside_call]
>>>> Dialplan: sofia/internal/4321 at 123.176.38.68 Action
>>>> set(outside_call=true)
>>>> Dialplan: sofia/internal/4321 at 123.176.38.68 Action
>>>> export(RFC2822_DATE=${strftime(%a, %d %b %Y %T %z)})
>>>> Dialplan: sofia/internal/4321 at 123.176.38.68 parsing
>>>> [public->call_debug] continue=true
>>>> Dialplan: sofia/internal/4321 at 123.176.38.68 Regex (FAIL) [call_debug]
>>>> ${call_debug}(false) =~ /^true$/ break=never
>>>> Dialplan: sofia/internal/4321 at 123.176.38.68 parsing
>>>> [public->public_extensions] continue=false
>>>> Dialplan: sofia/internal/4321 at 123.176.38.68 Regex (FAIL)
>>>> [public_extensions] destination_number(4444) =~ /^(10[01][0-9])$/
>>>> break=on-false
>>>> Dialplan: sofia/internal/4321 at 123.176.38.68 parsing
>>>> [public->public_did] continue=false
>>>> Dialplan: sofia/internal/4321 at 123.176.38.68 Regex (FAIL) [public_did]
>>>> destination_number(4444) =~ /^(5551212)$/ break=on-false
>>>> 2014-05-08 18:09:59.473525 [DEBUG] switch_core_state_machine.c:167
>>>> (sofia/internal/4321 at 123.176.38.68) State Change CS_ROUTING ->
>>>> CS_EXECUTE
>>>> 2014-05-08 18:09:59.473525 [DEBUG] switch_core_session.c:1351 Send
>>>> signal sofia/internal/4321 at 123.176.38.68 [BREAK]
>>>> 2014-05-08 18:09:59.473525 [DEBUG] switch_core_state_machine.c:471
>>>> (sofia/internal/4321 at 123.176.38.68) State ROUTING going to sleep
>>>> 2014-05-08 18:09:59.473525 [DEBUG] switch_core_state_machine.c:415
>>>> (sofia/internal/4321 at 123.176.38.68) Running State Change CS_EXECUTE
>>>> 2014-05-08 18:09:59.473525 [DEBUG] switch_core_state_machine.c:478
>>>> (sofia/internal/4321 at 123.176.38.68) State EXECUTE
>>>> 2014-05-08 18:09:59.473525 [DEBUG] mod_sofia.c:243 sofia/internal/
>>>> 4321 at 123.176.38.68 SOFIA EXECUTE
>>>> 2014-05-08 18:09:59.473525 [DEBUG] switch_core_state_machine.c:209
>>>> sofia/internal/4321 at 123.176.38.68 Standard EXECUTE
>>>> EXECUTE sofia/internal/4321 at 123.176.38.68 set(outside_call=true)
>>>> 2014-05-08 18:09:59.473525 [DEBUG] mod_dptools.c:1402 sofia/internal/
>>>> 4321 at 123.176.38.68 SET [outside_call]=[true]
>>>> EXECUTE sofia/internal/4321 at 123.176.38.68 export(RFC2822_DATE=Thu, 08
>>>> May 2014 18:09:59 +0530)
>>>> 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]
>>>> 2014-05-08 18:09:59.473525 [NOTICE] switch_core_state_machine.c:262
>>>> sofia/internal/4321 at 123.176.38.68 has executed the last dialplan
>>>> instruction, hanging up.
>>>> 2014-05-08 18:09:59.473525 [NOTICE] switch_core_state_machine.c:264
>>>> Hangup sofia/internal/4321 at 123.176.38.68 [CS_EXECUTE] [NORMAL_CLEARING]
>>>> 2014-05-08 18:09:59.473525 [DEBUG] switch_channel.c:3187 Send signal
>>>> sofia/internal/4321 at 123.176.38.68 [KILL]
>>>> 2014-05-08 18:09:59.473525 [DEBUG] switch_core_session.c:1351 Send
>>>> signal sofia/internal/4321 at 123.176.38.68 [BREAK]
>>>> 2014-05-08 18:09:59.473525 [DEBUG] switch_core_state_machine.c:478
>>>> (sofia/internal/4321 at 123.176.38.68) State EXECUTE going to sleep
>>>> 2014-05-08 18:09:59.473525 [DEBUG] switch_core_state_machine.c:415
>>>> (sofia/internal/4321 at 123.176.38.68) Running State Change CS_HANGUP
>>>> 2014-05-08 18:09:59.473525 [DEBUG] switch_core_state_machine.c:678
>>>> (sofia/internal/4321 at 123.176.38.68) Callstate Change RINGING -> HANGUP
>>>> 2014-05-08 18:09:59.473525 [DEBUG] switch_core_state_machine.c:680
>>>> (sofia/internal/4321 at 123.176.38.68) State HANGUP
>>>> 2014-05-08 18:09:59.473525 [DEBUG] mod_sofia.c:506 Channel
>>>> sofia/internal/4321 at 123.176.38.68 hanging up, cause: NORMAL_CLEARING
>>>> 2014-05-08 18:09:59.473525 [DEBUG] mod_sofia.c:640 Responding to INVITE
>>>> with: 480
>>>> 2014-05-08 18:09:59.473525 [DEBUG] switch_core_state_machine.c:48
>>>> sofia/internal/4321 at 123.176.38.68 Standard HANGUP, cause:
>>>> NORMAL_CLEARING
>>>> 2014-05-08 18:09:59.473525 [DEBUG] switch_core_state_machine.c:680
>>>> (sofia/internal/4321 at 123.176.38.68) State HANGUP going to sleep
>>>> 2014-05-08 18:09:59.473525 [DEBUG] switch_core_state_machine.c:447
>>>> (sofia/internal/4321 at 123.176.38.68) State Change CS_HANGUP ->
>>>> CS_REPORTING
>>>> 2014-05-08 18:09:59.473525 [DEBUG] switch_core_session.c:1351 Send
>>>> signal sofia/internal/4321 at 123.176.38.68 [BREAK]
>>>> 2014-05-08 18:09:59.473525 [DEBUG] switch_core_state_machine.c:415
>>>> (sofia/internal/4321 at 123.176.38.68) Running State Change CS_REPORTING
>>>> 2014-05-08 18:09:59.473525 [DEBUG] switch_core_state_machine.c:764
>>>> (sofia/internal/4321 at 123.176.38.68) State REPORTING
>>>> 2014-05-08 18:09:59.473525 [DEBUG] switch_core_state_machine.c:92
>>>> sofia/internal/4321 at 123.176.38.68 Standard REPORTING, cause:
>>>> NORMAL_CLEARING
>>>> 2014-05-08 18:09:59.473525 [DEBUG] switch_core_state_machine.c:764
>>>> (sofia/internal/4321 at 123.176.38.68) State REPORTING going to sleep
>>>> 2014-05-08 18:09:59.473525 [DEBUG] switch_core_state_machine.c:441
>>>> (sofia/internal/4321 at 123.176.38.68) State Change CS_REPORTING ->
>>>> CS_DESTROY
>>>> 2014-05-08 18:09:59.473525 [DEBUG] switch_core_session.c:1351 Send
>>>> signal sofia/internal/4321 at 123.176.38.68 [BREAK]
>>>> 2014-05-08 18:09:59.473525 [DEBUG] switch_core_session.c:1559 Session
>>>> 33 (sofia/internal/4321 at 123.176.38.68) Locked, Waiting on external
>>>> entities
>>>> 2014-05-08 18:09:59.473525 [NOTICE] switch_core_session.c:1577 Session
>>>> 33 (sofia/internal/4321 at 123.176.38.68) Ended
>>>> 2014-05-08 18:09:59.473525 [NOTICE] switch_core_session.c:1581 Close
>>>> Channel sofia/internal/4321 at 123.176.38.68 [CS_DESTROY]
>>>> 2014-05-08 18:09:59.473525 [DEBUG] switch_core_state_machine.c:566
>>>> (sofia/internal/4321 at 123.176.38.68) Callstate Change HANGUP -> DOWN
>>>> 2014-05-08 18:09:59.473525 [DEBUG] switch_core_state_machine.c:569
>>>> (sofia/internal/4321 at 123.176.38.68) Running State Change CS_DESTROY
>>>> 2014-05-08 18:09:59.473525 [DEBUG] switch_core_state_machine.c:579
>>>> (sofia/internal/4321 at 123.176.38.68) State DESTROY
>>>> 2014-05-08 18:09:59.473525 [DEBUG] mod_sofia.c:399 sofia/internal/
>>>> 4321 at 123.176.38.68 SOFIA DESTROY
>>>> 2014-05-08 18:09:59.473525 [DEBUG] switch_core_state_machine.c:99
>>>> sofia/internal/4321 at 123.176.38.68 Standard DESTROY
>>>> 2014-05-08 18:09:59.473525 [DEBUG] switch_core_state_machine.c:579
>>>> (sofia/internal/4321 at 123.176.38.68) State DESTROY going to sleep
>>>>
>>>>
>>>> On Thu, May 8, 2014 at 5:35 PM, Ian McMaster <ian.mcmaster at gmail.com>wrote:
>>>>
>>>>> You are close.
>>>>>
>>>>> Your xml_curl server is being passed the GET parameters, including:
>>>>> section=dialplan
>>>>> Caller-Destination-Number=4444
>>>>>
>>>>> 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).
>>>>>
>>>>> 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.
>>>>> Can you then post the contents of the captured file.
>>>>>
>>>>> Thanks,
>>>>> Ian.
>>>>>
>>>>>
>>>>>
>>>>> On Thu, May 8, 2014 at 6:47 AM, Shaik Raheemuddin <
>>>>> sraheemuddin at cts-in.com> wrote:
>>>>>
>>>>>> Hi
>>>>>>
>>>>>> i did seperate response based on "section"
>>>>>>
>>>>>> Below is dialplan response:
>>>>>>
>>>>>> <?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="1234 at 123.176.38.68"/></condition></extension><extension
>>>>>> name="4321"><condition field="destination_number"
>>>>>> expression="^4321$"><action application="bridge" data="
>>>>>> 4321 at 123.176.38.68"/></condition></extension><extension
>>>>>> name="4444"><condition field="destination_number"
>>>>>> expression="^4444$"><action application="bridge" data="
>>>>>> 4321 at 123.176.38.68"/></condition></extension></context></section></document>
>>>>>>
>>>>>>
>>>>>> Below is directory response:
>>>>>> <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>
>>>>>>
>>>>>>
>>>>>> But still i am unable to make call :
>>>>>> All i want is to establish a call between user "4321" and user "4444"
>>>>>> But in vain:
>>>>>> Below is fs_cli response on call
>>>>>>
>>>>>> 2014-05-08 16:12:48.993513 [NOTICE] switch_channel.c:1050 New Channel
>>>>>> sofia/internal/4321 at 123.176.38.68[7f96903c-d69d-11e3-85d0-bbf894de80fe]
>>>>>> 2014-05-08 16:12:48.993513 [DEBUG] switch_core_session.c:1016 Send
>>>>>> signal sofia/internal/4321 at 123.176.38.68 [BREAK]
>>>>>> 2014-05-08 16:12:48.993513 [DEBUG] switch_core_session.c:1016 Send
>>>>>> signal sofia/internal/4321 at 123.176.38.68 [BREAK]
>>>>>> 2014-05-08 16:12:48.993513 [DEBUG] switch_core_state_machine.c:415
>>>>>> (sofia/internal/4321 at 123.176.38.68) Running State Change CS_NEW
>>>>>> 2014-05-08 16:12:48.993513 [DEBUG] sofia.c:7877 sofia/internal/
>>>>>> 4321 at 123.176.38.68 receiving invite from 49.204.247.24:29644version: 1.2.23 32bit
>>>>>> 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.
>>>>>> 2014-05-08 16:12:48.993513 [DEBUG] switch_core_state_machine.c:434
>>>>>> (sofia/internal/4321 at 123.176.38.68) State NEW
>>>>>> 2014-05-08 16:12:48.993513 [DEBUG] switch_core_session.c:1016 Send
>>>>>> signal sofia/internal/4321 at 123.176.38.68 [BREAK]
>>>>>> 2014-05-08 16:12:48.993513 [DEBUG] sofia.c:1792 detaching session
>>>>>> 7f96903c-d69d-11e3-85d0-bbf894de80fe
>>>>>> 2014-05-08 16:12:49.013519 [DEBUG] sofia.c:1888 Re-attaching to
>>>>>> session 7f96903c-d69d-11e3-85d0-bbf894de80fe
>>>>>> 2014-05-08 16:12:49.013519 [DEBUG] switch_core_session.c:1016 Send
>>>>>> signal sofia/internal/4321 at 123.176.38.68 [BREAK]
>>>>>> 2014-05-08 16:12:49.013519 [DEBUG] switch_core_session.c:1016 Send
>>>>>> signal sofia/internal/4321 at 123.176.38.68 [BREAK]
>>>>>> 2014-05-08 16:12:49.013519 [DEBUG] sofia.c:7877 sofia/internal/
>>>>>> 4321 at 123.176.38.68 receiving invite from 49.204.247.24:29644version: 1.2.23 32bit
>>>>>> 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.
>>>>>> 2014-05-08 16:12:49.013519 [DEBUG] sofia.c:5815 Channel
>>>>>> sofia/internal/4321 at 123.176.38.68 entering state [received][100]
>>>>>> 2014-05-08 16:12:49.013519 [DEBUG] sofia.c:5828 Remote SDP:
>>>>>> v=0
>>>>>> o=- 13044018739612067 1 IN IP4 49.204.247.24
>>>>>> s=X-Lite 4 release 4.5.5 stamp 71236
>>>>>> c=IN IP4 49.204.247.24
>>>>>> t=0 0
>>>>>> m=audio 50318 RTP/AVP 125 9 0 8 100 101
>>>>>> a=rtpmap:125 opus/48000/2
>>>>>> a=fmtp:125 useinbandfec=1
>>>>>> a=rtpmap:100 speex/16000
>>>>>> a=rtpmap:101 telephone-event/8000
>>>>>> a=fmtp:101 0-15
>>>>>>
>>>>>> 2014-05-08 16:12:49.013519 [DEBUG] sofia.c:6075 (sofia/internal/
>>>>>> 4321 at 123.176.38.68) State Change CS_NEW -> CS_INIT
>>>>>> 2014-05-08 16:12:49.013519 [DEBUG] switch_core_session.c:1351 Send
>>>>>> signal sofia/internal/4321 at 123.176.38.68 [BREAK]
>>>>>> 2014-05-08 16:12:49.013519 [DEBUG] switch_core_state_machine.c:415
>>>>>> (sofia/internal/4321 at 123.176.38.68) Running State Change CS_INIT
>>>>>> 2014-05-08 16:12:49.013519 [DEBUG] switch_core_state_machine.c:455
>>>>>> (sofia/internal/4321 at 123.176.38.68) State INIT
>>>>>> 2014-05-08 16:12:49.013519 [DEBUG] mod_sofia.c:87 sofia/internal/
>>>>>> 4321 at 123.176.38.68 SOFIA INIT
>>>>>> 2014-05-08 16:12:49.013519 [DEBUG] mod_sofia.c:127 (sofia/internal/
>>>>>> 4321 at 123.176.38.68) State Change CS_INIT -> CS_ROUTING
>>>>>> 2014-05-08 16:12:49.013519 [DEBUG] switch_core_session.c:1351 Send
>>>>>> signal sofia/internal/4321 at 123.176.38.68 [BREAK]
>>>>>> 2014-05-08 16:12:49.013519 [DEBUG] switch_core_state_machine.c:455
>>>>>> (sofia/internal/4321 at 123.176.38.68) State INIT going to sleep
>>>>>> 2014-05-08 16:12:49.013519 [DEBUG] switch_core_state_machine.c:415
>>>>>> (sofia/internal/4321 at 123.176.38.68) Running State Change CS_ROUTING
>>>>>> 2014-05-08 16:12:49.013519 [DEBUG] switch_channel.c:2163
>>>>>> (sofia/internal/4321 at 123.176.38.68) Callstate Change DOWN -> RINGING
>>>>>> 2014-05-08 16:12:49.013519 [DEBUG] switch_core_state_machine.c:471
>>>>>> (sofia/internal/4321 at 123.176.38.68) State ROUTING
>>>>>> 2014-05-08 16:12:49.013519 [DEBUG] mod_sofia.c:150 sofia/internal/
>>>>>> 4321 at 123.176.38.68 SOFIA ROUTING
>>>>>> 2014-05-08 16:12:49.013519 [DEBUG] switch_core_state_machine.c:117
>>>>>> sofia/internal/4321 at 123.176.38.68 Standard ROUTING
>>>>>> 2014-05-08 16:12:49.013519 [INFO] mod_dialplan_xml.c:558 Processing
>>>>>> 4321 <4321>->4444 in context public
>>>>>> 2014-05-08 16:12:49.073516 [ERR] mod_xml_curl.c:307 Error Parsing
>>>>>> Result! [http://123.176.38.68:9000/freeswitchdata]
>>>>>> data:
>>>>>> [hostname=cts-wow§ion=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]
>>>>>> Dialplan: sofia/internal/4321 at 123.176.38.68 parsing [public->unloop]
>>>>>> continue=false
>>>>>> Dialplan: sofia/internal/4321 at 123.176.38.68 Regex (PASS) [unloop]
>>>>>> ${unroll_loops}(true) =~ /^true$/ break=on-false
>>>>>> Dialplan: sofia/internal/4321 at 123.176.38.68 Regex (FAIL) [unloop]
>>>>>> ${sip_looped_call}() =~ /^true$/ break=on-false
>>>>>> Dialplan: sofia/internal/4321 at 123.176.38.68 parsing
>>>>>> [public->outside_call] continue=true
>>>>>> Dialplan: sofia/internal/4321 at 123.176.38.68 Absolute Condition
>>>>>> [outside_call]
>>>>>> Dialplan: sofia/internal/4321 at 123.176.38.68 Action
>>>>>> set(outside_call=true)
>>>>>> Dialplan: sofia/internal/4321 at 123.176.38.68 Action
>>>>>> export(RFC2822_DATE=${strftime(%a, %d %b %Y %T %z)})
>>>>>> Dialplan: sofia/internal/4321 at 123.176.38.68 parsing
>>>>>> [public->call_debug] continue=true
>>>>>> Dialplan: sofia/internal/4321 at 123.176.38.68 Regex (FAIL)
>>>>>> [call_debug] ${call_debug}(false) =~ /^true$/ break=never
>>>>>> Dialplan: sofia/internal/4321 at 123.176.38.68 parsing
>>>>>> [public->public_extensions] continue=false
>>>>>> Dialplan: sofia/internal/4321 at 123.176.38.68 Regex (FAIL)
>>>>>> [public_extensions] destination_number(4444) =~ /^(10[01][0-9])$/
>>>>>> break=on-false
>>>>>> Dialplan: sofia/internal/4321 at 123.176.38.68 parsing
>>>>>> [public->public_did] continue=false
>>>>>> Dialplan: sofia/internal/4321 at 123.176.38.68 Regex (FAIL)
>>>>>> [public_did] destination_number(4444) =~ /^(5551212)$/ break=on-false
>>>>>> 2014-05-08 16:12:49.073516 [DEBUG] switch_core_state_machine.c:167
>>>>>> (sofia/internal/4321 at 123.176.38.68) State Change CS_ROUTING ->
>>>>>> CS_EXECUTE
>>>>>> 2014-05-08 16:12:49.073516 [DEBUG] switch_core_session.c:1351 Send
>>>>>> signal sofia/internal/4321 at 123.176.38.68 [BREAK]
>>>>>> 2014-05-08 16:12:49.073516 [DEBUG] switch_core_state_machine.c:471
>>>>>> (sofia/internal/4321 at 123.176.38.68) State ROUTING going to sleep
>>>>>> 2014-05-08 16:12:49.073516 [DEBUG] switch_core_state_machine.c:415
>>>>>> (sofia/internal/4321 at 123.176.38.68) Running State Change CS_EXECUTE
>>>>>> 2014-05-08 16:12:49.073516 [DEBUG] switch_core_state_machine.c:478
>>>>>> (sofia/internal/4321 at 123.176.38.68) State EXECUTE
>>>>>> 2014-05-08 16:12:49.073516 [DEBUG] mod_sofia.c:243 sofia/internal/
>>>>>> 4321 at 123.176.38.68 SOFIA EXECUTE
>>>>>> 2014-05-08 16:12:49.073516 [DEBUG] switch_core_state_machine.c:209
>>>>>> sofia/internal/4321 at 123.176.38.68 Standard EXECUTE
>>>>>> EXECUTE sofia/internal/4321 at 123.176.38.68 set(outside_call=true)
>>>>>> 2014-05-08 16:12:49.073516 [DEBUG] mod_dptools.c:1402 sofia/internal/
>>>>>> 4321 at 123.176.38.68 SET [outside_call]=[true]
>>>>>> EXECUTE sofia/internal/4321 at 123.176.38.68 export(RFC2822_DATE=Thu,
>>>>>> 08 May 2014 16:12:49 +0530)
>>>>>> 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]
>>>>>> 2014-05-08 16:12:49.073516 [NOTICE] switch_core_state_machine.c:262
>>>>>> sofia/internal/4321 at 123.176.38.68 has executed the last dialplan
>>>>>> instruction, hanging up.
>>>>>> 2014-05-08 16:12:49.073516 [NOTICE] switch_core_state_machine.c:264
>>>>>> Hangup sofia/internal/4321 at 123.176.38.68 [CS_EXECUTE]
>>>>>> [NORMAL_CLEARING]
>>>>>> 2014-05-08 16:12:49.073516 [DEBUG] switch_channel.c:3187 Send signal
>>>>>> sofia/internal/4321 at 123.176.38.68 [KILL]
>>>>>> 2014-05-08 16:12:49.073516 [DEBUG] switch_core_session.c:1351 Send
>>>>>> signal sofia/internal/4321 at 123.176.38.68 [BREAK]
>>>>>> 2014-05-08 16:12:49.073516 [DEBUG] switch_core_state_machine.c:478
>>>>>> (sofia/internal/4321 at 123.176.38.68) State EXECUTE going to sleep
>>>>>> 2014-05-08 16:12:49.073516 [DEBUG] switch_core_state_machine.c:415
>>>>>> (sofia/internal/4321 at 123.176.38.68) Running State Change CS_HANGUP
>>>>>> 2014-05-08 16:12:49.073516 [DEBUG] switch_core_state_machine.c:678
>>>>>> (sofia/internal/4321 at 123.176.38.68) Callstate Change RINGING ->
>>>>>> HANGUP
>>>>>> 2014-05-08 16:12:49.073516 [DEBUG] switch_core_state_machine.c:680
>>>>>> (sofia/internal/4321 at 123.176.38.68) State HANGUP
>>>>>> 2014-05-08 16:12:49.073516 [DEBUG] mod_sofia.c:506 Channel
>>>>>> sofia/internal/4321 at 123.176.38.68 hanging up, cause: NORMAL_CLEARING
>>>>>> 2014-05-08 16:12:49.073516 [DEBUG] mod_sofia.c:640 Responding to
>>>>>> INVITE with: 480
>>>>>> 2014-05-08 16:12:49.073516 [DEBUG] switch_core_state_machine.c:48
>>>>>> sofia/internal/4321 at 123.176.38.68 Standard HANGUP, cause:
>>>>>> NORMAL_CLEARING
>>>>>> 2014-05-08 16:12:49.073516 [DEBUG] switch_core_state_machine.c:680
>>>>>> (sofia/internal/4321 at 123.176.38.68) State HANGUP going to sleep
>>>>>> 2014-05-08 16:12:49.073516 [DEBUG] switch_core_state_machine.c:447
>>>>>> (sofia/internal/4321 at 123.176.38.68) State Change CS_HANGUP ->
>>>>>> CS_REPORTING
>>>>>> 2014-05-08 16:12:49.073516 [DEBUG] switch_core_session.c:1351 Send
>>>>>> signal sofia/internal/4321 at 123.176.38.68 [BREAK]
>>>>>> 2014-05-08 16:12:49.073516 [DEBUG] switch_core_state_machine.c:415
>>>>>> (sofia/internal/4321 at 123.176.38.68) Running State Change CS_REPORTING
>>>>>> 2014-05-08 16:12:49.073516 [DEBUG] switch_core_state_machine.c:764
>>>>>> (sofia/internal/4321 at 123.176.38.68) State REPORTING
>>>>>> 2014-05-08 16:12:49.073516 [DEBUG] switch_core_state_machine.c:92
>>>>>> sofia/internal/4321 at 123.176.38.68 Standard REPORTING, cause:
>>>>>> NORMAL_CLEARING
>>>>>> 2014-05-08 16:12:49.073516 [DEBUG] switch_core_state_machine.c:764
>>>>>> (sofia/internal/4321 at 123.176.38.68) State REPORTING going to sleep
>>>>>> 2014-05-08 16:12:49.073516 [DEBUG] switch_core_state_machine.c:441
>>>>>> (sofia/internal/4321 at 123.176.38.68) State Change CS_REPORTING ->
>>>>>> CS_DESTROY
>>>>>> 2014-05-08 16:12:49.073516 [DEBUG] switch_core_session.c:1351 Send
>>>>>> signal sofia/internal/4321 at 123.176.38.68 [BREAK]
>>>>>> 2014-05-08 16:12:49.073516 [DEBUG] switch_core_session.c:1559 Session
>>>>>> 25 (sofia/internal/4321 at 123.176.38.68) Locked, Waiting on external
>>>>>> entities
>>>>>> 2014-05-08 16:12:49.073516 [NOTICE] switch_core_session.c:1577
>>>>>> Session 25 (sofia/internal/4321 at 123.176.38.68) Ended
>>>>>> 2014-05-08 16:12:49.073516 [NOTICE] switch_core_session.c:1581 Close
>>>>>> Channel sofia/internal/4321 at 123.176.38.68 [CS_DESTROY]
>>>>>> 2014-05-08 16:12:49.073516 [DEBUG] switch_core_state_machine.c:566
>>>>>> (sofia/internal/4321 at 123.176.38.68) Callstate Change HANGUP -> DOWN
>>>>>> 2014-05-08 16:12:49.073516 [DEBUG] switch_core_state_machine.c:569
>>>>>> (sofia/internal/4321 at 123.176.38.68) Running State Change CS_DESTROY
>>>>>> 2014-05-08 16:12:49.073516 [DEBUG] switch_core_state_machine.c:579
>>>>>> (sofia/internal/4321 at 123.176.38.68) State DESTROY
>>>>>> 2014-05-08 16:12:49.073516 [DEBUG] mod_sofia.c:399 sofia/internal/
>>>>>> 4321 at 123.176.38.68 SOFIA DESTROY
>>>>>> 2014-05-08 16:12:49.073516 [DEBUG] switch_core_state_machine.c:99
>>>>>> sofia/internal/4321 at 123.176.38.68 Standard DESTROY
>>>>>> 2014-05-08 16:12:49.073516 [DEBUG] switch_core_state_machine.c:579
>>>>>> (sofia/internal/4321 at 123.176.38.68) State DESTROY going to sleep
>>>>>>
>>>>>>
>>>>>> On Wed, May 7, 2014 at 7:26 PM, Ian McMaster <ian.mcmaster at gmail.com>wrote:
>>>>>>
>>>>>>> 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).
>>>>>>> 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?
>>>>>>> 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.
>>>>>>>
>>>>>>> Not sure what else could be the problem.
>>>>>>> Ian.
>>>>>>>
>>>>>>>
>>>>>>> On Wed, May 7, 2014 at 5:32 AM, raheem <sraheemuddin at cts-in.com>wrote:
>>>>>>>
>>>>>>>> Hi,
>>>>>>>> I am trying to use mod xml curl with freeswitch.
>>>>>>>>
>>>>>>>> I have configured in "xml_curl.conf.xml " gateway url to
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> where in at server it sends below response
>>>>>>>>
>>>>>>>> <document type="freeswitch/xml">
>>>>>>>> <section name="dialplan" description="RE Dial Plan For FreeSwitch">
>>>>>>>> <context name="public">
>>>>>>>> <extension name="unloop">
>>>>>>>> <condition field="${unroll_loops}" expression="^true$"/>
>>>>>>>> <condition field="${sip_looped_call}" expression="^true$">
>>>>>>>> <action application="deflect" data="${destination_number}"/>
>>>>>>>> </condition></extension></context></section>
>>>>>>>> <section name="directory">
>>>>>>>> <domain name="123.176.38.68">
>>>>>>>> <params>
>>>>>>>>
>>>>>>>> </params>
>>>>>>>> <users>
>>>>>>>> <user id="1234" cacheable="true">
>>>>>>>> <params>
>>>>>>>>
>>>>>>>>
>>>>>>>> </params>
>>>>>>>> </user>
>>>>>>>> <user id="4321" cacheable="true">
>>>>>>>> <params>
>>>>>>>>
>>>>>>>> </params>
>>>>>>>> </user>
>>>>>>>> </users>
>>>>>>>> </domain>
>>>>>>>> </section>
>>>>>>>> </document>
>>>>>>>>
>>>>>>>> I am unable to make call for below error
>>>>>>>> 2014-05-06 12:44:15.313984 [INFO] mod_dialplan_xml.c:558 Processing
>>>>>>>> 1234
>>>>>>>> <1234>->4321 in context public
>>>>>>>> 2014-05-06 12:44:15.633985 [INFO] switch_core_state_machine.c:192
>>>>>>>> No Route,
>>>>>>>> Aborting
>>>>>>>>
>>>>>>>> I guess i am missing in dialplan part
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> View this message in context:
>>>>>>>> http://freeswitch-users.2379917.n2.nabble.com/dial-plan-in-mod-xml-curl-tp7596111.html
>>>>>>>> Sent from the freeswitch-users mailing list archive at Nabble.com.
>>>>>>>>
>>>>>>>>
>>>>>>>> _________________________________________________________________________
>>>>>>>> Professional FreeSWITCH Consulting Services:
>>>>>>>> consulting at freeswitch.org
>>>>>>>> http://www.freeswitchsolutions.com
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> Official FreeSWITCH Sites
>>>>>>>> http://www.freeswitch.org
>>>>>>>> http://wiki.freeswitch.org
>>>>>>>> http://www.cluecon.com
>>>>>>>>
>>>>>>>> FreeSWITCH-users mailing list
>>>>>>>> FreeSWITCH-users at lists.freeswitch.org
>>>>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>>>>>>> UNSUBSCRIBE:
>>>>>>>> http://lists.freeswitch.org/mailman/options/freeswitch-users
>>>>>>>> http://www.freeswitch.org
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> _________________________________________________________________________
>>>>>>> Professional FreeSWITCH Consulting Services:
>>>>>>> consulting at freeswitch.org
>>>>>>> http://www.freeswitchsolutions.com
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Official FreeSWITCH Sites
>>>>>>> http://www.freeswitch.org
>>>>>>> http://wiki.freeswitch.org
>>>>>>> http://www.cluecon.com
>>>>>>>
>>>>>>> FreeSWITCH-users mailing list
>>>>>>> FreeSWITCH-users at lists.freeswitch.org
>>>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>>>>>> UNSUBSCRIBE:
>>>>>>> http://lists.freeswitch.org/mailman/options/freeswitch-users
>>>>>>> http://www.freeswitch.org
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Thanks and Regards
>>>>>> Shaik Raheemuddin
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> _________________________________________________________________________
>>>>>> Professional FreeSWITCH Consulting Services:
>>>>>> consulting at freeswitch.org
>>>>>> http://www.freeswitchsolutions.com
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Official FreeSWITCH Sites
>>>>>> http://www.freeswitch.org
>>>>>> http://wiki.freeswitch.org
>>>>>> http://www.cluecon.com
>>>>>>
>>>>>> FreeSWITCH-users mailing list
>>>>>> FreeSWITCH-users at lists.freeswitch.org
>>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>>>>> UNSUBSCRIBE:
>>>>>> http://lists.freeswitch.org/mailman/options/freeswitch-users
>>>>>> http://www.freeswitch.org
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> _________________________________________________________________________
>>>>> Professional FreeSWITCH Consulting Services:
>>>>> consulting at freeswitch.org
>>>>> http://www.freeswitchsolutions.com
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Official FreeSWITCH Sites
>>>>> http://www.freeswitch.org
>>>>> http://wiki.freeswitch.org
>>>>> http://www.cluecon.com
>>>>>
>>>>> FreeSWITCH-users mailing list
>>>>> FreeSWITCH-users at lists.freeswitch.org
>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>>>> UNSUBSCRIBE:
>>>>> http://lists.freeswitch.org/mailman/options/freeswitch-users
>>>>> http://www.freeswitch.org
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Thanks and Regards
>>>> Shaik Raheemuddin
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> _________________________________________________________________________
>>>> Professional FreeSWITCH Consulting Services:
>>>> consulting at freeswitch.org
>>>> http://www.freeswitchsolutions.com
>>>>
>>>>
>>>>
>>>>
>>>> Official FreeSWITCH Sites
>>>> http://www.freeswitch.org
>>>> http://wiki.freeswitch.org
>>>> http://www.cluecon.com
>>>>
>>>> FreeSWITCH-users mailing list
>>>> FreeSWITCH-users at lists.freeswitch.org
>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>>> UNSUBSCRIBE:
>>>> http://lists.freeswitch.org/mailman/options/freeswitch-users
>>>> http://www.freeswitch.org
>>>>
>>>>
>>>
>>> _________________________________________________________________________
>>> Professional FreeSWITCH Consulting Services:
>>> consulting at freeswitch.org
>>> http://www.freeswitchsolutions.com
>>>
>>>
>>>
>>>
>>> Official FreeSWITCH Sites
>>> http://www.freeswitch.org
>>> http://wiki.freeswitch.org
>>> http://www.cluecon.com
>>>
>>> FreeSWITCH-users mailing list
>>> FreeSWITCH-users at lists.freeswitch.org
>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>> http://www.freeswitch.org
>>>
>>>
>>
>>
>> --
>> Thanks and Regards
>> Shaik Raheemuddin
>>
>>
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>>
>>
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
--
Thanks and Regards
Shaik Raheemuddin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140509/4dfa636f/attachment-0001.html
Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users
mailing list