From Sahil, 1 Month ago, written in FreeSWITCH.
- view diff
Embed
  1. span style="color: goldenrod; font-weight: bold;"> 2021-07-29 07:17:09.949595 [DEBUG] switch_core_state_machine.c:604 (sofia/default/505@test-tls.astppbilling.org:7777) State NEW
  2. 2021-07-29 07:17:10.109583 [DEBUG] sofia.c:2544 Re-attaching to session 1feeab23-ac71-47b5-8f50-c3faaffb8f64
  3. 2021-07-29 07:17:10.129564 [DEBUG] sofia.c:10280 sofia/default/505@test-tls.astppbilling.org:7777 receiving invite from 117.247.91.162:40006 version: 1.10.5 -release-17-25569c1631 64bit
  4. 2021-07-29 07:17:10.129564 [DEBUG] sofia.c:10374 verifying acl "default" for ip/port 117.247.91.162:0.
  5. 2021-07-29 07:17:10.149578 [DEBUG] sofia.c:11477 Setting NAT mode based on via received
  6. 2021-07-29 07:17:10.149578 [DEBUG] sofia.c:7326 Channel sofia/default/505@test-tls.astppbilling.org:7777 entering state [received][100]
  7. 2021-07-29 07:17:10.149578 [DEBUG] sofia.c:7336 Remote SDP:
  8. v=0
  9. o=Z 0 0 IN IP4 117.247.91.162
  10. s=Z
  11. c=IN IP4 117.247.91.162
  12. t=0 0
  13. m=audio 8000 RTP/AVP 3 110 8 0 98 101
  14. a=rtpmap:110 speex/8000
  15. a=rtpmap:98 iLBC/8000
  16. a=fmtp:98 mode=20
  17. a=rtpmap:101 telephone-event/8000
  18. a=fmtp:101 0-15
  19.  
  20. 2021-07-29 07:17:10.149578 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMA:8:8000:20:64000:1]
  21. 2021-07-29 07:17:10.149578 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMU:0:8000:20:64000:1]
  22. 2021-07-29 07:17:10.149578 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [speex:110:8000:20:0:1]/[PCMA:8:8000:20:64000:1]
  23. 2021-07-29 07:17:10.149578 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [speex:110:8000:20:0:1]/[PCMU:0:8000:20:64000:1]
  24. 2021-07-29 07:17:10.149578 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  25. 2021-07-29 07:17:10.149578 [DEBUG] switch_core_media.c:5649 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  26. 2021-07-29 07:17:10.149578 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  27. 2021-07-29 07:17:10.149578 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  28. 2021-07-29 07:17:10.149578 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  29. 2021-07-29 07:17:10.149578 [DEBUG] switch_core_media.c:5649 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  30. 2021-07-29 07:17:10.149578 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [iLBC:98:8000:30:0:1]/[PCMA:8:8000:20:64000:1]
  31. 2021-07-29 07:17:10.149578 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [iLBC:98:8000:30:0:1]/[PCMU:0:8000:20:64000:1]
  32. 2021-07-29 07:17:10.149578 [DEBUG] switch_core_media.c:5510 Set telephone-event payload to 101@8000
  33. 2021-07-29 07:17:10.149578 [DEBUG] switch_core_media.c:3839 Set Codec sofia/default/505@test-tls.astppbilling.org:7777 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  34. 2021-07-29 07:17:10.149578 [DEBUG] switch_core_codec.c:111 sofia/default/505@test-tls.astppbilling.org:7777 Original read codec set to PCMA:8
  35. 2021-07-29 07:17:10.149578 [DEBUG] switch_core_media.c:5853 Set telephone-event payload to 101@8000
  36. 2021-07-29 07:17:10.149578 [DEBUG] switch_core_media.c:5911 sofia/default/505@test-tls.astppbilling.org:7777 Set 2833 dtmf send payload to 101 recv payload to 101
  37. 2021-07-29 07:17:10.149578 [DEBUG] sofia.c:7760 (sofia/default/505@test-tls.astppbilling.org:7777) State Change CS_NEW -> CS_INIT
  38. 2021-07-29 07:17:10.149578 [DEBUG] switch_core_state_machine.c:585 (sofia/default/505@test-tls.astppbilling.org:7777) Running State Change CS_INIT (Cur 1 Tot 8)
  39. 2021-07-29 07:17:10.149578 [DEBUG] switch_core_state_machine.c:628 (sofia/default/505@test-tls.astppbilling.org:7777) State INIT
  40. 2021-07-29 07:17:10.149578 [DEBUG] mod_sofia.c:93 sofia/default/505@test-tls.astppbilling.org:7777 SOFIA INIT
  41. 2021-07-29 07:17:10.149578 [DEBUG] switch_core_state_machine.c:40 sofia/default/505@test-tls.astppbilling.org:7777 Standard INIT
  42. 2021-07-29 07:17:10.149578 [DEBUG] switch_core_state_machine.c:48 (sofia/default/505@test-tls.astppbilling.org:7777) State Change CS_INIT -> CS_ROUTING
  43. 2021-07-29 07:17:10.149578 [DEBUG] switch_core_state_machine.c:628 (sofia/default/505@test-tls.astppbilling.org:7777) State INIT going to sleep
  44. 2021-07-29 07:17:10.149578 [DEBUG] switch_core_state_machine.c:585 (sofia/default/505@test-tls.astppbilling.org:7777) Running State Change CS_ROUTING (Cur 1 Tot 8)
  45. 2021-07-29 07:17:10.149578 [DEBUG] switch_channel.c:2332 (sofia/default/505@test-tls.astppbilling.org:7777) Callstate Change DOWN -> RINGING
  46. 2021-07-29 07:17:10.149578 [DEBUG] switch_core_state_machine.c:644 (sofia/default/505@test-tls.astppbilling.org:7777) State ROUTING
  47. 2021-07-29 07:17:10.149578 [DEBUG] mod_sofia.c:154 sofia/default/505@test-tls.astppbilling.org:7777 SOFIA ROUTING
  48. 2021-07-29 07:17:10.149578 [DEBUG] switch_core_state_machine.c:236 sofia/default/505@test-tls.astppbilling.org:7777 Standard ROUTING
  49. 2021-07-29 07:17:10.149578 [INFO] mod_dialplan_xml.c:637 Processing 505 <505>->12344 in context default
  50. 2021-07-29 07:17:10.269576 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  51. 2021-07-29 07:17:10.289560 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  52. 2021-07-29 07:17:10.309555 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [xml_handler] Params:
  53. Event-Name: REQUEST_PARAMS
  54. Core-UUID: aa5f78b3-2e05-4f6b-a835-2d410e4d0f4d
  55. FreeSWITCH-Hostname: ip-172-31-5-221
  56. FreeSWITCH-Switchname: ip-172-31-5-221
  57. FreeSWITCH-IPv4: 172.31.5.221
  58. FreeSWITCH-IPv6: %3A%3A1
  59. Event-Date-Local: 2021-07-29%2007%3A17%3A10
  60. Event-Date-GMT: Thu,%2029%20Jul%202021%2007%3A17%3A10%20GMT
  61. Event-Date-Timestamp: 1627543030149578
  62. Event-Calling-File: mod_dialplan_xml.c
  63. Event-Calling-Function: dialplan_xml_locate
  64. Event-Calling-Line-Number: 608
  65. Event-Sequence: 38394
  66. Channel-State: CS_ROUTING
  67. Channel-Call-State: RINGING
  68. Channel-State-Number: 2
  69. Channel-Name: sofia/default/505%40test-tls.astppbilling.org%3A7777
  70. Unique-ID: 1feeab23-ac71-47b5-8f50-c3faaffb8f64
  71. Call-Direction: inbound
  72. Presence-Call-Direction: inbound
  73. Channel-HIT-Dialplan: true
  74. Channel-Presence-ID: 505%40test-tls.astppbilling.org
  75. Channel-Call-UUID: 1feeab23-ac71-47b5-8f50-c3faaffb8f64
  76. Answer-State: ringing
  77. Channel-Read-Codec-Name: PCMA
  78. Channel-Read-Codec-Rate: 8000
  79. Channel-Read-Codec-Bit-Rate: 64000
  80. Channel-Write-Codec-Name: PCMA
  81. Channel-Write-Codec-Rate: 8000
  82. Channel-Write-Codec-Bit-Rate: 64000
  83. Caller-Direction: inbound
  84. Caller-Logical-Direction: inbound
  85. Caller-Username: 505
  86. Caller-Dialplan: XML
  87. Caller-Caller-ID-Name: 505
  88. Caller-Caller-ID-Number: 505
  89. Caller-Orig-Caller-ID-Name: 505
  90. Caller-Orig-Caller-ID-Number: 505
  91. Caller-Network-Addr: 117.247.91.162
  92. Caller-ANI: 505
  93. Caller-Destination-Number: 12344
  94. Caller-Unique-ID: 1feeab23-ac71-47b5-8f50-c3faaffb8f64
  95. Caller-Source: mod_sofia
  96. Caller-Context: default
  97. Caller-Channel-Name: sofia/default/505%40test-tls.astppbilling.org%3A7777
  98. Caller-Profile-Index: 1
  99. Caller-Profile-Created-Time: 1627543030129564
  100. Caller-Channel-Created-Time: 1627543030129564
  101. Caller-Channel-Answered-Time: 0
  102. Caller-Channel-Progress-Time: 0
  103. Caller-Channel-Progress-Media-Time: 0
  104. Caller-Channel-Hangup-Time: 0
  105. Caller-Channel-Transfer-Time: 0
  106. Caller-Channel-Resurrect-Time: 0
  107. Caller-Channel-Bridged-Time: 0
  108. Caller-Channel-Last-Hold: 0
  109. Caller-Channel-Hold-Accum: 0
  110. Caller-Screen-Bit: true
  111. Caller-Privacy-Hide-Name: false
  112. Caller-Privacy-Hide-Number: false
  113. variable_direction: inbound
  114. variable_uuid: 1feeab23-ac71-47b5-8f50-c3faaffb8f64
  115. variable_session_id: 8
  116. variable_sip_from_params: transport%3DTCP
  117. variable_sip_from_user: 505
  118. variable_sip_from_port: 7777
  119. variable_sip_from_uri: 505%40test-tls.astppbilling.org%3A7777
  120. variable_sip_from_host: test-tls.astppbilling.org
  121. variable_video_media_flow: disabled
  122. variable_text_media_flow: disabled
  123. variable_channel_name: sofia/default/505%40test-tls.astppbilling.org%3A7777
  124. variable_sip_call_id: ZWZhYTljOWVlMDNiNDdjYmEyMzJmYmUwNDBhNDY0ZTg.
  125. variable_sip_local_network_addr: 13.232.140.73
  126. variable_sip_network_ip: 117.247.91.162
  127. variable_sip_network_port: 40006
  128. variable_sip_invite_stamp: 1627543030129564
  129. variable_sip_received_ip: 117.247.91.162
  130. variable_sip_received_port: 40006
  131. variable_sip_via_protocol: tcp
  132. variable_sip_authorized: true
  133. variable_Event-Name: REQUEST_PARAMS
  134. variable_Core-UUID: aa5f78b3-2e05-4f6b-a835-2d410e4d0f4d
  135. variable_FreeSWITCH-Hostname: ip-172-31-5-221
  136. variable_FreeSWITCH-Switchname: ip-172-31-5-221
  137. variable_FreeSWITCH-IPv4: 172.31.5.221
  138. variable_FreeSWITCH-IPv6: %3A%3A1
  139. variable_Event-Date-Local: 2021-07-29%2007%3A17%3A10
  140. variable_Event-Date-GMT: Thu,%2029%20Jul%202021%2007%3A17%3A10%20GMT
  141. variable_Event-Date-Timestamp: 1627543030129564
  142. variable_Event-Calling-File: sofia.c
  143. variable_Event-Calling-Function: sofia_handle_sip_i_invite
  144. variable_Event-Calling-Line-Number: 10542
  145. variable_Event-Sequence: 38385
  146. variable_sip_number_alias: 505
  147. variable_sip_auth_username: 505
  148. variable_sip_auth_realm: test-tls.astppbilling.org
  149. variable_number_alias: 505
  150. variable_requested_user_name: 505
  151. variable_requested_domain_name: test-tls.astppbilling.org
  152. variable_user_context: default
  153. variable_sipcall: true
  154. variable_sip_user: 505
  155. variable_accountcode: 4585185001
  156. variable_user_name: 505
  157. variable_domain_name: test-tls.astppbilling.org
  158. variable_sip_from_user_stripped: 505
  159. variable_sip_from_tag: 9ebdfb57
  160. variable_sofia_profile_name: default
  161. variable_sofia_profile_url: sip%3Amod_sofia%4013.232.140.73%3A7777
  162. variable_recovery_profile_name: default
  163. variable_sip_full_via: SIP/2.0/TCP%20192.168.1.50%3A59931%3Bbranch%3Dz9hG4bK-d8754z-367a1707c349a899-1---d8754z-%3Breceived%3D117.247.91.162%3Brport%3D40006
  164. variable_sip_recover_via: SIP/2.0/TCP%20192.168.1.50%3A59931%3Bbranch%3Dz9hG4bK-d8754z-367a1707c349a899-1---d8754z-%3Breceived%3D117.247.91.162%3Brport%3D40006
  165. variable_sip_full_from: %3Csip%3A505%40test-tls.astppbilling.org%3A7777%3Btransport%3DTCP%3E%3Btag%3D9ebdfb57
  166. variable_sip_full_to: %3Csip%3A12344%40test-tls.astppbilling.org%3A7777%3Btransport%3DTCP%3E
  167. variable_sip_allow: INVITE,%20ACK,%20CANCEL,%20BYE,%20NOTIFY,%20REFER,%20MESSAGE,%20OPTIONS,%20INFO,%20SUBSCRIBE
  168. variable_sip_req_params: transport%3DTCP
  169. variable_sip_req_user: 12344
  170. variable_sip_req_port: 7777
  171. variable_sip_req_uri: 12344%40test-tls.astppbilling.org%3A7777
  172. variable_sip_req_host: test-tls.astppbilling.org
  173. variable_sip_to_params: transport%3DTCP
  174. variable_sip_to_user: 12344
  175. variable_sip_to_port: 7777
  176. variable_sip_to_uri: 12344%40test-tls.astppbilling.org%3A7777
  177. variable_sip_to_host: test-tls.astppbilling.org
  178. variable_sip_contact_params: transport%3DTCP
  179. variable_sip_contact_user: 505
  180. variable_sip_contact_port: 59931
  181. variable_sip_contact_uri: 505%40117.247.91.162%3A59931
  182. variable_sip_contact_host: 117.247.91.162
  183. variable_sip_user_agent: Z%203.3.25608%20r25552
  184. variable_sip_via_host: 192.168.1.50
  185. variable_sip_via_port: 59931
  186. variable_sip_via_rport: 40006
  187. variable_max_forwards: 70
  188. variable_presence_id: 505%40test-tls.astppbilling.org
  189. variable_sip_nat_detected: true
  190. variable_switch_r_sdp: v%3D0%0D%0Ao%3DZ%200%200%20IN%20IP4%20117.247.91.162%0D%0As%3DZ%0D%0Ac%3DIN%20IP4%20117.247.91.162%0D%0At%3D0%200%0D%0Am%3Daudio%208000%20RTP/AVP%203%20110%208%200%2098%20101%0D%0Aa%3Drtpmap%3A110%20speex/8000%0D%0Aa%3Drtpmap%3A98%20iLBC/8000%0D%0Aa%3Dfmtp%3A98%20mode%3D20%0D%0Aa%3Drtpmap%3A101%20telephone-event/8000%0D%0Aa%3Dfmtp%3A101%200-15%0D%0A
  191. variable_ep_codec_string: CORE_PCM_MODULE.PCMA%408000h%4020i%4064000b,CORE_PCM_MODULE.PCMU%408000h%4020i%4064000b
  192. variable_rtp_use_codec_string: PCMA,PCMU
  193. variable_remote_video_media_flow: inactive
  194. variable_remote_text_media_flow: inactive
  195. variable_remote_audio_media_flow: sendrecv
  196. variable_audio_media_flow: sendrecv
  197. variable_remote_media_ip: 117.247.91.162
  198. variable_remote_media_port: 8000
  199. variable_rtp_audio_recv_pt: 8
  200. variable_rtp_use_codec_name: PCMA
  201. variable_rtp_use_codec_rate: 8000
  202. variable_rtp_use_codec_ptime: 20
  203. variable_rtp_use_codec_channels: 1
  204. variable_rtp_last_audio_codec_string: PCMA%408000h%4020i%401c
  205. variable_read_codec: PCMA
  206. variable_original_read_codec: PCMA
  207. variable_read_rate: 8000
  208. variable_original_read_rate: 8000
  209. variable_write_codec: PCMA
  210. variable_write_rate: 8000
  211. variable_dtmf_type: rfc2833
  212. variable_endpoint_disposition: RECEIVED
  213. variable_call_uuid: 1feeab23-ac71-47b5-8f50-c3faaffb8f64
  214. Hunt-Direction: inbound
  215. Hunt-Logical-Direction: inbound
  216. Hunt-Username: 505
  217. Hunt-Dialplan: XML
  218. Hunt-Caller-ID-Name: 505
  219. Hunt-Caller-ID-Number: 505
  220. Hunt-Orig-Caller-ID-Name: 505
  221. Hunt-Orig-Caller-ID-Number: 505
  222. Hunt-Network-Addr: 117.247.91.162
  223. Hunt-ANI: 505
  224. Hunt-Destination-Number: 12344
  225. Hunt-Unique-ID: 1feeab23-ac71-47b5-8f50-c3faaffb8f64
  226. Hunt-Source: mod_sofia
  227. Hunt-Context: default
  228. Hunt-Channel-Name: sofia/default/505%40test-tls.astppbilling.org%3A7777
  229. Hunt-Profile-Index: 1
  230. Hunt-Profile-Created-Time: 1627543030129564
  231. Hunt-Channel-Created-Time: 1627543030129564
  232. Hunt-Channel-Answered-Time: 0
  233. Hunt-Channel-Progress-Time: 0
  234. Hunt-Channel-Progress-Media-Time: 0
  235. Hunt-Channel-Hangup-Time: 0
  236. Hunt-Channel-Transfer-Time: 0
  237. Hunt-Channel-Resurrect-Time: 0
  238. Hunt-Channel-Bridged-Time: 0
  239. Hunt-Channel-Last-Hold: 0
  240. Hunt-Channel-Hold-Accum: 0
  241. Hunt-Screen-Bit: true
  242. Hunt-Privacy-Hide-Name: false
  243. Hunt-Privacy-Hide-Number: false
  244.  
  245.  
  246. 2021-07-29 07:17:10.309555 [INFO] switch_cpp.cpp:1447 [ASTPP] [xml_REQUEST] tag_name:
  247. 2021-07-29 07:17:10.309555 [INFO] switch_cpp.cpp:1447 [ASTPP] [xml_REQUEST] key_name:
  248. 2021-07-29 07:17:10.309555 [INFO] switch_cpp.cpp:1447 [ASTPP] [xml_REQUEST] section: dialplan
  249. 2021-07-29 07:17:10.309555 [INFO] switch_cpp.cpp:1447 [ASTPP] [xml_REQUEST] key_value:
  250. 2021-07-29 07:17:10.309555 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] blind_flag: 0
  251. 2021-07-29 07:17:10.309555 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Dialed number : 12344
  252. 2021-07-29 07:17:10.309555 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '12344' limit 1
  253. 2021-07-29 07:17:10.309555 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '12344' AND status=0 limit 1
  254. 2021-07-29 07:17:10.309555 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [Functions] [GET_queue_INFO] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '12344' and status=0 LIMIT 1
  255. 2021-07-29 07:17:10.309555 [WARNING] switch_cpp.cpp:1447 [ASTPP] [FAXER] in custom Caller ID
  256. 2021-07-29 07:17:10.309555 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Caller Id name / number  : 505 / 505
  257. 2021-07-29 07:17:10.309555 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="12344" LIMIT 1
  258. 2021-07-29 07:17:10.309555 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT sip_devices.id as sip_id,sip_devices.username as username,accounts.number as accountcode,sip_devices.accountid as accountid,accounts.did_cid_translation as did_cid_translation FROM sip_devices as sip_devices,accounts as  accounts ,domains WHERE accounts.id=domains.accountid AND accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="12344"  AND domains.domain="any" limit 1
  259. 2021-07-29 07:17:10.309555 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Call direction : outbound
  260. 2021-07-29 07:17:10.309555 [INFO] switch_cpp.cpp:1447 [ASTPP] [Accountcode : 4585185001]
  261. 2021-07-29 07:17:10.309555 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "4585185001" AND deleted = 0 limit 1
  262. 2021-07-29 07:17:10.329558 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^12344.*' OR blocked_patterns = '^1234.*' OR blocked_patterns = '^123.*' OR blocked_patterns = '^12.*' OR blocked_patterns = '^1.*' OR blocked_patterns ='--') AND accountid = 7 limit 1
  263. 2021-07-29 07:17:10.329558 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_SPEEDDIAL] Query :SELECT A.number FROM speed_dial as A,accounts as B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.speed_num ="12344" AND A.accountid = '7' limit 1
  264. 2021-07-29 07:17:10.329558 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 12344
  265. 2021-07-29 07:17:10.329558 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="12344" LIMIT 1
  266. 2021-07-29 07:17:10.329558 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT sip_devices.id as sip_id,sip_devices.username as username,accounts.number as accountcode,sip_devices.accountid as accountid,accounts.did_cid_translation as did_cid_translation FROM sip_devices as sip_devices,accounts as  accounts ,domains WHERE accounts.id=domains.accountid AND accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="12344"  AND domains.domain="any" limit 1
  267. 2021-07-29 07:17:10.329558 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] New Call direction : outbound
  268. 2021-07-29 07:17:10.329558 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="12344" AND (accountid = 0 OR status = 1) LIMIT 1
  269. 2021-07-29 07:17:10.329558 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PACKAGE_INFO] Query :SELECT *,P.id as package_id,P.product_id as product_id FROM packages_view as P inner join package_patterns as PKGPTR on P.product_id = PKGPTR.product_id WHERE (patterns = '^12344.*' OR patterns = '^1234.*' OR patterns = '^123.*' OR patterns = '^12.*' OR patterns = '^1.*' OR patterns ='--') AND accountid = 7 ORDER BY LENGTH(PKGPTR.patterns) DESC
  270. 2021-07-29 07:17:10.329558 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '12344' OR number = '1234' OR number = '123' OR number = '12' OR number = '1' OR number ='--') OR (number = '12344*' OR number = '1234*' OR number = '123*' OR number = '12*' OR number = '1*' OR number ='--') OR (number = '505' OR number = '50' OR number = '5' OR number ='--') OR (number = '505*' OR number = '50*' OR number = '5*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC
  271. 2021-07-29 07:17:10.349556 [DEBUG] switch_cpp.cpp:1447 [ASTPP] Call Barring Status : -1
  272. 2021-07-29 07:17:10.349556 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '12344' OR routing_prefix = '1234' OR routing_prefix = '123' OR routing_prefix = '12' OR routing_prefix = '1' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1
  273. 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] =============== Account Information ===================
  274. 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] User id : 7
  275. 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] Account code : 4585185001
  276. 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] Balance : 46.5043
  277. 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  278. 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] Ratecard id : 1
  279. 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] CID Pool : 0
  280. 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] ========================================================
  281. 2021-07-29 07:17:10.349556 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0
  282. 2021-07-29 07:17:10.349556 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_RATES] call_direction :outbound
  283. 2021-07-29 07:17:10.349556 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0
  284. 2021-07-29 07:17:10.349556 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^12344.*' OR pattern = '^1234.*' OR pattern = '^123.*' OR pattern = '^12.*' OR pattern = '^1.*' OR pattern ='--') AND status = 0 AND (pricelist_id = 1 OR accountid=7)  ORDER BY accountid DESC,LENGTH(pattern) DESC,cost DESC LIMIT 1
  285. 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] call_direction:::::: outbound
  286. 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] =============== Rates Information ===================
  287. 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] ID : 13
  288. 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] Connectcost : 0.00000
  289. 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] Includedseconds : 0
  290. 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] Cost : 0.02000
  291. 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] comment :
  292. 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] Country Id : 0
  293. 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] Accid : 7
  294. 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] Trunk ID: 1
  295. 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] Routing type:
  296. 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] ================================================================
  297. 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] Your46.5043 balance Accountid 7 !!!
  298. 2021-07-29 07:17:10.349556 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] Limiting call to config max length 100 mins!
  299. 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] Call Max length duration : 100 minutes
  300. 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] [DIALPLAN] User Rate ID : 13
  301. 2021-07-29 07:17:10.349556 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_CARRIER_RATES]123131 Query rate_carrier_id  :1
  302. 2021-07-29 07:17:10.349556 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_CARRIER_RATES] Query :SELECT TK.id as trunk_id,TK.name as trunk_name,TK.codec,GW.name as path,GW.dialplan_variable,TK.provider_id,TR.init_inc,TK.status,TK.maxchannels,TK.cps,TK.leg_timeout,TR.pattern,TR.id as outbound_route_id,TR.connectcost,TR.comment,TR.includedseconds,TR.cost,TR.inc,TR.prepend,TR.strip,(select name from gateways where status=0 AND id = TK.failover_gateway_id) as path1,(select name from gateways where status=0 AND id = TK.failover_gateway_id1) as path2 FROM outbound_routes as TR,trunks as TK,gateways as GW WHERE GW.status=0 AND GW.id= TK.gateway_id AND TK.status=0 AND TK.id= TR.trunk_id AND (pattern = '^12344.*' OR pattern = '^1234.*' OR pattern = '^123.*' OR pattern = '^12.*' OR pattern = '^1.*' OR pattern ='--') AND TR.status = 0  AND TR.trunk_id IN (1)  ORDER by FIELD(TR.trunk_id,1),LENGTH (pattern) DESC,TR.cost ASC,TR.precedence ASC
  303. 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] =============== Termination Rates Information ===================
  304. 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] ID : 19
  305. 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] Code : ^12344.*
  306. 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] Destination :
  307. 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] Connectcost : 0.00000
  308. 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] Free Seconds : 0
  309. 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] Prefix : ^12344.*
  310. 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] Strip :
  311. 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] Prepend :
  312. 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] Carrier id : 1
  313. 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] carrier_name : YourProvider
  314. 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] dialplan_variable :
  315. 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] Failover gateway :
  316. 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] Vendor id : 3
  317. 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] Max channels : 0
  318. 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] Trunk Name : YourTrunk
  319. 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] ========================END OF TERMINATION RATES=======================
  320. 2021-07-29 07:17:10.349556 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 7 AND status=0 LIMIT 1
  321. 2021-07-29 07:17:10.369557 [INFO] switch_cpp.cpp:1447 [ASTPP] maxlength::::::::: 100
  322. 2021-07-29 07:17:10.369557 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0
  323. 2021-07-29 07:17:10.369557 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,out_caller_id_terminate,number_terminate,dst_base_cid FROM localization WHERE id=(SELECT localization_id from accounts where id = 3) AND status=0 limit 1
  324. 2021-07-29 07:17:10.369557 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Generated XML:
  325. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  326. <document type="freeswitch/xml">
  327. <section name="dialplan" description="ASTPP Dialplan">
  328. <action application="set" data="timezone=America/New_York" inline="true"/>
  329. <context name="default">
  330. <extension name="12344">
  331. <condition field="destination_number" expression="12344">
  332. <action application="set" data="effective_destination_number=12344"/>
  333. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
  334. <action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>
  335. <action application="set" data="callstart=2021-07-29 07:17:10"/>
  336. <action application="set" data="hangup_after_bridge=true"/>
  337. <action application="set" data="continue_on_fail=TRUE"/>
  338. <action application="set" data="account_id=7"/>
  339. <action application="set" data="parent_id=0"/>
  340. <action application="set" data="entity_id=0"/>
  341. <action application="set" data="call_processed=internal"/>
  342. <action application="set" data="call_direction=outbound"/>
  343. <action application="set" data="accountname=default"/>
  344. <action application="set" data="filename1=astpp.pbx.lua"/>
  345. <action application="set" data="origination_rates=ID:13|CODE:^12344.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.02000|INC:60|INITIALBLOCK:60|RATEGROUP:1|MARKUP:0|CI:0|ACCID:7"/>
  346. <action application="set" data="original_caller_id_name=505"/>
  347. <action application="set" data="original_caller_id_number=505"/>
  348.  
  349. <action application="set" data="effective_caller_id_name=505"/>
  350. <action application="set" data="effective_caller_id_number=505"/>
  351. <action application="set" data="calltype=STANDARD"/>
  352. <action application="set" data="termination_rates=ID:19|CODE:^12344.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.01000|INC:0|INITIALBLOCK:0|TRUNK:1|PROVIDER:3"/>
  353. <action application="set" data="trunk_id=1"/>
  354. <action application="set" data="provider_id=3"/>
  355. <action application="set" data="rate_flag=0"/>
  356. <action application="set" data="force_trunk_flag=13"/>
  357. <action application="export" data="presence_data=trunk_id=1"/>
  358. <action application="set" data="intcall=0"/>
  359. <action application="export" data="presence_data=x|||sahil(4585185001)|||^12344.* //  // 0.02000 // trunk_id=1|||YourTrunk // ^12344.* //  // 0.01000 // trunk_id=1|||STD|||117.247.91.162"/>
  360. <action application="bridge" data="[leg_timeout=30,absolute_codec_string=^^:PCMA:G729:PCMA]sofia/gateway/YourProvider/12344"/>
  361. </condition>
  362. </extension>
  363. </context>
  364. </section>
  365. </document>
  366. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 parsing [default->12344] continue=false
  367. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Regex (PASS) [12344] destination_number(12344) =~ /12344/ break=on-false
  368. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(effective_destination_number=12344)
  369. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(bridge_pre_execute_bleg_app=sched_hangup)
  370. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  371. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(callstart=2021-07-29 07:17:10)
  372. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(hangup_after_bridge=true)
  373. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(continue_on_fail=TRUE)
  374. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(account_id=7)
  375. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(parent_id=0)
  376. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(entity_id=0)
  377. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(call_processed=internal)
  378. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(call_direction=outbound)
  379. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(accountname=default)
  380. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(filename1=astpp.pbx.lua)
  381. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(origination_rates=ID:13|CODE:^12344.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.02000|INC:60|INITIALBLOCK:60|RATEGROUP:1|MARKUP:0|CI:0|ACCID:7)
  382. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(original_caller_id_name=505)
  383. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(original_caller_id_number=505)
  384. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(effective_caller_id_name=505)
  385. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(effective_caller_id_number=505)
  386. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(calltype=STANDARD)
  387. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(termination_rates=ID:19|CODE:^12344.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.01000|INC:0|INITIALBLOCK:0|TRUNK:1|PROVIDER:3)
  388. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(trunk_id=1)
  389. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(provider_id=3)
  390. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(rate_flag=0)
  391. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(force_trunk_flag=13)
  392. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action export(presence_data=trunk_id=1)
  393. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(intcall=0)
  394. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action export(presence_data=x|||sahil(4585185001)|||^12344.* //  // 0.02000 // trunk_id=1|||YourTrunk // ^12344.* //  // 0.01000 // trunk_id=1|||STD|||117.247.91.162)
  395. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action bridge([leg_timeout=30,absolute_codec_string=^^:PCMA:G729:PCMA]sofia/gateway/YourProvider/12344)
  396. 2021-07-29 07:17:10.369557 [DEBUG] switch_core_state_machine.c:287 (sofia/default/505@test-tls.astppbilling.org:7777) State Change CS_ROUTING -> CS_EXECUTE
  397. 2021-07-29 07:17:10.369557 [DEBUG] switch_core_state_machine.c:644 (sofia/default/505@test-tls.astppbilling.org:7777) State ROUTING going to sleep
  398. 2021-07-29 07:17:10.369557 [DEBUG] switch_core_state_machine.c:585 (sofia/default/505@test-tls.astppbilling.org:7777) Running State Change CS_EXECUTE (Cur 1 Tot 8)
  399. 2021-07-29 07:17:10.369557 [DEBUG] switch_core_state_machine.c:651 (sofia/default/505@test-tls.astppbilling.org:7777) State EXECUTE
  400. 2021-07-29 07:17:10.369557 [DEBUG] mod_sofia.c:209 sofia/default/505@test-tls.astppbilling.org:7777 SOFIA EXECUTE
  401. 2021-07-29 07:17:10.369557 [DEBUG] switch_core_state_machine.c:329 sofia/default/505@test-tls.astppbilling.org:7777 Standard EXECUTE
  402. EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(effective_destination_number=12344)
  403. 2021-07-29 07:17:10.369557 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [effective_destination_number]=[12344]
  404. EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(bridge_pre_execute_bleg_app=sched_hangup)
  405. 2021-07-29 07:17:10.369557 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [bridge_pre_execute_bleg_app]=[sched_hangup]
  406. EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  407. 2021-07-29 07:17:10.369557 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [bridge_pre_execute_bleg_data]=[+6000 normal_clearing]
  408. EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(callstart=2021-07-29 07:17:10)
  409. 2021-07-29 07:17:10.369557 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [callstart]=[2021-07-29 07:17:10]
  410. EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(hangup_after_bridge=true)
  411. 2021-07-29 07:17:10.369557 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [hangup_after_bridge]=[true]
  412. EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(continue_on_fail=TRUE)
  413. 2021-07-29 07:17:10.369557 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [continue_on_fail]=[TRUE]
  414. EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(account_id=7)
  415. 2021-07-29 07:17:10.369557 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [account_id]=[7]
  416. EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(parent_id=0)
  417. 2021-07-29 07:17:10.369557 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [parent_id]=[0]
  418. EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(entity_id=0)
  419. 2021-07-29 07:17:10.369557 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [entity_id]=[0]
  420. EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(call_processed=internal)
  421. 2021-07-29 07:17:10.369557 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [call_processed]=[internal]
  422. EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(call_direction=outbound)
  423. 2021-07-29 07:17:10.369557 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [call_direction]=[outbound]
  424. EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(accountname=default)
  425. 2021-07-29 07:17:10.369557 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [accountname]=[default]
  426. EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(filename1=astpp.pbx.lua)
  427. 2021-07-29 07:17:10.369557 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [filename1]=[astpp.pbx.lua]
  428. EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(origination_rates=ID:13|CODE:^12344.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.02000|INC:60|INITIALBLOCK:60|RATEGROUP:1|MARKUP:0|CI:0|ACCID:7)
  429. 2021-07-29 07:17:10.369557 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [origination_rates]=[ID:13|CODE:^12344.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.02000|INC:60|INITIALBLOCK:60|RATEGROUP:1|MARKUP:0|CI:0|ACCID:7]
  430. EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(original_caller_id_name=505)
  431. 2021-07-29 07:17:10.369557 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [original_caller_id_name]=[505]
  432. EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(original_caller_id_number=505)
  433. 2021-07-29 07:17:10.369557 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [original_caller_id_number]=[505]
  434. EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(effective_caller_id_name=505)
  435. 2021-07-29 07:17:10.369557 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [effective_caller_id_name]=[505]
  436. EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(effective_caller_id_number=505)
  437. 2021-07-29 07:17:10.369557 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [effective_caller_id_number]=[505]
  438. EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(calltype=STANDARD)
  439. 2021-07-29 07:17:10.369557 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [calltype]=[STANDARD]
  440. EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(termination_rates=ID:19|CODE:^12344.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.01000|INC:0|INITIALBLOCK:0|TRUNK:1|PROVIDER:3)
  441. 2021-07-29 07:17:10.369557 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [termination_rates]=[ID:19|CODE:^12344.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.01000|INC:0|INITIALBLOCK:0|TRUNK:1|PROVIDER:3]
  442. EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(trunk_id=1)
  443. 2021-07-29 07:17:10.369557 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [trunk_id]=[1]
  444. EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(provider_id=3)
  445. 2021-07-29 07:17:10.369557 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [provider_id]=[3]
  446. EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(rate_flag=0)
  447. 2021-07-29 07:17:10.389553 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [rate_flag]=[0]
  448. EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(force_trunk_flag=13)
  449. 2021-07-29 07:17:10.389553 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [force_trunk_flag]=[13]
  450. EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 export(presence_data=trunk_id=1)
  451. 2021-07-29 07:17:10.389553 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [presence_data]=[trunk_id=1]
  452. EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(intcall=0)
  453. 2021-07-29 07:17:10.389553 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [intcall]=[0]
  454. EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 export(presence_data=x|||sahil(4585185001)|||^12344.* //  // 0.02000 // trunk_id=1|||YourTrunk // ^12344.* //  // 0.01000 // trunk_id=1|||STD|||117.247.91.162)
  455. 2021-07-29 07:17:10.389553 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [presence_data]=[x|||sahil(4585185001)|||^12344.* //  // 0.02000 // trunk_id=1|||YourTrunk // ^12344.* //  // 0.01000 // trunk_id=1|||STD|||117.247.91.162]
  456. EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 bridge([leg_timeout=30,absolute_codec_string=^^:PCMA:G729:PCMA]sofia/gateway/YourProvider/12344)
  457. 2021-07-29 07:17:10.389553 [DEBUG] switch_channel.c:1264 sofia/default/505@test-tls.astppbilling.org:7777 EXPORTING[export_vars] [presence_data]=[x|||sahil(4585185001)|||^12344.* //  // 0.02000 // trunk_id=1|||YourTrunk // ^12344.* //  // 0.01000 // trunk_id=1|||STD|||117.247.91.162] to event
  458. 2021-07-29 07:17:10.389553 [DEBUG] switch_channel.c:1264 sofia/default/505@test-tls.astppbilling.org:7777 EXPORTING[export_vars] [presence_data]=[x|||sahil(4585185001)|||^12344.* //  // 0.02000 // trunk_id=1|||YourTrunk // ^12344.* //  // 0.01000 // trunk_id=1|||STD|||117.247.91.162] to event
  459. 2021-07-29 07:17:10.389553 [DEBUG] switch_ivr_originate.c:2242 Parsing global variables
  460. 2021-07-29 07:17:10.389553 [DEBUG] switch_ivr_originate.c:2804 Parsing session specific variables
  461. 2021-07-29 07:17:10.389553 [NOTICE] switch_channel.c:1118 New Channel sofia/default/12344 [c50ef52d-a8eb-4604-a984-dd1f9c1e4aa1]
  462. 2021-07-29 07:17:10.389553 [DEBUG] mod_sofia.c:5089 (sofia/default/12344) State Change CS_NEW -> CS_INIT
  463. 2021-07-29 07:17:10.389553 [DEBUG] switch_ivr_originate.c:3111 sofia/default/12344 Setting leg timeout to 30
  464. 2021-07-29 07:17:10.389553 [DEBUG] switch_core_state_machine.c:585 (sofia/default/12344) Running State Change CS_INIT (Cur 2 Tot 9)
  465. 2021-07-29 07:17:10.389553 [DEBUG] switch_core_state_machine.c:628 (sofia/default/12344) State INIT
  466. 2021-07-29 07:17:10.389553 [DEBUG] mod_sofia.c:93 sofia/default/12344 SOFIA INIT
  467. 2021-07-29 07:17:10.389553 [DEBUG] sofia_glue.c:1618 sofia/default/12344 sending invite version: 1.10.5 -release-17-25569c1631 64bit
  468. Local SDP:
  469. v=0
  470. o=FreeSWITCH 1627519296 1627519297 IN IP4 13.232.140.73
  471. s=FreeSWITCH
  472. c=IN IP4 13.232.140.73
  473. t=0 0
  474. m=audio 23734 RTP/AVP 8 18 101
  475. a=rtpmap:8 PCMA/8000
  476. a=rtpmap:18 G729/8000
  477. a=rtpmap:101 telephone-event/8000
  478. a=fmtp:101 0-16
  479. a=ptime:20
  480. a=sendrecv
  481.  
  482. 2021-07-29 07:17:10.389553 [DEBUG] switch_core_state_machine.c:40 sofia/default/12344 Standard INIT
  483. 2021-07-29 07:17:10.389553 [DEBUG] switch_core_state_machine.c:48 (sofia/default/12344) State Change CS_INIT -> CS_ROUTING
  484. 2021-07-29 07:17:10.389553 [DEBUG] switch_core_state_machine.c:628 (sofia/default/12344) State INIT going to sleep
  485. 2021-07-29 07:17:10.389553 [DEBUG] switch_core_state_machine.c:585 (sofia/default/12344) Running State Change CS_ROUTING (Cur 2 Tot 9)
  486. 2021-07-29 07:17:10.389553 [DEBUG] sofia.c:7326 Channel sofia/default/12344 entering state [calling][0]
  487. 2021-07-29 07:17:10.389553 [DEBUG] switch_core_state_machine.c:644 (sofia/default/12344) State ROUTING
  488. 2021-07-29 07:17:10.389553 [DEBUG] mod_sofia.c:154 sofia/default/12344 SOFIA ROUTING
  489. 2021-07-29 07:17:10.389553 [DEBUG] switch_ivr_originate.c:67 (sofia/default/12344) State Change CS_ROUTING -> CS_CONSUME_MEDIA
  490. 2021-07-29 07:17:10.389553 [DEBUG] switch_core_state_machine.c:644 (sofia/default/12344) State ROUTING going to sleep
  491. 2021-07-29 07:17:10.389553 [DEBUG] switch_core_state_machine.c:585 (sofia/default/12344) Running State Change CS_CONSUME_MEDIA (Cur 2 Tot 9)
  492. 2021-07-29 07:17:10.389553 [DEBUG] switch_core_state_machine.c:663 (sofia/default/12344) State CONSUME_MEDIA
  493. 2021-07-29 07:17:10.389553 [DEBUG] switch_core_state_machine.c:663 (sofia/default/12344) State CONSUME_MEDIA going to sleep
  494. 2021-07-29 07:17:10.689667 [DEBUG] sofia.c:7326 Channel sofia/default/12344 entering state [completing][200]
  495. 2021-07-29 07:17:10.689667 [DEBUG] sofia.c:7336 Remote SDP:
  496. v=0
  497. o=root 1498285237 1498285237 IN IP4 159.203.131.36
  498. s=Asterisk PBX 16.4.0
  499. c=IN IP4 159.203.131.36
  500. t=0 0
  501. m=audio 11326 RTP/AVP 8 101
  502. a=rtpmap:8 PCMA/8000
  503. a=rtpmap:101 telephone-event/8000
  504. a=fmtp:101 0-16
  505. a=maxptime:150
  506.  
  507. 2021-07-29 07:17:10.689667 [DEBUG] sofia.c:7326 Channel sofia/default/12344 entering state [ready][200]
  508. 2021-07-29 07:17:10.689667 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:150:64000:1]/[PCMA:8:8000:20:64000:1]
  509. 2021-07-29 07:17:10.689667 [DEBUG] switch_core_media.c:5649 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  510. 2021-07-29 07:17:10.689667 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:150:64000:1]/[G729:18:8000:20:8000:1]
  511. 2021-07-29 07:17:10.689667 [DEBUG] switch_core_media.c:5510 Set telephone-event payload to 101@8000
  512. 2021-07-29 07:17:10.689667 [DEBUG] switch_core_media.c:3839 Set Codec sofia/default/12344 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  513. 2021-07-29 07:17:10.689667 [DEBUG] switch_core_codec.c:111 sofia/default/12344 Original read codec set to PCMA:8
  514. 2021-07-29 07:17:10.689667 [DEBUG] switch_core_media.c:5853 Set telephone-event payload to 101@8000
  515. 2021-07-29 07:17:10.689667 [DEBUG] switch_core_media.c:5911 sofia/default/12344 Set 2833 dtmf send payload to 101 recv payload to 101
  516. 2021-07-29 07:17:10.689667 [DEBUG] switch_core_media.c:8663 AUDIO RTP [sofia/default/12344] 172.31.5.221 port 23734 -> 159.203.131.36 port 11326 codec: 8 ms: 20
  517. 2021-07-29 07:17:10.689667 [DEBUG] switch_rtp.c:4450 Starting timer [soft] 160 bytes per 20ms
  518. 2021-07-29 07:17:10.689667 [DEBUG] switch_core_media.c:8977 sofia/default/12344 Set 2833 dtmf send payload to 101
  519. 2021-07-29 07:17:10.689667 [DEBUG] switch_core_media.c:8984 sofia/default/12344 Set 2833 dtmf receive payload to 101
  520. 2021-07-29 07:17:10.689667 [DEBUG] switch_core_media.c:9007 sofia/default/12344 Set rtp dtmf delay to 40
  521. 2021-07-29 07:17:10.689667 [NOTICE] sofia.c:8504 Channel [sofia/default/12344] has been answered
  522. 2021-07-29 07:17:10.689667 [DEBUG] switch_channel.c:3865 (sofia/default/12344) Callstate Change DOWN -> ACTIVE
  523. 2021-07-29 07:17:10.689667 [DEBUG] switch_core_media.c:8663 AUDIO RTP [sofia/default/505@test-tls.astppbilling.org:7777] 172.31.5.221 port 25910 -> 117.247.91.162 port 8000 codec: 8 ms: 20
  524. 2021-07-29 07:17:10.689667 [DEBUG] switch_rtp.c:4450 Starting timer [soft] 160 bytes per 20ms
  525. 2021-07-29 07:17:10.689667 [DEBUG] switch_core_media.c:8977 sofia/default/505@test-tls.astppbilling.org:7777 Set 2833 dtmf send payload to 101
  526. 2021-07-29 07:17:10.689667 [DEBUG] switch_core_media.c:8984 sofia/default/505@test-tls.astppbilling.org:7777 Set 2833 dtmf receive payload to 101
  527. 2021-07-29 07:17:10.689667 [DEBUG] switch_core_media.c:9007 sofia/default/505@test-tls.astppbilling.org:7777 Set rtp dtmf delay to 40
  528. 2021-07-29 07:17:10.689667 [DEBUG] mod_sofia.c:898 Local SDP sofia/default/505@test-tls.astppbilling.org:7777:
  529. v=0
  530. o=FreeSWITCH 1627517120 1627517121 IN IP4 13.232.140.73
  531. s=FreeSWITCH
  532. c=IN IP4 13.232.140.73
  533. t=0 0
  534. m=audio 25910 RTP/AVP 8 101
  535. a=rtpmap:8 PCMA/8000
  536. a=rtpmap:101 telephone-event/8000
  537. a=fmtp:101 0-16
  538. a=ptime:20
  539. a=sendrecv
  540.  
  541. 2021-07-29 07:17:10.689667 [DEBUG] sofia.c:7326 Channel sofia/default/505@test-tls.astppbilling.org:7777 entering state [completed][200]
  542. 2021-07-29 07:17:10.689667 [NOTICE] switch_ivr_originate.c:3794 Channel [sofia/default/505@test-tls.astppbilling.org:7777] has been answered
  543. 2021-07-29 07:17:10.729555 [DEBUG] switch_channel.c:3865 (sofia/default/505@test-tls.astppbilling.org:7777) Callstate Change RINGING -> ACTIVE
  544. 2021-07-29 07:17:10.729555 [DEBUG] switch_ivr_originate.c:3852 Originate Resulted in Success: [sofia/default/12344]
  545. 2021-07-29 07:17:10.729555 [DEBUG] switch_ivr_bridge.c:1793 (sofia/default/12344) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA
  546. 2021-07-29 07:17:10.729555 [DEBUG] switch_core_state_machine.c:585 (sofia/default/12344) Running State Change CS_EXCHANGE_MEDIA (Cur 2 Tot 9)
  547. 2021-07-29 07:17:10.729555 [DEBUG] switch_core_state_machine.c:654 (sofia/default/12344) State EXCHANGE_MEDIA
  548. 2021-07-29 07:17:10.729555 [DEBUG] mod_sofia.c:656 SOFIA EXCHANGE_MEDIA
  549. 2021-07-29 07:17:10.809576 [DEBUG] sofia.c:7326 Channel sofia/default/505@test-tls.astppbilling.org:7777 entering state [ready][200]
  550. 2021-07-29 07:17:10.829557 [DEBUG] switch_rtp.c:7759 Correct audio ip/port confirmed.
  551. 2021-07-29 07:17:10.909574 [DEBUG] switch_ivr_bridge.c:655 sofia/default/12344 Bridge execute app sched_hangup(+6000 normal_clearing)
  552. 2021-07-29 07:17:10.929581 [DEBUG] switch_ivr.c:632 sofia/default/12344 Command Execute [depth=0] sched_hangup(+6000 normal_clearing)
  553. EXECUTE [depth=0] sofia/default/12344 sched_hangup(+6000 normal_clearing)
  554. 2021-07-29 07:17:10.929581 [DEBUG] switch_scheduler.c:252 Added task 4 switch_ivr_schedule_hangup (c50ef52d-a8eb-4604-a984-dd1f9c1e4aa1) to run at 1627549030
  555. 2021-07-29 07:17:11.049579 [DEBUG] switch_rtp.c:7759 Correct audio ip/port confirmed.
  556. 2021-07-29 07:17:13.189578 [NOTICE] sofia.c:1089 Hangup sofia/default/505@test-tls.astppbilling.org:7777 [CS_EXECUTE] [NORMAL_CLEARING]
  557. 2021-07-29 07:17:13.189578 [DEBUG] switch_ivr_bridge.c:912 BRIDGE THREAD DONE [sofia/default/505@test-tls.astppbilling.org:7777]
  558. 2021-07-29 07:17:13.209557 [DEBUG] switch_ivr_bridge.c:820 sofia/default/505@test-tls.astppbilling.org:7777 ending bridge by request from write function
  559. 2021-07-29 07:17:13.209557 [DEBUG] switch_ivr_bridge.c:912 BRIDGE THREAD DONE [sofia/default/12344]
  560. 2021-07-29 07:17:13.209557 [NOTICE] switch_ivr_bridge.c:1029 Hangup sofia/default/12344 [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]
  561. 2021-07-29 07:17:13.209557 [DEBUG] switch_core_state_machine.c:654 (sofia/default/12344) State EXCHANGE_MEDIA going to sleep
  562. 2021-07-29 07:17:13.209557 [DEBUG] switch_core_state_machine.c:585 (sofia/default/12344) Running State Change CS_HANGUP (Cur 2 Tot 9)
  563. 2021-07-29 07:17:13.209557 [DEBUG] switch_core_state_machine.c:848 (sofia/default/12344) Callstate Change ACTIVE -> HANGUP
  564. 2021-07-29 07:17:13.209557 [DEBUG] switch_core_state_machine.c:850 (sofia/default/12344) State HANGUP
  565. 2021-07-29 07:17:13.209557 [DEBUG] mod_sofia.c:447 sofia/default/12344 Overriding SIP cause 480 with 200 from the other leg
  566. 2021-07-29 07:17:13.209557 [DEBUG] mod_sofia.c:453 Channel sofia/default/12344 hanging up, cause: NORMAL_CLEARING
  567. 2021-07-29 07:17:13.209557 [DEBUG] mod_sofia.c:507 Sending BYE to sofia/default/12344
  568. 2021-07-29 07:17:13.209557 [DEBUG] switch_core_state_machine.c:60 sofia/default/12344 Standard HANGUP, cause: NORMAL_CLEARING
  569. 2021-07-29 07:17:13.209557 [DEBUG] switch_core_state_machine.c:850 (sofia/default/12344) State HANGUP going to sleep
  570. 2021-07-29 07:17:13.209557 [DEBUG] switch_core_state_machine.c:620 (sofia/default/12344) State Change CS_HANGUP -> CS_REPORTING
  571. 2021-07-29 07:17:13.209557 [DEBUG] switch_core_state_machine.c:585 (sofia/default/12344) Running State Change CS_REPORTING (Cur 2 Tot 9)
  572. 2021-07-29 07:17:13.209557 [DEBUG] switch_core_state_machine.c:936 (sofia/default/12344) State REPORTING
  573. 2021-07-29 07:17:13.209557 [INFO] mod_json_cdr.c:271 Process [c50ef52d-a8eb-4604-a984-dd1f9c1e4aa1.cdr.json]
  574. 2021-07-29 07:17:13.209557 [DEBUG] switch_ivr_bridge.c:1892 sofia/default/12344 skip receive message [UNBRIDGE] (channel is hungup already)
  575. 2021-07-29 07:17:13.209557 [DEBUG] switch_ivr_bridge.c:1895 sofia/default/505@test-tls.astppbilling.org:7777 skip receive message [UNBRIDGE] (channel is hungup already)
  576. 2021-07-29 07:17:13.209557 [DEBUG] switch_core_session.c:2905 sofia/default/505@test-tls.astppbilling.org:7777 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
  577. 2021-07-29 07:17:13.209557 [DEBUG] switch_core_state_machine.c:651 (sofia/default/505@test-tls.astppbilling.org:7777) State EXECUTE going to sleep
  578. 2021-07-29 07:17:13.209557 [DEBUG] switch_core_state_machine.c:585 (sofia/default/505@test-tls.astppbilling.org:7777) Running State Change CS_HANGUP (Cur 2 Tot 9)
  579. 2021-07-29 07:17:13.209557 [DEBUG] switch_core_state_machine.c:848 (sofia/default/505@test-tls.astppbilling.org:7777) Callstate Change ACTIVE -> HANGUP
  580. 2021-07-29 07:17:13.209557 [DEBUG] switch_core_state_machine.c:850 (sofia/default/505@test-tls.astppbilling.org:7777) State HANGUP
  581. 2021-07-29 07:17:13.209557 [DEBUG] mod_sofia.c:453 Channel sofia/default/505@test-tls.astppbilling.org:7777 hanging up, cause: NORMAL_CLEARING
  582. 2021-07-29 07:17:13.209557 [DEBUG] switch_core_state_machine.c:60 sofia/default/505@test-tls.astppbilling.org:7777 Standard HANGUP, cause: NORMAL_CLEARING
  583. 2021-07-29 07:17:13.209557 [DEBUG] switch_core_state_machine.c:850 (sofia/default/505@test-tls.astppbilling.org:7777) State HANGUP going to sleep
  584. 2021-07-29 07:17:13.209557 [DEBUG] switch_core_state_machine.c:620 (sofia/default/505@test-tls.astppbilling.org:7777) State Change CS_HANGUP -> CS_REPORTING
  585. 2021-07-29 07:17:13.209557 [DEBUG] switch_core_state_machine.c:585 (sofia/default/505@test-tls.astppbilling.org:7777) Running State Change CS_REPORTING (Cur 2 Tot 9)
  586. 2021-07-29 07:17:13.209557 [DEBUG] switch_core_state_machine.c:936 (sofia/default/505@test-tls.astppbilling.org:7777) State REPORTING
  587. 2021-07-29 07:17:13.209557 [INFO] mod_json_cdr.c:271 Process [1feeab23-ac71-47b5-8f50-c3faaffb8f64.cdr.json]
  588. 2021-07-29 07:17:13.229558 [DEBUG] switch_core_state_machine.c:174 sofia/default/12344 Standard REPORTING, cause: NORMAL_CLEARING
  589. 2021-07-29 07:17:13.229558 [DEBUG] switch_core_state_machine.c:936 (sofia/default/12344) State REPORTING going to sleep
  590. 2021-07-29 07:17:13.229558 [DEBUG] switch_core_state_machine.c:611 (sofia/default/12344) State Change CS_REPORTING -> CS_DESTROY
  591. 2021-07-29 07:17:13.229558 [DEBUG] switch_core_session.c:1726 Session 9 (sofia/default/12344) Locked, Waiting on external entities
  592. 2021-07-29 07:17:13.229558 [NOTICE] switch_core_session.c:1744 Session 9 (sofia/default/12344) Ended
  593. 2021-07-29 07:17:13.229558 [NOTICE] switch_core_session.c:1748 Close Channel sofia/default/12344 [CS_DESTROY]
  594. 2021-07-29 07:17:13.229558 [DEBUG] switch_core_state_machine.c:739 (sofia/default/12344) Running State Change CS_DESTROY (Cur 1 Tot 9)
  595. 2021-07-29 07:17:13.229558 [DEBUG] switch_core_state_machine.c:749 (sofia/default/12344) State DESTROY
  596. 2021-07-29 07:17:13.229558 [DEBUG] mod_sofia.c:364 sofia/default/12344 SOFIA DESTROY
  597. 2021-07-29 07:17:13.229558 [DEBUG] switch_core_state_machine.c:181 sofia/default/12344 Standard DESTROY
  598. 2021-07-29 07:17:13.229558 [DEBUG] switch_core_state_machine.c:749 (sofia/default/12344) State DESTROY going to sleep
  599. 2021-07-29 07:17:13.289564 [DEBUG] switch_core_state_machine.c:174 sofia/default/505@test-tls.astppbilling.org:7777 Standard REPORTING, cause: NORMAL_CLEARING
  600. 2021-07-29 07:17:13.289564 [DEBUG] switch_core_state_machine.c:936 (sofia/default/505@test-tls.astppbilling.org:7777) State REPORTING going to sleep
  601. 2021-07-29 07:17:13.289564 [DEBUG] switch_core_state_machine.c:611 (sofia/default/505@test-tls.astppbilling.org:7777) State Change CS_REPORTING -> CS_DESTROY
  602. 2021-07-29 07:17:13.289564 [DEBUG] switch_core_session.c:1726 Session 8 (sofia/default/505@test-tls.astppbilling.org:7777) Locked, Waiting on external entities
  603. 2021-07-29 07:17:13.289564 [NOTICE] switch_core_session.c:1744 Session 8 (sofia/default/505@test-tls.astppbilling.org:7777) Ended
  604. 2021-07-29 07:17:13.289564 [NOTICE] switch_core_session.c:1748 Close Channel sofia/default/505@test-tls.astppbilling.org:7777 [CS_DESTROY]
  605. 2021-07-29 07:17:13.289564 [DEBUG] switch_core_state_machine.c:739 (sofia/default/505@test-tls.astppbilling.org:7777) Running State Change CS_DESTROY (Cur 0 Tot 9)
  606. 2021-07-29 07:17:13.289564 [DEBUG] switch_core_state_machine.c:749 (sofia/default/505@test-tls.astppbilling.org:7777) State DESTROY
  607. 2021-07-29 07:17:13.289564 [DEBUG] mod_sofia.c:364 sofia/default/505@test-tls.astppbilling.org:7777 SOFIA DESTROY
  608. 2021-07-29 07:17:13.289564 [DEBUG] switch_core_state_machine.c:181 sofia/default/505@test-tls.astppbilling.org:7777 Standard DESTROY
  609. 2021-07-29 07:17:13.289564 [DEBUG] switch_core_state_machine.c:749 (sofia/default/505@test-tls.astppbilling.org:7777) State DESTROY going to sleep
  610. 2021-07-29 07:17:13.429597 [DEBUG] switch_scheduler.c:147 Deleting task 4 switch_ivr_schedule_hangup (c50ef52d-a8eb-4604-a984-dd1f9c1e4aa1)
  611. 2021-07-29 07:17:40.689633 [NOTICE] switch_channel.c:1118 New Channel sofia/default/505@test-tls.astppbilling.org:7777 [ccc25279-92cd-46d3-8948-83978d373529]
  612. 2021-07-29 07:17:40.689633 [DEBUG] switch_core_state_machine.c:585 (sofia/default/505@test-tls.astppbilling.org:7777) Running State Change CS_NEW (Cur 1 Tot 10)
  613. 2021-07-29 07:17:40.689633 [DEBUG] sofia.c:10280 sofia/default/505@test-tls.astppbilling.org:7777 receiving invite from 117.247.91.162:40006 version: 1.10.5 -release-17-25569c1631 64bit
  614. 2021-07-29 07:17:40.689633 [DEBUG] sofia.c:10374 verifying acl "default" for ip/port 117.247.91.162:0.
  615. 2021-07-29 07:17:40.689633 [DEBUG] sofia.c:2434 detaching session ccc25279-92cd-46d3-8948-83978d373529
  616. 2021-07-29 07:17:40.689633 [WARNING] sofia_reg.c:1794 SIP auth challenge (INVITE) on sofia profile 'default' for [12344@test-tls.astppbilling.org] from ip 117.247.91.162
  617. 2021-07-29 07:17:40.689633 [DEBUG] switch_core_state_machine.c:604 (sofia/default/505@test-tls.astppbilling.org:7777) State NEW
  618. 2021-07-29 07:17:40.809587 [DEBUG] sofia.c:2544 Re-attaching to session ccc25279-92cd-46d3-8948-83978d373529
  619. 2021-07-29 07:17:40.829576 [DEBUG] sofia.c:10280 sofia/default/505@test-tls.astppbilling.org:7777 receiving invite from 117.247.91.162:40006 version: 1.10.5 -release-17-25569c1631 64bit
  620. 2021-07-29 07:17:40.829576 [DEBUG] sofia.c:10374 verifying acl "default" for ip/port 117.247.91.162:0.
  621. 2021-07-29 07:17:40.849558 [DEBUG] sofia.c:11477 Setting NAT mode based on via received
  622. 2021-07-29 07:17:40.849558 [DEBUG] sofia.c:7326 Channel sofia/default/505@test-tls.astppbilling.org:7777 entering state [received][100]
  623. 2021-07-29 07:17:40.849558 [DEBUG] sofia.c:7336 Remote SDP:
  624. v=0
  625. o=Z 0 0 IN IP4 117.247.91.162
  626. s=Z
  627. c=IN IP4 117.247.91.162
  628. t=0 0
  629. m=audio 8000 RTP/AVP 3 110 8 0 98 101
  630. a=rtpmap:110 speex/8000
  631. a=rtpmap:98 iLBC/8000
  632. a=fmtp:98 mode=20
  633. a=rtpmap:101 telephone-event/8000
  634. a=fmtp:101 0-15
  635.  
  636. 2021-07-29 07:17:40.849558 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMA:8:8000:20:64000:1]
  637. 2021-07-29 07:17:40.849558 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMU:0:8000:20:64000:1]
  638. 2021-07-29 07:17:40.849558 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [speex:110:8000:20:0:1]/[PCMA:8:8000:20:64000:1]
  639. 2021-07-29 07:17:40.849558 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [speex:110:8000:20:0:1]/[PCMU:0:8000:20:64000:1]
  640. 2021-07-29 07:17:40.849558 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  641. 2021-07-29 07:17:40.849558 [DEBUG] switch_core_media.c:5649 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  642. 2021-07-29 07:17:40.849558 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  643. 2021-07-29 07:17:40.849558 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  644. 2021-07-29 07:17:40.849558 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  645. 2021-07-29 07:17:40.849558 [DEBUG] switch_core_media.c:5649 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  646. 2021-07-29 07:17:40.849558 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [iLBC:98:8000:30:0:1]/[PCMA:8:8000:20:64000:1]
  647. 2021-07-29 07:17:40.849558 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [iLBC:98:8000:30:0:1]/[PCMU:0:8000:20:64000:1]
  648. 2021-07-29 07:17:40.849558 [DEBUG] switch_core_media.c:5510 Set telephone-event payload to 101@8000
  649. 2021-07-29 07:17:40.849558 [DEBUG] switch_core_media.c:3839 Set Codec sofia/default/505@test-tls.astppbilling.org:7777 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  650. 2021-07-29 07:17:40.849558 [DEBUG] switch_core_codec.c:111 sofia/default/505@test-tls.astppbilling.org:7777 Original read codec set to PCMA:8
  651. 2021-07-29 07:17:40.849558 [DEBUG] switch_core_media.c:5853 Set telephone-event payload to 101@8000
  652. 2021-07-29 07:17:40.849558 [DEBUG] switch_core_media.c:5911 sofia/default/505@test-tls.astppbilling.org:7777 Set 2833 dtmf send payload to 101 recv payload to 101
  653. 2021-07-29 07:17:40.849558 [DEBUG] sofia.c:7760 (sofia/default/505@test-tls.astppbilling.org:7777) State Change CS_NEW -> CS_INIT
  654. 2021-07-29 07:17:40.849558 [DEBUG] switch_core_state_machine.c:585 (sofia/default/505@test-tls.astppbilling.org:7777) Running State Change CS_INIT (Cur 1 Tot 10)
  655. 2021-07-29 07:17:40.849558 [DEBUG] switch_core_state_machine.c:628 (sofia/default/505@test-tls.astppbilling.org:7777) State INIT
  656. 2021-07-29 07:17:40.849558 [DEBUG] mod_sofia.c:93 sofia/default/505@test-tls.astppbilling.org:7777 SOFIA INIT
  657. 2021-07-29 07:17:40.849558 [DEBUG] switch_core_state_machine.c:40 sofia/default/505@test-tls.astppbilling.org:7777 Standard INIT
  658. 2021-07-29 07:17:40.849558 [DEBUG] switch_core_state_machine.c:48 (sofia/default/505@test-tls.astppbilling.org:7777) State Change CS_INIT -> CS_ROUTING
  659. 2021-07-29 07:17:40.849558 [DEBUG] switch_core_state_machine.c:628 (sofia/default/505@test-tls.astppbilling.org:7777) State INIT going to sleep
  660. 2021-07-29 07:17:40.849558 [DEBUG] switch_core_state_machine.c:585 (sofia/default/505@test-tls.astppbilling.org:7777) Running State Change CS_ROUTING (Cur 1 Tot 10)
  661. 2021-07-29 07:17:40.849558 [DEBUG] switch_channel.c:2332 (sofia/default/505@test-tls.astppbilling.org:7777) Callstate Change DOWN -> RINGING
  662. 2021-07-29 07:17:40.849558 [DEBUG] switch_core_state_machine.c:644 (sofia/default/505@test-tls.astppbilling.org:7777) State ROUTING
  663. 2021-07-29 07:17:40.849558 [DEBUG] mod_sofia.c:154 sofia/default/505@test-tls.astppbilling.org:7777 SOFIA ROUTING
  664. 2021-07-29 07:17:40.849558 [DEBUG] switch_core_state_machine.c:236 sofia/default/505@test-tls.astppbilling.org:7777 Standard ROUTING
  665. 2021-07-29 07:17:40.849558 [INFO] mod_dialplan_xml.c:637 Processing 505 <505>->12344 in context default
  666. 2021-07-29 07:17:40.849558 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  667. 2021-07-29 07:17:40.849558 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  668. 2021-07-29 07:17:40.849558 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [xml_handler] Params:
  669. Event-Name: REQUEST_PARAMS
  670. Core-UUID: aa5f78b3-2e05-4f6b-a835-2d410e4d0f4d
  671. FreeSWITCH-Hostname: ip-172-31-5-221
  672. FreeSWITCH-Switchname: ip-172-31-5-221
  673. FreeSWITCH-IPv4: 172.31.5.221
  674. FreeSWITCH-IPv6: %3A%3A1
  675. Event-Date-Local: 2021-07-29%2007%3A17%3A40
  676. Event-Date-GMT: Thu,%2029%20Jul%202021%2007%3A17%3A40%20GMT
  677. Event-Date-Timestamp: 1627543060849558
  678. Event-Calling-File: mod_dialplan_xml.c
  679. Event-Calling-Function: dialplan_xml_locate
  680. Event-Calling-Line-Number: 608
  681. Event-Sequence: 38509
  682. Channel-State: CS_ROUTING
  683. Channel-Call-State: RINGING
  684. Channel-State-Number: 2
  685. Channel-Name: sofia/default/505%40test-tls.astppbilling.org%3A7777
  686. Unique-ID: ccc25279-92cd-46d3-8948-83978d373529
  687. Call-Direction: inbound
  688. Presence-Call-Direction: inbound
  689. Channel-HIT-Dialplan: true
  690. Channel-Presence-ID: 505%40test-tls.astppbilling.org
  691. Channel-Call-UUID: ccc25279-92cd-46d3-8948-83978d373529
  692. Answer-State: ringing
  693. Channel-Read-Codec-Name: PCMA
  694. Channel-Read-Codec-Rate: 8000
  695. Channel-Read-Codec-Bit-Rate: 64000
  696. Channel-Write-Codec-Name: PCMA
  697. Channel-Write-Codec-Rate: 8000
  698. Channel-Write-Codec-Bit-Rate: 64000
  699. Caller-Direction: inbound
  700. Caller-Logical-Direction: inbound
  701. Caller-Username: 505
  702. Caller-Dialplan: XML
  703. Caller-Caller-ID-Name: 505
  704. Caller-Caller-ID-Number: 505
  705. Caller-Orig-Caller-ID-Name: 505
  706. Caller-Orig-Caller-ID-Number: 505
  707. Caller-Network-Addr: 117.247.91.162
  708. Caller-ANI: 505
  709. Caller-Destination-Number: 12344
  710. Caller-Unique-ID: ccc25279-92cd-46d3-8948-83978d373529
  711. Caller-Source: mod_sofia
  712. Caller-Context: default
  713. Caller-Channel-Name: sofia/default/505%40test-tls.astppbilling.org%3A7777
  714. Caller-Profile-Index: 1
  715. Caller-Profile-Created-Time: 1627543060849558
  716. Caller-Channel-Created-Time: 1627543060849558
  717. Caller-Channel-Answered-Time: 0
  718. Caller-Channel-Progress-Time: 0
  719. Caller-Channel-Progress-Media-Time: 0
  720. Caller-Channel-Hangup-Time: 0
  721. Caller-Channel-Transfer-Time: 0
  722. Caller-Channel-Resurrect-Time: 0
  723. Caller-Channel-Bridged-Time: 0
  724. Caller-Channel-Last-Hold: 0
  725. Caller-Channel-Hold-Accum: 0
  726. Caller-Screen-Bit: true
  727. Caller-Privacy-Hide-Name: false
  728. Caller-Privacy-Hide-Number: false
  729. variable_direction: inbound
  730. variable_uuid: ccc25279-92cd-46d3-8948-83978d373529
  731. variable_session_id: 10
  732. variable_sip_from_params: transport%3DTCP
  733. variable_sip_from_user: 505
  734. variable_sip_from_port: 7777
  735. variable_sip_from_uri: 505%40test-tls.astppbilling.org%3A7777
  736. variable_sip_from_host: test-tls.astppbilling.org
  737. variable_video_media_flow: disabled
  738. variable_text_media_flow: disabled
  739. variable_channel_name: sofia/default/505%40test-tls.astppbilling.org%3A7777
  740. variable_sip_call_id: M2E2NjFlMzVhY2ViNGY2MWQ1NjZiNmNkODJkZDExNGU.
  741. variable_sip_local_network_addr: 13.232.140.73
  742. variable_sip_network_ip: 117.247.91.162
  743. variable_sip_network_port: 40006
  744. variable_sip_invite_stamp: 1627543060829576
  745. variable_sip_received_ip: 117.247.91.162
  746. variable_sip_received_port: 40006
  747. variable_sip_via_protocol: tcp
  748. variable_sip_authorized: true
  749. variable_Event-Name: REQUEST_PARAMS
  750. variable_Core-UUID: aa5f78b3-2e05-4f6b-a835-2d410e4d0f4d
  751. variable_FreeSWITCH-Hostname: ip-172-31-5-221
  752. variable_FreeSWITCH-Switchname: ip-172-31-5-221
  753. variable_FreeSWITCH-IPv4: 172.31.5.221
  754. variable_FreeSWITCH-IPv6: %3A%3A1
  755. variable_Event-Date-Local: 2021-07-29%2007%3A17%3A40
  756. variable_Event-Date-GMT: Thu,%2029%20Jul%202021%2007%3A17%3A40%20GMT
  757. variable_Event-Date-Timestamp: 1627543060829576
  758. variable_Event-Calling-File: sofia.c
  759. variable_Event-Calling-Function: sofia_handle_sip_i_invite
  760. variable_Event-Calling-Line-Number: 10542
  761. variable_Event-Sequence: 38500
  762. variable_sip_number_alias: 505
  763. variable_sip_auth_username: 505
  764. variable_sip_auth_realm: test-tls.astppbilling.org
  765. variable_number_alias: 505
  766. variable_requested_user_name: 505
  767. variable_requested_domain_name: test-tls.astppbilling.org
  768. variable_user_context: default
  769. variable_sipcall: true
  770. variable_sip_user: 505
  771. variable_accountcode: 4585185001
  772. variable_user_name: 505
  773. variable_domain_name: test-tls.astppbilling.org
  774. variable_sip_from_user_stripped: 505
  775. variable_sip_from_tag: 61697903
  776. variable_sofia_profile_name: default
  777. variable_sofia_profile_url: sip%3Amod_sofia%4013.232.140.73%3A7777
  778. variable_recovery_profile_name: default
  779. variable_sip_full_via: SIP/2.0/TCP%20192.168.1.50%3A59931%3Bbranch%3Dz9hG4bK-d8754z-cf6ef3d4ba27b39b-1---d8754z-%3Breceived%3D117.247.91.162%3Brport%3D40006
  780. variable_sip_recover_via: SIP/2.0/TCP%20192.168.1.50%3A59931%3Bbranch%3Dz9hG4bK-d8754z-cf6ef3d4ba27b39b-1---d8754z-%3Breceived%3D117.247.91.162%3Brport%3D40006
  781. variable_sip_full_from: %3Csip%3A505%40test-tls.astppbilling.org%3A7777%3Btransport%3DTCP%3E%3Btag%3D61697903
  782. variable_sip_full_to: %3Csip%3A12344%40test-tls.astppbilling.org%3A7777%3Btransport%3DTCP%3E
  783. variable_sip_allow: INVITE,%20ACK,%20CANCEL,%20BYE,%20NOTIFY,%20REFER,%20MESSAGE,%20OPTIONS,%20INFO,%20SUBSCRIBE
  784. variable_sip_req_params: transport%3DTCP
  785. variable_sip_req_user: 12344
  786. variable_sip_req_port: 7777
  787. variable_sip_req_uri: 12344%40test-tls.astppbilling.org%3A7777
  788. variable_sip_req_host: test-tls.astppbilling.org
  789. variable_sip_to_params: transport%3DTCP
  790. variable_sip_to_user: 12344
  791. variable_sip_to_port: 7777
  792. variable_sip_to_uri: 12344%40test-tls.astppbilling.org%3A7777
  793. variable_sip_to_host: test-tls.astppbilling.org
  794. variable_sip_contact_params: transport%3DTCP
  795. variable_sip_contact_user: 505
  796. variable_sip_contact_port: 59931
  797. variable_sip_contact_uri: 505%40117.247.91.162%3A59931
  798. variable_sip_contact_host: 117.247.91.162
  799. variable_sip_user_agent: Z%203.3.25608%20r25552
  800. variable_sip_via_host: 192.168.1.50
  801. variable_sip_via_port: 59931
  802. variable_sip_via_rport: 40006
  803. variable_max_forwards: 70
  804. variable_presence_id: 505%40test-tls.astppbilling.org
  805. variable_sip_nat_detected: true
  806. variable_switch_r_sdp: v%3D0%0D%0Ao%3DZ%200%200%20IN%20IP4%20117.247.91.162%0D%0As%3DZ%0D%0Ac%3DIN%20IP4%20117.247.91.162%0D%0At%3D0%200%0D%0Am%3Daudio%208000%20RTP/AVP%203%20110%208%200%2098%20101%0D%0Aa%3Drtpmap%3A110%20speex/8000%0D%0Aa%3Drtpmap%3A98%20iLBC/8000%0D%0Aa%3Dfmtp%3A98%20mode%3D20%0D%0Aa%3Drtpmap%3A101%20telephone-event/8000%0D%0Aa%3Dfmtp%3A101%200-15%0D%0A
  807. variable_ep_codec_string: CORE_PCM_MODULE.PCMA%408000h%4020i%4064000b,CORE_PCM_MODULE.PCMU%408000h%4020i%4064000b
  808. variable_rtp_use_codec_string: PCMA,PCMU
  809. variable_remote_video_media_flow: inactive
  810. variable_remote_text_media_flow: inactive
  811. variable_remote_audio_media_flow: sendrecv
  812. variable_audio_media_flow: sendrecv
  813. variable_remote_media_ip: 117.247.91.162
  814. variable_remote_media_port: 8000
  815. variable_rtp_audio_recv_pt: 8
  816. variable_rtp_use_codec_name: PCMA
  817. variable_rtp_use_codec_rate: 8000
  818. variable_rtp_use_codec_ptime: 20
  819. variable_rtp_use_codec_channels: 1
  820. variable_rtp_last_audio_codec_string: PCMA%408000h%4020i%401c
  821. variable_read_codec: PCMA
  822. variable_original_read_codec: PCMA
  823. variable_read_rate: 8000
  824. variable_original_read_rate: 8000
  825. variable_write_codec: PCMA
  826. variable_write_rate: 8000
  827. variable_dtmf_type: rfc2833
  828. variable_endpoint_disposition: RECEIVED
  829. variable_call_uuid: ccc25279-92cd-46d3-8948-83978d373529
  830. Hunt-Direction: inbound
  831. Hunt-Logical-Direction: inbound
  832. Hunt-Username: 505
  833. Hunt-Dialplan: XML
  834. Hunt-Caller-ID-Name: 505
  835. Hunt-Caller-ID-Number: 505
  836. Hunt-Orig-Caller-ID-Name: 505
  837. Hunt-Orig-Caller-ID-Number: 505
  838. Hunt-Network-Addr: 117.247.91.162
  839. Hunt-ANI: 505
  840. Hunt-Destination-Number: 12344
  841. Hunt-Unique-ID: ccc25279-92cd-46d3-8948-83978d373529
  842. Hunt-Source: mod_sofia
  843. Hunt-Context: default
  844. Hunt-Channel-Name: sofia/default/505%40test-tls.astppbilling.org%3A7777
  845. Hunt-Profile-Index: 1
  846. Hunt-Profile-Created-Time: 1627543060849558
  847. Hunt-Channel-Created-Time: 1627543060849558
  848. Hunt-Channel-Answered-Time: 0
  849. Hunt-Channel-Progress-Time: 0
  850. Hunt-Channel-Progress-Media-Time: 0
  851. Hunt-Channel-Hangup-Time: 0
  852. Hunt-Channel-Transfer-Time: 0
  853. Hunt-Channel-Resurrect-Time: 0
  854. Hunt-Channel-Bridged-Time: 0
  855. Hunt-Channel-Last-Hold: 0
  856. Hunt-Channel-Hold-Accum: 0
  857. Hunt-Screen-Bit: true
  858. Hunt-Privacy-Hide-Name: false
  859. Hunt-Privacy-Hide-Number: false
  860.  
  861.  
  862. 2021-07-29 07:17:40.849558 [INFO] switch_cpp.cpp:1447 [ASTPP] [xml_REQUEST] key_value:
  863. 2021-07-29 07:17:40.849558 [INFO] switch_cpp.cpp:1447 [ASTPP] [xml_REQUEST] section: dialplan
  864. 2021-07-29 07:17:40.849558 [INFO] switch_cpp.cpp:1447 [ASTPP] [xml_REQUEST] tag_name:
  865. 2021-07-29 07:17:40.849558 [INFO] switch_cpp.cpp:1447 [ASTPP] [xml_REQUEST] key_name:
  866. 2021-07-29 07:17:40.849558 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] blind_flag: 0
  867. 2021-07-29 07:17:40.849558 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Dialed number : 12344
  868. 2021-07-29 07:17:40.849558 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '12344' limit 1
  869. 2021-07-29 07:17:40.849558 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '12344' AND status=0 limit 1
  870. 2021-07-29 07:17:40.849558 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [Functions] [GET_queue_INFO] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '12344' and status=0 LIMIT 1
  871. 2021-07-29 07:17:40.849558 [WARNING] switch_cpp.cpp:1447 [ASTPP] [FAXER] in custom Caller ID
  872. 2021-07-29 07:17:40.849558 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Caller Id name / number  : 505 / 505
  873. 2021-07-29 07:17:40.849558 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="12344" LIMIT 1
  874. 2021-07-29 07:17:40.849558 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT sip_devices.id as sip_id,sip_devices.username as username,accounts.number as accountcode,sip_devices.accountid as accountid,accounts.did_cid_translation as did_cid_translation FROM sip_devices as sip_devices,accounts as  accounts ,domains WHERE accounts.id=domains.accountid AND accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="12344"  AND domains.domain="any" limit 1
  875. 2021-07-29 07:17:40.869554 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Call direction : outbound
  876. 2021-07-29 07:17:40.869554 [INFO] switch_cpp.cpp:1447 [ASTPP] [Accountcode : 4585185001]
  877. 2021-07-29 07:17:40.869554 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "4585185001" AND deleted = 0 limit 1
  878. 2021-07-29 07:17:40.869554 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^12344.*' OR blocked_patterns = '^1234.*' OR blocked_patterns = '^123.*' OR blocked_patterns = '^12.*' OR blocked_patterns = '^1.*' OR blocked_patterns ='--') AND accountid = 7 limit 1
  879. 2021-07-29 07:17:40.869554 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_SPEEDDIAL] Query :SELECT A.number FROM speed_dial as A,accounts as B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.speed_num ="12344" AND A.accountid = '7' limit 1
  880. 2021-07-29 07:17:40.869554 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 12344
  881. 2021-07-29 07:17:40.869554 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="12344" LIMIT 1
  882. 2021-07-29 07:17:40.869554 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT sip_devices.id as sip_id,sip_devices.username as username,accounts.number as accountcode,sip_devices.accountid as accountid,accounts.did_cid_translation as did_cid_translation FROM sip_devices as sip_devices,accounts as  accounts ,domains WHERE accounts.id=domains.accountid AND accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="12344"  AND domains.domain="any" limit 1
  883. 2021-07-29 07:17:40.869554 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] New Call direction : outbound
  884. 2021-07-29 07:17:40.869554 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="12344" AND (accountid = 0 OR status = 1) LIMIT 1
  885. 2021-07-29 07:17:40.869554 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PACKAGE_INFO] Query :SELECT *,P.id as package_id,P.product_id as product_id FROM packages_view as P inner join package_patterns as PKGPTR on P.product_id = PKGPTR.product_id WHERE (patterns = '^12344.*' OR patterns = '^1234.*' OR patterns = '^123.*' OR patterns = '^12.*' OR patterns = '^1.*' OR patterns ='--') AND accountid = 7 ORDER BY LENGTH(PKGPTR.patterns) DESC
  886. 2021-07-29 07:17:40.869554 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '12344' OR number = '1234' OR number = '123' OR number = '12' OR number = '1' OR number ='--') OR (number = '12344*' OR number = '1234*' OR number = '123*' OR number = '12*' OR number = '1*' OR number ='--') OR (number = '505' OR number = '50' OR number = '5' OR number ='--') OR (number = '505*' OR number = '50*' OR number = '5*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC
  887. 2021-07-29 07:17:40.869554 [DEBUG] switch_cpp.cpp:1447 [ASTPP] Call Barring Status : -1
  888. 2021-07-29 07:17:40.869554 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '12344' OR routing_prefix = '1234' OR routing_prefix = '123' OR routing_prefix = '12' OR routing_prefix = '1' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1
  889. 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] =============== Account Information ===================
  890. 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] User id : 7
  891. 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] Account code : 4585185001
  892. 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] Balance : 46.4843
  893. 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  894. 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] Ratecard id : 1
  895. 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] CID Pool : 0
  896. 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] ========================================================
  897. 2021-07-29 07:17:40.889556 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0
  898. 2021-07-29 07:17:40.889556 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_RATES] call_direction :outbound
  899. 2021-07-29 07:17:40.889556 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0
  900. 2021-07-29 07:17:40.889556 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^12344.*' OR pattern = '^1234.*' OR pattern = '^123.*' OR pattern = '^12.*' OR pattern = '^1.*' OR pattern ='--') AND status = 0 AND (pricelist_id = 1 OR accountid=7)  ORDER BY accountid DESC,LENGTH(pattern) DESC,cost DESC LIMIT 1
  901. 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] call_direction:::::: outbound
  902. 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] =============== Rates Information ===================
  903. 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] ID : 13
  904. 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] Connectcost : 0.00000
  905. 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] Includedseconds : 0
  906. 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] Cost : 0.02000
  907. 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] comment :
  908. 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] Country Id : 0
  909. 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] Accid : 7
  910. 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] Trunk ID: 1
  911. 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] Routing type:
  912. 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] ================================================================
  913. 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] Your46.4843 balance Accountid 7 !!!
  914. 2021-07-29 07:17:40.889556 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] Limiting call to config max length 100 mins!
  915. 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] Call Max length duration : 100 minutes
  916. 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] [DIALPLAN] User Rate ID : 13
  917. 2021-07-29 07:17:40.889556 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_CARRIER_RATES]123131 Query rate_carrier_id  :1
  918. 2021-07-29 07:17:40.889556 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_CARRIER_RATES] Query :SELECT TK.id as trunk_id,TK.name as trunk_name,TK.codec,GW.name as path,GW.dialplan_variable,TK.provider_id,TR.init_inc,TK.status,TK.maxchannels,TK.cps,TK.leg_timeout,TR.pattern,TR.id as outbound_route_id,TR.connectcost,TR.comment,TR.includedseconds,TR.cost,TR.inc,TR.prepend,TR.strip,(select name from gateways where status=0 AND id = TK.failover_gateway_id) as path1,(select name from gateways where status=0 AND id = TK.failover_gateway_id1) as path2 FROM outbound_routes as TR,trunks as TK,gateways as GW WHERE GW.status=0 AND GW.id= TK.gateway_id AND TK.status=0 AND TK.id= TR.trunk_id AND (pattern = '^12344.*' OR pattern = '^1234.*' OR pattern = '^123.*' OR pattern = '^12.*' OR pattern = '^1.*' OR pattern ='--') AND TR.status = 0  AND TR.trunk_id IN (1)  ORDER by FIELD(TR.trunk_id,1),LENGTH (pattern) DESC,TR.cost ASC,TR.precedence ASC
  919. 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] =============== Termination Rates Information ===================
  920. 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] ID : 19
  921. 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] Code : ^12344.*
  922. 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] Destination :
  923. 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] Connectcost : 0.00000
  924. 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] Free Seconds : 0
  925. 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] Prefix : ^12344.*
  926. 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] Strip :
  927. 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] Prepend :
  928. 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] Carrier id : 1
  929. 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] carrier_name : YourProvider
  930. 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] dialplan_variable :
  931. 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] Failover gateway :
  932. 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] Vendor id : 3
  933. 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] Max channels : 0
  934. 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] Trunk Name : YourTrunk
  935. 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] ========================END OF TERMINATION RATES=======================
  936. 2021-07-29 07:17:40.889556 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 7 AND status=0 LIMIT 1
  937. 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] maxlength::::::::: 100
  938. 2021-07-29 07:17:40.889556 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0
  939. 2021-07-29 07:17:40.889556 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,out_caller_id_terminate,number_terminate,dst_base_cid FROM localization WHERE id=(SELECT localization_id from accounts where id = 3) AND status=0 limit 1
  940. 2021-07-29 07:17:40.889556 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Generated XML:
  941. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  942. <document type="freeswitch/xml">
  943. <section name="dialplan" description="ASTPP Dialplan">
  944. <action application="set" data="timezone=America/New_York" inline="true"/>
  945. <context name="default">
  946. <extension name="12344">
  947. <condition field="destination_number" expression="12344">
  948. <action application="set" data="effective_destination_number=12344"/>
  949. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
  950. <action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>
  951. <action application="set" data="callstart=2021-07-29 07:17:40"/>
  952. <action application="set" data="hangup_after_bridge=true"/>
  953. <action application="set" data="continue_on_fail=TRUE"/>
  954. <action application="set" data="account_id=7"/>
  955. <action application="set" data="parent_id=0"/>
  956. <action application="set" data="entity_id=0"/>
  957. <action application="set" data="call_processed=internal"/>
  958. <action application="set" data="call_direction=outbound"/>
  959. <action application="set" data="accountname=default"/>
  960. <action application="set" data="filename1=astpp.pbx.lua"/>
  961. <action application="set" data="origination_rates=ID:13|CODE:^12344.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.02000|INC:60|INITIALBLOCK:60|RATEGROUP:1|MARKUP:0|CI:0|ACCID:7"/>
  962. <action application="set" data="original_caller_id_name=505"/>
  963. <action application="set" data="original_caller_id_number=505"/>
  964.  
  965. <action application="set" data="effective_caller_id_name=505"/>
  966. <action application="set" data="effective_caller_id_number=505"/>
  967. <action application="set" data="calltype=STANDARD"/>
  968. <action application="set" data="termination_rates=ID:19|CODE:^12344.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.01000|INC:0|INITIALBLOCK:0|TRUNK:1|PROVIDER:3"/>
  969. <action application="set" data="trunk_id=1"/>
  970. <action application="set" data="provider_id=3"/>
  971. <action application="set" data="rate_flag=0"/>
  972. <action application="set" data="force_trunk_flag=13"/>
  973. <action application="export" data="presence_data=trunk_id=1"/>
  974. <action application="set" data="intcall=0"/>
  975. <action application="export" data="presence_data=x|||sahil(4585185001)|||^12344.* //  // 0.02000 // trunk_id=1|||YourTrunk // ^12344.* //  // 0.01000 // trunk_id=1|||STD|||117.247.91.162"/>
  976. <action application="bridge" data="[leg_timeout=30,absolute_codec_string=^^:PCMA:G729:PCMA]sofia/gateway/YourProvider/12344"/>
  977. </condition>
  978. </extension>
  979. </context>
  980. </section>
  981. </document>
  982. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 parsing [default->12344] continue=false
  983. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Regex (PASS) [12344] destination_number(12344) =~ /12344/ break=on-false
  984. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(effective_destination_number=12344)
  985. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(bridge_pre_execute_bleg_app=sched_hangup)
  986. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  987. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(callstart=2021-07-29 07:17:40)
  988. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(hangup_after_bridge=true)
  989. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(continue_on_fail=TRUE)
  990. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(account_id=7)
  991. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(parent_id=0)
  992. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(entity_id=0)
  993. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(call_processed=internal)
  994. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(call_direction=outbound)
  995. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(accountname=default)
  996. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(filename1=astpp.pbx.lua)
  997. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(origination_rates=ID:13|CODE:^12344.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.02000|INC:60|INITIALBLOCK:60|RATEGROUP:1|MARKUP:0|CI:0|ACCID:7)
  998. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(original_caller_id_name=505)
  999. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(original_caller_id_number=505)
  1000. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(effective_caller_id_name=505)
  1001. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(effective_caller_id_number=505)
  1002. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(calltype=STANDARD)
  1003. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(termination_rates=ID:19|CODE:^12344.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.01000|INC:0|INITIALBLOCK:0|TRUNK:1|PROVIDER:3)
  1004. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(trunk_id=1)
  1005. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(provider_id=3)
  1006. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(rate_flag=0)
  1007. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(force_trunk_flag=13)
  1008. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action export(presence_data=trunk_id=1)
  1009. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(intcall=0)
  1010. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action export(presence_data=x|||sahil(4585185001)|||^12344.* //  // 0.02000 // trunk_id=1|||YourTrunk // ^12344.* //  // 0.01000 // trunk_id=1|||STD|||117.247.91.162)
  1011. Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action bridge([leg_timeout=30,absolute_codec_string=^^:PCMA:G729:PCMA]sofia/gateway/YourProvider/12344)
  1012. 2021-07-29 07:17:40.889556 [DEBUG] switch_core_state_machine.c:287 (sofia/default/505@test-tls.astppbilling.org:7777) State Change CS_ROUTING -> CS_EXECUTE
  1013. 2021-07-29 07:17:40.889556 [DEBUG] switch_core_state_machine.c:644 (sofia/default/505@test-tls.astppbilling.org:7777) State ROUTING going to sleep
  1014. 2021-07-29 07:17:40.889556 [DEBUG] switch_core_state_machine.c:585 (sofia/default/505@test-tls.astppbilling.org:7777) Running State Change CS_EXECUTE (Cur 1 Tot 10)
  1015. 2021-07-29 07:17:40.889556 [DEBUG] switch_core_state_machine.c:651 (sofia/default/505@test-tls.astppbilling.org:7777) State EXECUTE
  1016. 2021-07-29 07:17:40.889556 [DEBUG] mod_sofia.c:209 sofia/default/505@test-tls.astppbilling.org:7777 SOFIA EXECUTE
  1017. 2021-07-29 07:17:40.889556 [DEBUG] switch_core_state_machine.c:329 sofia/default/505@test-tls.astppbilling.org:7777 Standard EXECUTE
  1018. EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(effective_destination_number=12344)
  1019. 2021-07-29 07:17:40.889556 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [effective_destination_number]=[12344]
  1020. EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(bridge_pre_execute_bleg_app=sched_hangup)
  1021. 2021-07-29 07:17:40.889556 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [bridge_pre_execute_bleg_app]=[sched_hangup]
  1022. EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  1023. 2021-07-29 07:17:40.889556 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [bridge_pre_execute_bleg_data]=[+6000 normal_clearing]
  1024. EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(callstart=2021-07-29 07:17:40)
  1025. 2021-07-29 07:17:40.889556 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [callstart]=[2021-07-29 07:17:40]
  1026. EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(hangup_after_bridge=true)
  1027. 2021-07-29 07:17:40.889556 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [hangup_after_bridge]=[true]
  1028. EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(continue_on_fail=TRUE)
  1029. 2021-07-29 07:17:40.889556 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [continue_on_fail]=[TRUE]
  1030. EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(account_id=7)
  1031. 2021-07-29 07:17:40.889556 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [account_id]=[7]
  1032. EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(parent_id=0)
  1033. 2021-07-29 07:17:40.889556 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [parent_id]=[0]
  1034. EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(entity_id=0)
  1035. 2021-07-29 07:17:40.889556 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [entity_id]=[0]
  1036. EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(call_processed=internal)
  1037. 2021-07-29 07:17:40.889556 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [call_processed]=[internal]
  1038. EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(call_direction=outbound)
  1039. 2021-07-29 07:17:40.889556 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [call_direction]=[outbound]
  1040. EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(accountname=default)
  1041. 2021-07-29 07:17:40.889556 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [accountname]=[default]
  1042. EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(filename1=astpp.pbx.lua)
  1043. 2021-07-29 07:17:40.889556 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [filename1]=[astpp.pbx.lua]
  1044. EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(origination_rates=ID:13|CODE:^12344.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.02000|INC:60|INITIALBLOCK:60|RATEGROUP:1|MARKUP:0|CI:0|ACCID:7)
  1045. 2021-07-29 07:17:40.889556 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [origination_rates]=[ID:13|CODE:^12344.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.02000|INC:60|INITIALBLOCK:60|RATEGROUP:1|MARKUP:0|CI:0|ACCID:7]
  1046. EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(original_caller_id_name=505)
  1047. 2021-07-29 07:17:40.889556 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [original_caller_id_name]=[505]
  1048. EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(original_caller_id_number=505)
  1049. 2021-07-29 07:17:40.889556 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [original_caller_id_number]=[505]
  1050. EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(effective_caller_id_name=505)
  1051. 2021-07-29 07:17:40.889556 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [effective_caller_id_name]=[505]
  1052. EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(effective_caller_id_number=505)
  1053. 2021-07-29 07:17:40.889556 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [effective_caller_id_number]=[505]
  1054. EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(calltype=STANDARD)
  1055. 2021-07-29 07:17:40.889556 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [calltype]=[STANDARD]
  1056. EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(termination_rates=ID:19|CODE:^12344.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.01000|INC:0|INITIALBLOCK:0|TRUNK:1|PROVIDER:3)
  1057. 2021-07-29 07:17:40.889556 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [termination_rates]=[ID:19|CODE:^12344.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.01000|INC:0|INITIALBLOCK:0|TRUNK:1|PROVIDER:3]
  1058. EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(trunk_id=1)
  1059. 2021-07-29 07:17:40.889556 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [trunk_id]=[1]
  1060. EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(provider_id=3)
  1061. 2021-07-29 07:17:40.889556 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [provider_id]=[3]
  1062. EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(rate_flag=0)
  1063. 2021-07-29 07:17:40.889556 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [rate_flag]=[0]
  1064. EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(force_trunk_flag=13)
  1065. 2021-07-29 07:17:40.889556 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [force_trunk_flag]=[13]
  1066. EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 export(presence_data=trunk_id=1)
  1067. 2021-07-29 07:17:40.889556 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [presence_data]=[trunk_id=1]
  1068. EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(intcall=0)
  1069. 2021-07-29 07:17:40.889556 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [intcall]=[0]
  1070. EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 export(presence_data=x|||sahil(4585185001)|||^12344.* //  // 0.02000 // trunk_id=1|||YourTrunk // ^12344.* //  // 0.01000 // trunk_id=1|||STD|||117.247.91.162)
  1071. 2021-07-29 07:17:40.889556 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [presence_data]=[x|||sahil(4585185001)|||^12344.* //  // 0.02000 // trunk_id=1|||YourTrunk // ^12344.* //  // 0.01000 // trunk_id=1|||STD|||117.247.91.162]
  1072. EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 bridge([leg_timeout=30,absolute_codec_string=^^:PCMA:G729:PCMA]sofia/gateway/YourProvider/12344)
  1073. 2021-07-29 07:17:40.889556 [DEBUG] switch_channel.c:1264 sofia/default/505@test-tls.astppbilling.org:7777 EXPORTING[export_vars] [presence_data]=[x|||sahil(4585185001)|||^12344.* //  // 0.02000 // trunk_id=1|||YourTrunk // ^12344.* //  // 0.01000 // trunk_id=1|||STD|||117.247.91.162] to event
  1074. 2021-07-29 07:17:40.889556 [DEBUG] switch_channel.c:1264 sofia/default/505@test-tls.astppbilling.org:7777 EXPORTING[export_vars] [presence_data]=[x|||sahil(4585185001)|||^12344.* //  // 0.02000 // trunk_id=1|||YourTrunk // ^12344.* //  // 0.01000 // trunk_id=1|||STD|||117.247.91.162] to event
  1075. 2021-07-29 07:17:40.889556 [DEBUG] switch_ivr_originate.c:2242 Parsing global variables
  1076. 2021-07-29 07:17:40.889556 [DEBUG] switch_ivr_originate.c:2804 Parsing session specific variables
  1077. 2021-07-29 07:17:40.889556 [NOTICE] switch_channel.c:1118 New Channel sofia/default/12344 [79893841-d2ad-4df7-a9ad-7d897f5adb85]
  1078. 2021-07-29 07:17:40.889556 [DEBUG] mod_sofia.c:5089 (sofia/default/12344) State Change CS_NEW -> CS_INIT
  1079. 2021-07-29 07:17:40.889556 [DEBUG] switch_ivr_originate.c:3111 sofia/default/12344 Setting leg timeout to 30
  1080. 2021-07-29 07:17:40.889556 [DEBUG] switch_core_state_machine.c:585 (sofia/default/12344) Running State Change CS_INIT (Cur 2 Tot 11)
  1081. 2021-07-29 07:17:40.889556 [DEBUG] switch_core_state_machine.c:628 (sofia/default/12344) State INIT
  1082. 2021-07-29 07:17:40.889556 [DEBUG] mod_sofia.c:93 sofia/default/12344 SOFIA INIT
  1083. 2021-07-29 07:17:40.889556 [DEBUG] sofia_glue.c:1618 sofia/default/12344 sending invite version: 1.10.5 -release-17-25569c1631 64bit
  1084. Local SDP:
  1085. v=0
  1086. o=FreeSWITCH 1627517048 1627517049 IN IP4 13.232.140.73
  1087. s=FreeSWITCH
  1088. c=IN IP4 13.232.140.73
  1089. t=0 0
  1090. m=audio 26012 RTP/AVP 8 18 101
  1091. a=rtpmap:8 PCMA/8000
  1092. a=rtpmap:18 G729/8000
  1093. a=rtpmap:101 telephone-event/8000
  1094. a=fmtp:101 0-16
  1095. a=ptime:20
  1096. a=sendrecv
  1097.  
  1098. 2021-07-29 07:17:40.889556 [DEBUG] switch_core_state_machine.c:40 sofia/default/12344 Standard INIT
  1099. 2021-07-29 07:17:40.889556 [DEBUG] switch_core_state_machine.c:48 (sofia/default/12344) State Change CS_INIT -> CS_ROUTING
  1100. 2021-07-29 07:17:40.889556 [DEBUG] switch_core_state_machine.c:628 (sofia/default/12344) State INIT going to sleep
  1101. 2021-07-29 07:17:40.889556 [DEBUG] switch_core_state_machine.c:585 (sofia/default/12344) Running State Change CS_ROUTING (Cur 2 Tot 11)
  1102. 2021-07-29 07:17:40.889556 [DEBUG] sofia.c:7326 Channel sofia/default/12344 entering state [calling][0]
  1103. 2021-07-29 07:17:40.889556 [DEBUG] switch_core_state_machine.c:644 (sofia/default/12344) State ROUTING
  1104. 2021-07-29 07:17:40.889556 [DEBUG] mod_sofia.c:154 sofia/default/12344 SOFIA ROUTING
  1105. 2021-07-29 07:17:40.889556 [DEBUG] switch_ivr_originate.c:67 (sofia/default/12344) State Change CS_ROUTING -> CS_CONSUME_MEDIA
  1106. 2021-07-29 07:17:40.889556 [DEBUG] switch_core_state_machine.c:644 (sofia/default/12344) State ROUTING going to sleep
  1107. 2021-07-29 07:17:40.889556 [DEBUG] switch_core_state_machine.c:585 (sofia/default/12344) Running State Change CS_CONSUME_MEDIA (Cur 2 Tot 11)
  1108. 2021-07-29 07:17:40.889556 [DEBUG] switch_core_state_machine.c:663 (sofia/default/12344) State CONSUME_MEDIA
  1109. 2021-07-29 07:17:40.889556 [DEBUG] switch_core_state_machine.c:663 (sofia/default/12344) State CONSUME_MEDIA going to sleep
  1110. 2021-07-29 07:17:41.629576 [DEBUG] sofia.c:7326 Channel sofia/default/12344 entering state [proceeding][180]
  1111. 2021-07-29 07:17:41.629576 [NOTICE] sofia.c:7437 Ring-Ready sofia/default/12344!
  1112. 2021-07-29 07:17:41.629576 [DEBUG] switch_channel.c:3437 (sofia/default/12344) Callstate Change DOWN -> RINGING
  1113. 2021-07-29 07:17:41.629576 [NOTICE] mod_sofia.c:2498 Ring-Ready sofia/default/505@test-tls.astppbilling.org:7777!
  1114. 2021-07-29 07:17:41.649555 [DEBUG] sofia.c:7326 Channel sofia/default/505@test-tls.astppbilling.org:7777 entering state [early][180]
  1115. 2021-07-29 07:17:41.649555 [NOTICE] switch_ivr_originate.c:556 Ring Ready sofia/default/505@test-tls.astppbilling.org:7777!
  1116. 2021-07-29 07:17:45.289577 [DEBUG] sofia.c:7326 Channel sofia/default/12344 entering state [completing][200]
  1117. 2021-07-29 07:17:45.289577 [DEBUG] sofia.c:7336 Remote SDP:
  1118. v=0
  1119. o=root 117860649 117860649 IN IP4 159.203.131.36
  1120. s=Asterisk PBX 16.4.0
  1121. c=IN IP4 159.203.131.36
  1122. t=0 0
  1123. m=audio 17514 RTP/AVP 8 101
  1124. a=rtpmap:8 PCMA/8000
  1125. a=rtpmap:101 telephone-event/8000
  1126. a=fmtp:101 0-16
  1127. a=maxptime:150
  1128.  
  1129. 2021-07-29 07:17:45.289577 [DEBUG] sofia.c:7326 Channel sofia/default/12344 entering state [ready][200]
  1130. 2021-07-29 07:17:45.289577 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:150:64000:1]/[PCMA:8:8000:20:64000:1]
  1131. 2021-07-29 07:17:45.289577 [DEBUG] switch_core_media.c:5649 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  1132. 2021-07-29 07:17:45.289577 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:150:64000:1]/[G729:18:8000:20:8000:1]
  1133. 2021-07-29 07:17:45.289577 [DEBUG] switch_core_media.c:5510 Set telephone-event payload to 101@8000
  1134. 2021-07-29 07:17:45.289577 [DEBUG] switch_core_media.c:3839 Set Codec sofia/default/12344 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  1135. 2021-07-29 07:17:45.289577 [DEBUG] switch_core_codec.c:111 sofia/default/12344 Original read codec set to PCMA:8
  1136. 2021-07-29 07:17:45.289577 [DEBUG] switch_core_media.c:5853 Set telephone-event payload to 101@8000
  1137. 2021-07-29 07:17:45.289577 [DEBUG] switch_core_media.c:5911 sofia/default/12344 Set 2833 dtmf send payload to 101 recv payload to 101
  1138. 2021-07-29 07:17:45.289577 [DEBUG] switch_core_media.c:8663 AUDIO RTP [sofia/default/12344] 172.31.5.221 port 26012 -> 159.203.131.36 port 17514 codec: 8 ms: 20
  1139. 2021-07-29 07:17:45.289577 [DEBUG] switch_rtp.c:4450 Starting timer [soft] 160 bytes per 20ms
  1140. 2021-07-29 07:17:45.289577 [DEBUG] switch_core_media.c:8977 sofia/default/12344 Set 2833 dtmf send payload to 101
  1141. 2021-07-29 07:17:45.289577 [DEBUG] switch_core_media.c:8984 sofia/default/12344 Set 2833 dtmf receive payload to 101
  1142. 2021-07-29 07:17:45.289577 [DEBUG] switch_core_media.c:9007 sofia/default/12344 Set rtp dtmf delay to 40
  1143. 2021-07-29 07:17:45.289577 [NOTICE] sofia.c:8504 Channel [sofia/default/12344] has been answered
  1144. 2021-07-29 07:17:45.289577 [DEBUG] switch_channel.c:3865 (sofia/default/12344) Callstate Change RINGING -> ACTIVE
  1145. 2021-07-29 07:17:45.289577 [DEBUG] switch_core_media.c:8663 AUDIO RTP [sofia/default/505@test-tls.astppbilling.org:7777] 172.31.5.221 port 27664 -> 117.247.91.162 port 8000 codec: 8 ms: 20
  1146. 2021-07-29 07:17:45.289577 [DEBUG] switch_rtp.c:4450 Starting timer [soft] 160 bytes per 20ms
  1147. 2021-07-29 07:17:45.309560 [DEBUG] switch_core_media.c:8977 sofia/default/505@test-tls.astppbilling.org:7777 Set 2833 dtmf send payload to 101
  1148. 2021-07-29 07:17:45.309560 [DEBUG] switch_core_media.c:8984 sofia/default/505@test-tls.astppbilling.org:7777 Set 2833 dtmf receive payload to 101
  1149. 2021-07-29 07:17:45.309560 [DEBUG] switch_core_media.c:9007 sofia/default/505@test-tls.astppbilling.org:7777 Set rtp dtmf delay to 40
  1150. 2021-07-29 07:17:45.309560 [DEBUG] mod_sofia.c:898 Local SDP sofia/default/505@test-tls.astppbilling.org:7777:
  1151. v=0
  1152. o=FreeSWITCH 1627515401 1627515402 IN IP4 13.232.140.73
  1153. s=FreeSWITCH
  1154. c=IN IP4 13.232.140.73
  1155. t=0 0
  1156. m=audio 27664 RTP/AVP 8 101
  1157. a=rtpmap:8 PCMA/8000
  1158. a=rtpmap:101 telephone-event/8000
  1159. a=fmtp:101 0-16
  1160. a=ptime:20
  1161. a=sendrecv
  1162.  
  1163. 2021-07-29 07:17:45.309560 [DEBUG] sofia.c:7326 Channel sofia/default/505@test-tls.astppbilling.org:7777 entering state [completed][200]
  1164. 2021-07-29 07:17:45.309560 [NOTICE] switch_ivr_originate.c:3794 Channel [sofia/default/505@test-tls.astppbilling.org:7777] has been answered
  1165. 2021-07-29 07:17:45.309560 [DEBUG] switch_channel.c:3865 (sofia/default/505@test-tls.astppbilling.org:7777) Callstate Change RINGING -> ACTIVE
  1166. 2021-07-29 07:17:45.309560 [DEBUG] switch_ivr_originate.c:3852 Originate Resulted in Success: [sofia/default/12344]
  1167. 2021-07-29 07:17:45.309560 [DEBUG] switch_ivr_bridge.c:1793 (sofia/default/12344) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA
  1168. 2021-07-29 07:17:45.309560 [DEBUG] switch_core_state_machine.c:585 (sofia/default/12344) Running State Change CS_EXCHANGE_MEDIA (Cur 2 Tot 11)
  1169. 2021-07-29 07:17:45.309560 [DEBUG] switch_core_state_machine.c:654 (sofia/default/12344) State EXCHANGE_MEDIA
  1170. 2021-07-29 07:17:45.309560 [DEBUG] mod_sofia.c:656 SOFIA EXCHANGE_MEDIA
  1171. 2021-07-29 07:17:45.329555 [DEBUG] sofia.c:7326 Channel sofia/default/505@test-tls.astppbilling.org:7777 entering state [ready][200]
  1172. 2021-07-29 07:17:45.429577 [DEBUG] switch_rtp.c:7759 Correct audio ip/port confirmed.
  1173. 2021-07-29 07:17:45.489578 [DEBUG] switch_ivr_bridge.c:655 sofia/default/12344 Bridge execute app sched_hangup(+6000 normal_clearing)
  1174. 2021-07-29 07:17:45.509581 [DEBUG] switch_ivr.c:632 sofia/default/12344 Command Execute [depth=0] sched_hangup(+6000 normal_clearing)
  1175. EXECUTE [depth=0] sofia/default/12344 sched_hangup(+6000 normal_clearing)
  1176. 2021-07-29 07:17:45.509581 [DEBUG] switch_scheduler.c:252 Added task 5 switch_ivr_schedule_hangup (79893841-d2ad-4df7-a9ad-7d897f5adb85) to run at 1627549065
  1177. 2021-07-29 07:17:45.589557 [DEBUG] switch_rtp.c:7759 Correct audio ip/port confirmed.
  1178. 2021-07-29 07:17:57.069556 [DEBUG] switch_rtp.c:8004 RTP RECV DTMF *:1440
  1179. 2021-07-29 07:17:57.069556 [INFO] switch_channel.c:522 RECV DTMF *:1440
  1180. 2021-07-29 07:17:57.069556 [DEBUG] switch_rtp.c:5585 Send start packet for [*] ts=2446668600 dur=160/160/1440 seq=11253 lw=2446668600
  1181. 2021-07-29 07:17:57.089559 [DEBUG] switch_rtp.c:5484 Send middle packet for [*] ts=2446668600 dur=320/320/1440 seq=11254 lw=2446668760
  1182. 2021-07-29 07:17:57.109561 [DEBUG] switch_rtp.c:5484 Send middle packet for [*] ts=2446668600 dur=480/480/1440 seq=11255 lw=2446668920
  1183. 2021-07-29 07:17:57.129558 [DEBUG] switch_rtp.c:5484 Send middle packet for [*] ts=2446668600 dur=640/640/1440 seq=11256 lw=2446669080
  1184. 2021-07-29 07:17:57.149559 [DEBUG] switch_rtp.c:5484 Send middle packet for [*] ts=2446668600 dur=800/800/1440 seq=11257 lw=2446669240
  1185. 2021-07-29 07:17:57.169570 [DEBUG] switch_rtp.c:5484 Send middle packet for [*] ts=2446668600 dur=960/960/1440 seq=11258 lw=2446669400
  1186. 2021-07-29 07:17:57.189558 [DEBUG] switch_rtp.c:5484 Send middle packet for [*] ts=2446668600 dur=1120/1120/1440 seq=11259 lw=2446669560
  1187. 2021-07-29 07:17:57.209558 [DEBUG] switch_rtp.c:5484 Send middle packet for [*] ts=2446668600 dur=1280/1280/1440 seq=11260 lw=2446669720
  1188. 2021-07-29 07:17:57.229556 [DEBUG] switch_rtp.c:5484 Send end packet for [*] ts=2446668600 dur=1440/1440/1440 seq=11261 lw=2446669720
  1189. 2021-07-29 07:17:57.229556 [DEBUG] switch_rtp.c:5484 Send end packet for [*] ts=2446668600 dur=1440/1440/1440 seq=11262 lw=2446669720
  1190. 2021-07-29 07:17:57.229556 [DEBUG] switch_rtp.c:5484 Send end packet for [*] ts=2446668600 dur=1440/1440/1440 seq=11263 lw=2446669720
  1191. 2021-07-29 07:17:57.229556 [DEBUG] switch_rtp.c:5432 Queue digit delay of 40ms
  1192. 2021-07-29 07:17:58.209557 [DEBUG] switch_rtp.c:8004 RTP RECV DTMF 2:1280
  1193. 2021-07-29 07:17:58.209557 [INFO] switch_channel.c:522 RECV DTMF 2:1280
  1194. 2021-07-29 07:17:58.209557 [DEBUG] switch_rtp.c:5585 Send start packet for [2] ts=2446677720 dur=160/160/1280 seq=11305 lw=2446677720
  1195. 2021-07-29 07:17:58.229603 [DEBUG] switch_rtp.c:5484 Send middle packet for [2] ts=2446677720 dur=320/320/1280 seq=11306 lw=2446677880
  1196. 2021-07-29 07:17:58.249559 [DEBUG] switch_rtp.c:5484 Send middle packet for [2] ts=2446677720 dur=480/480/1280 seq=11307 lw=2446678040
  1197. 2021-07-29 07:17:58.269540 [DEBUG] switch_rtp.c:5484 Send middle packet for [2] ts=2446677720 dur=640/640/1280 seq=11308 lw=2446678200
  1198. 2021-07-29 07:17:58.289559 [DEBUG] switch_rtp.c:5484 Send middle packet for [2] ts=2446677720 dur=800/800/1280 seq=11309 lw=2446678360
  1199. 2021-07-29 07:17:58.309559 [DEBUG] switch_rtp.c:5484 Send middle packet for [2] ts=2446677720 dur=960/960/1280 seq=11310 lw=2446678520
  1200. 2021-07-29 07:17:58.329576 [DEBUG] switch_rtp.c:5484 Send middle packet for [2] ts=2446677720 dur=1120/1120/1280 seq=11311 lw=2446678680
  1201. 2021-07-29 07:17:58.349559 [DEBUG] switch_rtp.c:5484 Send end packet for [2] ts=2446677720 dur=1280/1280/1280 seq=11312 lw=2446678680
  1202. 2021-07-29 07:17:58.349559 [DEBUG] switch_rtp.c:5484 Send end packet for [2] ts=2446677720 dur=1280/1280/1280 seq=11313 lw=2446678680
  1203. 2021-07-29 07:17:58.349559 [DEBUG] switch_rtp.c:5484 Send end packet for [2] ts=2446677720 dur=1280/1280/1280 seq=11314 lw=2446678680
  1204. 2021-07-29 07:17:58.349559 [DEBUG] switch_rtp.c:5432 Queue digit delay of 40ms
  1205. 2021-07-29 07:18:03.249576 [NOTICE] sofia.c:1089 Hangup sofia/default/505@test-tls.astppbilling.org:7777 [CS_EXECUTE] [NORMAL_CLEARING]
  1206. 2021-07-29 07:18:03.269564 [DEBUG] switch_ivr_bridge.c:912 BRIDGE THREAD DONE [sofia/default/505@test-tls.astppbilling.org:7777]
  1207. 2021-07-29 07:18:03.269564 [DEBUG] switch_ivr_bridge.c:820 sofia/default/505@test-tls.astppbilling.org:7777 ending bridge by request from write function
  1208. 2021-07-29 07:18:03.269564 [DEBUG] switch_ivr_bridge.c:912 BRIDGE THREAD DONE [sofia/default/12344]
  1209. 2021-07-29 07:18:03.269564 [NOTICE] switch_ivr_bridge.c:1029 Hangup sofia/default/12344 [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]
  1210. 2021-07-29 07:18:03.269564 [DEBUG] switch_core_state_machine.c:654 (sofia/default/12344) State EXCHANGE_MEDIA going to sleep
  1211. 2021-07-29 07:18:03.269564 [DEBUG] switch_core_state_machine.c:585 (sofia/default/12344) Running State Change CS_HANGUP (Cur 2 Tot 11)
  1212. 2021-07-29 07:18:03.269564 [DEBUG] switch_core_state_machine.c:848 (sofia/default/12344) Callstate Change ACTIVE -> HANGUP
  1213. 2021-07-29 07:18:03.269564 [DEBUG] switch_core_state_machine.c:850 (sofia/default/12344) State HANGUP
  1214. 2021-07-29 07:18:03.269564 [DEBUG] mod_sofia.c:447 sofia/default/12344 Overriding SIP cause 480 with 200 from the other leg
  1215. 2021-07-29 07:18:03.269564 [DEBUG] mod_sofia.c:453 Channel sofia/default/12344 hanging up, cause: NORMAL_CLEARING
  1216. 2021-07-29 07:18:03.269564 [DEBUG] mod_sofia.c:507 Sending BYE to sofia/default/12344
  1217. 2021-07-29 07:18:03.269564 [DEBUG] switch_core_state_machine.c:60 sofia/default/12344 Standard HANGUP, cause: NORMAL_CLEARING
  1218. 2021-07-29 07:18:03.269564 [DEBUG] switch_core_state_machine.c:850 (sofia/default/12344) State HANGUP going to sleep
  1219. 2021-07-29 07:18:03.269564 [DEBUG] switch_core_state_machine.c:620 (sofia/default/12344) State Change CS_HANGUP -> CS_REPORTING
  1220. 2021-07-29 07:18:03.269564 [DEBUG] switch_core_state_machine.c:585 (sofia/default/12344) Running State Change CS_REPORTING (Cur 2 Tot 11)
  1221. 2021-07-29 07:18:03.269564 [DEBUG] switch_core_state_machine.c:936 (sofia/default/12344) State REPORTING
  1222. 2021-07-29 07:18:03.269564 [INFO] mod_json_cdr.c:271 Process [79893841-d2ad-4df7-a9ad-7d897f5adb85.cdr.json]
  1223. 2021-07-29 07:18:03.269564 [DEBUG] switch_ivr_bridge.c:1892 sofia/default/12344 skip receive message [UNBRIDGE] (channel is hungup already)
  1224. 2021-07-29 07:18:03.269564 [DEBUG] switch_ivr_bridge.c:1895 sofia/default/505@test-tls.astppbilling.org:7777 skip receive message [UNBRIDGE] (channel is hungup already)
  1225. 2021-07-29 07:18:03.269564 [DEBUG] switch_core_session.c:2905 sofia/default/505@test-tls.astppbilling.org:7777 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
  1226. 2021-07-29 07:18:03.269564 [DEBUG] switch_core_state_machine.c:651 (sofia/default/505@test-tls.astppbilling.org:7777) State EXECUTE going to sleep
  1227. 2021-07-29 07:18:03.269564 [DEBUG] switch_core_state_machine.c:585 (sofia/default/505@test-tls.astppbilling.org:7777) Running State Change CS_HANGUP (Cur 2 Tot 11)
  1228. 2021-07-29 07:18:03.269564 [DEBUG] switch_core_state_machine.c:848 (sofia/default/505@test-tls.astppbilling.org:7777) Callstate Change ACTIVE -> HANGUP
  1229. 2021-07-29 07:18:03.269564 [DEBUG] switch_core_state_machine.c:850 (sofia/default/505@test-tls.astppbilling.org:7777) State HANGUP
  1230. 2021-07-29 07:18:03.269564 [DEBUG] mod_sofia.c:453 Channel sofia/default/505@test-tls.astppbilling.org:7777 hanging up, cause: NORMAL_CLEARING
  1231. 2021-07-29 07:18:03.269564 [DEBUG] switch_core_state_machine.c:60 sofia/default/505@test-tls.astppbilling.org:7777 Standard HANGUP, cause: NORMAL_CLEARING
  1232. 2021-07-29 07:18:03.269564 [DEBUG] switch_core_state_machine.c:850 (sofia/default/505@test-tls.astppbilling.org:7777) State HANGUP going to sleep
  1233. 2021-07-29 07:18:03.269564 [DEBUG] switch_core_state_machine.c:620 (sofia/default/505@test-tls.astppbilling.org:7777) State Change CS_HANGUP -> CS_REPORTING
  1234. 2021-07-29 07:18:03.269564 [DEBUG] switch_core_state_machine.c:585 (sofia/default/505@test-tls.astppbilling.org:7777) Running State Change CS_REPORTING (Cur 2 Tot 11)
  1235. 2021-07-29 07:18:03.269564 [DEBUG] switch_core_state_machine.c:936 (sofia/default/505@test-tls.astppbilling.org:7777) State REPORTING
  1236. 2021-07-29 07:18:03.269564 [INFO] mod_json_cdr.c:271 Process [ccc25279-92cd-46d3-8948-83978d373529.cdr.json]
  1237. 2021-07-29 07:18:03.289559 [DEBUG] switch_core_state_machine.c:174 sofia/default/12344 Standard REPORTING, cause: NORMAL_CLEARING
  1238. 2021-07-29 07:18:03.289559 [DEBUG] switch_core_state_machine.c:936 (sofia/default/12344) State REPORTING going to sleep
  1239. 2021-07-29 07:18:03.289559 [DEBUG] switch_core_state_machine.c:611 (sofia/default/12344) State Change CS_REPORTING -> CS_DESTROY
  1240. 2021-07-29 07:18:03.289559 [DEBUG] switch_core_session.c:1726 Session 11 (sofia/default/12344) Locked, Waiting on external entities
  1241. 2021-07-29 07:18:03.289559 [NOTICE] switch_core_session.c:1744 Session 11 (sofia/default/12344) Ended
  1242. 2021-07-29 07:18:03.289559 [NOTICE] switch_core_session.c:1748 Close Channel sofia/default/12344 [CS_DESTROY]
  1243. 2021-07-29 07:18:03.289559 [DEBUG] switch_core_state_machine.c:739 (sofia/default/12344) Running State Change CS_DESTROY (Cur 1 Tot 11)
  1244. 2021-07-29 07:18:03.289559 [DEBUG] switch_core_state_machine.c:749 (sofia/default/12344) State DESTROY
  1245. 2021-07-29 07:18:03.289559 [DEBUG] mod_sofia.c:364 sofia/default/12344 SOFIA DESTROY
  1246. 2021-07-29 07:18:03.289559 [DEBUG] switch_core_state_machine.c:181 sofia/default/12344 Standard DESTROY
  1247. 2021-07-29 07:18:03.289559 [DEBUG] switch_core_state_machine.c:749 (sofia/default/12344) State DESTROY going to sleep
  1248. 2021-07-29 07:18:03.309561 [DEBUG] switch_core_state_machine.c:174 sofia/default/505@test-tls.astppbilling.org:7777 Standard REPORTING, cause: NORMAL_CLEARING
  1249. 2021-07-29 07:18:03.309561 [DEBUG] switch_core_state_machine.c:936 (sofia/default/505@test-tls.astppbilling.org:7777) State REPORTING going to sleep
  1250. 2021-07-29 07:18:03.309561 [DEBUG] switch_core_state_machine.c:611 (sofia/default/505@test-tls.astppbilling.org:7777) State Change CS_REPORTING -> CS_DESTROY
  1251. 2021-07-29 07:18:03.309561 [DEBUG] switch_core_session.c:1726 Session 10 (sofia/default/505@test-tls.astppbilling.org:7777) Locked, Waiting on external entities
  1252. 2021-07-29 07:18:03.309561 [NOTICE] switch_core_session.c:1744 Session 10 (sofia/default/505@test-tls.astppbilling.org:7777) Ended
  1253. 2021-07-29 07:18:03.309561 [NOTICE] switch_core_session.c:1748 Close Channel sofia/default/505@test-tls.astppbilling.org:7777 [CS_DESTROY]
  1254. 2021-07-29 07:18:03.309561 [DEBUG] switch_core_state_machine.c:739 (sofia/default/505@test-tls.astppbilling.org:7777) Running State Change CS_DESTROY (Cur 0 Tot 11)
  1255. 2021-07-29 07:18:03.309561 [DEBUG] switch_core_state_machine.c:749 (sofia/default/505@test-tls.astppbilling.org:7777) State DESTROY
  1256. 2021-07-29 07:18:03.309561 [DEBUG] mod_sofia.c:364 sofia/default/505@test-tls.astppbilling.org:7777 SOFIA DESTROY
  1257. 2021-07-29 07:18:03.309561 [DEBUG] switch_core_state_machine.c:181 sofia/default/505@test-tls.astppbilling.org:7777 Standard DESTROY
  1258. 2021-07-29 07:18:03.309561 [DEBUG] switch_core_state_machine.c:749 (sofia/default/505@test-tls.astppbilling.org:7777) State DESTROY going to sleep
  1259. 2021-07-29 07:18:03.509564 [DEBUG] switch_scheduler.c:147 Deleting task 5 switch_ivr_schedule_hangup (79893841-d2ad-4df7-a9ad-7d897f5adb85)
  1260.