From DID cost Ashish, 2 Months ago, written in HTML5.
- view diff
Embed
  1.  
  2. 2024-09-04 11:15:44.470380 100.00% [DEBUG] switch_core_media.c:5526 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  3. 2024-09-04 11:15:44.470380 100.00% [DEBUG] switch_core_media.c:5526 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  4. 2024-09-04 11:15:44.470380 100.00% [DEBUG] switch_core_media.c:5588 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  5. 2024-09-04 11:15:44.470380 100.00% [DEBUG] switch_core_media.c:5438 Set telephone-event payload to 101@8000
  6. 2024-09-04 11:15:44.470380 100.00% [DEBUG] switch_core_media.c:3734 Set Codec sofia/default/917217787087@148.72.170.56 PCMU/8000 20 ms 160 samples 64000 bits 1 channels
  7. 2024-09-04 11:15:44.470380 100.00% [DEBUG] switch_core_codec.c:111 sofia/default/917217787087@148.72.170.56 Original read codec set to PCMU:0
  8. 2024-09-04 11:15:44.470380 100.00% [DEBUG] switch_core_media.c:5798 Set telephone-event payload to 101@8000
  9. 2024-09-04 11:15:44.470380 100.00% [DEBUG] switch_core_media.c:5856 sofia/default/917217787087@148.72.170.56 Set 2833 dtmf send payload to 101 recv payload to 101
  10. 2024-09-04 11:15:44.470380 100.00% [DEBUG] sofia.c:7927 (sofia/default/917217787087@148.72.170.56) State Change CS_NEW -> CS_INIT
  11. 2024-09-04 11:15:44.470380 100.00% [DEBUG] switch_core_state_machine.c:600 (sofia/default/917217787087@148.72.170.56) State NEW
  12. 2024-09-04 11:15:44.470380 100.00% [DEBUG] switch_core_state_machine.c:581 (sofia/default/917217787087@148.72.170.56) Running State Change CS_INIT (Cur 3 Tot 52495)
  13. 2024-09-04 11:15:44.470380 100.00% [DEBUG] switch_core_state_machine.c:624 (sofia/default/917217787087@148.72.170.56) State INIT
  14. 2024-09-04 11:15:44.470380 100.00% [DEBUG] mod_sofia.c:97 sofia/default/917217787087@148.72.170.56 SOFIA INIT
  15. 2024-09-04 11:15:44.470380 100.00% [DEBUG] switch_core_state_machine.c:40 sofia/default/917217787087@148.72.170.56 Standard INIT
  16. 2024-09-04 11:15:44.470380 100.00% [DEBUG] switch_core_state_machine.c:48 (sofia/default/917217787087@148.72.170.56) State Change CS_INIT -> CS_ROUTING
  17. 2024-09-04 11:15:44.470380 100.00% [DEBUG] switch_core_state_machine.c:624 (sofia/default/917217787087@148.72.170.56) State INIT going to sleep
  18. 2024-09-04 11:15:44.470380 100.00% [DEBUG] switch_core_state_machine.c:581 (sofia/default/917217787087@148.72.170.56) Running State Change CS_ROUTING (Cur 3 Tot 52495)
  19. 2024-09-04 11:15:44.470380 100.00% [DEBUG] switch_channel.c:2399 (sofia/default/917217787087@148.72.170.56) Callstate Change DOWN -> RINGING
  20. 2024-09-04 11:15:44.470380 100.00% [DEBUG] switch_core_state_machine.c:640 (sofia/default/917217787087@148.72.170.56) State ROUTING
  21. 2024-09-04 11:15:44.470380 100.00% [DEBUG] mod_sofia.c:158 sofia/default/917217787087@148.72.170.56 SOFIA ROUTING
  22. 2024-09-04 11:15:44.470380 100.00% [DEBUG] switch_core_state_machine.c:230 sofia/default/917217787087@148.72.170.56 Standard ROUTING
  23. 2024-09-04 11:15:44.470380 100.00% [INFO] mod_dialplan_xml.c:639 Processing 917217787087 <917217787087>->8554012214 in context default
  24. 2024-09-04 11:15:44.490241 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] USING CACHE
  25. 2024-09-04 11:15:44.490241 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_SYSTEM]1.0
  26. 2024-09-04 11:15:44.490241 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_SYSTEM]1.0
  27. 2024-09-04 11:15:44.490241 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  28. 2024-09-04 11:15:44.490241 100.00% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [xml_handler] Params:
  29. Event-Name: REQUEST_PARAMS
  30. Core-UUID: b93b17b6-0ea5-42ae-8f25-8202a5c96c49
  31. FreeSWITCH-Hostname: host-162-211-120-19
  32. FreeSWITCH-Switchname: host-162-211-120-19
  33. FreeSWITCH-IPv4: 162.211.120.19
  34. FreeSWITCH-IPv6: %3A%3A1
  35. Event-Date-Local: 2024-09-04%2011%3A15%3A44
  36. Event-Date-GMT: Wed,%2004%20Sep%202024%2011%3A15%3A44%20GMT
  37. Event-Date-Timestamp: 1725448544470380
  38. Event-Calling-File: mod_dialplan_xml.c
  39. Event-Calling-Function: dialplan_xml_locate
  40. Event-Calling-Line-Number: 610
  41. Event-Sequence: 3300518
  42. Channel-State: CS_ROUTING
  43. Channel-Call-State: RINGING
  44. Channel-State-Number: 2
  45. Channel-Name: sofia/default/917217787087%40148.72.170.56
  46. Unique-ID: 12f47352-9d63-481a-9642-6bbde610d877
  47. Call-Direction: inbound
  48. Presence-Call-Direction: inbound
  49. Channel-HIT-Dialplan: true
  50. Channel-Presence-ID: 917217787087%40148.72.170.56
  51. Channel-Call-UUID: 12f47352-9d63-481a-9642-6bbde610d877
  52. Answer-State: ringing
  53. Channel-Read-Codec-Name: PCMU
  54. Channel-Read-Codec-Rate: 8000
  55. Channel-Read-Codec-Bit-Rate: 64000
  56. Channel-Write-Codec-Name: PCMU
  57. Channel-Write-Codec-Rate: 8000
  58. Channel-Write-Codec-Bit-Rate: 64000
  59. Caller-Direction: inbound
  60. Caller-Logical-Direction: inbound
  61. Caller-Username: 917217787087
  62. Caller-Dialplan: XML
  63. Caller-Caller-ID-Name: 917217787087
  64. Caller-Caller-ID-Number: 917217787087
  65. Caller-Orig-Caller-ID-Name: 917217787087
  66. Caller-Orig-Caller-ID-Number: 917217787087
  67. Caller-Network-Addr: 148.72.170.56
  68. Caller-ANI: 917217787087
  69. Caller-Destination-Number: 8554012214
  70. Caller-Unique-ID: 12f47352-9d63-481a-9642-6bbde610d877
  71. Caller-Source: mod_sofia
  72. Caller-Context: default
  73. Caller-Channel-Name: sofia/default/917217787087%40148.72.170.56
  74. Caller-Profile-Index: 1
  75. Caller-Profile-Created-Time: 1725448544470380
  76. Caller-Channel-Created-Time: 1725448544470380
  77. Caller-Channel-Answered-Time: 0
  78. Caller-Channel-Progress-Time: 0
  79. Caller-Channel-Progress-Media-Time: 0
  80. Caller-Channel-Hangup-Time: 0
  81. Caller-Channel-Transfer-Time: 0
  82. Caller-Channel-Resurrect-Time: 0
  83. Caller-Channel-Bridged-Time: 0
  84. Caller-Channel-Last-Hold: 0
  85. Caller-Channel-Hold-Accum: 0
  86. Caller-Screen-Bit: true
  87. Caller-Privacy-Hide-Name: false
  88. Caller-Privacy-Hide-Number: false
  89. variable_direction: inbound
  90. variable_uuid: 12f47352-9d63-481a-9642-6bbde610d877
  91. variable_session_id: 52495
  92. variable_sip_from_user: 917217787087
  93. variable_sip_from_uri: 917217787087%40148.72.170.56
  94. variable_sip_from_host: 148.72.170.56
  95. variable_video_media_flow: disabled
  96. variable_text_media_flow: disabled
  97. variable_channel_name: sofia/default/917217787087%40148.72.170.56
  98. variable_sip_call_id: 5171e4f7e63616c6c0054c67c%40148.72.170.56
  99. variable_sip_local_network_addr: 162.211.120.19
  100. variable_sip_network_ip: 148.72.170.56
  101. variable_sip_network_port: 5060
  102. variable_sip_invite_stamp: 1725448544470380
  103. variable_sip_received_ip: 148.72.170.56
  104. variable_sip_received_port: 5060
  105. variable_sip_via_protocol: udp
  106. variable_sip_authorized: true
  107. variable_sip_acl_authed_by: default
  108. variable_sip_from_user_stripped: 917217787087
  109. variable_sip_from_tag: 6c61a42b53888eac
  110. variable_sofia_profile_name: default
  111. variable_sofia_profile_url: sip%3Amod_sofia%40162.211.120.19%3A5060
  112. variable_recovery_profile_name: default
  113. variable_sip_full_via: SIP/2.0/UDP%20148.72.170.56%3A5060%3Bbranch%3Dz9hG4bK7f32f7b03d5daeea
  114. variable_sip_full_from: %3Csip%3A917217787087%40148.72.170.56%3E%3Btag%3D6c61a42b53888eac
  115. variable_sip_full_to: %3Csip%3A8554012214%40162.211.120.19%3E
  116. variable_sip_allow: INVITE,%20ACK,%20CANCEL,%20BYE,%20OPTIONS,%20INFO,%20UPDATE,%20PRACK
  117. variable_sip_req_user: 8554012214
  118. variable_sip_req_uri: 8554012214%40162.211.120.19
  119. variable_sip_req_host: 162.211.120.19
  120. variable_sip_to_user: 8554012214
  121. variable_sip_to_uri: 8554012214%40162.211.120.19
  122. variable_sip_to_host: 162.211.120.19
  123. variable_sip_contact_user: 917217787087
  124. variable_sip_contact_port: 5060
  125. variable_sip_contact_uri: 917217787087%40148.72.170.56%3A5060
  126. variable_sip_contact_host: 148.72.170.56
  127. variable_sip_user_agent: VOS3000%20V2.1.8.05
  128. variable_sip_via_host: 148.72.170.56
  129. variable_sip_via_port: 5060
  130. variable_max_forwards: 70
  131. variable_presence_id: 917217787087%40148.72.170.56
  132. variable_switch_r_sdp: v%3D0%0D%0Ao%3D-%2016736%2016736%20IN%20IP4%20148.72.170.56%0D%0As%3D-%0D%0Ac%3DIN%20IP4%20148.72.170.56%0D%0At%3D0%200%0D%0Am%3Daudio%2012824%20RTP/AVP%200%20101%0D%0Aa%3Drtpmap%3A0%20PCMU/8000%0D%0Aa%3Drtpmap%3A101%20telephone-event/8000%0D%0Aa%3Dfmtp%3A101%200-15%0D%0Aa%3Dptime%3A20%0D%0A
  133. variable_ep_codec_string: CORE_PCM_MODULE.PCMU%408000h%4020i%4064000b
  134. variable_rtp_use_codec_string: PCMA,PCMU
  135. variable_remote_video_media_flow: inactive
  136. variable_remote_text_media_flow: inactive
  137. variable_remote_audio_media_flow: sendrecv
  138. variable_audio_media_flow: sendrecv
  139. variable_remote_media_ip: 148.72.170.56
  140. variable_remote_media_port: 12824
  141. variable_rtp_audio_recv_pt: 0
  142. variable_rtp_use_codec_name: PCMU
  143. variable_rtp_use_codec_rate: 8000
  144. variable_rtp_use_codec_ptime: 20
  145. variable_rtp_use_codec_channels: 1
  146. variable_rtp_last_audio_codec_string: PCMU%408000h%4020i%401c
  147. variable_read_codec: PCMU
  148. variable_original_read_codec: PCMU
  149. variable_read_rate: 8000
  150. variable_original_read_rate: 8000
  151. variable_write_codec: PCMU
  152. variable_write_rate: 8000
  153. variable_dtmf_type: rfc2833
  154. variable_endpoint_disposition: RECEIVED
  155. variable_call_uuid: 12f47352-9d63-481a-9642-6bbde610d877
  156. Hunt-Direction: inbound
  157. Hunt-Logical-Direction: inbound
  158. Hunt-Username: 917217787087
  159. Hunt-Dialplan: XML
  160. Hunt-Caller-ID-Name: 917217787087
  161. Hunt-Caller-ID-Number: 917217787087
  162. Hunt-Orig-Caller-ID-Name: 917217787087
  163. Hunt-Orig-Caller-ID-Number: 917217787087
  164. Hunt-Network-Addr: 148.72.170.56
  165. Hunt-ANI: 917217787087
  166. Hunt-Destination-Number: 8554012214
  167. Hunt-Unique-ID: 12f47352-9d63-481a-9642-6bbde610d877
  168. Hunt-Source: mod_sofia
  169. Hunt-Context: default
  170. Hunt-Channel-Name: sofia/default/917217787087%40148.72.170.56
  171. Hunt-Profile-Index: 1
  172. Hunt-Profile-Created-Time: 1725448544470380
  173. Hunt-Channel-Created-Time: 1725448544470380
  174. Hunt-Channel-Answered-Time: 0
  175. Hunt-Channel-Progress-Time: 0
  176. Hunt-Channel-Progress-Media-Time: 0
  177. Hunt-Channel-Hangup-Time: 0
  178. Hunt-Channel-Transfer-Time: 0
  179. Hunt-Channel-Resurrect-Time: 0
  180. Hunt-Channel-Bridged-Time: 0
  181. Hunt-Channel-Last-Hold: 0
  182. Hunt-Channel-Hold-Accum: 0
  183. Hunt-Screen-Bit: true
  184. Hunt-Privacy-Hide-Name: false
  185. Hunt-Privacy-Hide-Number: false
  186.  
  187.  
  188. 2024-09-04 11:15:44.490241 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] [xml_REQUEST] key_name:
  189. 2024-09-04 11:15:44.490241 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] [xml_REQUEST] key_value:
  190. 2024-09-04 11:15:44.490241 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] [xml_REQUEST] tag_name:
  191. 2024-09-04 11:15:44.490241 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] [xml_REQUEST] section: dialplan
  192. 2024-09-04 11:15:44.490241 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] [feature_code_call_transfer] Blind Call Flag: 0
  193. 2024-09-04 11:15:44.490241 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 8554012214
  194. 2024-09-04 11:15:44.490241 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '8554012214' limit 1
  195. 2024-09-04 11:15:44.490241 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_ACCESS_NUMBER]1.0
  196. 2024-09-04 11:15:44.490241 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [Fifo Condition Check] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '8554012214' and status=0 LIMIT 1
  197. 2024-09-04 11:15:44.490241 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] SOURCE NUMBER917217787087
  198. 2024-09-04 11:15:44.490241 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  199. 2024-09-04 11:15:44.490241 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL SOURCE] Query :SELECT domain,accountid FROM domains WHERE domain = '162.211.120.19' limit 1
  200. 2024-09-04 11:15:44.490241 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number  : 917217787087 / 917217787087
  201. 2024-09-04 11:15:44.490241 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Interconnect code destination number 2214
  202. 2024-09-04 11:15:44.490241 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_interconnectcode_info] Query :SELECT * FROM interconnectcode WHERE interconnectcode = 855401 AND status=0 limit 1
  203. 2024-09-04 11:15:44.490241 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]0.0
  204. 2024-09-04 11:15:44.490241 100.00% [NOTICE] switch_cpp.cpp:1465 [ASTPP] DID Global Translation Id : 1
  205. 2024-09-04 11:15:44.490241 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 1 AND status=0 limit 1
  206. 2024-09-04 11:15:44.490241 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"8/18/*/*,+1/1/*/*,+44/*/*/*,+61/*/*/*".....8554012214
  207. 2024-09-04 11:15:44.490241 100.00% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : 8554012214
  208. 2024-09-04 11:15:44.490241 100.00% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 18554012214
  209. 2024-09-04 11:15:44.490241 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"8/18/*/*,+1/1/*/*,+44/*/*/*,+61/*/*/*".....18554012214
  210. 2024-09-04 11:15:44.490241 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"8/18/*/*,+1/1/*/*,+44/*/*/*,+61/*/*/*".....18554012214
  211. 2024-09-04 11:15:44.490241 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"8/18/*/*,+1/1/*/*,+44/*/*/*,+61/*/*/*".....18554012214
  212. 2024-09-04 11:15:44.490241 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]1.1
  213. 2024-09-04 11:15:44.490241 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]1.1 :: CALL IS DID
  214. 2024-09-04 11:15:44.490241 100.00% [NOTICE] switch_cpp.cpp:1465 [ASTPP] DID Global Translation Id: 1
  215. 2024-09-04 11:15:44.490241 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 1 AND status=0 limit 1
  216. 2024-09-04 11:15:44.490241 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"8/18/*/*,+1/1/*/*,+44/*/*/*,+61/*/*/*".....18554012214
  217. 2024-09-04 11:15:44.490241 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"8/18/*/*,+1/1/*/*,+44/*/*/*,+61/*/*/*".....18554012214
  218. 2024-09-04 11:15:44.490241 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"8/18/*/*,+1/1/*/*,+44/*/*/*,+61/*/*/*".....18554012214
  219. 2024-09-04 11:15:44.490241 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"8/18/*/*,+1/1/*/*,+44/*/*/*,+61/*/*/*".....18554012214
  220. 2024-09-04 11:15:44.490241 100.00% [DEBUG] switch_cpp.cpp:1465 [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, A.codec as did_codec,A.provider_id as provider_id,A.always as always,A.always_destination as always_destination FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="18554012214" LIMIT 1
  221. 2024-09-04 11:15:44.490241 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  222. 2024-09-04 11:15:44.490241 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : inbound
  223. 2024-09-04 11:15:44.490241 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [IPAUTHENTICATION] Query :SELECT ip_map.*, (SELECT number FROM accounts where id=accountid AND status=0 AND deleted=0) AS account_code FROM ip_map WHERE INET_ATON("148.72.170.56") BETWEEN(INET_ATON(SUBSTRING_INDEX(`ip`, '/', 1)) & 0xffffffff ^((0x1 <<(32 -  SUBSTRING_INDEX(`ip`, '/', -1))) -1 )) AND(INET_ATON(SUBSTRING_INDEX(`ip`, '/', 1)) |((0x100000000 >> SUBSTRING_INDEX(`ip`,'/', -1)) -1))  AND "8554012214"  LIKE CONCAT(prefix,'%') ORDER BY LENGTH(prefix) DESC LIMIT 1
  224. 2024-09-04 11:15:44.490241 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] [Accountcode : 486840]
  225. 2024-09-04 11:15:44.490241 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE (number = "486840" OR id = "486840") AND deleted = 0 limit 1
  226. 2024-09-04 11:15:44.490241 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] provider call balance :SELECT * FROM accounts WHERE id =54
  227. 2024-09-04 11:15:44.490241 100.00% [NOTICE] switch_cpp.cpp:1465 [ASTPP] DID Global Translation Id : 1
  228. 2024-09-04 11:15:44.490241 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 1 AND status=0 limit 1
  229. 2024-09-04 11:15:44.490241 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"8/18/*/*,+1/1/*/*,+44/*/*/*,+61/*/*/*".....8554012214
  230. 2024-09-04 11:15:44.490241 100.00% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : 8554012214
  231. 2024-09-04 11:15:44.490241 100.00% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 18554012214
  232. 2024-09-04 11:15:44.490241 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"8/18/*/*,+1/1/*/*,+44/*/*/*,+61/*/*/*".....18554012214
  233. 2024-09-04 11:15:44.490241 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"8/18/*/*,+1/1/*/*,+44/*/*/*,+61/*/*/*".....18554012214
  234. 2024-09-04 11:15:44.490241 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"8/18/*/*,+1/1/*/*,+44/*/*/*,+61/*/*/*".....18554012214
  235. 2024-09-04 11:15:44.490241 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DID]0
  236. 2024-09-04 11:15:44.490241 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DID]1
  237. 2024-09-04 11:15:44.490241 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] Call Direction : inbound
  238. 2024-09-04 11:15:44.490241 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] DID ACCOUNT ID : 712
  239. 2024-09-04 11:15:44.490241 100.00% [DEBUG] switch_cpp.cpp:1465 [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 P.is_terminated = 0 AND (patterns = '^8554012214.*' OR patterns = '^855401221.*' OR patterns = '^85540122.*' OR patterns = '^8554012.*' OR patterns = '^855401.*' OR patterns = '^85540.*' OR patterns = '^8554.*' OR patterns = '^855.*' OR patterns = '^85.*' OR patterns = '^8.*' OR patterns ='--') AND accountid = 712 ORDER BY LENGTH(PKGPTR.patterns) DESC
  240. 2024-09-04 11:15:44.490241 100.00% [DEBUG] switch_cpp.cpp:1465 [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 ="8554012214" AND A.accountid = '54' limit 1
  241. 2024-09-04 11:15:44.490241 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 8554012214
  242. 2024-09-04 11:15:44.490241 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]0.0
  243. 2024-09-04 11:15:44.490241 100.00% [NOTICE] switch_cpp.cpp:1465 [ASTPP] DID Global Translation Id : 1
  244. 2024-09-04 11:15:44.490241 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 1 AND status=0 limit 1
  245. 2024-09-04 11:15:44.490241 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"8/18/*/*,+1/1/*/*,+44/*/*/*,+61/*/*/*".....8554012214
  246. 2024-09-04 11:15:44.490241 100.00% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [DONUMBERTRANSLATION] Before Localization CLI/DST : 8554012214
  247. 2024-09-04 11:15:44.490241 100.00% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [DONUMBERTRANSLATION] After Localization CLI/DST : 18554012214
  248. 2024-09-04 11:15:44.490241 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"8/18/*/*,+1/1/*/*,+44/*/*/*,+61/*/*/*".....18554012214
  249. 2024-09-04 11:15:44.490241 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"8/18/*/*,+1/1/*/*,+44/*/*/*,+61/*/*/*".....18554012214
  250. 2024-09-04 11:15:44.490241 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"8/18/*/*,+1/1/*/*,+44/*/*/*,+61/*/*/*".....18554012214
  251. 2024-09-04 11:15:44.490241 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]1.1
  252. 2024-09-04 11:15:44.490241 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]1.1 :: CALL IS DID
  253. 2024-09-04 11:15:44.490241 100.00% [NOTICE] switch_cpp.cpp:1465 [ASTPP] DID Global Translation Id: 1
  254. 2024-09-04 11:15:44.490241 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 1 AND status=0 limit 1
  255. 2024-09-04 11:15:44.490241 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"8/18/*/*,+1/1/*/*,+44/*/*/*,+61/*/*/*".....18554012214
  256. 2024-09-04 11:15:44.490241 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"8/18/*/*,+1/1/*/*,+44/*/*/*,+61/*/*/*".....18554012214
  257. 2024-09-04 11:15:44.490241 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"8/18/*/*,+1/1/*/*,+44/*/*/*,+61/*/*/*".....18554012214
  258. 2024-09-04 11:15:44.490241 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"8/18/*/*,+1/1/*/*,+44/*/*/*,+61/*/*/*".....18554012214
  259. 2024-09-04 11:15:44.490241 100.00% [DEBUG] switch_cpp.cpp:1465 [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, A.codec as did_codec,A.provider_id as provider_id,A.always as always,A.always_destination as always_destination FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="18554012214" LIMIT 1
  260. 2024-09-04 11:15:44.490241 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  261. 2024-09-04 11:15:44.490241 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] New Call Direction : inbound
  262. 2024-09-04 11:15:44.490241 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type,accountid FROM call_barring WHERE ((number = '8554012214' OR number = '855401221' OR number = '85540122' OR number = '8554012' OR number = '855401' OR number = '85540' OR number = '8554' OR number = '855' OR number = '85' OR number = '8' OR number ='--') OR (number = '8554012214*' OR number = '855401221*' OR number = '85540122*' OR number = '8554012*' OR number = '855401*' OR number = '85540*' OR number = '8554*' OR number = '855*' OR number = '85*' OR number = '8*' OR number ='--') OR (number = '917217787087' OR number = '91721778708' OR number = '9172177870' OR number = '917217787' OR number = '91721778' OR number = '9172177' OR number = '917217' OR number = '91721' OR number = '9172' OR number = '917' OR number = '91' OR number = '9' OR number ='--') OR (number = '917217787087*' OR number = '91721778708*' OR number = '9172177870*' OR number = '917217787*' OR number = '91721778*' OR number = '9172177*' OR number = '917217*' OR number = '91721*' OR number = '9172*' OR number = '917*' OR number = '91*' OR number = '9*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC
  263. 2024-09-04 11:15:44.490241 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Call Barring Status : -1
  264. 2024-09-04 11:15:44.490241 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '8554012214' OR routing_prefix = '855401221' OR routing_prefix = '85540122' OR routing_prefix = '8554012' OR routing_prefix = '855401' OR routing_prefix = '85540' OR routing_prefix = '8554' OR routing_prefix = '855' OR routing_prefix = '85' OR routing_prefix = '8' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1
  265. 2024-09-04 11:15:44.490241 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Account Information ===================
  266. 2024-09-04 11:15:44.490241 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] User id : 54
  267. 2024-09-04 11:15:44.490241 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] Account code : 486840
  268. 2024-09-04 11:15:44.490241 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] provider call balance :SELECT * FROM accounts WHERE id =54
  269. 2024-09-04 11:15:44.510237 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] Balance : 92134.1775
  270. 2024-09-04 11:15:44.510237 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  271. 2024-09-04 11:15:44.510237 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] Ratecard id : 35
  272. 2024-09-04 11:15:44.510237 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] CID Pool : 0
  273. 2024-09-04 11:15:44.510237 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================================================
  274. 2024-09-04 11:15:44.510237 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.0
  275. 2024-09-04 11:15:44.510237 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.1:CACHING ID:::35
  276. 2024-09-04 11:15:44.510237 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :inbound
  277. 2024-09-04 11:15:44.510237 100.00% [NOTICE] switch_cpp.cpp:1465 [ASTPP] DID Global Translation Id: 1
  278. 2024-09-04 11:15:44.510237 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 1 AND status=0 limit 1
  279. 2024-09-04 11:15:44.510237 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"8/18/*/*,+1/1/*/*,+44/*/*/*,+61/*/*/*".....18554012214
  280. 2024-09-04 11:15:44.510237 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"8/18/*/*,+1/1/*/*,+44/*/*/*,+61/*/*/*".....18554012214
  281. 2024-09-04 11:15:44.510237 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"8/18/*/*,+1/1/*/*,+44/*/*/*,+61/*/*/*".....18554012214
  282. 2024-09-04 11:15:44.510237 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"8/18/*/*,+1/1/*/*,+44/*/*/*,+61/*/*/*".....18554012214
  283. 2024-09-04 11:15:44.510237 100.00% [DEBUG] switch_cpp.cpp:1465 [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, A.codec as did_codec,A.provider_id as provider_id,A.always as always,A.always_destination as always_destination FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="18554012214" LIMIT 1
  284. 2024-09-04 11:15:44.510237 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  285. 2024-09-04 11:15:44.510237 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_accounts_info] Query :SELECT * FROM accounts WHERE id = 712  and status = 0 limit 1
  286. 2024-09-04 11:15:44.510237 100.00% [NOTICE] switch_cpp.cpp:1465 [ASTPP] DID Global Translation Id: 1
  287. 2024-09-04 11:15:44.510237 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 1 AND status=0 limit 1
  288. 2024-09-04 11:15:44.510237 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"8/18/*/*,+1/1/*/*,+44/*/*/*,+61/*/*/*".....18554012214
  289. 2024-09-04 11:15:44.510237 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"8/18/*/*,+1/1/*/*,+44/*/*/*,+61/*/*/*".....18554012214
  290. 2024-09-04 11:15:44.510237 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"8/18/*/*,+1/1/*/*,+44/*/*/*,+61/*/*/*".....18554012214
  291. 2024-09-04 11:15:44.510237 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"8/18/*/*,+1/1/*/*,+44/*/*/*,+61/*/*/*".....18554012214
  292. 2024-09-04 11:15:44.510237 100.00% [DEBUG] switch_cpp.cpp:1465 [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, A.codec as did_codec,A.provider_id as provider_id,A.always as always,A.always_destination as always_destination FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="18554012214" LIMIT 1
  293. 2024-09-04 11:15:44.510237 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  294. 2024-09-04 11:15:44.510237 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP]  Call Direction : inbound
  295. 2024-09-04 11:15:44.510237 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing]Going For Check Demand Base Routing
  296. 2024-09-04 11:15:44.510237 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] OLD COST:0.01500
  297. 2024-09-04 11:15:44.510237 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing]pricelist_id:35
  298. 2024-09-04 11:15:44.510237 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] Query :SELECT demand_based_condition,holiday,timezone_name from demand_based_routing where pricelist_id = '35' and status=0
  299. 2024-09-04 11:15:44.510237 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] NEW COST:0.01500
  300. 2024-09-04 11:15:44.510237 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information ===================
  301. 2024-09-04 11:15:44.510237 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 354
  302. 2024-09-04 11:15:44.510237 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
  303. 2024-09-04 11:15:44.510237 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0
  304. 2024-09-04 11:15:44.510237 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 0.01500
  305. 2024-09-04 11:15:44.510237 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] Comment : 18554012214
  306. 2024-09-04 11:15:44.510237 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 203
  307. 2024-09-04 11:15:44.510237 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 54
  308. 2024-09-04 11:15:44.510237 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================
  309. 2024-09-04 11:15:44.510237 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] provider call balance :SELECT * FROM accounts WHERE id =54
  310. 2024-09-04 11:15:44.510237 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your92134.1775 balance Accountid 54 !!!
  311. 2024-09-04 11:15:44.510237 100.00% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
  312. 2024-09-04 11:15:44.510237 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] NIBBLE ID 54
  313. 2024-09-04 11:15:44.510237 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] NIBBLE RATE 0.01500
  314. 2024-09-04 11:15:44.510237 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] NIBBLE CONNECT COST 0.00000
  315. 2024-09-04 11:15:44.510237 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] NIBBLE INITIAL INC 60
  316. 2024-09-04 11:15:44.510237 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] NIBBLE INC 60
  317. 2024-09-04 11:15:44.510237 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] Call Max Length Duration : 100 minutes
  318. 2024-09-04 11:15:44.510237 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] INB_FREE:TRUE
  319. 2024-09-04 11:15:44.510237 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] free_inbound:0
  320. 2024-09-04 11:15:44.510237 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 54 AND status=0 LIMIT 1
  321. 2024-09-04 11:15:44.510237 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE (id = "712" OR number = "712") AND deleted = 0 limit 1
  322. 2024-09-04 11:15:44.510237 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] provider call balance :SELECT * FROM accounts WHERE id =54
  323. 2024-09-04 11:15:44.510237 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.0
  324. 2024-09-04 11:15:44.510237 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.1:CACHING ID:::35
  325. 2024-09-04 11:15:44.510237 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :outbound
  326. 2024-09-04 11:15:44.510237 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.0
  327. 2024-09-04 11:15:44.510237 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.1:CACHING ID:::35
  328. 2024-09-04 11:15:44.510237 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^18554012214.*' OR pattern = '^1855401221.*' OR pattern = '^185540122.*' OR pattern = '^18554012.*' OR pattern = '^1855401.*' OR pattern = '^185540.*' OR pattern = '^18554.*' OR pattern = '^1855.*' OR pattern = '^185.*' OR pattern = '^18.*' OR pattern = '^1.*' OR pattern ='--') AND (caller_id_pattern = '^917217787087.*' OR caller_id_pattern = '^91721778708.*' OR caller_id_pattern = '^9172177870.*' OR caller_id_pattern = '^917217787.*' OR caller_id_pattern = '^91721778.*' OR caller_id_pattern = '^9172177.*' OR caller_id_pattern = '^917217.*' OR caller_id_pattern = '^91721.*' OR caller_id_pattern = '^9172.*' OR caller_id_pattern = '^917.*' OR caller_id_pattern = '^91.*' OR caller_id_pattern = '^9.*' OR caller_id_pattern ='^.*') AND status = 0 AND effective_date <= UTC_TIMESTAMP() AND (pricelist_id = 35 OR accountid=54)  ORDER BY accountid DESC,LENGTH(pattern) DESC,LENGTH(caller_id_pattern) DESC,cost DESC,effective_date DESC LIMIT 1
  329. 2024-09-04 11:15:44.510237 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP]  Call Direction : outbound
  330. 2024-09-04 11:15:44.510237 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing]Going For Check Demand Base Routing
  331. 2024-09-04 11:15:44.510237 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] OLD COST:0.5000000000
  332. 2024-09-04 11:15:44.510237 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing]pricelist_id:35
  333. 2024-09-04 11:15:44.510237 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] Query :SELECT demand_based_condition,holiday,timezone_name from demand_based_routing where pricelist_id = '35' and status=0
  334. 2024-09-04 11:15:44.510237 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] NEW COST:0.5000000000
  335. 2024-09-04 11:15:44.510237 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information ===================
  336. 2024-09-04 11:15:44.510237 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 48
  337. 2024-09-04 11:15:44.510237 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.0000000000
  338. 2024-09-04 11:15:44.510237 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0
  339. 2024-09-04 11:15:44.510237 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 0.5000000000
  340. 2024-09-04 11:15:44.510237 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] Comment : USA
  341. 2024-09-04 11:15:44.510237 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 203
  342. 2024-09-04 11:15:44.510237 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 54
  343. 2024-09-04 11:15:44.510237 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] Trunk ID: 1,1,1,1,1
  344. 2024-09-04 11:15:44.510237 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] Routing type:
  345. 2024-09-04 11:15:44.510237 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================
  346. 2024-09-04 11:15:44.510237 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] [Shadow_billing_rates]SHADOWBILLING:0|ID:48|CODE:^1.*|DESTINATION:USA|CONNECTIONCOST:0.0000000000|INCLUDEDSECONDS:0|CT:4|COST:0.5000000000|INC:6|INITIALBLOCK:6|RATEGROUP:35|MARKUP:0|CI:203|ACCID:54!!!
  347. 2024-09-04 11:15:44.510237 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] provider call balance :SELECT * FROM accounts WHERE id =54
  348. 2024-09-04 11:15:44.510237 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your92134.1775 balance Accountid 54 !!!
  349. 2024-09-04 11:15:44.510237 100.00% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
  350. 2024-09-04 11:15:44.510237 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Actual CustomerInfo XML:54
  351. 2024-09-04 11:15:44.510237 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Userinfo XML:54
  352. 2024-09-04 11:15:44.510237 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Actual CustomerInfo XML : 54
  353. 2024-09-04 11:15:44.510237 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_domain_info] Query :SELECT * FROM domains WHERE accountid = 712 limit 1
  354. 2024-09-04 11:15:44.510237 100.00% [WARNING] switch_cpp.cpp:1465 [ASTPP] [user_domain] User Domain : one644.realpbxpro.online
  355. 2024-09-04 11:15:44.510237 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP]  Maxlength : 100
  356. 2024-09-04 11:15:44.510237 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_sip_device_info_for_did_pstn_call] Query :SELECT username FROM sip_devices WHERE username = '917217787087' and status = 0 limit 1
  357. 2024-09-04 11:15:44.510237 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  358. 2024-09-04 11:15:44.510237 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] [XML] Customer Recording Flag : 0
  359. 2024-09-04 11:15:44.510237 100.00% [INFO] switch_cpp.cpp:1465 [ASTPP] [PBX] Call Direction : inbound
  360. 2024-09-04 11:15:44.510237 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET get_record_info] Query :SELECT sip_device_routing.is_recording FROM sip_devices AS sip_devices, accounts AS accounts ,sip_device_routing AS sip_device_routing  WHERE sip_devices.accountid = accounts.id AND sip_devices.id = sip_device_routing.sip_device_id AND sip_devices.username = "18554012214@148.72.168.119" AND accounts.status = 0
  361. 2024-09-04 11:15:44.510237 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"8/18/*/*,</>/*/*,+/1/*/*,1/*/*/*,+61/*/*/*,+44/*/*/*".....917217787087
  362. 2024-09-04 11:15:44.510237 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"8/18/*/*,</>/*/*,+/1/*/*,1/*/*/*,+61/*/*/*,+44/*/*/*".....917217787087
  363. 2024-09-04 11:15:44.510237 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"8/18/*/*,</>/*/*,+/1/*/*,1/*/*/*,+61/*/*/*,+44/*/*/*".....917217787087
  364. 2024-09-04 11:15:44.510237 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"8/18/*/*,</>/*/*,+/1/*/*,1/*/*/*,+61/*/*/*,+44/*/*/*".....917217787087
  365. 2024-09-04 11:15:44.510237 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"8/18/*/*,</>/*/*,+/1/*/*,1/*/*/*,+61/*/*/*,+44/*/*/*".....917217787087
  366. 2024-09-04 11:15:44.510237 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"8/18/*/*,</>/*/*,+/1/*/*,1/*/*/*,+61/*/*/*,+44/*/*/*".....917217787087
  367. 2024-09-04 11:15:44.510237 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"8/18/*/*,</>/*/*,+/1/*/*,1/*/*/*,+61/*/*/*,+44/*/*/*".....917217787087
  368. 2024-09-04 11:15:44.510237 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"8/18/*/*,</>/*/*,+/1/*/*,1/*/*/*,+61/*/*/*,+44/*/*/*".....917217787087
  369. 2024-09-04 11:15:44.510237 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"8/18/*/*,</>/*/*,+/1/*/*,1/*/*/*,+61/*/*/*,+44/*/*/*".....917217787087
  370. 2024-09-04 11:15:44.510237 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"8/18/*/*,</>/*/*,+/1/*/*,1/*/*/*,+61/*/*/*,+44/*/*/*".....917217787087
  371. 2024-09-04 11:15:44.510237 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"8/18/*/*,</>/*/*,+/1/*/*,1/*/*/*,+61/*/*/*,+44/*/*/*".....917217787087
  372. 2024-09-04 11:15:44.510237 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :"8/18/*/*,</>/*/*,+/1/*/*,1/*/*/*,+61/*/*/*,+44/*/*/*".....917217787087
  373. 2024-09-04 11:15:44.510237 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_domain_info] Query :SELECT * FROM domains WHERE accountid = 712 limit 1
  374. 2024-09-04 11:15:44.510237 100.00% [WARNING] switch_cpp.cpp:1465 [ASTPP] [XML] User Domain : one644.realpbxpro.online
  375. 2024-09-04 11:15:44.510237 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [XML] Custom Function Name :: custom_inbound_1
  376. 2024-09-04 11:15:44.510237 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [sip_codec_for_outbound] Query :SELECT sip_devices.codec as sip_codec 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="917217787087"  AND domains.domain="one644.realpbxpro.online" limit 1
  377. 2024-09-04 11:15:44.510237 100.00% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Generated XML:<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  378. <document type="freeswitch/xml">
  379. <section name="dialplan" description="ASTPP Dialplan">
  380. <context name="default">
  381. <extension name="18554012214">
  382. <condition field="destination_number" expression="8554012214">
  383. <action application="set" data="effective_destination_number=8554012214"/>
  384. <action application="set" data="execute_on_answer_1=sched_hangup +6000 normal_clearing"/>
  385. <action application="set" data="notify_flag=0"/>
  386. <action application="set" data="notify_credit_limit=5.00000"/>
  387. <action application="set" data="type=3"/>
  388. <action application="set" data="nibble_account=54"/>
  389. <action application="set" data="nibble_rate=0.01500"/>
  390. <action application="set" data="nibble_minimum=0.00000"/>
  391. <action application="set" data="nibble_increment=30"/>
  392. <action application="nibblebill" data="heartbeat 30"/>
  393. <action application="set" data="callstart=2024-09-04 11:15:44"/>
  394. <action application="set" data="hangup_after_bridge=true"/>
  395. <action application="set" data="continue_on_fail=TRUE"/>
  396. <action application="set" data="account_id=54"/>
  397. <action application="set" data="parent_id=0"/>
  398. <action application="set" data="entity_id=3"/>
  399. <action application="set" data="call_processed=internal"/>
  400. <action application="set" data="call_direction=inbound"/>
  401. <action application="set" data="accountname=KNOTNETWORK"/>
  402. <action application="set" data="origination_rates_did=ID:354|CODE:^18554012214.*|DESTINATION:18554012214|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:1|COST:0.01500|INC:60|INITIALBLOCK:60|RATEGROUP:0|MARKUP:0|CI:203|ACCID:54"/>
  403. <action application="set" data="origination_rates=SHADOWBILLING:0|ID:48|CODE:^1.*|DESTINATION:USA|CONNECTIONCOST:0.0000000000|INCLUDEDSECONDS:0|CT:4|COST:0.5000000000|INC:6|INITIALBLOCK:6|RATEGROUP:35|MARKUP:0|CI:203|ACCID:54"/>
  404. <action application="set" data="original_caller_id_name=917217787087"/>
  405. <action application="set" data="original_caller_id_number=917217787087"/>
  406. <action application="export" data="is_recording=1"/>
  407. <action application="export" data="media_bug_answer_req=true"/>
  408. <action application="export" data="RECORD_STEREO=true"/>
  409. <action application="export" data="record_sample_rate=8000"/>
  410. <action application="export" data="execute_on_answer=record_session $${recordings_dir}/${uuid}.wav"/>
  411. <action application="set" data="effective_caller_id_name=917217787087"/>
  412. <action application="set" data="effective_caller_id_number=917217787087"/>
  413. <action application="set" data="receiver_accid=712"/>
  414. <action application="export" data="domain_name=one644.realpbxpro.online"/>
  415. <action application="export" data="sip_to_host=one644.realpbxpro.online"/>
  416. <action application="export" data="presence_data=x|||KNOT(486840)|||^18554012214.* // 18554012214 // 0.01500|||||||||DID|||148.72.170.56"/>
  417. <action application="export" data="call_type=1"/>
  418. <action application="set" data="calltype=DID@IP"/>
  419. <action application="bridge" data="[leg_timeout=30]sofia/${sofia_profile_name}/18554012214@148.72.168.119"/>
  420. </condition>
  421. </extension>
  422. </context>
  423. </section>
  424. </document>
  425. Dialplan: sofia/default/917217787087@148.72.170.56 parsing [default->18554012214] continue=false
  426. Dialplan: sofia/default/917217787087@148.72.170.56 Regex (PASS) [18554012214] destination_number(8554012214) =~ /8554012214/ break=on-false
  427. Dialplan: sofia/default/917217787087@148.72.170.56 Action set(effective_destination_number=8554012214)
  428. Dialplan: sofia/default/917217787087@148.72.170.56 Action set(execute_on_answer_1=sched_hangup +6000 normal_clearing)
  429. Dialplan: sofia/default/917217787087@148.72.170.56 Action set(notify_flag=0)
  430. Dialplan: sofia/default/917217787087@148.72.170.56 Action set(notify_credit_limit=5.00000)
  431. Dialplan: sofia/default/917217787087@148.72.170.56 Action set(type=3)
  432. Dialplan: sofia/default/917217787087@148.72.170.56 Action set(nibble_account=54)
  433. Dialplan: sofia/default/917217787087@148.72.170.56 Action set(nibble_rate=0.01500)
  434. Dialplan: sofia/default/917217787087@148.72.170.56 Action set(nibble_minimum=0.00000)
  435. Dialplan: sofia/default/917217787087@148.72.170.56 Action set(nibble_increment=30)
  436. Dialplan: sofia/default/917217787087@148.72.170.56 Action nibblebill(heartbeat 30)
  437. Dialplan: sofia/default/917217787087@148.72.170.56 Action set(callstart=2024-09-04 11:15:44)
  438. Dialplan: sofia/default/917217787087@148.72.170.56 Action set(hangup_after_bridge=true)
  439. Dialplan: sofia/default/917217787087@148.72.170.56 Action set(continue_on_fail=TRUE)
  440. Dialplan: sofia/default/917217787087@148.72.170.56 Action set(account_id=54)
  441. Dialplan: sofia/default/917217787087@148.72.170.56 Action set(parent_id=0)
  442. Dialplan: sofia/default/917217787087@148.72.170.56 Action set(entity_id=3)
  443. Dialplan: sofia/default/917217787087@148.72.170.56 Action set(call_processed=internal)
  444. Dialplan: sofia/default/917217787087@148.72.170.56 Action set(call_direction=inbound)
  445. Dialplan: sofia/default/917217787087@148.72.170.56 Action set(accountname=KNOTNETWORK)
  446. Dialplan: sofia/default/917217787087@148.72.170.56 Action set(origination_rates_did=ID:354|CODE:^18554012214.*|DESTINATION:18554012214|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:1|COST:0.01500|INC:60|INITIALBLOCK:60|RATEGROUP:0|MARKUP:0|CI:203|ACCID:54)
  447. Dialplan: sofia/default/917217787087@148.72.170.56 Action set(origination_rates=SHADOWBILLING:0|ID:48|CODE:^1.*|DESTINATION:USA|CONNECTIONCOST:0.0000000000|INCLUDEDSECONDS:0|CT:4|COST:0.5000000000|INC:6|INITIALBLOCK:6|RATEGROUP:35|MARKUP:0|CI:203|ACCID:54)
  448. Dialplan: sofia/default/917217787087@148.72.170.56 Action set(original_caller_id_name=917217787087)
  449. Dialplan: sofia/default/917217787087@148.72.170.56 Action set(original_caller_id_number=917217787087)
  450. Dialplan: sofia/default/917217787087@148.72.170.56 Action export(is_recording=1)
  451. Dialplan: sofia/default/917217787087@148.72.170.56 Action export(media_bug_answer_req=true)
  452. Dialplan: sofia/default/917217787087@148.72.170.56 Action export(RECORD_STEREO=true)
  453. Dialplan: sofia/default/917217787087@148.72.170.56 Action export(record_sample_rate=8000)
  454. Dialplan: sofia/default/917217787087@148.72.170.56 Action export(execute_on_answer=record_session $${recordings_dir}/${uuid}.wav)
  455. Dialplan: sofia/default/917217787087@148.72.170.56 Action set(effective_caller_id_name=917217787087)
  456. Dialplan: sofia/default/917217787087@148.72.170.56 Action set(effective_caller_id_number=917217787087)
  457. Dialplan: sofia/default/917217787087@148.72.170.56 Action set(receiver_accid=712)
  458. Dialplan: sofia/default/917217787087@148.72.170.56 Action export(domain_name=one644.realpbxpro.online)
  459. Dialplan: sofia/default/917217787087@148.72.170.56 Action export(sip_to_host=one644.realpbxpro.online)
  460. Dialplan: sofia/default/917217787087@148.72.170.56 Action export(presence_data=x|||KNOT(486840)|||^18554012214.* // 18554012214 // 0.01500|||||||||DID|||148.72.170.56)
  461. Dialplan: sofia/default/917217787087@148.72.170.56 Action export(call_type=1)
  462. Dialplan: sofia/default/917217787087@148.72.170.56 Action set(calltype=DID@IP)
  463. Dialplan: sofia/default/917217787087@148.72.170.56 Action bridge([leg_timeout=30]sofia/${sofia_profile_name}/18554012214@148.72.168.119)
  464. 2024-09-04 11:15:44.510237 100.00% [DEBUG] switch_core_state_machine.c:281 (sofia/default/917217787087@148.72.170.56) State Change CS_ROUTING -> CS_EXECUTE
  465. 2024-09-04 11:15:44.510237 100.00% [DEBUG] switch_core_state_machine.c:640 (sofia/default/917217787087@148.72.170.56) State ROUTING going to sleep
  466. 2024-09-04 11:15:44.510237 100.00% [DEBUG] switch_core_state_machine.c:581 (sofia/default/917217787087@148.72.170.56) Running State Change CS_EXECUTE (Cur 3 Tot 52495)
  467. 2024-09-04 11:15:44.510237 100.00% [DEBUG] switch_core_state_machine.c:647 (sofia/default/917217787087@148.72.170.56) State EXECUTE
  468. 2024-09-04 11:15:44.510237 100.00% [DEBUG] mod_sofia.c:213 sofia/default/917217787087@148.72.170.56 SOFIA EXECUTE
  469. 2024-09-04 11:15:44.510237 100.00% [DEBUG] switch_core_state_machine.c:323 sofia/default/917217787087@148.72.170.56 Standard EXECUTE
  470. EXECUTE [depth=0] sofia/default/917217787087@148.72.170.56 set(effective_destination_number=8554012214)
  471. 2024-09-04 11:15:44.510237 100.00% [DEBUG] mod_dptools.c:1671 SET sofia/default/917217787087@148.72.170.56 [effective_destination_number]=[8554012214]
  472. EXECUTE [depth=0] sofia/default/917217787087@148.72.170.56 set(execute_on_answer_1=sched_hangup +6000 normal_clearing)
  473. 2024-09-04 11:15:44.530226 100.00% [DEBUG] mod_dptools.c:1671 SET sofia/default/917217787087@148.72.170.56 [execute_on_answer_1]=[sched_hangup +6000 normal_clearing]
  474. EXECUTE [depth=0] sofia/default/917217787087@148.72.170.56 set(notify_flag=0)
  475. 2024-09-04 11:15:44.530226 100.00% [DEBUG] mod_dptools.c:1671 SET sofia/default/917217787087@148.72.170.56 [notify_flag]=[0]
  476. EXECUTE [depth=0] sofia/default/917217787087@148.72.170.56 set(notify_credit_limit=5.00000)
  477. 2024-09-04 11:15:44.530226 100.00% [DEBUG] mod_dptools.c:1671 SET sofia/default/917217787087@148.72.170.56 [notify_credit_limit]=[5.00000]
  478. EXECUTE [depth=0] sofia/default/917217787087@148.72.170.56 set(type=3)
  479. 2024-09-04 11:15:44.530226 100.00% [DEBUG] mod_dptools.c:1671 SET sofia/default/917217787087@148.72.170.56 [type]=[3]
  480. EXECUTE [depth=0] sofia/default/917217787087@148.72.170.56 set(nibble_account=54)
  481. 2024-09-04 11:15:44.530226 100.00% [DEBUG] mod_dptools.c:1671 SET sofia/default/917217787087@148.72.170.56 [nibble_account]=[54]
  482. EXECUTE [depth=0] sofia/default/917217787087@148.72.170.56 set(nibble_rate=0.01500)
  483. 2024-09-04 11:15:44.530226 100.00% [DEBUG] mod_dptools.c:1671 SET sofia/default/917217787087@148.72.170.56 [nibble_rate]=[0.01500]
  484. EXECUTE [depth=0] sofia/default/917217787087@148.72.170.56 set(nibble_minimum=0.00000)
  485. 2024-09-04 11:15:44.530226 100.00% [DEBUG] mod_dptools.c:1671 SET sofia/default/917217787087@148.72.170.56 [nibble_minimum]=[0.00000]
  486. EXECUTE [depth=0] sofia/default/917217787087@148.72.170.56 set(nibble_increment=30)
  487. 2024-09-04 11:15:44.530226 100.00% [DEBUG] mod_dptools.c:1671 SET sofia/default/917217787087@148.72.170.56 [nibble_increment]=[30]
  488. EXECUTE [depth=0] sofia/default/917217787087@148.72.170.56 nibblebill(heartbeat 30)
  489. 2024-09-04 11:15:44.530226 100.00% [WARNING] switch_core_session.c:1684 sofia/default/917217787087@148.72.170.56 using scheduler due to bypass media or media is not established.
  490. 2024-09-04 11:15:44.530226 100.00% [DEBUG] switch_scheduler.c:263 Added task 22068 switch_core_session_sched_heartbeat (12f47352-9d63-481a-9642-6bbde610d877) to run at 1725448574
  491. EXECUTE [depth=0] sofia/default/917217787087@148.72.170.56 set(callstart=2024-09-04 11:15:44)
  492. 2024-09-04 11:15:44.530226 100.00% [DEBUG] mod_dptools.c:1671 SET sofia/default/917217787087@148.72.170.56 [callstart]=[2024-09-04 11:15:44]
  493. EXECUTE [depth=0] sofia/default/917217787087@148.72.170.56 set(hangup_after_bridge=true)
  494. 2024-09-04 11:15:44.530226 100.00% [DEBUG] mod_dptools.c:1671 SET sofia/default/917217787087@148.72.170.56 [hangup_after_bridge]=[true]
  495. EXECUTE [depth=0] sofia/default/917217787087@148.72.170.56 set(continue_on_fail=TRUE)
  496. 2024-09-04 11:15:44.530226 100.00% [DEBUG] mod_dptools.c:1671 SET sofia/default/917217787087@148.72.170.56 [continue_on_fail]=[TRUE]
  497. EXECUTE [depth=0] sofia/default/917217787087@148.72.170.56 set(account_id=54)
  498. 2024-09-04 11:15:44.530226 100.00% [DEBUG] mod_dptools.c:1671 SET sofia/default/917217787087@148.72.170.56 [account_id]=[54]
  499. EXECUTE [depth=0] sofia/default/917217787087@148.72.170.56 set(parent_id=0)
  500. 2024-09-04 11:15:44.530226 100.00% [DEBUG] mod_dptools.c:1671 SET sofia/default/917217787087@148.72.170.56 [parent_id]=[0]
  501. EXECUTE [depth=0] sofia/default/917217787087@148.72.170.56 set(entity_id=3)
  502. 2024-09-04 11:15:44.530226 100.00% [DEBUG] mod_dptools.c:1671 SET sofia/default/917217787087@148.72.170.56 [entity_id]=[3]
  503. EXECUTE [depth=0] sofia/default/917217787087@148.72.170.56 set(call_processed=internal)
  504. 2024-09-04 11:15:44.530226 100.00% [DEBUG] mod_dptools.c:1671 SET sofia/default/917217787087@148.72.170.56 [call_processed]=[internal]
  505. EXECUTE [depth=0] sofia/default/917217787087@148.72.170.56 set(call_direction=inbound)
  506. 2024-09-04 11:15:44.530226 100.00% [DEBUG] mod_dptools.c:1671 SET sofia/default/917217787087@148.72.170.56 [call_direction]=[inbound]
  507. EXECUTE [depth=0] sofia/default/917217787087@148.72.170.56 set(accountname=KNOTNETWORK)
  508. 2024-09-04 11:15:44.530226 100.00% [DEBUG] mod_dptools.c:1671 SET sofia/default/917217787087@148.72.170.56 [accountname]=[KNOTNETWORK]
  509. EXECUTE [depth=0] sofia/default/917217787087@148.72.170.56 set(origination_rates_did=ID:354|CODE:^18554012214.*|DESTINATION:18554012214|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:1|COST:0.01500|INC:60|INITIALBLOCK:60|RATEGROUP:0|MARKUP:0|CI:203|ACCID:54)
  510. 2024-09-04 11:15:44.530226 100.00% [DEBUG] mod_dptools.c:1671 SET sofia/default/917217787087@148.72.170.56 [origination_rates_did]=[ID:354|CODE:^18554012214.*|DESTINATION:18554012214|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:1|COST:0.01500|INC:60|INITIALBLOCK:60|RATEGROUP:0|MARKUP:0|CI:203|ACCID:54]
  511. EXECUTE [depth=0] sofia/default/917217787087@148.72.170.56 set(origination_rates=SHADOWBILLING:0|ID:48|CODE:^1.*|DESTINATION:USA|CONNECTIONCOST:0.0000000000|INCLUDEDSECONDS:0|CT:4|COST:0.5000000000|INC:6|INITIALBLOCK:6|RATEGROUP:35|MARKUP:0|CI:203|ACCID:54)
  512. 2024-09-04 11:15:44.530226 100.00% [DEBUG] mod_dptools.c:1671 SET sofia/default/917217787087@148.72.170.56 [origination_rates]=[SHADOWBILLING:0|ID:48|CODE:^1.*|DESTINATION:USA|CONNECTIONCOST:0.0000000000|INCLUDEDSECONDS:0|CT:4|COST:0.5000000000|INC:6|INITIALBLOCK:6|RATEGROUP:35|MARKUP:0|CI:203|ACCID:54]
  513. EXECUTE [depth=0] sofia/default/917217787087@148.72.170.56 set(original_caller_id_name=917217787087)
  514. 2024-09-04 11:15:44.530226 100.00% [DEBUG] mod_dptools.c:1671 SET sofia/default/917217787087@148.72.170.56 [original_caller_id_name]=[917217787087]
  515. EXECUTE [depth=0] sofia/default/917217787087@148.72.170.56 set(original_caller_id_number=917217787087)
  516. 2024-09-04 11:15:44.530226 100.00% [DEBUG] mod_dptools.c:1671 SET sofia/default/917217787087@148.72.170.56 [original_caller_id_number]=[917217787087]
  517. EXECUTE [depth=0] sofia/default/917217787087@148.72.170.56 export(is_recording=1)
  518. 2024-09-04 11:15:44.530226 100.00% [DEBUG] switch_channel.c:1334 EXPORT (export_vars) [is_recording]=[1]
  519. EXECUTE [depth=0] sofia/default/917217787087@148.72.170.56 export(media_bug_answer_req=true)
  520. 2024-09-04 11:15:44.530226 100.00% [DEBUG] switch_channel.c:1334 EXPORT (export_vars) [media_bug_answer_req]=[true]
  521. EXECUTE [depth=0] sofia/default/917217787087@148.72.170.56 export(RECORD_STEREO=true)
  522. 2024-09-04 11:15:44.530226 100.00% [DEBUG] switch_channel.c:1334 EXPORT (export_vars) [RECORD_STEREO]=[true]
  523. EXECUTE [depth=0] sofia/default/917217787087@148.72.170.56 export(record_sample_rate=8000)
  524. 2024-09-04 11:15:44.530226 100.00% [DEBUG] switch_channel.c:1334 EXPORT (export_vars) [record_sample_rate]=[8000]
  525. EXECUTE [depth=0] sofia/default/917217787087@148.72.170.56 export(execute_on_answer=record_session /var/www/html/astpp/playlist/example/media/recordings/12f47352-9d63-481a-9642-6bbde610d877.wav)
  526. 2024-09-04 11:15:44.530226 100.00% [DEBUG] switch_channel.c:1334 EXPORT (export_vars) [execute_on_answer]=[record_session /var/www/html/astpp/playlist/example/media/recordings/12f47352-9d63-481a-9642-6bbde610d877.wav]
  527. EXECUTE [depth=0] sofia/default/917217787087@148.72.170.56 set(effective_caller_id_name=917217787087)
  528. 2024-09-04 11:15:44.530226 100.00% [DEBUG] mod_dptools.c:1671 SET sofia/default/917217787087@148.72.170.56 [effective_caller_id_name]=[917217787087]
  529. EXECUTE [depth=0] sofia/default/917217787087@148.72.170.56 set(effective_caller_id_number=917217787087)
  530. 2024-09-04 11:15:44.530226 100.00% [DEBUG] mod_dptools.c:1671 SET sofia/default/917217787087@148.72.170.56 [effective_caller_id_number]=[917217787087]
  531. EXECUTE [depth=0] sofia/default/917217787087@148.72.170.56 set(receiver_accid=712)
  532. 2024-09-04 11:15:44.530226 100.00% [DEBUG] mod_dptools.c:1671 SET sofia/default/917217787087@148.72.170.56 [receiver_accid]=[712]
  533. EXECUTE [depth=0] sofia/default/917217787087@148.72.170.56 export(domain_name=one644.realpbxpro.online)
  534. 2024-09-04 11:15:44.530226 100.00% [DEBUG] switch_channel.c:1334 EXPORT (export_vars) [domain_name]=[one644.realpbxpro.online]
  535. EXECUTE [depth=0] sofia/default/917217787087@148.72.170.56 export(sip_to_host=one644.realpbxpro.online)
  536. 2024-09-04 11:15:44.530226 100.00% [DEBUG] switch_channel.c:1334 EXPORT (export_vars) [sip_to_host]=[one644.realpbxpro.online]
  537. EXECUTE [depth=0] sofia/default/917217787087@148.72.170.56 export(presence_data=x|||KNOT(486840)|||^18554012214.* // 18554012214 // 0.01500|||||||||DID|||148.72.170.56)
  538. 2024-09-04 11:15:44.530226 100.00% [DEBUG] switch_channel.c:1334 EXPORT (export_vars) [presence_data]=[x|||KNOT(486840)|||^18554012214.* // 18554012214 // 0.01500|||||||||DID|||148.72.170.56]
  539. EXECUTE [depth=0] sofia/default/917217787087@148.72.170.56 export(call_type=1)
  540. 2024-09-04 11:15:44.530226 100.00% [DEBUG] switch_channel.c:1334 EXPORT (export_vars) [call_type]=[1]
  541. EXECUTE [depth=0] sofia/default/917217787087@148.72.170.56 set(calltype=DID@IP)
  542. 2024-09-04 11:15:44.530226 100.00% [DEBUG] mod_dptools.c:1671 SET sofia/default/917217787087@148.72.170.56 [calltype]=[DID@IP]
  543. EXECUTE [depth=0] sofia/default/917217787087@148.72.170.56 bridge([leg_timeout=30]sofia/default/18554012214@148.72.168.119)
  544. 2024-09-04 11:15:44.530226 100.00% [DEBUG] switch_channel.c:1288 sofia/default/917217787087@148.72.170.56 EXPORTING[export_vars] [is_recording]=[1] to event
  545. 2024-09-04 11:15:44.530226 100.00% [DEBUG] switch_channel.c:1288 sofia/default/917217787087@148.72.170.56 EXPORTING[export_vars] [media_bug_answer_req]=[true] to event
  546. 2024-09-04 11:15:44.530226 100.00% [DEBUG] switch_channel.c:1288 sofia/default/917217787087@148.72.170.56 EXPORTING[export_vars] [RECORD_STEREO]=[true] to event
  547. 2024-09-04 11:15:44.530226 100.00% [DEBUG] switch_channel.c:1288 sofia/default/917217787087@148.72.170.56 EXPORTING[export_vars] [record_sample_rate]=[8000] to event
  548. 2024-09-04 11:15:44.530226 100.00% [DEBUG] switch_channel.c:1288 sofia/default/917217787087@148.72.170.56 EXPORTING[export_vars] [execute_on_answer]=[record_session /var/www/html/astpp/playlist/example/media/recordings/12f47352-9d63-481a-9642-6bbde610d877.wav] to event
  549. 2024-09-04 11:15:44.530226 100.00% [DEBUG] switch_channel.c:1288 sofia/default/917217787087@148.72.170.56 EXPORTING[export_vars] [domain_name]=[one644.realpbxpro.online] to event
  550. 2024-09-04 11:15:44.530226 100.00% [DEBUG] switch_channel.c:1288 sofia/default/917217787087@148.72.170.56 EXPORTING[export_vars] [sip_to_host]=[one644.realpbxpro.online] to event
  551. 2024-09-04 11:15:44.530226 100.00% [DEBUG] switch_channel.c:1288 sofia/default/917217787087@148.72.170.56 EXPORTING[export_vars] [presence_data]=[x|||KNOT(486840)|||^18554012214.* // 18554012214 // 0.01500|||||||||DID|||148.72.170.56] to event
  552. 2024-09-04 11:15:44.530226 100.00% [DEBUG] switch_channel.c:1288 sofia/default/917217787087@148.72.170.56 EXPORTING[export_vars] [call_type]=[1] to event
  553. 2024-09-04 11:15:44.530226 100.00% [DEBUG] switch_ivr_originate.c:2297 Parsing global variables
  554. 2024-09-04 11:15:44.530226 100.00% [DEBUG] switch_ivr_originate.c:2859 Parsing session specific variables
  555. 2024-09-04 11:15:44.530226 100.00% [NOTICE] switch_channel.c:1142 New Channel sofia/default/18554012214@148.72.168.119 [28065077-4de7-43fa-84ef-88b1df4f388a]
  556. 2024-09-04 11:15:44.530226 100.00% [DEBUG] mod_sofia.c:5110 (sofia/default/18554012214@148.72.168.119) State Change CS_NEW -> CS_INIT
  557. 2024-09-04 11:15:44.530226 100.00% [DEBUG] switch_ivr_originate.c:3167 sofia/default/18554012214@148.72.168.119 Setting leg timeout to 30
  558. 2024-09-04 11:15:44.530226 100.00% [NOTICE] sofia.c:1065 Hangup sofia/default/18772726864@5.161.243.39 [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]
  559. 2024-09-04 11:15:44.530226 100.00% [DEBUG] switch_core_state_machine.c:581 (sofia/default/18554012214@148.72.168.119) Running State Change CS_INIT (Cur 4 Tot 52496)
  560. 2024-09-04 11:15:44.530226 100.00% [DEBUG] switch_core_state_machine.c:624 (sofia/default/18554012214@148.72.168.119) State INIT
  561. 2024-09-04 11:15:44.530226 100.00% [DEBUG] mod_sofia.c:97 sofia/default/18554012214@148.72.168.119 SOFIA INIT
  562. 2024-09-04 11:15:44.530226 100.00% [INFO] sofia_glue.c:1659 sofia/default/18554012214@148.72.168.119 sending invite call-id: (null)
  563. 2024-09-04 11:15:44.530226 100.00% [DEBUG] sofia_glue.c:1662 sofia/default/18554012214@148.72.168.119 sending invite version: 1.10.10-release  64bit
  564. Local SDP:
  565. v=0
  566. o=FreeSWITCH 1725419318 1725419319 IN IP4 162.211.120.19
  567. s=FreeSWITCH
  568. c=IN IP4 162.211.120.19
  569. t=0 0
  570. m=audio 29226 RTP/AVP 0 101
  571. a=rtpmap:0 PCMU/8000
  572. a=rtpmap:101 telephone-event/8000
  573. a=fmtp:101 0-15
  574. a=ptime:20
  575. a=sendrecv
  576.  
  577. 2024-09-04 11:15:44.530226 100.00% [DEBUG] switch_core_state_machine.c:40 sofia/default/18554012214@148.72.168.119 Standard INIT
  578. 2024-09-04 11:15:44.530226 100.00% [DEBUG] switch_core_state_machine.c:48 (sofia/default/18554012214@148.72.168.119) State Change CS_INIT -> CS_ROUTING
  579. 2024-09-04 11:15:44.530226 100.00% [DEBUG] switch_core_state_machine.c:624 (sofia/default/18554012214@148.72.168.119) State INIT going to sleep
  580. 2024-09-04 11:15:44.530226 100.00% [DEBUG] switch_core_state_machine.c:581 (sofia/default/18554012214@148.72.168.119) Running State Change CS_ROUTING (Cur 4 Tot 52496)
  581. 2024-09-04 11:15:44.530226 100.00% [DEBUG] switch_ivr_bridge.c:911 BRIDGE THREAD DONE [sofia/default/18772726864@5.161.243.39]
  582. 2024-09-04 11:15:44.530226 100.00% [DEBUG] switch_core_state_machine.c:640 (sofia/default/18554012214@148.72.168.119) State ROUTING
  583. 2024-09-04 11:15:44.530226 100.00% [DEBUG] mod_sofia.c:158 sofia/default/18554012214@148.72.168.119 SOFIA ROUTING
  584. 2024-09-04 11:15:44.530226 100.00% [DEBUG] switch_ivr_originate.c:67 (sofia/default/18554012214@148.72.168.119) State Change CS_ROUTING -> CS_CONSUME_MEDIA
  585. 2024-09-04 11:15:44.530226 100.00% [DEBUG] switch_core_state_machine.c:650 (sofia/default/18772726864@5.161.243.39) State EXCHANGE_MEDIA going to sleep
  586. 2024-09-04 11:15:44.530226 100.00% [DEBUG] switch_core_state_machine.c:640 (sofia/default/18554012214@148.72.168.119) State ROUTING going to sleep
  587. 2024-09-04 11:15:44.530226 100.00% [DEBUG] switch_core_state_machine.c:581 (sofia/default/18772726864@5.161.243.39) Running State Change CS_HANGUP (Cur 4 Tot 52496)
  588. 2024-09-04 11:15:44.530226 100.00% [DEBUG] switch_core_state_machine.c:581 (sofia/default/18554012214@148.72.168.119) Running State Change CS_CONSUME_MEDIA (Cur 4 Tot 52496)
  589. 2024-09-04 11:15:44.530226 100.00% [DEBUG] switch_core_state_machine.c:659 (sofia/default/18554012214@148.72.168.119) State CONSUME_MEDIA
  590. 2024-09-04 11:15:44.530226 100.00% [DEBUG] switch_core_state_machine.c:659 (sofia/default/18554012214@148.72.168.119) State CONSUME_MEDIA going to sleep
  591. 2024-09-04 11:15:44.530226 100.00% [DEBUG] switch_ivr_async.c:1597 Stop recording file /var/www/html/astpp/playlist/example/media/recordings/4be0fffd-ad8a-4c40-b167-ac569f43218b.wav
  592. 2024-09-04 11:15:44.530226 100.00% [DEBUG] sofia.c:7493 Channel sofia/default/18554012214@148.72.168.119 entering state [calling][0]
  593. 2024-09-04 11:15:44.530226 100.00% [DEBUG] switch_ivr_async.c:1678 Channel is hung up
  594. 2024-09-04 11:15:44.530226 100.00% [DEBUG] switch_core_media_bug.c:1326 Removing BUG from sofia/default/18772726864@5.161.243.39
  595. 2024-09-04 11:15:44.530226 100.00% [DEBUG] switch_core_state_machine.c:844 (sofia/default/18772726864@5.161.243.39) Callstate Change ACTIVE -> HANGUP
  596. 2024-09-04 11:15:44.530226 100.00% [DEBUG] switch_core_state_machine.c:846 (sofia/default/18772726864@5.161.243.39) State HANGUP
  597. 2024-09-04 11:15:44.530226 100.00% [DEBUG] mod_sofia.c:469 Channel sofia/default/18772726864@5.161.243.39 hanging up, cause: NORMAL_CLEARING
  598. 2024-09-04 11:15:44.530226 100.00% [DEBUG] switch_core_state_machine.c:59 sofia/default/18772726864@5.161.243.39 Standard HANGUP, cause: NORMAL_CLEARING
  599. 2024-09-04 11:15:44.530226 100.00% [DEBUG] switch_core_state_machine.c:846 (sofia/default/18772726864@5.161.243.39) State HANGUP going to sleep
  600. 2024-09-04 11:15:44.530226 100.00% [DEBUG] switch_core_state_machine.c:616 (sofia/default/18772726864@5.161.243.39) State Change CS_HANGUP -> CS_REPORTING
  601. 2024-09-04 11:15:44.530226 100.00% [DEBUG] switch_core_state_machine.c:581 (sofia/default/18772726864@5.161.243.39) Running State Change CS_REPORTING (Cur 4 Tot 52496)
  602. 2024-09-04 11:15:44.530226 100.00% [DEBUG] switch_core_state_machine.c:932 (sofia/default/18772726864@5.161.243.39) State REPORTING
  603. 2024-09-04 11:15:44.530226 100.00% [INFO] mod_json_cdr.c:272 Process [942cf76b-0d78-4780-b495-4883270eccee.cdr.json]
  604. 2024-09-04 11:15:44.530226 100.00% [DEBUG] switch_core_state_machine.c:168 sofia/default/18772726864@5.161.243.39 Standard REPORTING, cause: NORMAL_CLEARING
  605. 2024-09-04 11:15:44.530226 100.00% [DEBUG] switch_core_state_machine.c:932 (sofia/default/18772726864@5.161.243.39) State REPORTING going to sleep
  606. 2024-09-04 11:15:44.530226 100.00% [DEBUG] switch_core_state_machine.c:607 (sofia/default/18772726864@5.161.243.39) State Change CS_REPORTING -> CS_DESTROY
  607. 2024-09-04 11:15:44.530226 100.00% [DEBUG] switch_core_session.c:1744 Session 52494 (sofia/default/18772726864@5.161.243.39) Locked, Waiting on external entities
  608. 2024-09-04 11:15:44.550237 100.00% [DEBUG] switch_ivr_bridge.c:819 sofia/default/18772726864@5.161.243.39 ending bridge by request from write function
  609. 2024-09-04 11:15:44.550237 100.00% [DEBUG] switch_ivr_bridge.c:911 BRIDGE THREAD DONE [sofia/default/19199514204@64.136.173.31]
  610. 2024-09-04 11:15:44.550237 100.00% [NOTICE] switch_ivr_bridge.c:1942 Hangup sofia/default/19199514204@64.136.173.31 [CS_EXECUTE] [NORMAL_CLEARING]
  611. 2024-09-04 11:15:44.550237 100.00% [NOTICE] switch_core_session.c:1762 Session 52494 (sofia/default/18772726864@5.161.243.39) Ended
  612. 2024-09-04 11:15:44.550237 100.00% [NOTICE] switch_core_session.c:1766 Close Channel sofia/default/18772726864@5.161.243.39 [CS_DESTROY]
  613. 2024-09-04 11:15:44.550237 100.00% [DEBUG] switch_core_state_machine.c:735 (sofia/default/18772726864@5.161.243.39) Running State Change CS_DESTROY (Cur 3 Tot 52496)
  614. 2024-09-04 11:15:44.550237 100.00% [DEBUG] switch_core_session.c:2979 sofia/default/19199514204@64.136.173.31 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
  615. 2024-09-04 11:15:44.550237 100.00% [DEBUG] switch_core_state_machine.c:647 (sofia/default/19199514204@64.136.173.31) State EXECUTE going to sleep
  616. 2024-09-04 11:15:44.550237 100.00% [DEBUG] switch_core_state_machine.c:581 (sofia/default/19199514204@64.136.173.31) Running State Change CS_HANGUP (Cur 3 Tot 52496)
  617. 2024-09-04 11:15:44.550237 100.00% [DEBUG] switch_core_state_machine.c:745 (sofia/default/18772726864@5.161.243.39) State DESTROY
  618. 2024-09-04 11:15:44.550237 100.00% [DEBUG] mod_sofia.c:380 sofia/default/18772726864@5.161.243.39 SOFIA DESTROY
  619. 2024-09-04 11:15:44.550237 100.00% [DEBUG] switch_core_state_machine.c:175 sofia/default/18772726864@5.161.243.39 Standard DESTROY
  620. 2024-09-04 11:15:44.550237 100.00% [DEBUG] switch_ivr_async.c:1597 Stop recording file /var/www/html/astpp/playlist/example/media/recordings/4be0fffd-ad8a-4c40-b167-ac569f43218b.wav
  621. 2024-09-04 11:15:44.550237 100.00% [DEBUG] switch_core_state_machine.c:745 (sofia/default/18772726864@5.161.243.39) State DESTROY going to sleep
  622. 2024-09-04 11:15:44.550237 100.00% [DEBUG] switch_ivr_async.c:1678 Channel is hung up
  623. 2024-09-04 11:15:44.550237 100.00% [DEBUG] switch_core_media_bug.c:1326 Removing BUG from sofia/default/19199514204@64.136.173.31
  624. 2024-09-04 11:15:44.550237 100.00% [DEBUG] switch_core_state_machine.c:844 (sofia/default/19199514204@64.136.173.31) Callstate Change ACTIVE -> HANGUP
  625. 2024-09-04 11:15:44.550237 100.00% [DEBUG] switch_core_state_machine.c:846 (sofia/default/19199514204@64.136.173.31) State HANGUP
  626. 2024-09-04 11:15:44.550237 100.00% [DEBUG] mod_sofia.c:463 sofia/default/19199514204@64.136.173.31 Overriding SIP cause 480 with 200 from the other leg
  627. 2024-09-04 11:15:44.550237 100.00% [DEBUG] mod_sofia.c:469 Channel sofia/default/19199514204@64.136.173.31 hanging up, cause: NORMAL_CLEARING
  628. 2024-09-04 11:15:44.550237 100.00% [DEBUG] mod_sofia.c:523 Sending BYE to sofia/default/19199514204@64.136.173.31
  629. 2024-09-04 11:15:44.550237 100.00% [DEBUG] mod_nibblebill.c:506 Attempting to bill at $0.01500 per minute to account 722
  630. 2024-09-04 11:15:44.550237 100.00% [INFO] mod_nibblebill.c:565 Beginning new billing on 4be0fffd-ad8a-4c40-b167-ac569f43218b
  631. 2024-09-04 11:15:44.550237 100.00% [DEBUG] mod_nibblebill.c:573 0 seconds passed since last bill time of 2024-09-04 11:15:43
  632. 2024-09-04 11:15:44.550237 100.00% [DEBUG] mod_nibblebill.c:590 Billing $0.007500 to 722 (Call: 4be0fffd-ad8a-4c40-b167-ac569f43218b / 0.000000 so far)
  633. 2024-09-04 11:15:44.550237 100.00% [DEBUG] mod_nibblebill.c:395 Doing update query
  634. [Update accounts SET balance=IF(posttoexternal=1,balance+0.007500,balance-0.007500) WHERE id='722']
  635. 2024-09-04 11:15:44.550237 100.00% [DEBUG] mod_nibblebill.c:395 Doing update query
  636. [Update accounts SET balance=IF(posttoexternal=1,balance+0.000000,balance-0.000000) WHERE id='722']
  637. 2024-09-04 11:15:44.550237 100.00% [DEBUG] mod_nibblebill.c:422 Doing lookup query
  638. [SELECT if(posttoexternal=1,credit_limit+(balance*-1),balance) AS nibble_balance FROM accounts WHERE id='722']
  639. 2024-09-04 11:15:44.550237 100.00% [DEBUG] mod_nibblebill.c:430 Retrieved current balance for account 722 (balance = 918117.535000)
  640. 2024-09-04 11:15:44.550237 100.00% [DEBUG] switch_core_state_machine.c:59 sofia/default/19199514204@64.136.173.31 Standard HANGUP, cause: NORMAL_CLEARING
  641. 2024-09-04 11:15:44.550237 100.00% [DEBUG] switch_core_state_machine.c:846 (sofia/default/19199514204@64.136.173.31) State HANGUP going to sleep
  642. 2024-09-04 11:15:44.550237 100.00% [DEBUG] switch_core_state_machine.c:616 (sofia/default/19199514204@64.136.173.31) State Change CS_HANGUP -> CS_REPORTING
  643. 2024-09-04 11:15:44.550237 100.00% [DEBUG] switch_core_state_machine.c:581 (sofia/default/19199514204@64.136.173.31) Running State Change CS_REPORTING (Cur 3 Tot 52496)
  644. 2024-09-04 11:15:44.550237 100.00% [DEBUG] switch_core_state_machine.c:932 (sofia/default/19199514204@64.136.173.31) State REPORTING
  645. 2024-09-04 11:15:44.550237 100.00% [INFO] mod_json_cdr.c:272 Process [4be0fffd-ad8a-4c40-b167-ac569f43218b.cdr.json]
  646. 2024-09-04 11:15:44.570242 100.00% [DEBUG] switch_core_state_machine.c:168 sofia/default/19199514204@64.136.173.31 Standard REPORTING, cause: NORMAL_CLEARING
  647. 2024-09-04 11:15:44.570242 100.00% [DEBUG] switch_core_state_machine.c:932 (sofia/default/19199514204@64.136.173.31) State REPORTING going to sleep
  648. 2024-09-04 11:15:44.570242 100.00% [DEBUG] switch_core_state_machine.c:607 (sofia/default/19199514204@64.136.173.31) State Change CS_REPORTING -> CS_DESTROY
  649. 2024-09-04 11:15:44.570242 100.00% [DEBUG] switch_core_session.c:1744 Session 52493 (sofia/default/19199514204@64.136.173.31) Locked, Waiting on external entities
  650. 2024-09-04 11:15:44.570242 100.00% [NOTICE] switch_core_session.c:1762 Session 52493 (sofia/default/19199514204@64.136.173.31) Ended
  651. 2024-09-04 11:15:44.570242 100.00% [NOTICE] switch_core_session.c:1766 Close Channel sofia/default/19199514204@64.136.173.31 [CS_DESTROY]
  652. 2024-09-04 11:15:44.570242 100.00% [DEBUG] switch_core_state_machine.c:735 (sofia/default/19199514204@64.136.173.31) Running State Change CS_DESTROY (Cur 2 Tot 52496)
  653. 2024-09-04 11:15:44.570242 100.00% [DEBUG] switch_core_state_machine.c:745 (sofia/default/19199514204@64.136.173.31) State DESTROY
  654. 2024-09-04 11:15:44.570242 100.00% [DEBUG] mod_sofia.c:380 sofia/default/19199514204@64.136.173.31 SOFIA DESTROY
  655. 2024-09-04 11:15:44.570242 100.00% [DEBUG] switch_core_state_machine.c:175 sofia/default/19199514204@64.136.173.31 Standard DESTROY
  656. 2024-09-04 11:15:44.570242 100.00% [DEBUG] switch_core_state_machine.c:745 (sofia/default/19199514204@64.136.173.31) State DESTROY going to sleep
  657. 2024-09-04 11:15:45.030236 100.00% [DEBUG] switch_scheduler.c:147 Deleting task 22066 switch_core_session_sched_heartbeat (4be0fffd-ad8a-4c40-b167-ac569f43218b)
  658. 2024-09-04 11:15:45.030236 100.00% [DEBUG] switch_scheduler.c:147 Deleting task 22067 switch_ivr_schedule_hangup (4be0fffd-ad8a-4c40-b167-ac569f43218b)
  659. 2024-09-04 11:15:45.570236 100.00% [DEBUG] sofia.c:7493 Channel sofia/default/18554012214@148.72.168.119 entering state [completing][200]
  660. 2024-09-04 11:15:45.570236 100.00% [DEBUG] sofia.c:7503 Remote SDP:
  661. v=0
  662. o=root 478820792 478820792 IN IP4 148.72.168.119
  663. s=Asterisk PBX 16.0.0
  664. c=IN IP4 148.72.168.119
  665. t=0 0
  666. m=audio 18658 RTP/AVP 0 101
  667. a=rtpmap:0 PCMU/8000
  668. a=rtpmap:101 telephone-event/8000
  669. a=fmtp:101 0-16
  670. a=maxptime:150
  671.  
  672. 2024-09-04 11:15:45.570236 100.00% [DEBUG] sofia.c:7493 Channel sofia/default/18554012214@148.72.168.119 entering state [ready][200]
  673. 2024-09-04 11:15:45.570236 100.00% [DEBUG] switch_core_media.c:5526 Audio Codec Compare [PCMU:0:8000:150:64000:1]/[PCMU:0:8000:20:64000:1]
  674. 2024-09-04 11:15:45.570236 100.00% [DEBUG] switch_core_media.c:5588 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  675. 2024-09-04 11:15:45.570236 100.00% [DEBUG] switch_core_media.c:5438 Set telephone-event payload to 101@8000
  676. 2024-09-04 11:15:45.570236 100.00% [DEBUG] switch_core_media.c:3734 Set Codec sofia/default/18554012214@148.72.168.119 PCMU/8000 20 ms 160 samples 64000 bits 1 channels
  677. 2024-09-04 11:15:45.570236 100.00% [DEBUG] switch_core_codec.c:111 sofia/default/18554012214@148.72.168.119 Original read codec set to PCMU:0
  678. 2024-09-04 11:15:45.570236 100.00% [DEBUG] switch_core_media.c:5798 Set telephone-event payload to 101@8000
  679. 2024-09-04 11:15:45.570236 100.00% [DEBUG] switch_core_media.c:5856 sofia/default/18554012214@148.72.168.119 Set 2833 dtmf send payload to 101 recv payload to 101
  680. 2024-09-04 11:15:45.570236 100.00% [DEBUG] switch_core_media.c:8659 AUDIO RTP [sofia/default/18554012214@148.72.168.119] 162.211.120.19 port 29226 -> 148.72.168.119 port 18658 codec: 0 ms: 20
  681. 2024-09-04 11:15:45.570236 100.00% [DEBUG] switch_rtp.c:4373 Starting timer [soft] 160 bytes per 20ms
  682. 2024-09-04 11:15:45.570236 100.00% [DEBUG] switch_core_media.c:8972 sofia/default/18554012214@148.72.168.119 Set 2833 dtmf send payload to 101
  683. 2024-09-04 11:15:45.570236 100.00% [DEBUG] switch_core_media.c:8979 sofia/default/18554012214@148.72.168.119 Set 2833 dtmf receive payload to 101
  684. 2024-09-04 11:15:45.570236 100.00% [DEBUG] switch_core_media.c:9002 sofia/default/18554012214@148.72.168.119 Set rtp dtmf delay to 40
  685. 2024-09-04 11:15:45.570236 100.00% [NOTICE] sofia.c:8680 Channel [sofia/default/18554012214@148.72.168.119] has been answered
  686. EXECUTE [depth=1] sofia/default/18554012214@148.72.168.119 record_session(/var/www/html/astpp/playlist/example/media/recordings/12f47352-9d63-481a-9642-6bbde610d877.wav)
  687. 2024-09-04 11:15:45.570236 100.00% [DEBUG] switch_core_media.c:8659 AUDIO RTP [sofia/default/917217787087@148.72.170.56] 162.211.120.19 port 24500 -> 148.72.170.56 port 12824 codec: 0 ms: 20
  688. 2024-09-04 11:15:45.570236 100.00% [DEBUG] switch_rtp.c:4373 Starting timer [soft] 160 bytes per 20ms
  689. 2024-09-04 11:15:45.570236 100.00% [DEBUG] switch_core_media.c:8972 sofia/default/917217787087@148.72.170.56 Set 2833 dtmf send payload to 101
  690. 2024-09-04 11:15:45.570236 100.00% [DEBUG] switch_core_media.c:8979 sofia/default/917217787087@148.72.170.56 Set 2833 dtmf receive payload to 101
  691. 2024-09-04 11:15:45.570236 100.00% [DEBUG] switch_core_media.c:9002 sofia/default/917217787087@148.72.170.56 Set rtp dtmf delay to 40
  692. 2024-09-04 11:15:45.570236 100.00% [DEBUG] mod_sofia.c:914 Local SDP sofia/default/917217787087@148.72.170.56:
  693. v=0
  694. o=FreeSWITCH 1725424045 1725424046 IN IP4 162.211.120.19
  695. s=FreeSWITCH
  696. c=IN IP4 162.211.120.19
  697. t=0 0
  698. m=audio 24500 RTP/AVP 0 101
  699. a=rtpmap:0 PCMU/8000
  700. a=rtpmap:101 telephone-event/8000
  701. a=fmtp:101 0-15
  702. a=ptime:20
  703. a=sendrecv
  704.  
  705. 2024-09-04 11:15:45.570236 100.00% [NOTICE] switch_ivr_originate.c:3851 Channel [sofia/default/917217787087@148.72.170.56] has been answered
  706. EXECUTE [depth=0] sofia/default/917217787087@148.72.170.56 sched_hangup(+6000 normal_clearing)
  707. 2024-09-04 11:15:45.570236 100.00% [DEBUG] sofia.c:7493 Channel sofia/default/917217787087@148.72.170.56 entering state [completed][200]
  708. 2024-09-04 11:15:45.570236 100.00% [DEBUG] switch_scheduler.c:263 Added task 22069 switch_ivr_schedule_hangup (12f47352-9d63-481a-9642-6bbde610d877) to run at 1725454545
  709. EXECUTE [depth=0] sofia/default/917217787087@148.72.170.56 record_session(/var/www/html/astpp/playlist/example/media/recordings/12f47352-9d63-481a-9642-6bbde610d877.wav)
  710. 2024-09-04 11:15:45.570236 100.00% [DEBUG] switch_ivr_async.c:1504 Record session sample rate: 8000 -> 8000
  711. 2024-09-04 11:15:45.570236 100.00% [DEBUG] switch_core_media_bug.c:976 Attaching BUG to sofia/default/18554012214@148.72.168.119
  712. 2024-09-04 11:15:45.570236 100.00% [DEBUG] switch_channel.c:3912 (sofia/default/18554012214@148.72.168.119) Callstate Change DOWN -> ACTIVE
  713. 2024-09-04 11:15:45.590241 100.00% [DEBUG] switch_ivr_async.c:1504 Record session sample rate: 8000 -> 8000
  714. 2024-09-04 11:15:45.590241 100.00% [DEBUG] switch_core_media_bug.c:976 Attaching BUG to sofia/default/917217787087@148.72.170.56
  715. 2024-09-04 11:15:45.590241 100.00% [DEBUG] sofia.c:7493 Channel sofia/default/917217787087@148.72.170.56 entering state [ready][200]
  716. 2024-09-04 11:15:45.590241 100.00% [DEBUG] switch_channel.c:3912 (sofia/default/917217787087@148.72.170.56) Callstate Change RINGING -> ACTIVE
  717. 2024-09-04 11:15:45.590241 100.00% [DEBUG] switch_ivr_originate.c:3909 Originate Resulted in Success: [sofia/default/18554012214@148.72.168.119] Peer UUID: 28065077-4de7-43fa-84ef-88b1df4f388a
  718. 2024-09-04 11:15:45.590241 100.00% [DEBUG] switch_ivr_bridge.c:1791 (sofia/default/18554012214@148.72.168.119) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA
  719. 2024-09-04 11:15:45.590241 100.00% [DEBUG] switch_core_state_machine.c:581 (sofia/default/18554012214@148.72.168.119) Running State Change CS_EXCHANGE_MEDIA (Cur 2 Tot 52496)
  720. 2024-09-04 11:15:45.590241 100.00% [DEBUG] switch_core_state_machine.c:650 (sofia/default/18554012214@148.72.168.119) State EXCHANGE_MEDIA
  721. 2024-09-04 11:15:45.590241 100.00% [DEBUG] mod_sofia.c:672 SOFIA EXCHANGE_MEDIA
  722. 2024-09-04 11:15:45.590241 100.00% [DEBUG] switch_ivr_async.c:1778 No silence detection configured; assuming start of speech
  723. 2024-09-04 11:15:45.590241 100.00% [DEBUG] switch_ivr_async.c:1778 No silence detection configured; assuming start of speech
  724. 2024-09-04 11:15:45.710351 100.00% [DEBUG] switch_rtp.c:7503 Correct audio ip/port confirmed.
  725. 2024-09-04 11:15:45.710351 100.00% [DEBUG] switch_core_io.c:450 Setting BUG Codec PCMU:0
  726. freeswitch@host-162-211-120-19> /exit
  727.  
  728. root@host-162-211-120-19:~#
  729.  
  730.