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@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@123.176.38.68"/></condition></extension></context></section></document>
I think i am wrong with action in condition <action application="bridge" data="4444@123.176.38.68"/>
Below is response in fs_cli after xml_curl debug_on2014-05-08 18:09:59.393512 [NOTICE] switch_channel.c:1050 New Channel sofia/internal/
4321@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@123.176.38.68 [BREAK]
2014-05-08 18:09:59.393512 [DEBUG] switch_core_session.c:1016 Send signal sofia/internal/
4321@123.176.38.68 [BREAK]
2014-05-08 18:09:59.413661 [DEBUG] switch_core_state_machine.c:415 (sofia/internal/
4321@123.176.38.68) Running State Change CS_NEW
2014-05-08 18:09:59.413661 [DEBUG] sofia.c:7877 sofia/internal/
4321@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@123.176.38.68) State NEW
2014-05-08 18:09:59.413661 [DEBUG] switch_core_session.c:1016 Send signal sofia/internal/
4321@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@123.176.38.68 [BREAK]
2014-05-08 18:09:59.413661 [DEBUG] switch_core_session.c:1016 Send signal sofia/internal/
4321@123.176.38.68 [BREAK]
2014-05-08 18:09:59.433518 [DEBUG] sofia.c:7877 sofia/internal/
4321@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@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@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@123.176.38.68 [BREAK]
2014-05-08 18:09:59.433518 [DEBUG] switch_core_state_machine.c:415 (sofia/internal/
4321@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@123.176.38.68) State INIT
2014-05-08 18:09:59.433518 [DEBUG] mod_sofia.c:87 sofia/internal/
4321@123.176.38.68 SOFIA INIT
2014-05-08 18:09:59.433518 [DEBUG] mod_sofia.c:127 (sofia/internal/
4321@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@123.176.38.68 [BREAK]
2014-05-08 18:09:59.433518 [DEBUG] switch_core_state_machine.c:455 (sofia/internal/
4321@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@123.176.38.68) Running State Change CS_ROUTING
2014-05-08 18:09:59.433518 [DEBUG] switch_channel.c:2163 (sofia/internal/
4321@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@123.176.38.68) State ROUTING
2014-05-08 18:09:59.433518 [DEBUG] mod_sofia.c:150 sofia/internal/
4321@123.176.38.68 SOFIA ROUTING
2014-05-08 18:09:59.433518 [DEBUG] switch_core_state_machine.c:117 sofia/internal/
4321@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@123.176.38.68 parsing [public->unloop] continue=false
Dialplan: sofia/internal/
4321@123.176.38.68 Regex (PASS) [unloop] ${unroll_loops}(true) =~ /^true$/ break=on-false
Dialplan: sofia/internal/
4321@123.176.38.68 Regex (FAIL) [unloop] ${sip_looped_call}() =~ /^true$/ break=on-false
Dialplan: sofia/internal/
4321@123.176.38.68 parsing [public->outside_call] continue=true
Dialplan: sofia/internal/
4321@123.176.38.68 Absolute Condition [outside_call]
Dialplan: sofia/internal/
4321@123.176.38.68 Action set(outside_call=true)
Dialplan: sofia/internal/
4321@123.176.38.68 Action export(RFC2822_DATE=${strftime(%a, %d %b %Y %T %z)})
Dialplan: sofia/internal/
4321@123.176.38.68 parsing [public->call_debug] continue=true
Dialplan: sofia/internal/
4321@123.176.38.68 Regex (FAIL) [call_debug] ${call_debug}(false) =~ /^true$/ break=never
Dialplan: sofia/internal/
4321@123.176.38.68 parsing [public->public_extensions] continue=false
Dialplan: sofia/internal/
4321@123.176.38.68 Regex (FAIL) [public_extensions] destination_number(4444) =~ /^(10[01][0-9])$/ break=on-false
Dialplan: sofia/internal/
4321@123.176.38.68 parsing [public->public_did] continue=false
Dialplan: sofia/internal/
4321@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@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@123.176.38.68 [BREAK]
2014-05-08 18:09:59.473525 [DEBUG] switch_core_state_machine.c:471 (sofia/internal/
4321@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@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@123.176.38.68) State EXECUTE
2014-05-08 18:09:59.473525 [DEBUG] mod_sofia.c:243 sofia/internal/
4321@123.176.38.68 SOFIA EXECUTE
2014-05-08 18:09:59.473525 [DEBUG] switch_core_state_machine.c:209 sofia/internal/
4321@123.176.38.68 Standard EXECUTE
EXECUTE sofia/internal/
4321@123.176.38.68 set(outside_call=true)
2014-05-08 18:09:59.473525 [DEBUG] mod_dptools.c:1402 sofia/internal/
4321@123.176.38.68 SET [outside_call]=[true]
EXECUTE sofia/internal/
4321@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@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@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@123.176.38.68 [KILL]
2014-05-08 18:09:59.473525 [DEBUG] switch_core_session.c:1351 Send signal sofia/internal/
4321@123.176.38.68 [BREAK]
2014-05-08 18:09:59.473525 [DEBUG] switch_core_state_machine.c:478 (sofia/internal/
4321@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@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@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@123.176.38.68) State HANGUP
2014-05-08 18:09:59.473525 [DEBUG] mod_sofia.c:506 Channel sofia/internal/
4321@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@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@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@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@123.176.38.68 [BREAK]
2014-05-08 18:09:59.473525 [DEBUG] switch_core_state_machine.c:415 (sofia/internal/
4321@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@123.176.38.68) State REPORTING
2014-05-08 18:09:59.473525 [DEBUG] switch_core_state_machine.c:92 sofia/internal/
4321@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@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@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@123.176.38.68 [BREAK]
2014-05-08 18:09:59.473525 [DEBUG] switch_core_session.c:1559 Session 33 (sofia/internal/
4321@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@123.176.38.68) Ended
2014-05-08 18:09:59.473525 [NOTICE] switch_core_session.c:1581 Close Channel sofia/internal/
4321@123.176.38.68 [CS_DESTROY]
2014-05-08 18:09:59.473525 [DEBUG] switch_core_state_machine.c:566 (sofia/internal/
4321@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@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@123.176.38.68) State DESTROY
2014-05-08 18:09:59.473525 [DEBUG] mod_sofia.c:399 sofia/internal/
4321@123.176.38.68 SOFIA DESTROY
2014-05-08 18:09:59.473525 [DEBUG] switch_core_state_machine.c:99 sofia/internal/
4321@123.176.38.68 Standard DESTROY
2014-05-08 18:09:59.473525 [DEBUG] switch_core_state_machine.c:579 (sofia/internal/
4321@123.176.38.68) State DESTROY going to sleep