NOT:WORKING: 2016-05-17 21:26:58.897799 [NOTICE] switch_channel.c:1104 New Channel sofia/internal/2002@bes2.sip.urbancom.net:5060 [c453b31f-8773-40cc-bbaa-43eb322f839f] 2016-05-17 21:26:58.897799 [DEBUG] switch_core_state_machine.c:543 (sofia/internal/2002@bes2.sip.urbancom.net:5060) Running State Change CS_NEW 2016-05-17 21:26:58.897799 [DEBUG] sofia.c:9376 sofia/internal/2002@bes2.sip.urbancom.net:5060 receiving invite from 73.72.98.76:5060 version: 1.6.8 -15-99de0ad 64bit 2016-05-17 21:26:58.897799 [DEBUG] sofia.c:9543 IP 73.72.98.76 Rejected by acl "domains". Falling back to Digest auth. 2016-05-17 21:26:58.897799 [WARNING] sofia_reg.c:1775 SIP auth challenge (INVITE) on sofia profile 'internal' for [17085143073@bes2.sip.urbancom.net] from ip 73.72.98.76 2016-05-17 21:26:58.897799 [DEBUG] switch_core_state_machine.c:562 (sofia/internal/2002@bes2.sip.urbancom.net:5060) State NEW 2016-05-17 21:26:58.897799 [DEBUG] sofia.c:2214 detaching session c453b31f-8773-40cc-bbaa-43eb322f839f 2016-05-17 21:26:58.977861 [DEBUG] sofia.c:2322 Re-attaching to session c453b31f-8773-40cc-bbaa-43eb322f839f 2016-05-17 21:26:58.997808 [DEBUG] sofia.c:9376 sofia/internal/2002@bes2.sip.urbancom.net:5060 receiving invite from 73.72.98.76:5060 version: 1.6.8 -15-99de0ad 64bit 2016-05-17 21:26:58.997808 [DEBUG] sofia.c:9543 IP 73.72.98.76 Rejected by acl "domains". Falling back to Digest auth. 2016-05-17 21:26:58.997808 [DEBUG] sofia.c:6858 Channel sofia/internal/2002@bes2.sip.urbancom.net:5060 entering state [received][100] 2016-05-17 21:26:58.997808 [DEBUG] sofia.c:6868 Remote SDP: v=0 o=- 20008 20008 IN IP4 73.72.98.76 s=SDP data c=IN IP4 73.72.98.76 t=0 0 m=audio 11796 RTP/AVP 0 8 18 9 101 a=rtpmap:0 PCMU/8000 a=rtpmap:8 PCMA/8000 a=rtpmap:18 G729/8000 a=fmtp:18 annexb=no a=rtpmap:9 G722/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-15 a=ptime:20 2016-05-17 21:26:58.997808 [DEBUG] switch_core_media.c:4355 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G722:9:8000:20:64000:1] 2016-05-17 21:26:58.997808 [DEBUG] switch_core_media.c:4355 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1] 2016-05-17 21:26:58.997808 [DEBUG] switch_core_media.c:4410 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match 2016-05-17 21:26:58.997808 [DEBUG] switch_core_media.c:4355 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1] 2016-05-17 21:26:58.997808 [DEBUG] switch_core_media.c:4355 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[GSM:3:8000:20:13200:1] 2016-05-17 21:26:58.997808 [DEBUG] switch_core_media.c:4355 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G722:9:8000:20:64000:1] 2016-05-17 21:26:58.997808 [DEBUG] switch_core_media.c:4355 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1] 2016-05-17 21:26:58.997808 [DEBUG] switch_core_media.c:4355 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1] 2016-05-17 21:26:58.997808 [DEBUG] switch_core_media.c:4410 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match 2016-05-17 21:26:58.997808 [DEBUG] switch_core_media.c:4355 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[GSM:3:8000:20:13200:1] 2016-05-17 21:26:58.997808 [DEBUG] switch_core_media.c:4355 Audio Codec Compare [G729:18:8000:20:8000:1]/[G722:9:8000:20:64000:1] 2016-05-17 21:26:58.997808 [DEBUG] switch_core_media.c:4355 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1] 2016-05-17 21:26:58.997808 [DEBUG] switch_core_media.c:4355 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1] 2016-05-17 21:26:58.997808 [DEBUG] switch_core_media.c:4355 Audio Codec Compare [G729:18:8000:20:8000:1]/[GSM:3:8000:20:13200:1] 2016-05-17 21:26:58.997808 [DEBUG] switch_core_media.c:4355 Audio Codec Compare [G722:9:8000:20:64000:1]/[G722:9:8000:20:64000:1] 2016-05-17 21:26:58.997808 [DEBUG] switch_core_media.c:4410 Audio Codec Compare [G722:9:8000:20:64000:1] ++++ is saved as a match 2016-05-17 21:26:58.997808 [DEBUG] switch_core_media.c:4355 Audio Codec Compare [G722:9:8000:20:64000:1]/[PCMU:0:8000:20:64000:1] 2016-05-17 21:26:58.997808 [DEBUG] switch_core_media.c:4355 Audio Codec Compare [G722:9:8000:20:64000:1]/[PCMA:8:8000:20:64000:1] 2016-05-17 21:26:58.997808 [DEBUG] switch_core_media.c:4355 Audio Codec Compare [G722:9:8000:20:64000:1]/[GSM:3:8000:20:13200:1] 2016-05-17 21:26:58.997808 [DEBUG] switch_core_media.c:4271 Set telephone-event payload to 101@8000 2016-05-17 21:26:58.997808 [DEBUG] switch_core_media.c:3090 Set Codec sofia/internal/2002@bes2.sip.urbancom.net:5060 PCMU/8000 20 ms 160 samples 64000 bits 1 channels 2016-05-17 21:26:58.997808 [DEBUG] switch_core_codec.c:111 sofia/internal/2002@bes2.sip.urbancom.net:5060 Original read codec set to PCMU:0 2016-05-17 21:26:58.997808 [DEBUG] switch_core_media.c:4623 Set telephone-event payload to 101@8000 2016-05-17 21:26:58.997808 [DEBUG] switch_core_media.c:4681 sofia/internal/2002@bes2.sip.urbancom.net:5060 Set 2833 dtmf send payload to 101 recv payload to 101 2016-05-17 21:26:58.997808 [DEBUG] sofia.c:7248 (sofia/internal/2002@bes2.sip.urbancom.net:5060) State Change CS_NEW -> CS_INIT 2016-05-17 21:26:58.997808 [DEBUG] switch_core_state_machine.c:543 (sofia/internal/2002@bes2.sip.urbancom.net:5060) Running State Change CS_INIT 2016-05-17 21:26:58.997808 [DEBUG] switch_core_state_machine.c:586 (sofia/internal/2002@bes2.sip.urbancom.net:5060) State INIT 2016-05-17 21:26:58.997808 [DEBUG] mod_sofia.c:89 sofia/internal/2002@bes2.sip.urbancom.net:5060 SOFIA INIT 2016-05-17 21:26:58.997808 [DEBUG] switch_core_state_machine.c:40 sofia/internal/2002@bes2.sip.urbancom.net:5060 Standard INIT 2016-05-17 21:26:58.997808 [DEBUG] switch_core_state_machine.c:48 (sofia/internal/2002@bes2.sip.urbancom.net:5060) State Change CS_INIT -> CS_ROUTING 2016-05-17 21:26:58.997808 [DEBUG] switch_core_state_machine.c:586 (sofia/internal/2002@bes2.sip.urbancom.net:5060) State INIT going to sleep 2016-05-17 21:26:58.997808 [DEBUG] switch_core_state_machine.c:543 (sofia/internal/2002@bes2.sip.urbancom.net:5060) Running State Change CS_ROUTING 2016-05-17 21:26:58.997808 [DEBUG] switch_channel.c:2249 (sofia/internal/2002@bes2.sip.urbancom.net:5060) Callstate Change DOWN -> RINGING 2016-05-17 21:26:58.997808 [DEBUG] switch_core_state_machine.c:602 (sofia/internal/2002@bes2.sip.urbancom.net:5060) State ROUTING 2016-05-17 21:26:58.997808 [DEBUG] mod_sofia.c:142 sofia/internal/2002@bes2.sip.urbancom.net:5060 SOFIA ROUTING 2016-05-17 21:26:58.997808 [DEBUG] switch_core_state_machine.c:236 sofia/internal/2002@bes2.sip.urbancom.net:5060 Standard ROUTING 2016-05-17 21:26:58.997808 [INFO] mod_dialplan_xml.c:637 Processing 2002 <2002>->17085143073 in context bes2.sip.urbancom.net Dialplan: sofia/internal/2002@bes2.sip.urbancom.net:5060 parsing [bes2.sip.urbancom.net->user_exists] continue=true Dialplan: sofia/internal/2002@bes2.sip.urbancom.net:5060 Regex (PASS) [user_exists] () =~ // break=on-false Dialplan: sofia/internal/2002@bes2.sip.urbancom.net:5060 Action set(user_exists=${user_exists id ${destination_number} ${domain_name}}) INLINE 2016-05-17 21:26:59.017797 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fa65402aa40 Connected. 2016-05-17 21:26:59.017797 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fa65402aa40 released. EXECUTE sofia/internal/2002@bes2.sip.urbancom.net:5060 set(user_exists=false) 2016-05-17 21:26:59.017797 [DEBUG] mod_dptools.c:1519 SET sofia/internal/2002@bes2.sip.urbancom.net:5060 [user_exists]=[false] Dialplan: sofia/internal/2002@bes2.sip.urbancom.net:5060 Regex (FAIL) [user_exists] ${user_exists}(false) =~ /^true$/ break=on-false Dialplan: sofia/internal/2002@bes2.sip.urbancom.net:5060 parsing [bes2.sip.urbancom.net->call-direction] continue=true Dialplan: sofia/internal/2002@bes2.sip.urbancom.net:5060 Regex (FAIL) [call-direction] ${call_direction}() =~ /^(inbound|outbound|local)$/ break=never Dialplan: sofia/internal/2002@bes2.sip.urbancom.net:5060 ANTI-Action set(call_direction=local) Dialplan: sofia/internal/2002@bes2.sip.urbancom.net:5060 parsing [bes2.sip.urbancom.net->variables] continue=true Dialplan: sofia/internal/2002@bes2.sip.urbancom.net:5060 Regex (PASS) [variables] () =~ // break=on-false Dialplan: sofia/internal/2002@bes2.sip.urbancom.net:5060 Action export(origination_callee_id_name=${destination_number}) Dialplan: sofia/internal/2002@bes2.sip.urbancom.net:5060 Action set(RFC2822_DATE=${strftime(%a, %d %b %Y %T %z)}) Dialplan: sofia/internal/2002@bes2.sip.urbancom.net:5060 parsing [bes2.sip.urbancom.net->user_record] continue=true Dialplan: sofia/internal/2002@bes2.sip.urbancom.net:5060 Regex (PASS) [user_record] () =~ // break=on-false Dialplan: sofia/internal/2002@bes2.sip.urbancom.net:5060 Action set(user_record=${user_data ${destination_number}@${domain_name} var user_record}) INLINE 2016-05-17 21:26:59.037790 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fa65402aa40 Connected. 2016-05-17 21:26:59.037790 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fa65402aa40 released. 2016-05-17 21:26:59.037790 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fa65402aa40 Connected. 2016-05-17 21:26:59.037790 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fa65402aa40 released. EXECUTE sofia/internal/2002@bes2.sip.urbancom.net:5060 set(user_record=) 2016-05-17 21:26:59.037790 [DEBUG] mod_dptools.c:1519 SET sofia/internal/2002@bes2.sip.urbancom.net:5060 [user_record]=[UNDEF] Dialplan: sofia/internal/2002@bes2.sip.urbancom.net:5060 Action set(from_user_exists=${user_exists id ${sip_from_user} ${sip_from_host}}) INLINE EXECUTE sofia/internal/2002@bes2.sip.urbancom.net:5060 set(from_user_exists=true) 2016-05-17 21:26:59.037790 [DEBUG] mod_dptools.c:1519 SET sofia/internal/2002@bes2.sip.urbancom.net:5060 [from_user_exists]=[true] Dialplan: sofia/internal/2002@bes2.sip.urbancom.net:5060 Regex (FAIL) [user_record] ${user_exists}(false) =~ /^true$/ break=never Dialplan: sofia/internal/2002@bes2.sip.urbancom.net:5060 Regex (FAIL) [user_record] ${user_record}() =~ /^all$/ break=never Dialplan: sofia/internal/2002@bes2.sip.urbancom.net:5060 Regex (FAIL) [user_record] ${user_exists}(false) =~ /^true$/ break=never Dialplan: sofia/internal/2002@bes2.sip.urbancom.net:5060 Regex (FAIL) [user_record] ${call_direction}() =~ /^inbound$/ break=never Dialplan: sofia/internal/2002@bes2.sip.urbancom.net:5060 Regex (FAIL) [user_record] ${user_record}() =~ /^inbound$/ break=never Dialplan: sofia/internal/2002@bes2.sip.urbancom.net:5060 Regex (FAIL) [user_record] ${user_exists}(false) =~ /^true$/ break=never Dialplan: sofia/internal/2002@bes2.sip.urbancom.net:5060 Regex (FAIL) [user_record] ${call_direction}() =~ /^outbound$/ break=never Dialplan: sofia/internal/2002@bes2.sip.urbancom.net:5060 Regex (FAIL) [user_record] ${user_record}() =~ /^outbound$/ break=never Dialplan: sofia/internal/2002@bes2.sip.urbancom.net:5060 Regex (FAIL) [user_record] ${user_exists}(false) =~ /^true$/ break=never Dialplan: sofia/internal/2002@bes2.sip.urbancom.net:5060 Regex (FAIL) [user_record] ${call_direction}() =~ /^local$/ break=never Dialplan: sofia/internal/2002@bes2.sip.urbancom.net:5060 Regex (FAIL) [user_record] ${user_record}() =~ /^local$/ break=never Dialplan: sofia/internal/2002@bes2.sip.urbancom.net:5060 Regex (PASS) [user_record] ${from_user_exists}(true) =~ /^true$/ break=never Dialplan: sofia/internal/2002@bes2.sip.urbancom.net:5060 Action set(from_user_record=${user_data ${sip_from_user}@${sip_from_host} var user_record}) INLINE EXECUTE sofia/internal/2002@bes2.sip.urbancom.net:5060 set(from_user_record=) 2016-05-17 21:26:59.037790 [DEBUG] mod_dptools.c:1519 SET sofia/internal/2002@bes2.sip.urbancom.net:5060 [from_user_record]=[UNDEF] Dialplan: sofia/internal/2002@bes2.sip.urbancom.net:5060 Regex (PASS) [user_record] ${from_user_exists}(true) =~ /^true$/ break=never Dialplan: sofia/internal/2002@bes2.sip.urbancom.net:5060 Regex (FAIL) [user_record] ${from_user_record}() =~ /^all$/ break=never Dialplan: sofia/internal/2002@bes2.sip.urbancom.net:5060 Regex (PASS) [user_record] ${from_user_exists}(true) =~ /^true$/ break=never Dialplan: sofia/internal/2002@bes2.sip.urbancom.net:5060 Regex (FAIL) [user_record] ${call_direction}() =~ /^inbound$/ break=never Dialplan: sofia/internal/2002@bes2.sip.urbancom.net:5060 Regex (FAIL) [user_record] ${from_user_record}() =~ /^inbound$/ break=never Dialplan: sofia/internal/2002@bes2.sip.urbancom.net:5060 Regex (PASS) [user_record] ${from_user_exists}(true) =~ /^true$/ break=never Dialplan: sofia/internal/2002@bes2.sip.urbancom.net:5060 Regex (FAIL) [user_record] ${call_direction}() =~ /^outbound$/ break=never Dialplan: sofia/internal/2002@bes2.sip.urbancom.net:5060 Regex (FAIL) [user_record] ${from_user_record}() =~ /^outbound$/ break=never Dialplan: sofia/internal/2002@bes2.sip.urbancom.net:5060 Regex (PASS) [user_record] ${from_user_exists}(true) =~ /^true$/ break=never Dialplan: sofia/internal/2002@bes2.sip.urbancom.net:5060 Regex (FAIL) [user_record] ${call_direction}() =~ /^local$/ break=never Dialplan: sofia/internal/2002@bes2.sip.urbancom.net:5060 Regex (FAIL) [user_record] ${from_user_record}() =~ /^local$/ break=never Dialplan: sofia/internal/2002@bes2.sip.urbancom.net:5060 Regex (FAIL) [user_record] ${record_session}() =~ /^true$/ break=on-false Dialplan: sofia/internal/2002@bes2.sip.urbancom.net:5060 parsing [bes2.sip.urbancom.net->redial] continue=true Dialplan: sofia/internal/2002@bes2.sip.urbancom.net:5060 Regex (FAIL) [redial] destination_number(17085143073) =~ /^(redial|\*870)$/ break=on-true Dialplan: sofia/internal/2002@bes2.sip.urbancom.net:5060 Regex (PASS) [redial] () =~ // break=never Dialplan: sofia/internal/2002@bes2.sip.urbancom.net:5060 Action hash(insert/${domain_name}-last_dial/${caller_id_number}/${destination_number}) Dialplan: sofia/internal/2002@bes2.sip.urbancom.net:5060 parsing [bes2.sip.urbancom.net->sip.urbancom.net.11d] continue=false Dialplan: sofia/internal/2002@bes2.sip.urbancom.net:5060 Regex (PASS) [sip.urbancom.net.11d] destination_number(17085143073) =~ /^\+?(\d{11})$/ break=on-false Dialplan: sofia/internal/2002@bes2.sip.urbancom.net:5060 Action set(sip_h_X-accountcode=${accountcode}) Dialplan: sofia/internal/2002@bes2.sip.urbancom.net:5060 Action set(call_direction=outbound) Dialplan: sofia/internal/2002@bes2.sip.urbancom.net:5060 Action set(hangup_after_bridge=true) Dialplan: sofia/internal/2002@bes2.sip.urbancom.net:5060 Action set(effective_caller_id_name=${outbound_caller_id_name}) Dialplan: sofia/internal/2002@bes2.sip.urbancom.net:5060 Action set(effective_caller_id_number=${outbound_caller_id_number}) Dialplan: sofia/internal/2002@bes2.sip.urbancom.net:5060 Action set(inherit_codec=true) Dialplan: sofia/internal/2002@bes2.sip.urbancom.net:5060 Action set(ignore_display_updates=true) Dialplan: sofia/internal/2002@bes2.sip.urbancom.net:5060 Action set(callee_id_number=17085143073) Dialplan: sofia/internal/2002@bes2.sip.urbancom.net:5060 Action set(continue_on_fail=true) Dialplan: sofia/internal/2002@bes2.sip.urbancom.net:5060 Action bridge(sofia/gateway/f85a3f69-aedb-4dc1-8185-c45ad7f3ab97/17085143073) 2016-05-17 21:26:59.057791 [DEBUG] switch_core_state_machine.c:286 (sofia/internal/2002@bes2.sip.urbancom.net:5060) State Change CS_ROUTING -> CS_EXECUTE 2016-05-17 21:26:59.057791 [DEBUG] switch_core_state_machine.c:602 (sofia/internal/2002@bes2.sip.urbancom.net:5060) State ROUTING going to sleep 2016-05-17 21:26:59.057791 [DEBUG] switch_core_state_machine.c:543 (sofia/internal/2002@bes2.sip.urbancom.net:5060) Running State Change CS_EXECUTE 2016-05-17 21:26:59.057791 [DEBUG] switch_core_state_machine.c:609 (sofia/internal/2002@bes2.sip.urbancom.net:5060) State EXECUTE 2016-05-17 21:26:59.057791 [DEBUG] mod_sofia.c:197 sofia/internal/2002@bes2.sip.urbancom.net:5060 SOFIA EXECUTE 2016-05-17 21:26:59.057791 [DEBUG] switch_core_state_machine.c:328 sofia/internal/2002@bes2.sip.urbancom.net:5060 Standard EXECUTE EXECUTE sofia/internal/2002@bes2.sip.urbancom.net:5060 set(call_direction=local) 2016-05-17 21:26:59.057791 [DEBUG] mod_dptools.c:1519 SET sofia/internal/2002@bes2.sip.urbancom.net:5060 [call_direction]=[local] EXECUTE sofia/internal/2002@bes2.sip.urbancom.net:5060 export(origination_callee_id_name=17085143073) 2016-05-17 21:26:59.057791 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [origination_callee_id_name]=[17085143073] EXECUTE sofia/internal/2002@bes2.sip.urbancom.net:5060 set(RFC2822_DATE=Tue, 17 May 2016 21:26:59 -0500) 2016-05-17 21:26:59.057791 [DEBUG] mod_dptools.c:1519 SET sofia/internal/2002@bes2.sip.urbancom.net:5060 [RFC2822_DATE]=[Tue, 17 May 2016 21:26:59 -0500] EXECUTE sofia/internal/2002@bes2.sip.urbancom.net:5060 hash(insert/bes2.sip.urbancom.net-last_dial/2002/17085143073) EXECUTE sofia/internal/2002@bes2.sip.urbancom.net:5060 set(sip_h_X-accountcode=bes2.sip.urbancom.net) 2016-05-17 21:26:59.057791 [DEBUG] mod_dptools.c:1519 SET sofia/internal/2002@bes2.sip.urbancom.net:5060 [sip_h_X-accountcode]=[bes2.sip.urbancom.net] EXECUTE sofia/internal/2002@bes2.sip.urbancom.net:5060 set(call_direction=outbound) 2016-05-17 21:26:59.057791 [DEBUG] mod_dptools.c:1519 SET sofia/internal/2002@bes2.sip.urbancom.net:5060 [call_direction]=[outbound] EXECUTE sofia/internal/2002@bes2.sip.urbancom.net:5060 set(hangup_after_bridge=true) 2016-05-17 21:26:59.057791 [DEBUG] mod_dptools.c:1519 SET sofia/internal/2002@bes2.sip.urbancom.net:5060 [hangup_after_bridge]=[true] EXECUTE sofia/internal/2002@bes2.sip.urbancom.net:5060 set(effective_caller_id_name=Brent Desk Phone 2) 2016-05-17 21:26:59.057791 [DEBUG] mod_dptools.c:1519 SET sofia/internal/2002@bes2.sip.urbancom.net:5060 [effective_caller_id_name]=[Brent Desk Phone 2] EXECUTE sofia/internal/2002@bes2.sip.urbancom.net:5060 set(effective_caller_id_number=6303437372) 2016-05-17 21:26:59.057791 [DEBUG] mod_dptools.c:1519 SET sofia/internal/2002@bes2.sip.urbancom.net:5060 [effective_caller_id_number]=[6303437372] EXECUTE sofia/internal/2002@bes2.sip.urbancom.net:5060 set(inherit_codec=true) 2016-05-17 21:26:59.057791 [DEBUG] mod_dptools.c:1519 SET sofia/internal/2002@bes2.sip.urbancom.net:5060 [inherit_codec]=[true] EXECUTE sofia/internal/2002@bes2.sip.urbancom.net:5060 set(ignore_display_updates=true) 2016-05-17 21:26:59.057791 [DEBUG] mod_dptools.c:1519 SET sofia/internal/2002@bes2.sip.urbancom.net:5060 [ignore_display_updates]=[true] EXECUTE sofia/internal/2002@bes2.sip.urbancom.net:5060 set(callee_id_number=17085143073) 2016-05-17 21:26:59.057791 [DEBUG] mod_dptools.c:1519 SET sofia/internal/2002@bes2.sip.urbancom.net:5060 [callee_id_number]=[17085143073] EXECUTE sofia/internal/2002@bes2.sip.urbancom.net:5060 set(continue_on_fail=true) 2016-05-17 21:26:59.057791 [DEBUG] mod_dptools.c:1519 SET sofia/internal/2002@bes2.sip.urbancom.net:5060 [continue_on_fail]=[true] EXECUTE sofia/internal/2002@bes2.sip.urbancom.net:5060 bridge(sofia/gateway/f85a3f69-aedb-4dc1-8185-c45ad7f3ab97/17085143073) 2016-05-17 21:26:59.057791 [DEBUG] switch_channel.c:1250 sofia/internal/2002@bes2.sip.urbancom.net:5060 EXPORTING[export_vars] [domain_name]=[bes2.sip.urbancom.net] to event 2016-05-17 21:26:59.057791 [DEBUG] switch_channel.c:1250 sofia/internal/2002@bes2.sip.urbancom.net:5060 EXPORTING[export_vars] [origination_callee_id_name]=[17085143073] to event 2016-05-17 21:26:59.057791 [DEBUG] switch_ivr_originate.c:2127 Parsing global variables 2016-05-17 21:26:59.057791 [NOTICE] switch_channel.c:1104 New Channel sofia/external/17085143073 [accf12ad-ebfb-4c4c-84f8-717521d81cb6] 2016-05-17 21:26:59.057791 [DEBUG] mod_sofia.c:4813 (sofia/external/17085143073) State Change CS_NEW -> CS_INIT 2016-05-17 21:26:59.057791 [DEBUG] switch_core_state_machine.c:543 (sofia/external/17085143073) Running State Change CS_INIT 2016-05-17 21:26:59.057791 [DEBUG] switch_core_state_machine.c:586 (sofia/external/17085143073) State INIT 2016-05-17 21:26:59.057791 [DEBUG] mod_sofia.c:89 sofia/external/17085143073 SOFIA INIT 2016-05-17 21:26:59.057791 [DEBUG] sofia_glue.c:1257 sofia/external/17085143073 sending invite version: 1.6.8 -15-99de0ad 64bit Local SDP: v=0 o=FreeSWITCH 1463518333 1463518334 IN IP4 64.7.99.51 s=FreeSWITCH c=IN IP4 64.7.99.51 t=0 0 m=audio 20086 RTP/AVP 0 8 3 101 13 a=rtpmap:0 PCMU/8000 a=rtpmap:8 PCMA/8000 a=rtpmap:3 GSM/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=rtpmap:13 CN/8000 a=ptime:20 a=sendrecv 2016-05-17 21:26:59.057791 [DEBUG] switch_core_state_machine.c:40 sofia/external/17085143073 Standard INIT 2016-05-17 21:26:59.057791 [DEBUG] switch_core_state_machine.c:48 (sofia/external/17085143073) State Change CS_INIT -> CS_ROUTING 2016-05-17 21:26:59.057791 [DEBUG] switch_core_state_machine.c:586 (sofia/external/17085143073) State INIT going to sleep 2016-05-17 21:26:59.057791 [DEBUG] switch_core_state_machine.c:543 (sofia/external/17085143073) Running State Change CS_ROUTING 2016-05-17 21:26:59.057791 [DEBUG] switch_core_state_machine.c:602 (sofia/external/17085143073) State ROUTING 2016-05-17 21:26:59.057791 [DEBUG] mod_sofia.c:142 sofia/external/17085143073 SOFIA ROUTING 2016-05-17 21:26:59.057791 [DEBUG] switch_ivr_originate.c:67 (sofia/external/17085143073) State Change CS_ROUTING -> CS_CONSUME_MEDIA 2016-05-17 21:26:59.057791 [DEBUG] switch_core_state_machine.c:602 (sofia/external/17085143073) State ROUTING going to sleep 2016-05-17 21:26:59.057791 [DEBUG] switch_core_state_machine.c:543 (sofia/external/17085143073) Running State Change CS_CONSUME_MEDIA 2016-05-17 21:26:59.057791 [DEBUG] sofia.c:6858 Channel sofia/external/17085143073 entering state [calling][0] 2016-05-17 21:26:59.057791 [DEBUG] switch_core_state_machine.c:621 (sofia/external/17085143073) State CONSUME_MEDIA 2016-05-17 21:26:59.057791 [DEBUG] switch_core_state_machine.c:621 (sofia/external/17085143073) State CONSUME_MEDIA going to sleep 2016-05-17 21:27:00.117788 [DEBUG] sofia.c:6858 Channel sofia/external/17085143073 entering state [proceeding][183] 2016-05-17 21:27:00.117788 [DEBUG] sofia.c:6868 Remote SDP: v=0 o=Sonus_UAC 588145 860659 IN IP4 67.231.1.110 s=SIP Media Capabilities c=IN IP4 64.7.96.3 t=0 0 m=audio 59148 RTP/AVP 0 101 a=rtpmap:0 PCMU/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-15 a=ptime:20 2016-05-17 21:27:00.117788 [DEBUG] switch_core_media.c:4355 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1] 2016-05-17 21:27:00.117788 [DEBUG] switch_core_media.c:4410 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match 2016-05-17 21:27:00.117788 [DEBUG] switch_core_media.c:4355 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1] 2016-05-17 21:27:00.117788 [DEBUG] switch_core_media.c:4355 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[GSM:3:8000:20:13200:1] 2016-05-17 21:27:00.117788 [DEBUG] switch_core_media.c:4271 Set telephone-event payload to 101@8000 2016-05-17 21:27:00.117788 [DEBUG] switch_core_media.c:3090 Set Codec sofia/external/17085143073 PCMU/8000 20 ms 160 samples 64000 bits 1 channels 2016-05-17 21:27:00.117788 [DEBUG] switch_core_codec.c:111 sofia/external/17085143073 Original read codec set to PCMU:0 2016-05-17 21:27:00.117788 [DEBUG] switch_core_media.c:4623 Set telephone-event payload to 101@8000 2016-05-17 21:27:00.117788 [DEBUG] switch_core_media.c:4681 sofia/external/17085143073 Set 2833 dtmf send payload to 101 recv payload to 101 2016-05-17 21:27:00.117788 [DEBUG] switch_core_media.c:6464 AUDIO RTP [sofia/external/17085143073] 10.20.12.51 port 20086 -> 64.7.96.3 port 59148 codec: 0 ms: 20 2016-05-17 21:27:00.117788 [DEBUG] switch_rtp.c:3832 Starting timer [soft] 160 bytes per 20ms 2016-05-17 21:27:00.117788 [DEBUG] switch_core_media.c:6763 sofia/external/17085143073 Set 2833 dtmf send payload to 101 2016-05-17 21:27:00.117788 [DEBUG] switch_core_media.c:6770 sofia/external/17085143073 Set 2833 dtmf receive payload to 101 2016-05-17 21:27:00.117788 [DEBUG] switch_core_media.c:6793 sofia/external/17085143073 Set rtp dtmf delay to 40 2016-05-17 21:27:00.117788 [NOTICE] sofia_media.c:92 Pre-Answer sofia/external/17085143073! 2016-05-17 21:27:00.117788 [DEBUG] switch_channel.c:3471 (sofia/external/17085143073) Callstate Change DOWN -> EARLY 2016-05-17 21:27:00.117788 [DEBUG] switch_ivr_originate.c:410 Setting codec string on sofia/internal/2002@bes2.sip.urbancom.net:5060 to PCMU@8000h@20i 2016-05-17 21:27:00.117788 [INFO] switch_ivr_originate.c:3556 Sending early media 2016-05-17 21:27:00.117788 [DEBUG] switch_core_media.c:6464 AUDIO RTP [sofia/internal/2002@bes2.sip.urbancom.net:5060] 10.20.12.51 port 17346 -> 73.72.98.76 port 11796 codec: 0 ms: 20 2016-05-17 21:27:00.117788 [DEBUG] switch_rtp.c:3832 Starting timer [soft] 160 bytes per 20ms 2016-05-17 21:27:00.117788 [DEBUG] switch_core_media.c:6763 sofia/internal/2002@bes2.sip.urbancom.net:5060 Set 2833 dtmf send payload to 101 2016-05-17 21:27:00.117788 [DEBUG] switch_core_media.c:6770 sofia/internal/2002@bes2.sip.urbancom.net:5060 Set 2833 dtmf receive payload to 101 2016-05-17 21:27:00.117788 [DEBUG] switch_core_media.c:6793 sofia/internal/2002@bes2.sip.urbancom.net:5060 Set rtp dtmf delay to 40 2016-05-17 21:27:00.117788 [DEBUG] mod_sofia.c:2367 Ring SDP: v=0 o=FreeSWITCH 1463521074 1463521075 IN IP4 64.7.99.51 s=FreeSWITCH c=IN IP4 64.7.99.51 t=0 0 m=audio 17346 RTP/AVP 0 101 a=rtpmap:0 PCMU/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20 a=sendrecv --------------------------------------------- WORKING: --------------------------------------------- 2016-05-17 23:56:26.005529 [NOTICE] switch_channel.c:1104 New Channel sofia/internal/1002@bes1.sip.urbancom.net:5060 [cd2e3a3b-f85f-4201-92ee-376c779ff3d7] 2016-05-17 23:56:26.005529 [DEBUG] switch_core_state_machine.c:543 (sofia/internal/1002@bes1.sip.urbancom.net:5060) Running State Change CS_NEW 2016-05-17 23:56:26.053076 [DEBUG] sofia.c:9376 sofia/internal/1002@bes1.sip.urbancom.net:5060 receiving invite from 73.72.98.76:5060 version: 1.6.8 -15-99de0ad 64bit 2016-05-17 23:56:26.085478 [DEBUG] sofia.c:9543 IP 73.72.98.76 Rejected by acl "domains". Falling back to Digest auth. 2016-05-17 23:56:26.085478 [WARNING] sofia_reg.c:1775 SIP auth challenge (INVITE) on sofia profile 'internal' for [17085143073@bes1.sip.urbancom.net] from ip 73.72.98.76 2016-05-17 23:56:26.085478 [DEBUG] switch_core_state_machine.c:562 (sofia/internal/1002@bes1.sip.urbancom.net:5060) State NEW 2016-05-17 23:56:26.085478 [DEBUG] sofia.c:2214 detaching session cd2e3a3b-f85f-4201-92ee-376c779ff3d7 2016-05-17 23:56:26.105460 [DEBUG] sofia.c:2322 Re-attaching to session cd2e3a3b-f85f-4201-92ee-376c779ff3d7 2016-05-17 23:56:26.125461 [DEBUG] sofia.c:9376 sofia/internal/1002@bes1.sip.urbancom.net:5060 receiving invite from 73.72.98.76:5060 version: 1.6.8 -15-99de0ad 64bit 2016-05-17 23:56:26.125461 [DEBUG] sofia.c:9543 IP 73.72.98.76 Rejected by acl "domains". Falling back to Digest auth. 2016-05-17 23:56:26.165470 [DEBUG] sofia.c:6858 Channel sofia/internal/1002@bes1.sip.urbancom.net:5060 entering state [received][100] 2016-05-17 23:56:26.165470 [DEBUG] sofia.c:6868 Remote SDP: v=0 o=- 20000 20000 IN IP4 73.72.98.76 s=SDP data c=IN IP4 73.72.98.76 t=0 0 m=audio 11780 RTP/AVP 0 8 18 9 101 a=rtpmap:0 PCMU/8000 a=rtpmap:8 PCMA/8000 a=rtpmap:18 G729/8000 a=fmtp:18 annexb=no a=rtpmap:9 G722/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-15 a=ptime:20 2016-05-17 23:56:26.165470 [DEBUG] switch_core_media.c:4355 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G722:9:8000:20:64000:1] 2016-05-17 23:56:26.165470 [DEBUG] switch_core_media.c:4355 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1] 2016-05-17 23:56:26.165470 [DEBUG] switch_core_media.c:4410 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match 2016-05-17 23:56:26.165470 [DEBUG] switch_core_media.c:4355 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1] 2016-05-17 23:56:26.165470 [DEBUG] switch_core_media.c:4355 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[GSM:3:8000:20:13200:1] 2016-05-17 23:56:26.165470 [DEBUG] switch_core_media.c:4355 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G722:9:8000:20:64000:1] 2016-05-17 23:56:26.165470 [DEBUG] switch_core_media.c:4355 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1] 2016-05-17 23:56:26.165470 [DEBUG] switch_core_media.c:4355 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1] 2016-05-17 23:56:26.165470 [DEBUG] switch_core_media.c:4410 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match 2016-05-17 23:56:26.165470 [DEBUG] switch_core_media.c:4355 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[GSM:3:8000:20:13200:1] 2016-05-17 23:56:26.205465 [DEBUG] switch_core_media.c:4355 Audio Codec Compare [G729:18:8000:20:8000:1]/[G722:9:8000:20:64000:1] 2016-05-17 23:56:26.205465 [DEBUG] switch_core_media.c:4355 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1] 2016-05-17 23:56:26.205465 [DEBUG] switch_core_media.c:4355 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1] 2016-05-17 23:56:26.205465 [DEBUG] switch_core_media.c:4355 Audio Codec Compare [G729:18:8000:20:8000:1]/[GSM:3:8000:20:13200:1] 2016-05-17 23:56:26.205465 [DEBUG] switch_core_media.c:4355 Audio Codec Compare [G722:9:8000:20:64000:1]/[G722:9:8000:20:64000:1] 2016-05-17 23:56:26.205465 [DEBUG] switch_core_media.c:4410 Audio Codec Compare [G722:9:8000:20:64000:1] ++++ is saved as a match 2016-05-17 23:56:26.205465 [DEBUG] switch_core_media.c:4355 Audio Codec Compare [G722:9:8000:20:64000:1]/[PCMU:0:8000:20:64000:1] 2016-05-17 23:56:26.205465 [DEBUG] switch_core_media.c:4355 Audio Codec Compare [G722:9:8000:20:64000:1]/[PCMA:8:8000:20:64000:1] 2016-05-17 23:56:26.205465 [DEBUG] switch_core_media.c:4355 Audio Codec Compare [G722:9:8000:20:64000:1]/[GSM:3:8000:20:13200:1] 2016-05-17 23:56:26.205465 [DEBUG] switch_core_media.c:4271 Set telephone-event payload to 101@8000 2016-05-17 23:56:26.205465 [DEBUG] switch_core_media.c:3090 Set Codec sofia/internal/1002@bes1.sip.urbancom.net:5060 PCMU/8000 20 ms 160 samples 64000 bits 1 channels 2016-05-17 23:56:26.205465 [DEBUG] switch_core_codec.c:111 sofia/internal/1002@bes1.sip.urbancom.net:5060 Original read codec set to PCMU:0 2016-05-17 23:56:26.205465 [DEBUG] switch_core_media.c:4623 Set telephone-event payload to 101@8000 2016-05-17 23:56:26.205465 [DEBUG] switch_core_media.c:4681 sofia/internal/1002@bes1.sip.urbancom.net:5060 Set 2833 dtmf send payload to 101 recv payload to 101 2016-05-17 23:56:26.205465 [DEBUG] sofia.c:7248 (sofia/internal/1002@bes1.sip.urbancom.net:5060) State Change CS_NEW -> CS_INIT 2016-05-17 23:56:26.205465 [DEBUG] switch_core_state_machine.c:543 (sofia/internal/1002@bes1.sip.urbancom.net:5060) Running State Change CS_INIT 2016-05-17 23:56:26.205465 [DEBUG] switch_core_state_machine.c:586 (sofia/internal/1002@bes1.sip.urbancom.net:5060) State INIT 2016-05-17 23:56:26.205465 [DEBUG] mod_sofia.c:89 sofia/internal/1002@bes1.sip.urbancom.net:5060 SOFIA INIT 2016-05-17 23:56:26.205465 [DEBUG] switch_core_state_machine.c:40 sofia/internal/1002@bes1.sip.urbancom.net:5060 Standard INIT 2016-05-17 23:56:26.205465 [DEBUG] switch_core_state_machine.c:48 (sofia/internal/1002@bes1.sip.urbancom.net:5060) State Change CS_INIT -> CS_ROUTING 2016-05-17 23:56:26.205465 [DEBUG] switch_core_state_machine.c:586 (sofia/internal/1002@bes1.sip.urbancom.net:5060) State INIT going to sleep 2016-05-17 23:56:26.205465 [DEBUG] switch_core_state_machine.c:543 (sofia/internal/1002@bes1.sip.urbancom.net:5060) Running State Change CS_ROUTING 2016-05-17 23:56:26.205465 [DEBUG] switch_channel.c:2249 (sofia/internal/1002@bes1.sip.urbancom.net:5060) Callstate Change DOWN -> RINGING 2016-05-17 23:56:26.205465 [DEBUG] switch_core_state_machine.c:602 (sofia/internal/1002@bes1.sip.urbancom.net:5060) State ROUTING 2016-05-17 23:56:26.205465 [DEBUG] mod_sofia.c:142 sofia/internal/1002@bes1.sip.urbancom.net:5060 SOFIA ROUTING 2016-05-17 23:56:26.205465 [DEBUG] switch_core_state_machine.c:236 sofia/internal/1002@bes1.sip.urbancom.net:5060 Standard ROUTING 2016-05-17 23:56:26.205465 [INFO] mod_dialplan_xml.c:637 Processing 1002 <1002>->17085143073 in context bes1.sip.urbancom.net 2016-05-17 23:56:26.225469 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7f7d7c02b2c0 Connected. 2016-05-17 23:56:26.315354 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7f7d7c02b2c0 released. Dialplan: sofia/internal/1002@bes1.sip.urbancom.net:5060 parsing [bes1.sip.urbancom.net->user_exists] continue=true Dialplan: sofia/internal/1002@bes1.sip.urbancom.net:5060 Regex (PASS) [user_exists] () =~ // break=on-false Dialplan: sofia/internal/1002@bes1.sip.urbancom.net:5060 Action set(user_exists=${user_exists id ${destination_number} ${domain_name}}) INLINE 2016-05-17 23:56:26.315354 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7f7d7c02b2c0 Connected. 2016-05-17 23:56:26.315354 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7f7d7c02b2c0 released. EXECUTE sofia/internal/1002@bes1.sip.urbancom.net:5060 set(user_exists=false) 2016-05-17 23:56:26.325462 [DEBUG] mod_dptools.c:1519 SET sofia/internal/1002@bes1.sip.urbancom.net:5060 [user_exists]=[false] Dialplan: sofia/internal/1002@bes1.sip.urbancom.net:5060 Regex (FAIL) [user_exists] ${user_exists}(false) =~ /^true$/ break=on-false Dialplan: sofia/internal/1002@bes1.sip.urbancom.net:5060 parsing [bes1.sip.urbancom.net->call-direction] continue=true Dialplan: sofia/internal/1002@bes1.sip.urbancom.net:5060 Regex (FAIL) [call-direction] ${call_direction}() =~ /^(inbound|outbound|local)$/ break=never Dialplan: sofia/internal/1002@bes1.sip.urbancom.net:5060 ANTI-Action set(call_direction=local) Dialplan: sofia/internal/1002@bes1.sip.urbancom.net:5060 parsing [bes1.sip.urbancom.net->variables] continue=true Dialplan: sofia/internal/1002@bes1.sip.urbancom.net:5060 Regex (PASS) [variables] () =~ // break=on-false Dialplan: sofia/internal/1002@bes1.sip.urbancom.net:5060 Action export(origination_callee_id_name=${destination_number}) Dialplan: sofia/internal/1002@bes1.sip.urbancom.net:5060 Action set(RFC2822_DATE=${strftime(%a, %d %b %Y %T %z)}) Dialplan: sofia/internal/1002@bes1.sip.urbancom.net:5060 parsing [bes1.sip.urbancom.net->user_record] continue=true Dialplan: sofia/internal/1002@bes1.sip.urbancom.net:5060 Regex (PASS) [user_record] () =~ // break=on-false Dialplan: sofia/internal/1002@bes1.sip.urbancom.net:5060 Action set(user_record=${user_data ${destination_number}@${domain_name} var user_record}) INLINE 2016-05-17 23:56:26.325462 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7f7d7c02b2c0 Connected. 2016-05-17 23:56:26.325462 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7f7d7c02b2c0 released. 2016-05-17 23:56:26.325462 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7f7d7c02b2c0 Connected. 2016-05-17 23:56:26.325462 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7f7d7c02b2c0 released. EXECUTE sofia/internal/1002@bes1.sip.urbancom.net:5060 set(user_record=) 2016-05-17 23:56:26.325462 [DEBUG] mod_dptools.c:1519 SET sofia/internal/1002@bes1.sip.urbancom.net:5060 [user_record]=[UNDEF] Dialplan: sofia/internal/1002@bes1.sip.urbancom.net:5060 Action set(from_user_exists=${user_exists id ${sip_from_user} ${sip_from_host}}) INLINE EXECUTE sofia/internal/1002@bes1.sip.urbancom.net:5060 set(from_user_exists=true) 2016-05-17 23:56:26.325462 [DEBUG] mod_dptools.c:1519 SET sofia/internal/1002@bes1.sip.urbancom.net:5060 [from_user_exists]=[true] Dialplan: sofia/internal/1002@bes1.sip.urbancom.net:5060 Regex (FAIL) [user_record] ${user_exists}(false) =~ /^true$/ break=never Dialplan: sofia/internal/1002@bes1.sip.urbancom.net:5060 Regex (FAIL) [user_record] ${user_record}() =~ /^all$/ break=never Dialplan: sofia/internal/1002@bes1.sip.urbancom.net:5060 Regex (FAIL) [user_record] ${user_exists}(false) =~ /^true$/ break=never Dialplan: sofia/internal/1002@bes1.sip.urbancom.net:5060 Regex (FAIL) [user_record] ${call_direction}() =~ /^inbound$/ break=never Dialplan: sofia/internal/1002@bes1.sip.urbancom.net:5060 Regex (FAIL) [user_record] ${user_record}() =~ /^inbound$/ break=never Dialplan: sofia/internal/1002@bes1.sip.urbancom.net:5060 Regex (FAIL) [user_record] ${user_exists}(false) =~ /^true$/ break=never Dialplan: sofia/internal/1002@bes1.sip.urbancom.net:5060 Regex (FAIL) [user_record] ${call_direction}() =~ /^outbound$/ break=never Dialplan: sofia/internal/1002@bes1.sip.urbancom.net:5060 Regex (FAIL) [user_record] ${user_record}() =~ /^outbound$/ break=never Dialplan: sofia/internal/1002@bes1.sip.urbancom.net:5060 Regex (FAIL) [user_record] ${user_exists}(false) =~ /^true$/ break=never Dialplan: sofia/internal/1002@bes1.sip.urbancom.net:5060 Regex (FAIL) [user_record] ${call_direction}() =~ /^local$/ break=never Dialplan: sofia/internal/1002@bes1.sip.urbancom.net:5060 Regex (FAIL) [user_record] ${user_record}() =~ /^local$/ break=never Dialplan: sofia/internal/1002@bes1.sip.urbancom.net:5060 Regex (PASS) [user_record] ${from_user_exists}(true) =~ /^true$/ break=never Dialplan: sofia/internal/1002@bes1.sip.urbancom.net:5060 Action set(from_user_record=${user_data ${sip_from_user}@${sip_from_host} var user_record}) INLINE EXECUTE sofia/internal/1002@bes1.sip.urbancom.net:5060 set(from_user_record=) 2016-05-17 23:56:26.325462 [DEBUG] mod_dptools.c:1519 SET sofia/internal/1002@bes1.sip.urbancom.net:5060 [from_user_record]=[UNDEF] Dialplan: sofia/internal/1002@bes1.sip.urbancom.net:5060 Regex (PASS) [user_record] ${from_user_exists}(true) =~ /^true$/ break=never Dialplan: sofia/internal/1002@bes1.sip.urbancom.net:5060 Regex (FAIL) [user_record] ${from_user_record}() =~ /^all$/ break=never Dialplan: sofia/internal/1002@bes1.sip.urbancom.net:5060 Regex (PASS) [user_record] ${from_user_exists}(true) =~ /^true$/ break=never Dialplan: sofia/internal/1002@bes1.sip.urbancom.net:5060 Regex (FAIL) [user_record] ${call_direction}() =~ /^inbound$/ break=never Dialplan: sofia/internal/1002@bes1.sip.urbancom.net:5060 Regex (FAIL) [user_record] ${from_user_record}() =~ /^inbound$/ break=never Dialplan: sofia/internal/1002@bes1.sip.urbancom.net:5060 Regex (PASS) [user_record] ${from_user_exists}(true) =~ /^true$/ break=never Dialplan: sofia/internal/1002@bes1.sip.urbancom.net:5060 Regex (FAIL) [user_record] ${call_direction}() =~ /^outbound$/ break=never Dialplan: sofia/internal/1002@bes1.sip.urbancom.net:5060 Regex (FAIL) [user_record] ${from_user_record}() =~ /^outbound$/ break=never Dialplan: sofia/internal/1002@bes1.sip.urbancom.net:5060 Regex (PASS) [user_record] ${from_user_exists}(true) =~ /^true$/ break=never Dialplan: sofia/internal/1002@bes1.sip.urbancom.net:5060 Regex (FAIL) [user_record] ${call_direction}() =~ /^local$/ break=never Dialplan: sofia/internal/1002@bes1.sip.urbancom.net:5060 Regex (FAIL) [user_record] ${from_user_record}() =~ /^local$/ break=never Dialplan: sofia/internal/1002@bes1.sip.urbancom.net:5060 Regex (FAIL) [user_record] ${record_session}() =~ /^true$/ break=on-false Dialplan: sofia/internal/1002@bes1.sip.urbancom.net:5060 parsing [bes1.sip.urbancom.net->redial] continue=true Dialplan: sofia/internal/1002@bes1.sip.urbancom.net:5060 Regex (FAIL) [redial] destination_number(17085143073) =~ /^(redial|\*870)$/ break=on-true Dialplan: sofia/internal/1002@bes1.sip.urbancom.net:5060 Regex (PASS) [redial] () =~ // break=never Dialplan: sofia/internal/1002@bes1.sip.urbancom.net:5060 Action hash(insert/${domain_name}-last_dial/${caller_id_number}/${destination_number}) Dialplan: sofia/internal/1002@bes1.sip.urbancom.net:5060 parsing [bes1.sip.urbancom.net->sip.urbancom.net.11d] continue=false Dialplan: sofia/internal/1002@bes1.sip.urbancom.net:5060 Regex (PASS) [sip.urbancom.net.11d] destination_number(17085143073) =~ /^\+?(\d{11})$/ break=on-false Dialplan: sofia/internal/1002@bes1.sip.urbancom.net:5060 Action set(sip_h_X-accountcode=${accountcode}) Dialplan: sofia/internal/1002@bes1.sip.urbancom.net:5060 Action set(call_direction=outbound) Dialplan: sofia/internal/1002@bes1.sip.urbancom.net:5060 Action set(hangup_after_bridge=true) Dialplan: sofia/internal/1002@bes1.sip.urbancom.net:5060 Action set(effective_caller_id_name=${outbound_caller_id_name}) Dialplan: sofia/internal/1002@bes1.sip.urbancom.net:5060 Action set(effective_caller_id_number=${outbound_caller_id_number}) Dialplan: sofia/internal/1002@bes1.sip.urbancom.net:5060 Action set(inherit_codec=true) Dialplan: sofia/internal/1002@bes1.sip.urbancom.net:5060 Action set(ignore_display_updates=true) Dialplan: sofia/internal/1002@bes1.sip.urbancom.net:5060 Action set(callee_id_number=17085143073) Dialplan: sofia/internal/1002@bes1.sip.urbancom.net:5060 Action set(continue_on_fail=true) Dialplan: sofia/internal/1002@bes1.sip.urbancom.net:5060 Action bridge(sofia/gateway/e5bf946d-fbb9-4c23-adb9-b43ed166aa0e/17085143073) 2016-05-17 23:56:26.325462 [DEBUG] switch_core_state_machine.c:286 (sofia/internal/1002@bes1.sip.urbancom.net:5060) State Change CS_ROUTING -> CS_EXECUTE 2016-05-17 23:56:26.325462 [DEBUG] switch_core_state_machine.c:602 (sofia/internal/1002@bes1.sip.urbancom.net:5060) State ROUTING going to sleep 2016-05-17 23:56:26.325462 [DEBUG] switch_core_state_machine.c:543 (sofia/internal/1002@bes1.sip.urbancom.net:5060) Running State Change CS_EXECUTE 2016-05-17 23:56:26.325462 [DEBUG] switch_core_state_machine.c:609 (sofia/internal/1002@bes1.sip.urbancom.net:5060) State EXECUTE 2016-05-17 23:56:26.325462 [DEBUG] mod_sofia.c:197 sofia/internal/1002@bes1.sip.urbancom.net:5060 SOFIA EXECUTE 2016-05-17 23:56:26.325462 [DEBUG] switch_core_state_machine.c:328 sofia/internal/1002@bes1.sip.urbancom.net:5060 Standard EXECUTE EXECUTE sofia/internal/1002@bes1.sip.urbancom.net:5060 set(call_direction=local) 2016-05-17 23:56:26.325462 [DEBUG] mod_dptools.c:1519 SET sofia/internal/1002@bes1.sip.urbancom.net:5060 [call_direction]=[local] EXECUTE sofia/internal/1002@bes1.sip.urbancom.net:5060 export(origination_callee_id_name=17085143073) 2016-05-17 23:56:26.325462 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [origination_callee_id_name]=[17085143073] EXECUTE sofia/internal/1002@bes1.sip.urbancom.net:5060 set(RFC2822_DATE=Tue, 17 May 2016 23:56:26 -0500) 2016-05-17 23:56:26.325462 [DEBUG] mod_dptools.c:1519 SET sofia/internal/1002@bes1.sip.urbancom.net:5060 [RFC2822_DATE]=[Tue, 17 May 2016 23:56:26 -0500] EXECUTE sofia/internal/1002@bes1.sip.urbancom.net:5060 hash(insert/bes1.sip.urbancom.net-last_dial/1002/17085143073) EXECUTE sofia/internal/1002@bes1.sip.urbancom.net:5060 set(sip_h_X-accountcode=bes1.sip.urbancom.net) 2016-05-17 23:56:26.365456 [DEBUG] mod_dptools.c:1519 SET sofia/internal/1002@bes1.sip.urbancom.net:5060 [sip_h_X-accountcode]=[bes1.sip.urbancom.net] EXECUTE sofia/internal/1002@bes1.sip.urbancom.net:5060 set(call_direction=outbound) 2016-05-17 23:56:26.365456 [DEBUG] mod_dptools.c:1519 SET sofia/internal/1002@bes1.sip.urbancom.net:5060 [call_direction]=[outbound] EXECUTE sofia/internal/1002@bes1.sip.urbancom.net:5060 set(hangup_after_bridge=true) 2016-05-17 23:56:26.365456 [DEBUG] mod_dptools.c:1519 SET sofia/internal/1002@bes1.sip.urbancom.net:5060 [hangup_after_bridge]=[true] EXECUTE sofia/internal/1002@bes1.sip.urbancom.net:5060 set(effective_caller_id_name=Brent Desk Phone) 2016-05-17 23:56:26.365456 [DEBUG] mod_dptools.c:1519 SET sofia/internal/1002@bes1.sip.urbancom.net:5060 [effective_caller_id_name]=[Brent Desk Phone] EXECUTE sofia/internal/1002@bes1.sip.urbancom.net:5060 set(effective_caller_id_number=7085871872) 2016-05-17 23:56:26.365456 [DEBUG] mod_dptools.c:1519 SET sofia/internal/1002@bes1.sip.urbancom.net:5060 [effective_caller_id_number]=[7085871872] EXECUTE sofia/internal/1002@bes1.sip.urbancom.net:5060 set(inherit_codec=true) 2016-05-17 23:56:26.365456 [DEBUG] mod_dptools.c:1519 SET sofia/internal/1002@bes1.sip.urbancom.net:5060 [inherit_codec]=[true] EXECUTE sofia/internal/1002@bes1.sip.urbancom.net:5060 set(ignore_display_updates=true) 2016-05-17 23:56:26.365456 [DEBUG] mod_dptools.c:1519 SET sofia/internal/1002@bes1.sip.urbancom.net:5060 [ignore_display_updates]=[true] EXECUTE sofia/internal/1002@bes1.sip.urbancom.net:5060 set(callee_id_number=17085143073) 2016-05-17 23:56:26.365456 [DEBUG] mod_dptools.c:1519 SET sofia/internal/1002@bes1.sip.urbancom.net:5060 [callee_id_number]=[17085143073] EXECUTE sofia/internal/1002@bes1.sip.urbancom.net:5060 set(continue_on_fail=true) 2016-05-17 23:56:26.365456 [DEBUG] mod_dptools.c:1519 SET sofia/internal/1002@bes1.sip.urbancom.net:5060 [continue_on_fail]=[true] EXECUTE sofia/internal/1002@bes1.sip.urbancom.net:5060 bridge(sofia/gateway/e5bf946d-fbb9-4c23-adb9-b43ed166aa0e/17085143073) 2016-05-17 23:56:26.365456 [DEBUG] switch_channel.c:1250 sofia/internal/1002@bes1.sip.urbancom.net:5060 EXPORTING[export_vars] [domain_name]=[bes1.sip.urbancom.net] to event 2016-05-17 23:56:26.365456 [DEBUG] switch_channel.c:1250 sofia/internal/1002@bes1.sip.urbancom.net:5060 EXPORTING[export_vars] [origination_callee_id_name]=[17085143073] to event 2016-05-17 23:56:26.365456 [DEBUG] switch_ivr_originate.c:2127 Parsing global variables 2016-05-17 23:56:26.390631 [NOTICE] switch_channel.c:1104 New Channel sofia/external/17085143073 [ba517162-3405-42bb-9602-2fddcf91350e] 2016-05-17 23:56:26.390631 [DEBUG] mod_sofia.c:4813 (sofia/external/17085143073) State Change CS_NEW -> CS_INIT 2016-05-17 23:56:26.390631 [DEBUG] switch_core_state_machine.c:543 (sofia/external/17085143073) Running State Change CS_INIT 2016-05-17 23:56:26.425448 [DEBUG] switch_core_state_machine.c:586 (sofia/external/17085143073) State INIT 2016-05-17 23:56:26.425448 [DEBUG] mod_sofia.c:89 sofia/external/17085143073 SOFIA INIT 2016-05-17 23:56:26.425448 [DEBUG] sofia_glue.c:1257 sofia/external/17085143073 sending invite version: 1.6.8 -15-99de0ad 64bit Local SDP: v=0 o=FreeSWITCH 1463521424 1463521425 IN IP4 64.7.99.50 s=FreeSWITCH c=IN IP4 64.7.99.50 t=0 0 m=audio 25962 RTP/AVP 0 8 3 101 13 a=rtpmap:0 PCMU/8000 a=rtpmap:8 PCMA/8000 a=rtpmap:3 GSM/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=rtpmap:13 CN/8000 a=ptime:20 a=sendrecv 2016-05-17 23:56:26.425448 [DEBUG] switch_core_state_machine.c:40 sofia/external/17085143073 Standard INIT 2016-05-17 23:56:26.425448 [DEBUG] switch_core_state_machine.c:48 (sofia/external/17085143073) State Change CS_INIT -> CS_ROUTING 2016-05-17 23:56:26.425448 [DEBUG] switch_core_state_machine.c:586 (sofia/external/17085143073) State INIT going to sleep 2016-05-17 23:56:26.425448 [DEBUG] switch_core_state_machine.c:543 (sofia/external/17085143073) Running State Change CS_ROUTING 2016-05-17 23:56:26.425448 [DEBUG] switch_core_state_machine.c:602 (sofia/external/17085143073) State ROUTING 2016-05-17 23:56:26.425448 [DEBUG] mod_sofia.c:142 sofia/external/17085143073 SOFIA ROUTING 2016-05-17 23:56:26.425448 [DEBUG] switch_ivr_originate.c:67 (sofia/external/17085143073) State Change CS_ROUTING -> CS_CONSUME_MEDIA 2016-05-17 23:56:26.425448 [DEBUG] switch_core_state_machine.c:602 (sofia/external/17085143073) State ROUTING going to sleep 2016-05-17 23:56:26.425448 [DEBUG] switch_core_state_machine.c:543 (sofia/external/17085143073) Running State Change CS_CONSUME_MEDIA 2016-05-17 23:56:26.425448 [DEBUG] switch_core_state_machine.c:621 (sofia/external/17085143073) State CONSUME_MEDIA 2016-05-17 23:56:26.425448 [DEBUG] switch_core_state_machine.c:621 (sofia/external/17085143073) State CONSUME_MEDIA going to sleep 2016-05-17 23:56:26.465464 [DEBUG] sofia.c:6858 Channel sofia/external/17085143073 entering state [calling][0] 2016-05-17 23:56:28.065526 [DEBUG] sofia.c:6858 Channel sofia/external/17085143073 entering state [proceeding][183] 2016-05-17 23:56:28.065526 [DEBUG] sofia.c:6868 Remote SDP: v=0 o=Sonus_UAC 108080 166791 IN IP4 67.231.1.110 s=SIP Media Capabilities c=IN IP4 64.7.96.3 t=0 0 m=audio 59516 RTP/AVP 0 101 a=rtpmap:0 PCMU/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-15 a=ptime:20 2016-05-17 23:56:28.065526 [DEBUG] switch_core_media.c:4355 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1] 2016-05-17 23:56:28.065526 [DEBUG] switch_core_media.c:4410 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match 2016-05-17 23:56:28.065526 [DEBUG] switch_core_media.c:4355 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1] 2016-05-17 23:56:28.065526 [DEBUG] switch_core_media.c:4355 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[GSM:3:8000:20:13200:1] 2016-05-17 23:56:28.065526 [DEBUG] switch_core_media.c:4271 Set telephone-event payload to 101@8000 2016-05-17 23:56:28.065526 [DEBUG] switch_core_media.c:3090 Set Codec sofia/external/17085143073 PCMU/8000 20 ms 160 samples 64000 bits 1 channels 2016-05-17 23:56:28.065526 [DEBUG] switch_core_codec.c:111 sofia/external/17085143073 Original read codec set to PCMU:0 2016-05-17 23:56:28.065526 [DEBUG] switch_core_media.c:4623 Set telephone-event payload to 101@8000 2016-05-17 23:56:28.065526 [DEBUG] switch_core_media.c:4681 sofia/external/17085143073 Set 2833 dtmf send payload to 101 recv payload to 101 2016-05-17 23:56:28.065526 [DEBUG] switch_core_media.c:6464 AUDIO RTP [sofia/external/17085143073] 10.20.12.50 port 25962 -> 64.7.96.3 port 59516 codec: 0 ms: 20 2016-05-17 23:56:28.065526 [DEBUG] switch_rtp.c:3832 Starting timer [soft] 160 bytes per 20ms 2016-05-17 23:56:28.065526 [DEBUG] switch_core_media.c:6763 sofia/external/17085143073 Set 2833 dtmf send payload to 101 2016-05-17 23:56:28.065526 [DEBUG] switch_core_media.c:6770 sofia/external/17085143073 Set 2833 dtmf receive payload to 101 2016-05-17 23:56:28.065526 [DEBUG] switch_core_media.c:6793 sofia/external/17085143073 Set rtp dtmf delay to 40 2016-05-17 23:56:28.065526 [NOTICE] sofia_media.c:92 Pre-Answer sofia/external/17085143073! 2016-05-17 23:56:28.065526 [DEBUG] switch_channel.c:3471 (sofia/external/17085143073) Callstate Change DOWN -> EARLY 2016-05-17 23:56:28.065526 [DEBUG] switch_ivr_originate.c:410 Setting codec string on sofia/internal/1002@bes1.sip.urbancom.net:5060 to PCMU@8000h@20i 2016-05-17 23:56:28.065526 [INFO] switch_ivr_originate.c:3556 Sending early media 2016-05-17 23:56:28.093782 [DEBUG] switch_core_media.c:6464 AUDIO RTP [sofia/internal/1002@bes1.sip.urbancom.net:5060] 10.20.12.50 port 19758 -> 73.72.98.76 port 11780 codec: 0 ms: 20 2016-05-17 23:56:28.093782 [DEBUG] switch_rtp.c:3832 Starting timer [soft] 160 bytes per 20ms 2016-05-17 23:56:28.093782 [DEBUG] switch_core_media.c:6763 sofia/internal/1002@bes1.sip.urbancom.net:5060 Set 2833 dtmf send payload to 101 2016-05-17 23:56:28.093782 [DEBUG] switch_core_media.c:6770 sofia/internal/1002@bes1.sip.urbancom.net:5060 Set 2833 dtmf receive payload to 101 2016-05-17 23:56:28.093782 [DEBUG] switch_core_media.c:6793 sofia/internal/1002@bes1.sip.urbancom.net:5060 Set rtp dtmf delay to 40 2016-05-17 23:56:28.093782 [DEBUG] mod_sofia.c:2367 Ring SDP: v=0 o=FreeSWITCH 1463527630 1463527631 IN IP4 10.20.12.50 s=FreeSWITCH c=IN IP4 10.20.12.50 t=0 0 m=audio 19758 RTP/AVP 0 101 a=rtpmap:0 PCMU/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20 a=sendrecv