From Rafa cllaer id working, 1 Year ago, written in FreeSWITCH.
- view diff
Embed
  1. span style="color: goldenrod; font-weight: bold;"> 2023-06-28 07:00:37.878652 99.50% [DEBUG] switch_core_state_machine.c:168 sofia/default/911096046@51.91.247.55 Standard REPORTING, cause: UNALLOCATED_NUMBER
  2. 2023-06-28 07:00:37.878652 99.50% [DEBUG] switch_core_state_machine.c:932 (sofia/default/911096046@51.91.247.55) State REPORTING going to sleep
  3. 2023-06-28 07:00:37.878652 99.50% [DEBUG] switch_core_state_machine.c:607 (sofia/default/911096046@51.91.247.55) State Change CS_REPORTING -> CS_DESTROY
  4. 2023-06-28 07:00:37.878652 99.50% [DEBUG] switch_core_session.c:1753 Session 9763 (sofia/default/911096046@51.91.247.55) Locked, Waiting on external entities
  5. 2023-06-28 07:00:37.878652 99.50% [NOTICE] switch_core_session.c:1771 Session 9763 (sofia/default/911096046@51.91.247.55) Ended
  6. 2023-06-28 07:00:37.878652 99.50% [NOTICE] switch_core_session.c:1775 Close Channel sofia/default/911096046@51.91.247.55 [CS_DESTROY]
  7. 2023-06-28 07:00:37.878652 99.50% [DEBUG] switch_core_state_machine.c:735 (sofia/default/911096046@51.91.247.55) Running State Change CS_DESTROY (Cur 15 Tot 9763)
  8. 2023-06-28 07:00:37.878652 99.50% [DEBUG] switch_core_state_machine.c:745 (sofia/default/911096046@51.91.247.55) State DESTROY
  9. 2023-06-28 07:00:37.878652 99.50% [DEBUG] mod_sofia.c:379 sofia/default/911096046@51.91.247.55 SOFIA DESTROY
  10. 2023-06-28 07:00:37.878652 99.50% [DEBUG] switch_core_state_machine.c:175 sofia/default/911096046@51.91.247.55 Standard DESTROY
  11. 2023-06-28 07:00:37.878652 99.50% [DEBUG] switch_core_state_machine.c:745 (sofia/default/911096046@51.91.247.55) State DESTROY going to sleep
  12. 2023-06-28 07:00:37.898649 99.50% [DEBUG] switch_core_state_machine.c:168 sofia/default/608627716@52.17.186.54 Standard REPORTING, cause: NORMAL_CLEARING
  13. 2023-06-28 07:00:37.898649 99.50% [DEBUG] switch_core_state_machine.c:932 (sofia/default/608627716@52.17.186.54) State REPORTING going to sleep
  14. 2023-06-28 07:00:37.898649 99.50% [DEBUG] switch_core_state_machine.c:607 (sofia/default/608627716@52.17.186.54) State Change CS_REPORTING -> CS_DESTROY
  15. 2023-06-28 07:00:37.898649 99.50% [DEBUG] switch_core_session.c:1753 Session 9762 (sofia/default/608627716@52.17.186.54) Locked, Waiting on external entities
  16. 2023-06-28 07:00:37.898649 99.50% [NOTICE] switch_core_session.c:1771 Session 9762 (sofia/default/608627716@52.17.186.54) Ended
  17. 2023-06-28 07:00:37.898649 99.50% [NOTICE] switch_core_session.c:1775 Close Channel sofia/default/608627716@52.17.186.54 [CS_DESTROY]
  18. 2023-06-28 07:00:37.898649 99.50% [DEBUG] switch_core_state_machine.c:735 (sofia/default/608627716@52.17.186.54) Running State Change CS_DESTROY (Cur 14 Tot 9763)
  19. 2023-06-28 07:00:37.898649 99.50% [DEBUG] switch_core_state_machine.c:745 (sofia/default/608627716@52.17.186.54) State DESTROY
  20. 2023-06-28 07:00:37.898649 99.50% [DEBUG] mod_sofia.c:379 sofia/default/608627716@52.17.186.54 SOFIA DESTROY
  21. 2023-06-28 07:00:37.898649 99.50% [DEBUG] switch_core_state_machine.c:175 sofia/default/608627716@52.17.186.54 Standard DESTROY
  22. 2023-06-28 07:00:37.898649 99.50% [DEBUG] switch_core_state_machine.c:745 (sofia/default/608627716@52.17.186.54) State DESTROY going to sleep
  23. 2023-06-28 07:00:37.998648 99.50% [NOTICE] switch_channel.c:1123 New Channel sofia/default/608627716@52.17.186.54 [f5ad97d2-458f-4d59-88b1-e39e7a4db8ff]
  24. 2023-06-28 07:00:37.998648 99.50% [DEBUG] switch_core_state_machine.c:581 (sofia/default/608627716@52.17.186.54) Running State Change CS_NEW (Cur 15 Tot 9764)
  25. 2023-06-28 07:00:37.998648 99.50% [INFO] sofia.c:10462 sofia/default/608627716@52.17.186.54 receiving invite from 34.243.39.183:5060 version: 1.10.7 -release 64bit call-id: 61a4018207ecfed449427514669c2a5f@52.17.186.54:5060
  26. 2023-06-28 07:00:37.998648 99.50% [DEBUG] sofia.c:10556 verifying acl "default" for ip/port 34.243.39.183:0.
  27. 2023-06-28 07:00:37.998648 99.50% [DEBUG] sofia.c:10585 IP 34.243.39.183 Approved by acl "default[]". Access Granted.
  28. 2023-06-28 07:00:37.998648 99.50% [DEBUG] sofia.c:7499 Channel sofia/default/608627716@52.17.186.54 entering state [received][100]
  29. 2023-06-28 07:00:37.998648 99.50% [DEBUG] sofia.c:7509 Remote SDP:
  30. v=0
  31. o=root 954717988 954717988 IN IP4 52.17.186.54
  32. s=Asterisk PBX 1.8.32.3
  33. c=IN IP4 52.17.186.54
  34. t=0 0
  35. m=audio 18166 RTP/AVP 8 18 101
  36. a=rtpmap:8 PCMA/8000
  37. a=rtpmap:18 G729/8000
  38. a=fmtp:18 annexb=no
  39. a=rtpmap:101 telephone-event/8000
  40. a=fmtp:101 0-16
  41. a=ptime:20
  42.  
  43. 2023-06-28 07:00:37.998648 99.50% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  44. 2023-06-28 07:00:37.998648 99.50% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  45. 2023-06-28 07:00:37.998648 99.50% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  46. 2023-06-28 07:00:37.998648 99.50% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  47. 2023-06-28 07:00:37.998648 99.50% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:20:8000:1]
  48. 2023-06-28 07:00:37.998648 99.50% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [G729:18:8000:20:8000:1] ++++ is saved as a match
  49. 2023-06-28 07:00:37.998648 99.50% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
  50. 2023-06-28 07:00:37.998648 99.50% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1]
  51. 2023-06-28 07:00:37.998648 99.50% [DEBUG] switch_core_media.c:5566 Set telephone-event payload to 101@8000
  52. 2023-06-28 07:00:37.998648 99.50% [DEBUG] switch_core_media.c:3870 Set Codec sofia/default/608627716@52.17.186.54 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  53. 2023-06-28 07:00:37.998648 99.50% [DEBUG] switch_core_codec.c:111 sofia/default/608627716@52.17.186.54 Original read codec set to PCMA:8
  54. 2023-06-28 07:00:37.998648 99.50% [DEBUG] switch_core_media.c:5915 Set telephone-event payload to 101@8000
  55. 2023-06-28 07:00:37.998648 99.50% [DEBUG] switch_core_media.c:5973 sofia/default/608627716@52.17.186.54 Set 2833 dtmf send payload to 101 recv payload to 101
  56. 2023-06-28 07:00:37.998648 99.50% [DEBUG] sofia.c:7933 (sofia/default/608627716@52.17.186.54) State Change CS_NEW -> CS_INIT
  57. 2023-06-28 07:00:37.998648 99.50% [DEBUG] switch_core_state_machine.c:600 (sofia/default/608627716@52.17.186.54) State NEW
  58. 2023-06-28 07:00:37.998648 99.50% [DEBUG] switch_core_state_machine.c:581 (sofia/default/608627716@52.17.186.54) Running State Change CS_INIT (Cur 15 Tot 9764)
  59. 2023-06-28 07:00:37.998648 99.50% [DEBUG] switch_core_state_machine.c:624 (sofia/default/608627716@52.17.186.54) State INIT
  60. 2023-06-28 07:00:37.998648 99.50% [DEBUG] mod_sofia.c:97 sofia/default/608627716@52.17.186.54 SOFIA INIT
  61. 2023-06-28 07:00:37.998648 99.50% [DEBUG] switch_core_state_machine.c:40 sofia/default/608627716@52.17.186.54 Standard INIT
  62. 2023-06-28 07:00:37.998648 99.50% [DEBUG] switch_core_state_machine.c:48 (sofia/default/608627716@52.17.186.54) State Change CS_INIT -> CS_ROUTING
  63. 2023-06-28 07:00:37.998648 99.50% [DEBUG] switch_core_state_machine.c:624 (sofia/default/608627716@52.17.186.54) State INIT going to sleep
  64. 2023-06-28 07:00:37.998648 99.50% [DEBUG] switch_core_state_machine.c:581 (sofia/default/608627716@52.17.186.54) Running State Change CS_ROUTING (Cur 15 Tot 9764)
  65. 2023-06-28 07:00:37.998648 99.50% [DEBUG] switch_channel.c:2380 (sofia/default/608627716@52.17.186.54) Callstate Change DOWN -> RINGING
  66. 2023-06-28 07:00:37.998648 99.50% [DEBUG] switch_core_state_machine.c:640 (sofia/default/608627716@52.17.186.54) State ROUTING
  67. 2023-06-28 07:00:37.998648 99.50% [DEBUG] mod_sofia.c:158 sofia/default/608627716@52.17.186.54 SOFIA ROUTING
  68. 2023-06-28 07:00:37.998648 99.50% [DEBUG] switch_core_state_machine.c:230 sofia/default/608627716@52.17.186.54 Standard ROUTING
  69. 2023-06-28 07:00:37.998648 99.50% [INFO] mod_dialplan_xml.c:639 Processing 608627716 <608627716>->911096046 in context default
  70. 2023-06-28 07:00:37.998648 99.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  71. 2023-06-28 07:00:37.998648 99.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  72. 2023-06-28 07:00:37.998648 99.50% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [xml_handler] Params:
  73. Event-Name: REQUEST_PARAMS
  74. Core-UUID: 167a46b1-cb6e-4303-ae1e-3e2da2ee66eb
  75. FreeSWITCH-Hostname: ip-10-0-2-92
  76. FreeSWITCH-Switchname: ip-10-0-2-92
  77. FreeSWITCH-IPv4: 10.0.2.92
  78. FreeSWITCH-IPv6: %3A%3A1
  79. Event-Date-Local: 2023-06-28%2007%3A00%3A37
  80. Event-Date-GMT: Wed,%2028%20Jun%202023%2007%3A00%3A37%20GMT
  81. Event-Date-Timestamp: 1687935637998648
  82. Event-Calling-File: mod_dialplan_xml.c
  83. Event-Calling-Function: dialplan_xml_locate
  84. Event-Calling-Line-Number: 610
  85. Event-Sequence: 561250
  86. Channel-State: CS_ROUTING
  87. Channel-Call-State: RINGING
  88. Channel-State-Number: 2
  89. Channel-Name: sofia/default/608627716%4052.17.186.54
  90. Unique-ID: f5ad97d2-458f-4d59-88b1-e39e7a4db8ff
  91. Call-Direction: inbound
  92. Presence-Call-Direction: inbound
  93. Channel-HIT-Dialplan: true
  94. Channel-Presence-ID: 608627716%4052.17.186.54
  95. Channel-Call-UUID: f5ad97d2-458f-4d59-88b1-e39e7a4db8ff
  96. Answer-State: ringing
  97. Channel-Read-Codec-Name: PCMA
  98. Channel-Read-Codec-Rate: 8000
  99. Channel-Read-Codec-Bit-Rate: 64000
  100. Channel-Write-Codec-Name: PCMA
  101. Channel-Write-Codec-Rate: 8000
  102. Channel-Write-Codec-Bit-Rate: 64000
  103. Caller-Direction: inbound
  104. Caller-Logical-Direction: inbound
  105. Caller-Username: 608627716
  106. Caller-Dialplan: XML
  107. Caller-Caller-ID-Name: 608627716
  108. Caller-Caller-ID-Number: 608627716
  109. Caller-Orig-Caller-ID-Name: 608627716
  110. Caller-Orig-Caller-ID-Number: 608627716
  111. Caller-Network-Addr: 34.243.39.183
  112. Caller-ANI: 608627716
  113. Caller-Destination-Number: 911096046
  114. Caller-Unique-ID: f5ad97d2-458f-4d59-88b1-e39e7a4db8ff
  115. Caller-Source: mod_sofia
  116. Caller-Context: default
  117. Caller-Channel-Name: sofia/default/608627716%4052.17.186.54
  118. Caller-Profile-Index: 1
  119. Caller-Profile-Created-Time: 1687935637998648
  120. Caller-Channel-Created-Time: 1687935637998648
  121. Caller-Channel-Answered-Time: 0
  122. Caller-Channel-Progress-Time: 0
  123. Caller-Channel-Progress-Media-Time: 0
  124. Caller-Channel-Hangup-Time: 0
  125. Caller-Channel-Transfer-Time: 0
  126. Caller-Channel-Resurrect-Time: 0
  127. Caller-Channel-Bridged-Time: 0
  128. Caller-Channel-Last-Hold: 0
  129. Caller-Channel-Hold-Accum: 0
  130. Caller-Screen-Bit: true
  131. Caller-Privacy-Hide-Name: false
  132. Caller-Privacy-Hide-Number: false
  133. variable_direction: inbound
  134. variable_uuid: f5ad97d2-458f-4d59-88b1-e39e7a4db8ff
  135. variable_session_id: 9764
  136. variable_sip_from_user: 608627716
  137. variable_sip_from_uri: 608627716%4052.17.186.54
  138. variable_sip_from_host: 52.17.186.54
  139. variable_video_media_flow: disabled
  140. variable_text_media_flow: disabled
  141. variable_channel_name: sofia/default/608627716%4052.17.186.54
  142. variable_sip_call_id: 61a4018207ecfed449427514669c2a5f%4052.17.186.54%3A5060
  143. variable_sip_local_network_addr: 54.220.206.86
  144. variable_sip_network_ip: 34.243.39.183
  145. variable_sip_network_port: 5060
  146. variable_sip_invite_stamp: 1687935637998648
  147. variable_sip_received_ip: 34.243.39.183
  148. variable_sip_received_port: 5060
  149. variable_sip_via_protocol: udp
  150. variable_sip_authorized: true
  151. variable_sip_acl_authed_by: default
  152. variable_sip_from_user_stripped: 608627716
  153. variable_sip_from_tag: as69d53950
  154. variable_sofia_profile_name: default
  155. variable_sofia_profile_url: sip%3Amod_sofia%4054.220.206.86%3A7777
  156. variable_recovery_profile_name: default
  157. variable_sip_invite_route_uri: %3Csip%3A34.243.39.183%3Blr%3Bftag%3Das69d53950%3Bdid%3D422.163bf707%3E
  158. variable_sip_invite_record_route: %3Csip%3A34.243.39.183%3Blr%3Bftag%3Das69d53950%3Bdid%3D422.163bf707%3E
  159. variable_sip_full_via: SIP/2.0/UDP%2034.243.39.183%3A5060%3Bbranch%3Dz9hG4bK5f.ebf1e037.0,SIP/2.0/UDP%2052.17.186.54%3A5060%3Breceived%3D52.17.186.54%3Bbranch%3Dz9hG4bK77a195a6%3Brport%3D5060
  160. variable_sip_from_display: 608627716
  161. variable_sip_full_from: %22608627716%22%20%3Csip%3A608627716%4052.17.186.54%3E%3Btag%3Das69d53950
  162. variable_sip_full_to: %3Csip%3A911096046%4034.243.39.183%3A5060%3E
  163. variable_sip_allow: INVITE,%20ACK,%20CANCEL,%20OPTIONS,%20BYE,%20REFER,%20SUBSCRIBE,%20NOTIFY,%20INFO,%20PUBLISH,%20MESSAGE
  164. variable_sip_req_user: 911096046
  165. variable_sip_req_port: 5060
  166. variable_sip_req_uri: 911096046%4034.243.39.183%3A5060
  167. variable_sip_req_host: 34.243.39.183
  168. variable_sip_to_user: 911096046
  169. variable_sip_to_port: 5060
  170. variable_sip_to_uri: 911096046%4034.243.39.183%3A5060
  171. variable_sip_to_host: 34.243.39.183
  172. variable_sip_contact_user: 608627716
  173. variable_sip_contact_port: 5060
  174. variable_sip_contact_uri: 608627716%4052.17.186.54%3A5060
  175. variable_sip_contact_host: 52.17.186.54
  176. variable_sip_user_agent: MASIP%20PBX
  177. variable_sip_via_host: 34.243.39.183
  178. variable_sip_via_port: 5060
  179. variable_max_forwards: 69
  180. variable_presence_id: 608627716%4052.17.186.54
  181. variable_sip_date_epoch_time: 1687935638
  182. variable_sip_h_Diversion: %3Csip%3A621296078%4052.17.186.54%3E%3Breason%3Dunconditional
  183. variable_sip_h_X-AUTH-IP: 52.17.186.54
  184. variable_sip_h_P-Accountcode: 2189415096
  185. variable_sip_h_P-effective_caller_id_name: %22608627716%22
  186. variable_sip_h_P-effective_caller_id_number: 608627716
  187. variable_switch_r_sdp: v%3D0%0D%0Ao%3Droot%20954717988%20954717988%20IN%20IP4%2052.17.186.54%0D%0As%3DAsterisk%20PBX%201.8.32.3%0D%0Ac%3DIN%20IP4%2052.17.186.54%0D%0At%3D0%200%0D%0Am%3Daudio%2018166%20RTP/AVP%208%2018%20101%0D%0Aa%3Drtpmap%3A8%20PCMA/8000%0D%0Aa%3Drtpmap%3A18%20G729/8000%0D%0Aa%3Dfmtp%3A18%20annexb%3Dno%0D%0Aa%3Drtpmap%3A101%20telephone-event/8000%0D%0Aa%3Dfmtp%3A101%200-16%0D%0Aa%3Dptime%3A20%0D%0A
  188. variable_ep_codec_string: CORE_PCM_MODULE.PCMA%408000h%4020i%4064000b,mod_com_g729.G729%408000h%4020i%408000b
  189. variable_rtp_use_codec_string: G729,PCMA,PCMU
  190. variable_remote_video_media_flow: inactive
  191. variable_remote_text_media_flow: inactive
  192. variable_remote_audio_media_flow: sendrecv
  193. variable_audio_media_flow: sendrecv
  194. variable_remote_media_ip: 52.17.186.54
  195. variable_remote_media_port: 18166
  196. variable_rtp_audio_recv_pt: 8
  197. variable_rtp_use_codec_name: PCMA
  198. variable_rtp_use_codec_rate: 8000
  199. variable_rtp_use_codec_ptime: 20
  200. variable_rtp_use_codec_channels: 1
  201. variable_rtp_last_audio_codec_string: PCMA%408000h%4020i%401c
  202. variable_read_codec: PCMA
  203. variable_original_read_codec: PCMA
  204. variable_read_rate: 8000
  205. variable_original_read_rate: 8000
  206. variable_write_codec: PCMA
  207. variable_write_rate: 8000
  208. variable_dtmf_type: rfc2833
  209. variable_endpoint_disposition: RECEIVED
  210. variable_call_uuid: f5ad97d2-458f-4d59-88b1-e39e7a4db8ff
  211. Hunt-Direction: inbound
  212. Hunt-Logical-Direction: inbound
  213. Hunt-Username: 608627716
  214. Hunt-Dialplan: XML
  215. Hunt-Caller-ID-Name: 608627716
  216. Hunt-Caller-ID-Number: 608627716
  217. Hunt-Orig-Caller-ID-Name: 608627716
  218. Hunt-Orig-Caller-ID-Number: 608627716
  219. Hunt-Network-Addr: 34.243.39.183
  220. Hunt-ANI: 608627716
  221. Hunt-Destination-Number: 911096046
  222. Hunt-Unique-ID: f5ad97d2-458f-4d59-88b1-e39e7a4db8ff
  223. Hunt-Source: mod_sofia
  224. Hunt-Context: default
  225. Hunt-Channel-Name: sofia/default/608627716%4052.17.186.54
  226. Hunt-Profile-Index: 1
  227. Hunt-Profile-Created-Time: 1687935637998648
  228. Hunt-Channel-Created-Time: 1687935637998648
  229. Hunt-Channel-Answered-Time: 0
  230. Hunt-Channel-Progress-Time: 0
  231. Hunt-Channel-Progress-Media-Time: 0
  232. Hunt-Channel-Hangup-Time: 0
  233. Hunt-Channel-Transfer-Time: 0
  234. Hunt-Channel-Resurrect-Time: 0
  235. Hunt-Channel-Bridged-Time: 0
  236. Hunt-Channel-Last-Hold: 0
  237. Hunt-Channel-Hold-Accum: 0
  238. Hunt-Screen-Bit: true
  239. Hunt-Privacy-Hide-Name: false
  240. Hunt-Privacy-Hide-Number: false
  241.  
  242.  
  243. 2023-06-28 07:00:37.998648 99.50% [INFO] switch_cpp.cpp:1465 [ASTPP] [xml_REQUEST] key_value:
  244. 2023-06-28 07:00:37.998648 99.50% [INFO] switch_cpp.cpp:1465 [ASTPP] [xml_REQUEST] tag_name:
  245. 2023-06-28 07:00:37.998648 99.50% [INFO] switch_cpp.cpp:1465 [ASTPP] [xml_REQUEST] key_name:
  246. 2023-06-28 07:00:37.998648 99.50% [INFO] switch_cpp.cpp:1465 [ASTPP] [xml_REQUEST] section: dialplan
  247. 2023-06-28 07:00:38.018651 99.50% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 911096046
  248. 2023-06-28 07:00:38.018651 99.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '911096046' AND status=0 limit 1
  249. 2023-06-28 07:00:38.018651 99.50% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number  : "608627716" / 608627716
  250. 2023-06-28 07:00:38.018651 99.50% [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 FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="911096046" LIMIT 1
  251. 2023-06-28 07:00:38.018651 99.50% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : inbound
  252. 2023-06-28 07:00:38.018651 99.50% [INFO] switch_cpp.cpp:1465 [ASTPP] [Accountcode : 2189415096]
  253. 2023-06-28 07:00:38.018651 99.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "2189415096" AND deleted = 0 limit 1
  254. 2023-06-28 07:00:38.018651 99.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="911096046" AND (accountid = 0 OR status = 1) LIMIT 1
  255. 2023-06-28 07:00:38.018651 99.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] Call Direction : inbound
  256. 2023-06-28 07:00:38.018651 99.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] DID ACCOUNT ID : 107
  257. 2023-06-28 07:00:38.018651 99.50% [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 = '^911096046.*' OR patterns = '^91109604.*' OR patterns = '^9110960.*' OR patterns = '^911096.*' OR patterns = '^91109.*' OR patterns = '^9110.*' OR patterns = '^911.*' OR patterns = '^91.*' OR patterns = '^9.*' OR patterns ='--') AND accountid = 107 ORDER BY LENGTH(PKGPTR.patterns) DESC
  258. 2023-06-28 07:00:38.018651 99.50% [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 ="911096046" AND A.accountid = '7' limit 1
  259. 2023-06-28 07:00:38.018651 99.50% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 911096046
  260. 2023-06-28 07:00:38.018651 99.50% [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 FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="911096046" LIMIT 1
  261. 2023-06-28 07:00:38.018651 99.50% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] New Call Direction : inbound
  262. 2023-06-28 07:00:38.018651 99.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '911096046' OR number = '91109604' OR number = '9110960' OR number = '911096' OR number = '91109' OR number = '9110' OR number = '911' OR number = '91' OR number = '9' OR number ='--') OR (number = '911096046*' OR number = '91109604*' OR number = '9110960*' OR number = '911096*' OR number = '91109*' OR number = '9110*' OR number = '911*' OR number = '91*' OR number = '9*' OR number ='--') OR (number = '608627716' OR number = '60862771' OR number = '6086277' OR number = '608627' OR number = '60862' OR number = '6086' OR number = '608' OR number = '60' OR number = '6' OR number ='--') OR (number = '608627716*' OR number = '60862771*' OR number = '6086277*' OR number = '608627*' OR number = '60862*' OR number = '6086*' OR number = '608*' OR number = '60*' OR number = '6*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC
  263. 2023-06-28 07:00:38.018651 99.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Call Barring Status : -1
  264. 2023-06-28 07:00:38.018651 99.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '911096046' OR routing_prefix = '91109604' OR routing_prefix = '9110960' OR routing_prefix = '911096' OR routing_prefix = '91109' OR routing_prefix = '9110' OR routing_prefix = '911' OR routing_prefix = '91' OR routing_prefix = '9' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1
  265. 2023-06-28 07:00:38.038654 99.50% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Account Information ===================
  266. 2023-06-28 07:00:38.038654 99.50% [INFO] switch_cpp.cpp:1465 [ASTPP] User id : 7
  267. 2023-06-28 07:00:38.038654 99.50% [INFO] switch_cpp.cpp:1465 [ASTPP] Account code : 2189415096
  268. 2023-06-28 07:00:38.038654 99.50% [INFO] switch_cpp.cpp:1465 [ASTPP] Balance : 10000
  269. 2023-06-28 07:00:38.038654 99.50% [INFO] switch_cpp.cpp:1465 [ASTPP] Type : 1 [0:prepaid,1:postpaid]
  270. 2023-06-28 07:00:38.038654 99.50% [INFO] switch_cpp.cpp:1465 [ASTPP] Ratecard id : 15
  271. 2023-06-28 07:00:38.038654 99.50% [INFO] switch_cpp.cpp:1465 [ASTPP] CID Pool : 0
  272. 2023-06-28 07:00:38.038654 99.50% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================================================
  273. 2023-06-28 07:00:38.038654 99.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 15 AND status = 0
  274. 2023-06-28 07:00:38.038654 99.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :inbound
  275. 2023-06-28 07:00:38.038654 99.50% [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 FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="911096046" LIMIT 1
  276. 2023-06-28 07:00:38.038654 99.50% [INFO] switch_cpp.cpp:1465 [ASTPP]  Call Direction : inbound
  277. 2023-06-28 07:00:38.038654 99.50% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information ===================
  278. 2023-06-28 07:00:38.038654 99.50% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 25
  279. 2023-06-28 07:00:38.038654 99.50% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
  280. 2023-06-28 07:00:38.038654 99.50% [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0
  281. 2023-06-28 07:00:38.038654 99.50% [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 0.00000
  282. 2023-06-28 07:00:38.038654 99.50% [INFO] switch_cpp.cpp:1465 [ASTPP] Comment : Spain Spain
  283. 2023-06-28 07:00:38.038654 99.50% [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 174
  284. 2023-06-28 07:00:38.038654 99.50% [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 7
  285. 2023-06-28 07:00:38.038654 99.50% [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================
  286. 2023-06-28 07:00:38.038654 99.50% [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your10000 balance Accountid 7 !!!
  287. 2023-06-28 07:00:38.038654 99.50% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length  :: 100
  288. 2023-06-28 07:00:38.038654 99.50% [INFO] switch_cpp.cpp:1465 [ASTPP] Call Max Length Duration : 100 minutes
  289. 2023-06-28 07:00:38.038654 99.50% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] INB_FREE:TRUE
  290. 2023-06-28 07:00:38.038654 99.50% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] free_inbound:0
  291. 2023-06-28 07:00:38.038654 99.50% [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 = 7 AND status=0 LIMIT 1
  292. 2023-06-28 07:00:38.038654 99.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "107" AND deleted = 0 limit 1
  293. 2023-06-28 07:00:38.038654 99.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 15 AND status = 0
  294. 2023-06-28 07:00:38.038654 99.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :outbound
  295. 2023-06-28 07:00:38.038654 99.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 15 AND status = 0
  296. 2023-06-28 07:00:38.038654 99.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^911096046.*' OR pattern = '^91109604.*' OR pattern = '^9110960.*' OR pattern = '^911096.*' OR pattern = '^91109.*' OR pattern = '^9110.*' OR pattern = '^911.*' OR pattern = '^91.*' OR pattern = '^9.*' OR pattern ='--') AND status = 0 AND effective_date <= UTC_TIMESTAMP() AND (pricelist_id = 15 OR accountid=7)  ORDER BY accountid DESC,LENGTH(pattern) DESC,cost DESC,effective_date DESC LIMIT 1
  297. 2023-06-28 07:00:38.058663 99.50% [INFO] switch_cpp.cpp:1465 [ASTPP]  Call Direction : outbound
  298. 2023-06-28 07:00:38.058663 99.50% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information ===================
  299. 2023-06-28 07:00:38.058663 99.50% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 87838
  300. 2023-06-28 07:00:38.058663 99.50% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
  301. 2023-06-28 07:00:38.058663 99.50% [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0
  302. 2023-06-28 07:00:38.058663 99.50% [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 0.00000
  303. 2023-06-28 07:00:38.058663 99.50% [INFO] switch_cpp.cpp:1465 [ASTPP] Comment : EDIM Prov MOR
  304. 2023-06-28 07:00:38.058663 99.50% [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 174
  305. 2023-06-28 07:00:38.058663 99.50% [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 7
  306. 2023-06-28 07:00:38.058663 99.50% [INFO] switch_cpp.cpp:1465 [ASTPP] Trunk ID:
  307. 2023-06-28 07:00:38.058663 99.50% [INFO] switch_cpp.cpp:1465 [ASTPP] Routing type:
  308. 2023-06-28 07:00:38.058663 99.50% [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================
  309. 2023-06-28 07:00:38.058663 99.50% [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your10000 balance Accountid 7 !!!
  310. 2023-06-28 07:00:38.058663 99.50% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length  :: 100
  311. 2023-06-28 07:00:38.058663 99.50% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Actual CustomerInfo XML:7
  312. 2023-06-28 07:00:38.058663 99.50% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Userinfo XML:7
  313. 2023-06-28 07:00:38.058663 99.50% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Actual CustomerInfo XML : 7
  314. 2023-06-28 07:00:38.058663 99.50% [INFO] switch_cpp.cpp:1465 [ASTPP]  Maxlength : 100
  315. 2023-06-28 07:00:38.058663 99.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  316. 2023-06-28 07:00:38.058663 99.50% [INFO] switch_cpp.cpp:1465 [ASTPP] [XML] Customer Recording Flag : 1
  317. 2023-06-28 07:00:38.058663 99.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_accounts_info] Query :SELECT * FROM accounts WHERE id = 107  and status = 0 limit 1
  318. 2023-06-28 07:00:38.058663 99.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [XML] Custom Function Name :: custom_inbound_2
  319. 2023-06-28 07:00:38.058663 99.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Generated XML:<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  320. <document type="freeswitch/xml">
  321. <section name="dialplan" description="ASTPP Dialplan">
  322. <context name="default">
  323. <extension name="911096046">
  324. <condition field="destination_number" expression="911096046">
  325. <action application="set" data="effective_destination_number=911096046"/>
  326. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
  327. <action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>
  328. <action application="set" data="callstart=2023-06-28 07:00:38"/>
  329. <action application="set" data="hangup_after_bridge=true"/>
  330. <action application="set" data="continue_on_fail=TRUE"/>
  331. <action application="set" data="account_id=7"/>
  332. <action application="set" data="parent_id=0"/>
  333. <action application="set" data="entity_id=3"/>
  334. <action application="set" data="call_processed=internal"/>
  335. <action application="set" data="call_direction=inbound"/>
  336. <action application="set" data="accountname=default"/>
  337. <action application="set" data="origination_rates_did=ID:25|CODE:^911096046.*|DESTINATION:Spain Spain|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:2|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:174|ACCID:107"/>
  338. <action application="set" data="origination_rates=ID:87838|CODE:^911096046.*|DESTINATION:EDIM Prov MOR|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.00000|INC:1|INITIALBLOCK:1|RATEGROUP:15|MARKUP:0|CI:174|ACCID:7"/>
  339. <action application="set" data="original_caller_id_name=608627716"/>
  340. <action application="set" data="original_caller_id_number=608627716"/>
  341. <action application="set" data="effective_caller_id_name="608627716""/>
  342. <action application="set" data="effective_caller_id_number=608627716"/>
  343. <action application="set" data="receiver_accid=107"/>
  344. <action application="export" data="domain_name="/>
  345. <action application="export" data="sip_to_host="/>
  346. <action application="export" data="presence_data=x|||EDIM(437146)|||||||||DID|||52.17.186.54"/>
  347. <action application="export" data="call_type=2"/>
  348. <action application="set" data="calltype=DIRECT-IP"/>
  349. <action application="bridge" data="[leg_timeout=0]sofia/${sofia_profile_name}/911096046@51.91.247.55;fs_path=sip:34.243.39.183:5060"/>
  350. </condition>
  351. </extension>
  352. </context>
  353. </section>
  354. </document>
  355. Dialplan: sofia/default/608627716@52.17.186.54 parsing [default->911096046] continue=false
  356. Dialplan: sofia/default/608627716@52.17.186.54 Regex (PASS) [911096046] destination_number(911096046) =~ /911096046/ break=on-false
  357. Dialplan: sofia/default/608627716@52.17.186.54 Action set(effective_destination_number=911096046)
  358. Dialplan: sofia/default/608627716@52.17.186.54 Action set(bridge_pre_execute_bleg_app=sched_hangup)
  359. Dialplan: sofia/default/608627716@52.17.186.54 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  360. Dialplan: sofia/default/608627716@52.17.186.54 Action set(callstart=2023-06-28 07:00:38)
  361. Dialplan: sofia/default/608627716@52.17.186.54 Action set(hangup_after_bridge=true)
  362. Dialplan: sofia/default/608627716@52.17.186.54 Action set(continue_on_fail=TRUE)
  363. Dialplan: sofia/default/608627716@52.17.186.54 Action set(account_id=7)
  364. Dialplan: sofia/default/608627716@52.17.186.54 Action set(parent_id=0)
  365. Dialplan: sofia/default/608627716@52.17.186.54 Action set(entity_id=3)
  366. Dialplan: sofia/default/608627716@52.17.186.54 Action set(call_processed=internal)
  367. Dialplan: sofia/default/608627716@52.17.186.54 Action set(call_direction=inbound)
  368. Dialplan: sofia/default/608627716@52.17.186.54 Action set(accountname=default)
  369. Dialplan: sofia/default/608627716@52.17.186.54 Action set(origination_rates_did=ID:25|CODE:^911096046.*|DESTINATION:Spain Spain|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:2|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:174|ACCID:107)
  370. Dialplan: sofia/default/608627716@52.17.186.54 Action set(origination_rates=ID:87838|CODE:^911096046.*|DESTINATION:EDIM Prov MOR|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.00000|INC:1|INITIALBLOCK:1|RATEGROUP:15|MARKUP:0|CI:174|ACCID:7)
  371. Dialplan: sofia/default/608627716@52.17.186.54 Action set(original_caller_id_name=608627716)
  372. Dialplan: sofia/default/608627716@52.17.186.54 Action set(original_caller_id_number=608627716)
  373. Dialplan: sofia/default/608627716@52.17.186.54 Action set(effective_caller_id_name=)
  374. Dialplan: sofia/default/608627716@52.17.186.54 Action set(effective_caller_id_number=608627716)
  375. Dialplan: sofia/default/608627716@52.17.186.54 Action set(receiver_accid=107)
  376. Dialplan: sofia/default/608627716@52.17.186.54 Action export(domain_name=)
  377. Dialplan: sofia/default/608627716@52.17.186.54 Action export(sip_to_host=)
  378. Dialplan: sofia/default/608627716@52.17.186.54 Action export(presence_data=x|||EDIM(437146)|||||||||DID|||52.17.186.54)
  379. Dialplan: sofia/default/608627716@52.17.186.54 Action export(call_type=2)
  380. Dialplan: sofia/default/608627716@52.17.186.54 Action set(calltype=DIRECT-IP)
  381. Dialplan: sofia/default/608627716@52.17.186.54 Action bridge([leg_timeout=0]sofia/${sofia_profile_name}/911096046@51.91.247.55;fs_path=sip:34.243.39.183:5060)
  382. 2023-06-28 07:00:38.058663 99.50% [DEBUG] switch_core_state_machine.c:281 (sofia/default/608627716@52.17.186.54) State Change CS_ROUTING -> CS_EXECUTE
  383. 2023-06-28 07:00:38.058663 99.50% [DEBUG] switch_core_state_machine.c:640 (sofia/default/608627716@52.17.186.54) State ROUTING going to sleep
  384. 2023-06-28 07:00:38.058663 99.50% [DEBUG] switch_core_state_machine.c:581 (sofia/default/608627716@52.17.186.54) Running State Change CS_EXECUTE (Cur 15 Tot 9764)
  385. 2023-06-28 07:00:38.058663 99.50% [DEBUG] switch_core_state_machine.c:647 (sofia/default/608627716@52.17.186.54) State EXECUTE
  386. 2023-06-28 07:00:38.058663 99.50% [DEBUG] mod_sofia.c:213 sofia/default/608627716@52.17.186.54 SOFIA EXECUTE
  387. 2023-06-28 07:00:38.058663 99.50% [DEBUG] switch_core_state_machine.c:323 sofia/default/608627716@52.17.186.54 Standard EXECUTE
  388. EXECUTE [depth=0] sofia/default/608627716@52.17.186.54 set(effective_destination_number=911096046)
  389. 2023-06-28 07:00:38.058663 99.50% [DEBUG] mod_dptools.c:1685 SET sofia/default/608627716@52.17.186.54 [effective_destination_number]=[911096046]
  390. EXECUTE [depth=0] sofia/default/608627716@52.17.186.54 set(bridge_pre_execute_bleg_app=sched_hangup)
  391. 2023-06-28 07:00:38.058663 99.50% [DEBUG] mod_dptools.c:1685 SET sofia/default/608627716@52.17.186.54 [bridge_pre_execute_bleg_app]=[sched_hangup]
  392. EXECUTE [depth=0] sofia/default/608627716@52.17.186.54 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  393. 2023-06-28 07:00:38.058663 99.50% [DEBUG] mod_dptools.c:1685 SET sofia/default/608627716@52.17.186.54 [bridge_pre_execute_bleg_data]=[+6000 normal_clearing]
  394. EXECUTE [depth=0] sofia/default/608627716@52.17.186.54 set(callstart=2023-06-28 07:00:38)
  395. 2023-06-28 07:00:38.058663 99.50% [DEBUG] mod_dptools.c:1685 SET sofia/default/608627716@52.17.186.54 [callstart]=[2023-06-28 07:00:38]
  396. EXECUTE [depth=0] sofia/default/608627716@52.17.186.54 set(hangup_after_bridge=true)
  397. 2023-06-28 07:00:38.058663 99.50% [DEBUG] mod_dptools.c:1685 SET sofia/default/608627716@52.17.186.54 [hangup_after_bridge]=[true]
  398. EXECUTE [depth=0] sofia/default/608627716@52.17.186.54 set(continue_on_fail=TRUE)
  399. 2023-06-28 07:00:38.058663 99.50% [DEBUG] mod_dptools.c:1685 SET sofia/default/608627716@52.17.186.54 [continue_on_fail]=[TRUE]
  400. EXECUTE [depth=0] sofia/default/608627716@52.17.186.54 set(account_id=7)
  401. 2023-06-28 07:00:38.058663 99.50% [DEBUG] mod_dptools.c:1685 SET sofia/default/608627716@52.17.186.54 [account_id]=[7]
  402. EXECUTE [depth=0] sofia/default/608627716@52.17.186.54 set(parent_id=0)
  403. 2023-06-28 07:00:38.058663 99.50% [DEBUG] mod_dptools.c:1685 SET sofia/default/608627716@52.17.186.54 [parent_id]=[0]
  404. EXECUTE [depth=0] sofia/default/608627716@52.17.186.54 set(entity_id=3)
  405. 2023-06-28 07:00:38.058663 99.50% [DEBUG] mod_dptools.c:1685 SET sofia/default/608627716@52.17.186.54 [entity_id]=[3]
  406. EXECUTE [depth=0] sofia/default/608627716@52.17.186.54 set(call_processed=internal)
  407. 2023-06-28 07:00:38.058663 99.50% [DEBUG] mod_dptools.c:1685 SET sofia/default/608627716@52.17.186.54 [call_processed]=[internal]
  408. EXECUTE [depth=0] sofia/default/608627716@52.17.186.54 set(call_direction=inbound)
  409. 2023-06-28 07:00:38.058663 99.50% [DEBUG] mod_dptools.c:1685 SET sofia/default/608627716@52.17.186.54 [call_direction]=[inbound]
  410. EXECUTE [depth=0] sofia/default/608627716@52.17.186.54 set(accountname=default)
  411. 2023-06-28 07:00:38.058663 99.50% [DEBUG] mod_dptools.c:1685 SET sofia/default/608627716@52.17.186.54 [accountname]=[default]
  412. EXECUTE [depth=0] sofia/default/608627716@52.17.186.54 set(origination_rates_did=ID:25|CODE:^911096046.*|DESTINATION:Spain Spain|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:2|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:174|ACCID:107)
  413. 2023-06-28 07:00:38.058663 99.50% [DEBUG] mod_dptools.c:1685 SET sofia/default/608627716@52.17.186.54 [origination_rates_did]=[ID:25|CODE:^911096046.*|DESTINATION:Spain Spain|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:2|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:174|ACCID:107]
  414. EXECUTE [depth=0] sofia/default/608627716@52.17.186.54 set(origination_rates=ID:87838|CODE:^911096046.*|DESTINATION:EDIM Prov MOR|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.00000|INC:1|INITIALBLOCK:1|RATEGROUP:15|MARKUP:0|CI:174|ACCID:7)
  415. 2023-06-28 07:00:38.058663 99.50% [DEBUG] mod_dptools.c:1685 SET sofia/default/608627716@52.17.186.54 [origination_rates]=[ID:87838|CODE:^911096046.*|DESTINATION:EDIM Prov MOR|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.00000|INC:1|INITIALBLOCK:1|RATEGROUP:15|MARKUP:0|CI:174|ACCID:7]
  416. EXECUTE [depth=0] sofia/default/608627716@52.17.186.54 set(original_caller_id_name=608627716)
  417. 2023-06-28 07:00:38.058663 99.50% [DEBUG] mod_dptools.c:1685 SET sofia/default/608627716@52.17.186.54 [original_caller_id_name]=[608627716]
  418. EXECUTE [depth=0] sofia/default/608627716@52.17.186.54 set(original_caller_id_number=608627716)
  419. 2023-06-28 07:00:38.058663 99.50% [DEBUG] mod_dptools.c:1685 SET sofia/default/608627716@52.17.186.54 [original_caller_id_number]=[608627716]
  420. EXECUTE [depth=0] sofia/default/608627716@52.17.186.54 set(effective_caller_id_name=)
  421. 2023-06-28 07:00:38.058663 99.50% [DEBUG] mod_dptools.c:1685 SET sofia/default/608627716@52.17.186.54 [effective_caller_id_name]=[UNDEF]
  422. EXECUTE [depth=0] sofia/default/608627716@52.17.186.54 set(effective_caller_id_number=608627716)
  423. 2023-06-28 07:00:38.058663 99.50% [DEBUG] mod_dptools.c:1685 SET sofia/default/608627716@52.17.186.54 [effective_caller_id_number]=[608627716]
  424. EXECUTE [depth=0] sofia/default/608627716@52.17.186.54 set(receiver_accid=107)
  425. 2023-06-28 07:00:38.058663 99.50% [DEBUG] mod_dptools.c:1685 SET sofia/default/608627716@52.17.186.54 [receiver_accid]=[107]
  426. EXECUTE [depth=0] sofia/default/608627716@52.17.186.54 export(domain_name=)
  427. 2023-06-28 07:00:38.058663 99.50% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [domain_name]=[UNDEF]
  428. EXECUTE [depth=0] sofia/default/608627716@52.17.186.54 export(sip_to_host=)
  429. 2023-06-28 07:00:38.058663 99.50% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [sip_to_host]=[UNDEF]
  430. EXECUTE [depth=0] sofia/default/608627716@52.17.186.54 export(presence_data=x|||EDIM(437146)|||||||||DID|||52.17.186.54)
  431. 2023-06-28 07:00:38.058663 99.50% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [presence_data]=[x|||EDIM(437146)|||||||||DID|||52.17.186.54]
  432. EXECUTE [depth=0] sofia/default/608627716@52.17.186.54 export(call_type=2)
  433. 2023-06-28 07:00:38.058663 99.50% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [call_type]=[2]
  434. EXECUTE [depth=0] sofia/default/608627716@52.17.186.54 set(calltype=DIRECT-IP)
  435. 2023-06-28 07:00:38.058663 99.50% [DEBUG] mod_dptools.c:1685 SET sofia/default/608627716@52.17.186.54 [calltype]=[DIRECT-IP]
  436. EXECUTE [depth=0] sofia/default/608627716@52.17.186.54 bridge([leg_timeout=0]sofia/default/911096046@51.91.247.55;fs_path=sip:34.243.39.183:5060)
  437. 2023-06-28 07:00:38.058663 99.50% [DEBUG] switch_channel.c:1269 sofia/default/608627716@52.17.186.54 EXPORTING[export_vars] [presence_data]=[x|||EDIM(437146)|||||||||DID|||52.17.186.54] to event
  438. 2023-06-28 07:00:38.058663 99.50% [DEBUG] switch_channel.c:1269 sofia/default/608627716@52.17.186.54 EXPORTING[export_vars] [call_type]=[2] to event
  439. 2023-06-28 07:00:38.058663 99.50% [DEBUG] switch_ivr_originate.c:2281 Parsing global variables
  440. 2023-06-28 07:00:38.058663 99.50% [DEBUG] switch_ivr_originate.c:2843 Parsing session specific variables
  441. 2023-06-28 07:00:38.058663 99.50% [NOTICE] switch_channel.c:1123 New Channel sofia/default/911096046@51.91.247.55 [dc2519a5-18d3-449a-9553-5b4f59620041]
  442. 2023-06-28 07:00:38.058663 99.50% [DEBUG] mod_sofia.c:5121 (sofia/default/911096046@51.91.247.55) State Change CS_NEW -> CS_INIT
  443. 2023-06-28 07:00:38.058663 99.50% [DEBUG] switch_core_state_machine.c:581 (sofia/default/911096046@51.91.247.55) Running State Change CS_INIT (Cur 16 Tot 9765)
  444. 2023-06-28 07:00:38.058663 99.50% [DEBUG] switch_core_state_machine.c:624 (sofia/default/911096046@51.91.247.55) State INIT
  445. 2023-06-28 07:00:38.058663 99.50% [DEBUG] mod_sofia.c:97 sofia/default/911096046@51.91.247.55 SOFIA INIT
  446. 2023-06-28 07:00:38.058663 99.50% [DEBUG] sofia_glue.c:1620 sip:34.243.39.183:5060 Setting proxy route to sofia/default/911096046@51.91.247.55
  447. 2023-06-28 07:00:38.058663 99.50% [INFO] sofia_glue.c:1651 sofia/default/911096046@51.91.247.55 sending invite call-id: (null)
  448. 2023-06-28 07:00:38.058663 99.50% [DEBUG] sofia_glue.c:1654 sofia/default/911096046@51.91.247.55 sending invite version: 1.10.7 -release 64bit
  449. Local SDP:
  450. v=0
  451. o=FreeSWITCH 1687916278 1687916279 IN IP4 54.220.206.86
  452. s=FreeSWITCH
  453. c=IN IP4 54.220.206.86
  454. t=0 0
  455. m=audio 19360 RTP/AVP 8 101
  456. a=rtpmap:8 PCMA/8000
  457. a=rtpmap:101 telephone-event/8000
  458. a=fmtp:101 0-15
  459. a=ptime:20
  460. a=sendrecv
  461.  
  462. 2023-06-28 07:00:38.058663 99.50% [DEBUG] switch_core_state_machine.c:40 sofia/default/911096046@51.91.247.55 Standard INIT
  463. 2023-06-28 07:00:38.058663 99.50% [DEBUG] switch_core_state_machine.c:48 (sofia/default/911096046@51.91.247.55) State Change CS_INIT -> CS_ROUTING
  464. 2023-06-28 07:00:38.058663 99.50% [DEBUG] switch_core_state_machine.c:624 (sofia/default/911096046@51.91.247.55) State INIT going to sleep
  465. 2023-06-28 07:00:38.058663 99.50% [DEBUG] switch_core_state_machine.c:581 (sofia/default/911096046@51.91.247.55) Running State Change CS_ROUTING (Cur 16 Tot 9765)
  466. 2023-06-28 07:00:38.058663 99.50% [DEBUG] sofia.c:7499 Channel sofia/default/911096046@51.91.247.55 entering state [calling][0]
  467. 2023-06-28 07:00:38.058663 99.50% [DEBUG] switch_core_state_machine.c:640 (sofia/default/911096046@51.91.247.55) State ROUTING
  468. 2023-06-28 07:00:38.058663 99.50% [DEBUG] mod_sofia.c:158 sofia/default/911096046@51.91.247.55 SOFIA ROUTING
  469. 2023-06-28 07:00:38.058663 99.50% [DEBUG] switch_ivr_originate.c:67 (sofia/default/911096046@51.91.247.55) State Change CS_ROUTING -> CS_CONSUME_MEDIA
  470. 2023-06-28 07:00:38.058663 99.50% [DEBUG] switch_core_state_machine.c:640 (sofia/default/911096046@51.91.247.55) State ROUTING going to sleep
  471. 2023-06-28 07:00:38.058663 99.50% [DEBUG] switch_core_state_machine.c:581 (sofia/default/911096046@51.91.247.55) Running State Change CS_CONSUME_MEDIA (Cur 16 Tot 9765)
  472. 2023-06-28 07:00:38.058663 99.50% [DEBUG] switch_core_state_machine.c:659 (sofia/default/911096046@51.91.247.55) State CONSUME_MEDIA
  473. 2023-06-28 07:00:38.058663 99.50% [DEBUG] switch_core_state_machine.c:659 (sofia/default/911096046@51.91.247.55) State CONSUME_MEDIA going to sleep
  474. 2023-06-28 07:00:38.078652 99.50% [DEBUG] sofia.c:7499 Channel sofia/default/911096046@51.91.247.55 entering state [terminated][404]
  475. 2023-06-28 07:00:38.078652 99.50% [NOTICE] sofia.c:8738 Hangup sofia/default/911096046@51.91.247.55 [CS_CONSUME_MEDIA] [UNALLOCATED_NUMBER]
  476. 2023-06-28 07:00:38.078652 99.50% [DEBUG] switch_core_state_machine.c:581 (sofia/default/911096046@51.91.247.55) Running State Change CS_HANGUP (Cur 16 Tot 9765)
  477. 2023-06-28 07:00:38.078652 99.50% [DEBUG] switch_core_state_machine.c:844 (sofia/default/911096046@51.91.247.55) Callstate Change DOWN -> HANGUP
  478. 2023-06-28 07:00:38.078652 99.50% [DEBUG] switch_core_state_machine.c:846 (sofia/default/911096046@51.91.247.55) State HANGUP
  479. 2023-06-28 07:00:38.078652 99.50% [DEBUG] mod_sofia.c:468 Channel sofia/default/911096046@51.91.247.55 hanging up, cause: UNALLOCATED_NUMBER
  480. 2023-06-28 07:00:38.078652 99.50% [DEBUG] switch_core_state_machine.c:59 sofia/default/911096046@51.91.247.55 Standard HANGUP, cause: UNALLOCATED_NUMBER
  481. 2023-06-28 07:00:38.078652 99.50% [DEBUG] switch_core_state_machine.c:846 (sofia/default/911096046@51.91.247.55) State HANGUP going to sleep
  482. 2023-06-28 07:00:38.078652 99.50% [DEBUG] switch_core_state_machine.c:616 (sofia/default/911096046@51.91.247.55) State Change CS_HANGUP -> CS_REPORTING
  483. 2023-06-28 07:00:38.078652 99.50% [DEBUG] switch_core_state_machine.c:581 (sofia/default/911096046@51.91.247.55) Running State Change CS_REPORTING (Cur 16 Tot 9765)
  484. 2023-06-28 07:00:38.078652 99.50% [DEBUG] switch_core_state_machine.c:932 (sofia/default/911096046@51.91.247.55) State REPORTING
  485. 2023-06-28 07:00:38.078652 99.50% [INFO] mod_json_cdr.c:271 Process [dc2519a5-18d3-449a-9553-5b4f59620041.cdr.json]
  486.