From mayur valand, 1 Year ago, written in HTML5.
- view diff
Embed
  1. 2022-05-17 10:49:07.929232 [NOTICE] switch_channel.c:1118 New Channel sofia/default/31652033157@185.249.40.132 [a14193ad-936d-43c0-9d03-f27ead3f8853]
  2. 2022-05-17 10:49:07.929232 [DEBUG] switch_core_state_machine.c:585 (sofia/default/31652033157@185.249.40.132) Running State Change CS_NEW (Cur 7 Tot 23770)
  3. 2022-05-17 10:49:07.929232 [DEBUG] sofia.c:10280 sofia/default/31652033157@185.249.40.132 receiving invite from 185.249.40.132:5060 version: 1.10.5 -release-17-25569c1631 64bit
  4. 2022-05-17 10:49:07.929232 [DEBUG] sofia.c:10374 verifying acl "default" for ip/port 185.249.40.132:0.
  5. 2022-05-17 10:49:07.929232 [DEBUG] sofia.c:10403 IP 185.249.40.132 Approved by acl "default[]". Access Granted.
  6. 2022-05-17 10:49:07.929232 [DEBUG] sofia.c:7326 Channel sofia/default/31652033157@185.249.40.132 entering state [received][100]
  7. 2022-05-17 10:49:07.929232 [DEBUG] sofia.c:7336 Remote SDP:
  8. v=0
  9. o=root 368110890 368110890 IN IP4 185.249.40.132
  10. s=Asterisk PBX 1.8.32.11
  11. c=IN IP4 185.249.40.132
  12. t=0 0
  13. m=audio 10232 RTP/AVP 8 101
  14. a=rtpmap:8 PCMA/8000
  15. a=rtpmap:101 telephone-event/8000
  16. a=fmtp:101 0-16
  17. a=ptime:20
  18.  
  19. 2022-05-17 10:49:07.929232 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  20. 2022-05-17 10:49:07.929232 [DEBUG] switch_core_media.c:5649 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  21. 2022-05-17 10:49:07.929232 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  22. 2022-05-17 10:49:07.929232 [DEBUG] switch_core_media.c:5510 Set telephone-event payload to 101@8000
  23. 2022-05-17 10:49:07.929232 [DEBUG] switch_core_media.c:3839 Set Codec sofia/default/31652033157@185.249.40.132 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  24. 2022-05-17 10:49:07.929232 [DEBUG] switch_core_codec.c:111 sofia/default/31652033157@185.249.40.132 Original read codec set to PCMA:8
  25. 2022-05-17 10:49:07.929232 [DEBUG] switch_core_media.c:5853 Set telephone-event payload to 101@8000
  26. 2022-05-17 10:49:07.929232 [DEBUG] switch_core_media.c:5911 sofia/default/31652033157@185.249.40.132 Set 2833 dtmf send payload to 101 recv payload to 101
  27. 2022-05-17 10:49:07.929232 [DEBUG] sofia.c:7760 (sofia/default/31652033157@185.249.40.132) State Change CS_NEW -> CS_INIT
  28. 2022-05-17 10:49:07.929232 [DEBUG] switch_core_state_machine.c:604 (sofia/default/31652033157@185.249.40.132) State NEW
  29. 2022-05-17 10:49:07.929232 [DEBUG] switch_core_state_machine.c:585 (sofia/default/31652033157@185.249.40.132) Running State Change CS_INIT (Cur 7 Tot 23770)
  30. 2022-05-17 10:49:07.929232 [DEBUG] switch_core_state_machine.c:628 (sofia/default/31652033157@185.249.40.132) State INIT
  31. 2022-05-17 10:49:07.929232 [DEBUG] mod_sofia.c:93 sofia/default/31652033157@185.249.40.132 SOFIA INIT
  32. 2022-05-17 10:49:07.929232 [DEBUG] switch_core_state_machine.c:40 sofia/default/31652033157@185.249.40.132 Standard INIT
  33. 2022-05-17 10:49:07.929232 [DEBUG] switch_core_state_machine.c:48 (sofia/default/31652033157@185.249.40.132) State Change CS_INIT -> CS_ROUTING
  34. 2022-05-17 10:49:07.929232 [DEBUG] switch_core_state_machine.c:628 (sofia/default/31652033157@185.249.40.132) State INIT going to sleep
  35. 2022-05-17 10:49:07.929232 [DEBUG] switch_core_state_machine.c:585 (sofia/default/31652033157@185.249.40.132) Running State Change CS_ROUTING (Cur 7 Tot 23770)
  36. 2022-05-17 10:49:07.929232 [DEBUG] switch_channel.c:2332 (sofia/default/31652033157@185.249.40.132) Callstate Change DOWN -> RINGING
  37. 2022-05-17 10:49:07.929232 [DEBUG] switch_core_state_machine.c:644 (sofia/default/31652033157@185.249.40.132) State ROUTING
  38. 2022-05-17 10:49:07.929232 [DEBUG] mod_sofia.c:154 sofia/default/31652033157@185.249.40.132 SOFIA ROUTING
  39. 2022-05-17 10:49:07.929232 [DEBUG] switch_core_state_machine.c:236 sofia/default/31652033157@185.249.40.132 Standard ROUTING
  40. 2022-05-17 10:49:07.929232 [INFO] mod_dialplan_xml.c:637 Processing 31652033157 <31652033157>->31855000149 in context default
  41. 2022-05-17 10:49:07.929232 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  42. 2022-05-17 10:49:07.929232 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  43. 2022-05-17 10:49:07.929232 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [xml_handler] Params:
  44. Event-Name: REQUEST_PARAMS
  45. Core-UUID: 1570752e-33b2-4fd5-ae87-2429c1fe8547
  46. FreeSWITCH-Hostname: multitenant-1
  47. FreeSWITCH-Switchname: multitenant-1
  48. FreeSWITCH-IPv4: 185.249.40.236
  49. FreeSWITCH-IPv6: %3A%3A1
  50. Event-Date-Local: 2022-05-17%2010%3A49%3A07
  51. Event-Date-GMT: Tue,%2017%20May%202022%2008%3A49%3A07%20GMT
  52. Event-Date-Timestamp: 1652777347929232
  53. Event-Calling-File: mod_dialplan_xml.c
  54. Event-Calling-Function: dialplan_xml_locate
  55. Event-Calling-Line-Number: 608
  56. Event-Sequence: 1800169
  57. Channel-State: CS_ROUTING
  58. Channel-Call-State: RINGING
  59. Channel-State-Number: 2
  60. Channel-Name: sofia/default/31652033157%40185.249.40.132
  61. Unique-ID: a14193ad-936d-43c0-9d03-f27ead3f8853
  62. Call-Direction: inbound
  63. Presence-Call-Direction: inbound
  64. Channel-HIT-Dialplan: true
  65. Channel-Presence-ID: 31652033157%40185.249.40.132
  66. Channel-Call-UUID: a14193ad-936d-43c0-9d03-f27ead3f8853
  67. Answer-State: ringing
  68. Channel-Read-Codec-Name: PCMA
  69. Channel-Read-Codec-Rate: 8000
  70. Channel-Read-Codec-Bit-Rate: 64000
  71. Channel-Write-Codec-Name: PCMA
  72. Channel-Write-Codec-Rate: 8000
  73. Channel-Write-Codec-Bit-Rate: 64000
  74. Caller-Direction: inbound
  75. Caller-Logical-Direction: inbound
  76. Caller-Username: 31652033157
  77. Caller-Dialplan: XML
  78. Caller-Caller-ID-Name: 31652033157
  79. Caller-Caller-ID-Number: 31652033157
  80. Caller-Orig-Caller-ID-Name: 31652033157
  81. Caller-Orig-Caller-ID-Number: 31652033157
  82. Caller-Network-Addr: 185.249.40.132
  83. Caller-ANI: 31652033157
  84. Caller-Destination-Number: 31855000149
  85. Caller-Unique-ID: a14193ad-936d-43c0-9d03-f27ead3f8853
  86. Caller-Source: mod_sofia
  87. Caller-Context: default
  88. Caller-Channel-Name: sofia/default/31652033157%40185.249.40.132
  89. Caller-Profile-Index: 1
  90. Caller-Profile-Created-Time: 1652777347929232
  91. Caller-Channel-Created-Time: 1652777347929232
  92. Caller-Channel-Answered-Time: 0
  93. Caller-Channel-Progress-Time: 0
  94. Caller-Channel-Progress-Media-Time: 0
  95. Caller-Channel-Hangup-Time: 0
  96. Caller-Channel-Transfer-Time: 0
  97. Caller-Channel-Resurrect-Time: 0
  98. Caller-Channel-Bridged-Time: 0
  99. Caller-Channel-Last-Hold: 0
  100. Caller-Channel-Hold-Accum: 0
  101. Caller-Screen-Bit: true
  102. Caller-Privacy-Hide-Name: false
  103. Caller-Privacy-Hide-Number: false
  104. variable_direction: inbound
  105. variable_uuid: a14193ad-936d-43c0-9d03-f27ead3f8853
  106. variable_session_id: 23770
  107. variable_sip_from_user: 31652033157
  108. variable_sip_from_uri: 31652033157%40185.249.40.132
  109. variable_sip_from_host: 185.249.40.132
  110. variable_video_media_flow: disabled
  111. variable_text_media_flow: disabled
  112. variable_channel_name: sofia/default/31652033157%40185.249.40.132
  113. variable_sip_call_id: 3ab78c8c09f96d1556b5b16269b54e02%40185.249.40.132%3A5060
  114. variable_sip_local_network_addr: 185.249.40.236
  115. variable_sip_network_ip: 185.249.40.132
  116. variable_sip_network_port: 5060
  117. variable_sip_invite_stamp: 1652777347929232
  118. variable_sip_received_ip: 185.249.40.132
  119. variable_sip_received_port: 5060
  120. variable_sip_via_protocol: udp
  121. variable_sip_authorized: true
  122. variable_sip_acl_authed_by: default
  123. variable_sip_from_user_stripped: 31652033157
  124. variable_sip_from_tag: as78784aaf
  125. variable_sofia_profile_name: default
  126. variable_sofia_profile_url: sip%3Amod_sofia%40185.249.40.236%3A5060
  127. variable_recovery_profile_name: default
  128. variable_sip_P-Asserted-Identity: 31652033157
  129. variable_sip_cid_type: pid
  130. variable_sip_full_via: SIP/2.0/UDP%20185.249.40.132%3A5060%3Bbranch%3Dz9hG4bK119eb7ab
  131. variable_sip_from_display: 31652033157
  132. variable_sip_full_from: %2231652033157%22%20%3Csip%3A31652033157%40185.249.40.132%3E%3Btag%3Das78784aaf
  133. variable_sip_full_to: %3Csip%3A31855000149%40185.249.40.236%3A5060%3E
  134. variable_sip_allow: INVITE,%20ACK,%20CANCEL,%20OPTIONS,%20BYE,%20REFER,%20SUBSCRIBE,%20NOTIFY,%20INFO,%20PUBLISH,%20MESSAGE
  135. variable_sip_req_user: 31855000149
  136. variable_sip_req_port: 5060
  137. variable_sip_req_uri: 31855000149%40185.249.40.236%3A5060
  138. variable_sip_req_host: 185.249.40.236
  139. variable_sip_to_user: 31855000149
  140. variable_sip_to_port: 5060
  141. variable_sip_to_uri: 31855000149%40185.249.40.236%3A5060
  142. variable_sip_to_host: 185.249.40.236
  143. variable_sip_contact_user: 31652033157
  144. variable_sip_contact_port: 5060
  145. variable_sip_contact_uri: 31652033157%40185.249.40.132%3A5060
  146. variable_sip_contact_host: 185.249.40.132
  147. variable_sip_user_agent: MOR%20Softswitch
  148. variable_sip_via_host: 185.249.40.132
  149. variable_sip_via_port: 5060
  150. variable_max_forwards: 70
  151. variable_presence_id: 31652033157%40185.249.40.132
  152. variable_sip_Privacy: none
  153. variable_switch_r_sdp: v%3D0%0D%0Ao%3Droot%20368110890%20368110890%20IN%20IP4%20185.249.40.132%0D%0As%3DAsterisk%20PBX%201.8.32.11%0D%0Ac%3DIN%20IP4%20185.249.40.132%0D%0At%3D0%200%0D%0Am%3Daudio%2010232%20RTP/AVP%208%20101%0D%0Aa%3Drtpmap%3A8%20PCMA/8000%0D%0Aa%3Drtpmap%3A101%20telephone-event/8000%0D%0Aa%3Dfmtp%3A101%200-16%0D%0Aa%3Dptime%3A20%0D%0A
  154. variable_ep_codec_string: CORE_PCM_MODULE.PCMA%408000h%4020i%4064000b
  155. variable_rtp_use_codec_string: PCMA,PCMU
  156. variable_remote_video_media_flow: inactive
  157. variable_remote_text_media_flow: inactive
  158. variable_remote_audio_media_flow: sendrecv
  159. variable_audio_media_flow: sendrecv
  160. variable_remote_media_ip: 185.249.40.132
  161. variable_remote_media_port: 10232
  162. variable_rtp_audio_recv_pt: 8
  163. variable_rtp_use_codec_name: PCMA
  164. variable_rtp_use_codec_rate: 8000
  165. variable_rtp_use_codec_ptime: 20
  166. variable_rtp_use_codec_channels: 1
  167. variable_rtp_last_audio_codec_string: PCMA%408000h%4020i%401c
  168. variable_read_codec: PCMA
  169. variable_original_read_codec: PCMA
  170. variable_read_rate: 8000
  171. variable_original_read_rate: 8000
  172. variable_write_codec: PCMA
  173. variable_write_rate: 8000
  174. variable_dtmf_type: rfc2833
  175. variable_endpoint_disposition: RECEIVED
  176. variable_call_uuid: a14193ad-936d-43c0-9d03-f27ead3f8853
  177. Hunt-Direction: inbound
  178. Hunt-Logical-Direction: inbound
  179. Hunt-Username: 31652033157
  180. Hunt-Dialplan: XML
  181. Hunt-Caller-ID-Name: 31652033157
  182. Hunt-Caller-ID-Number: 31652033157
  183. Hunt-Orig-Caller-ID-Name: 31652033157
  184. Hunt-Orig-Caller-ID-Number: 31652033157
  185. Hunt-Network-Addr: 185.249.40.132
  186. Hunt-ANI: 31652033157
  187. Hunt-Destination-Number: 31855000149
  188. Hunt-Unique-ID: a14193ad-936d-43c0-9d03-f27ead3f8853
  189. Hunt-Source: mod_sofia
  190. Hunt-Context: default
  191. Hunt-Channel-Name: sofia/default/31652033157%40185.249.40.132
  192. Hunt-Profile-Index: 1
  193. Hunt-Profile-Created-Time: 1652777347929232
  194. Hunt-Channel-Created-Time: 1652777347929232
  195. Hunt-Channel-Answered-Time: 0
  196. Hunt-Channel-Progress-Time: 0
  197. Hunt-Channel-Progress-Media-Time: 0
  198. Hunt-Channel-Hangup-Time: 0
  199. Hunt-Channel-Transfer-Time: 0
  200. Hunt-Channel-Resurrect-Time: 0
  201. Hunt-Channel-Bridged-Time: 0
  202. Hunt-Channel-Last-Hold: 0
  203. Hunt-Channel-Hold-Accum: 0
  204. Hunt-Screen-Bit: true
  205. Hunt-Privacy-Hide-Name: false
  206. Hunt-Privacy-Hide-Number: false
  207.  
  208.  
  209. 2022-05-17 10:49:07.929232 [INFO] switch_cpp.cpp:1447 [ASTPP] [xml_REQUEST] key_value:
  210. 2022-05-17 10:49:07.929232 [INFO] switch_cpp.cpp:1447 [ASTPP] [xml_REQUEST] key_name:
  211. 2022-05-17 10:49:07.929232 [INFO] switch_cpp.cpp:1447 [ASTPP] [xml_REQUEST] tag_name:
  212. 2022-05-17 10:49:07.929232 [INFO] switch_cpp.cpp:1447 [ASTPP] [xml_REQUEST] section: dialplan
  213. 2022-05-17 10:49:07.929232 [INFO] switch_cpp.cpp:1447 [ASTPP] [feature_code_call_transfer] Blind Call Flag: 0
  214. 2022-05-17 10:49:07.929232 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Dialed number : 31855000149
  215. 2022-05-17 10:49:07.929232 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '31855000149' limit 1
  216. 2022-05-17 10:49:07.929232 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '31855000149' AND status=0 limit 1
  217. 2022-05-17 10:49:07.929232 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [Functions] [Fifo Condition Check] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '31855000149' and status=0 LIMIT 1
  218. 2022-05-17 10:49:07.929232 [WARNING] switch_cpp.cpp:1447 [ASTPP] [FAXER] Custom Caller ID
  219. 2022-05-17 10:49:07.929232 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Caller Id name / number  : 31652033157 / 31652033157
  220. 2022-05-17 10:49:07.929232 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="31855000149" LIMIT 1
  221. 2022-05-17 10:49:07.929232 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Call direction : inbound
  222. 2022-05-17 10:49:07.929232 [DEBUG] switch_cpp.cpp:1447 [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("185.249.40.132") 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 "31855000149"  LIKE CONCAT(prefix,'%') ORDER BY LENGTH(prefix) DESC LIMIT 1
  223. 2022-05-17 10:49:07.929232 [INFO] switch_cpp.cpp:1447 [ASTPP] [Accountcode : 9712192016]
  224. 2022-05-17 10:49:07.929232 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "9712192016" AND deleted = 0 limit 1
  225. 2022-05-17 10:49:07.949254 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="31855000149" AND (accountid = 0 OR status = 1) LIMIT 1
  226. 2022-05-17 10:49:07.949254 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PACKAGE_INFO] Call Direction : inbound
  227. 2022-05-17 10:49:07.949254 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PACKAGE_INFO] DID ACCOUNT ID : 160
  228. 2022-05-17 10:49:07.949254 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PACKAGE_INFO] Query :SELECT *,P.id as package_id,P.product_id as product_id FROM packages_view as P inner join package_patterns as PKGPTR on P.product_id = PKGPTR.product_id WHERE P.is_terminated = 0 AND (patterns = '^31855000149.*' OR patterns = '^3185500014.*' OR patterns = '^318550001.*' OR patterns = '^31855000.*' OR patterns = '^3185500.*' OR patterns = '^318550.*' OR patterns = '^31855.*' OR patterns = '^3185.*' OR patterns = '^318.*' OR patterns = '^31.*' OR patterns = '^3.*' OR patterns ='--') AND accountid = 160 ORDER BY LENGTH(PKGPTR.patterns) DESC
  229. 2022-05-17 10:49:07.949254 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_SPEEDDIAL] Query :SELECT A.number FROM speed_dial as A,accounts as B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.speed_num ="31855000149" AND A.accountid = '7' limit 1
  230. 2022-05-17 10:49:07.949254 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 31855000149
  231. 2022-05-17 10:49:07.949254 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="31855000149" LIMIT 1
  232. 2022-05-17 10:49:07.949254 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] New Call Direction : inbound
  233. 2022-05-17 10:49:07.949254 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '31855000149' OR number = '3185500014' OR number = '318550001' OR number = '31855000' OR number = '3185500' OR number = '318550' OR number = '31855' OR number = '3185' OR number = '318' OR number = '31' OR number = '3' OR number ='--') OR (number = '31855000149*' OR number = '3185500014*' OR number = '318550001*' OR number = '31855000*' OR number = '3185500*' OR number = '318550*' OR number = '31855*' OR number = '3185*' OR number = '318*' OR number = '31*' OR number = '3*' OR number ='--') OR (number = '31652033157' OR number = '3165203315' OR number = '316520331' OR number = '31652033' OR number = '3165203' OR number = '316520' OR number = '31652' OR number = '3165' OR number = '316' OR number = '31' OR number = '3' OR number ='--') OR (number = '31652033157*' OR number = '3165203315*' OR number = '316520331*' OR number = '31652033*' OR number = '3165203*' OR number = '316520*' OR number = '31652*' OR number = '3165*' OR number = '316*' OR number = '31*' OR number = '3*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC
  234. 2022-05-17 10:49:07.949254 [DEBUG] switch_cpp.cpp:1447 [ASTPP] Call Barring Status : -1
  235. 2022-05-17 10:49:07.949254 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '31855000149' OR routing_prefix = '3185500014' OR routing_prefix = '318550001' OR routing_prefix = '31855000' OR routing_prefix = '3185500' OR routing_prefix = '318550' OR routing_prefix = '31855' OR routing_prefix = '3185' OR routing_prefix = '318' OR routing_prefix = '31' OR routing_prefix = '3' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1
  236. 2022-05-17 10:49:07.949254 [INFO] switch_cpp.cpp:1447 [ASTPP] =============== Account Information ===================
  237. 2022-05-17 10:49:07.949254 [INFO] switch_cpp.cpp:1447 [ASTPP] User id : 7
  238. 2022-05-17 10:49:07.949254 [INFO] switch_cpp.cpp:1447 [ASTPP] Account code : 9712192016
  239. 2022-05-17 10:49:07.949254 [INFO] switch_cpp.cpp:1447 [ASTPP] Balance : 10000
  240. 2022-05-17 10:49:07.949254 [INFO] switch_cpp.cpp:1447 [ASTPP] Type : 1 [0:prepaid,1:postpaid]
  241. 2022-05-17 10:49:07.949254 [INFO] switch_cpp.cpp:1447 [ASTPP] Ratecard id : 1
  242. 2022-05-17 10:49:07.949254 [INFO] switch_cpp.cpp:1447 [ASTPP] CID Pool : 0
  243. 2022-05-17 10:49:07.949254 [INFO] switch_cpp.cpp:1447 [ASTPP] ========================================================
  244. 2022-05-17 10:49:07.949254 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0
  245. 2022-05-17 10:49:07.949254 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_RATES] call_direction :inbound
  246. 2022-05-17 10:49:07.949254 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="31855000149" LIMIT 1
  247. 2022-05-17 10:49:07.949254 [INFO] switch_cpp.cpp:1447 [ASTPP]  Call Direction : inbound
  248. 2022-05-17 10:49:07.949254 [INFO] switch_cpp.cpp:1447 [ASTPP] =============== Rates Information ===================
  249. 2022-05-17 10:49:07.949254 [INFO] switch_cpp.cpp:1447 [ASTPP] ID : 43
  250. 2022-05-17 10:49:07.949254 [INFO] switch_cpp.cpp:1447 [ASTPP] Connectcost : 0.00000
  251. 2022-05-17 10:49:07.949254 [INFO] switch_cpp.cpp:1447 [ASTPP] Includedseconds : 0
  252. 2022-05-17 10:49:07.949254 [INFO] switch_cpp.cpp:1447 [ASTPP] Cost : 0.00000
  253. 2022-05-17 10:49:07.949254 [INFO] switch_cpp.cpp:1447 [ASTPP] Comment : 31855000149
  254. 2022-05-17 10:49:07.949254 [INFO] switch_cpp.cpp:1447 [ASTPP] Country Id : 136
  255. 2022-05-17 10:49:07.949254 [INFO] switch_cpp.cpp:1447 [ASTPP] Accid : 7
  256. 2022-05-17 10:49:07.949254 [INFO] switch_cpp.cpp:1447 [ASTPP] ================================================================
  257. 2022-05-17 10:49:07.949254 [INFO] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] Your10000 balance Accountid 7 !!!
  258. 2022-05-17 10:49:07.949254 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length  :: 100
  259. 2022-05-17 10:49:07.949254 [INFO] switch_cpp.cpp:1447 [ASTPP] Call Max Length Duration : 100 minutes
  260. 2022-05-17 10:49:07.949254 [INFO] switch_cpp.cpp:1447 [ASTPP] [userinfo] INB_FREE:TRUE
  261. 2022-05-17 10:49:07.949254 [INFO] switch_cpp.cpp:1447 [ASTPP] [userinfo] free_inbound:1
  262. 2022-05-17 10:49:07.949254 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 7 AND status=0 LIMIT 1
  263. 2022-05-17 10:49:07.949254 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "160" AND deleted = 0 limit 1
  264. 2022-05-17 10:49:07.969589 [INFO] switch_cpp.cpp:1447 [ASTPP] [userinfo] Actual CustomerInfo XML:7
  265. 2022-05-17 10:49:07.969589 [INFO] switch_cpp.cpp:1447 [ASTPP] [userinfo] Userinfo XML:7
  266. 2022-05-17 10:49:07.969589 [INFO] switch_cpp.cpp:1447 [ASTPP] [userinfo] Actual CustomerInfo XML : 7
  267. 2022-05-17 10:49:07.969589 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [get_domain_info] Query :SELECT * FROM domains WHERE accountid = 160 limit 1
  268. 2022-05-17 10:49:07.969589 [WARNING] switch_cpp.cpp:1447 [ASTPP] [user_domain] User Domain : 134271.yoursipcloud.com
  269. 2022-05-17 10:49:07.969589 [INFO] switch_cpp.cpp:1447 [ASTPP]  Maxlength : 100
  270. 2022-05-17 10:49:07.969589 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  271. 2022-05-17 10:49:07.969589 [INFO] switch_cpp.cpp:1447 [ASTPP] [XML] Customer Recording Flag : 1
  272. 2022-05-17 10:49:07.969589 [INFO] switch_cpp.cpp:1447 [ASTPP] [PBX] Call Direction : inbound
  273. 2022-05-17 10:49:07.969589 [DEBUG] switch_cpp.cpp:1447 [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 = "42" AND accounts.status = 0
  274. 2022-05-17 10:49:07.969589 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [get_domain_info] Query :SELECT * FROM domains WHERE accountid = 160 limit 1
  275. 2022-05-17 10:49:07.969589 [WARNING] switch_cpp.cpp:1447 [ASTPP] [XML] User Domain : 134271.yoursipcloud.com
  276. 2022-05-17 10:49:07.969589 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [get_accounts_info] Query :SELECT * FROM accounts WHERE id = 160  and status = 0 limit 1
  277. 2022-05-17 10:49:07.969589 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [XML] Custom Function Name :: custom_inbound_7
  278. 2022-05-17 10:49:07.969589 [INFO] switch_cpp.cpp:1447 [ASTPP] [PBX] Call Type : 7
  279. 2022-05-17 10:49:07.969589 [INFO] switch_cpp.cpp:1447 [ASTPP] [PBX] Call Type : Ring Group
  280. 2022-05-17 10:49:07.969589 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [Functions] [GET RING GROUP INFO] Query :SELECT id as ringgroup_id,name as ringgroup_name,strategy as ringgroup_strategy,destinations as ringgroup_destinations,description as ringgroup_description,announcementid as ringgroup_announcementid,call_record as ringgroup_call_record,skip_busy as ringgroup_skip_busy,ringbackid as ringgroup_ringbackid,calleridname as ringgroup_calleridname,calleridnumber as ringgroup_calleridnumber,no_answer as ringgroup_no_answer,no_answer_call_type as no_answer_call_type,no_answer_call_type_value from pbx_ringgroup WHERE id = 42 and status = 0 LIMIT 1
  281. 2022-05-17 10:49:07.969589 [INFO] switch_cpp.cpp:1447 [ASTPP] Final Count : 0===
  282. 2022-05-17 10:49:07.969589 [INFO] switch_cpp.cpp:1447 [ASTPP] Final Count : 0===
  283. 2022-05-17 10:49:07.969589 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [get_extensions_forwarding] Query :select sip_devices.id,sip_device_routing.call_forwarding_flag,sip_device_routing.call_forwarding_destination from sip_devices JOIN sip_device_routing ON sip_devices.id = sip_device_routing.sip_device_id where sip_devices.username = "100"
  284. 2022-05-17 10:49:07.969589 [INFO] switch_cpp.cpp:1447 [ASTPP] RingGroup Recording Flag : 1
  285. 2022-05-17 10:49:07.969589 [INFO] switch_cpp.cpp:1447 [ASTPP] RingGroup Dlr Str : [sip_h_p-call_type='custom_forward',sip_h_P-Accountcode=160,call_timeout=5,confirm=false,announcement=no_file,dialed_user=31854832191#,leg_timeout=5,leg_delay_start=0]sofia/${sofia_profile_name}/31854832191@134271.yoursipcloud.com:5060|[sip_invite_params=user=local,absolute_codec_string=^^:PCMA:PCMU,sip_h_p-call_type='custom_forward',call_timeout=10,confirm=false,announcement=no_file,dialed_user=100,leg_timeout=10,leg_delay_start=5]user/100@134271.yoursipcloud.com|
  286. 2022-05-17 10:49:07.969589 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [Functions] [GET_RING_GROUP_INFO] Query :SELECT file_name from pbx_recording WHERE id = '' LIMIT 1
  287. 2022-05-17 10:49:07.969589 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer_attended' limit 1
  288. 2022-05-17 10:49:07.969589 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer' limit 1
  289. 2022-05-17 10:49:07.969589 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Generated XML:<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  290. <document type="freeswitch/xml">
  291. <section name="dialplan" description="ASTPP Dialplan">
  292. <context name="default">
  293. <extension name="31855000149">
  294. <condition field="destination_number" expression="31855000149">
  295. <action application="set" data="effective_destination_number=31855000149"/>
  296. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
  297. <action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>
  298. <action application="set" data="callstart=2022-05-17 08:49:07"/>
  299. <action application="set" data="hangup_after_bridge=true"/>
  300. <action application="set" data="continue_on_fail=TRUE"/>
  301. <action application="set" data="account_id=7"/>
  302. <action application="set" data="parent_id=0"/>
  303. <action application="set" data="entity_id=3"/>
  304. <action application="set" data="call_processed=internal"/>
  305. <action application="set" data="call_direction=inbound"/>
  306. <action application="set" data="accountname=ip"/>
  307. <action application="set" data="filename1=astpp.pbx.lua"/>
  308. <action application="set" data="origination_rates_did=ID:43|CODE:^31855000149.*|DESTINATION:31855000149|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:7|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:136|ACCID:160"/>
  309. <action application="set" data="origination_rates=0"/>
  310. <action application="set" data="original_caller_id_name=31652033157"/>
  311. <action application="set" data="original_caller_id_number=31652033157"/>
  312. <action application="limit" data="db 9712192016 user_9712192016 10 "/>
  313. <action application="set" data="effective_caller_id_name=31652033157"/>
  314. <action application="set" data="effective_caller_id_number=31652033157"/>
  315. <action application="set" data="receiver_accid=160"/>
  316. <action application="export" data="domain_name=134271.yoursipcloud.com"/>
  317. <action application="export" data="sip_to_host=134271.yoursipcloud.com"/>
  318. <action application="export" data="presence_data=x|||Roy(134271)|||||||||DID|||185.249.40.132"/>
  319. <action application="export" data="call_type=7"/>
  320. <action application="set" data="did_calltype=7"/>
  321. <action application="set" data="did_extensions=42"/>
  322. <action application="set" data="group_confirm_key=exec"/>
  323. <action application="set" data="group_confirm_file=lua /usr/share/freeswitch/scripts/astpp/lib/pbx/astpp.confirm.lua"/>
  324. <action application="set" data="ringback="/>
  325. <action application="set" data="module_name=pbx"/>
  326. <action application="db" data="insert/pickup_any_group_${callgroup}/42/${uuid}"/>
  327. <action application="set" data="dialed_extension=transfer_call"/>
  328. <action application="export" data="dialed_extension=transfer_call"/>
  329. <action application="bind_meta_app" data="2 b s execute_extension::transfer_call_2 XML default"/>
  330. <action application="bind_meta_app" data="3 b s execute_extension::transfer_call_3 XML default"/>
  331. <action application="export" data="ring_group_transfer=true"/>
  332. <action application="bridge" data="{sip_h_P-call_type='custom_forward'}[sip_h_p-call_type='custom_forward',sip_h_P-Accountcode=160,call_timeout=5,confirm=false,announcement=no_file,dialed_user=31854832191#,leg_timeout=5,leg_delay_start=0]sofia/${sofia_profile_name}/31854832191@134271.yoursipcloud.com:5060|[sip_invite_params=user=local,absolute_codec_string=^^:PCMA:PCMU,sip_h_p-call_type='custom_forward',call_timeout=10,confirm=false,announcement=no_file,dialed_user=100,leg_timeout=10,leg_delay_start=5]user/100@134271.yoursipcloud.com|"/>
  333. <action application="set" data="original_did_number=31855000149"/>
  334. </condition>
  335. </extension>
  336. </context>
  337. </section>
  338. </document>
  339. Dialplan: sofia/default/31652033157@185.249.40.132 parsing [default->31855000149] continue=false
  340. Dialplan: sofia/default/31652033157@185.249.40.132 Regex (PASS) [31855000149] destination_number(31855000149) =~ /31855000149/ break=on-false
  341. Dialplan: sofia/default/31652033157@185.249.40.132 Action set(effective_destination_number=31855000149)
  342. Dialplan: sofia/default/31652033157@185.249.40.132 Action set(bridge_pre_execute_bleg_app=sched_hangup)
  343. Dialplan: sofia/default/31652033157@185.249.40.132 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  344. Dialplan: sofia/default/31652033157@185.249.40.132 Action set(callstart=2022-05-17 08:49:07)
  345. Dialplan: sofia/default/31652033157@185.249.40.132 Action set(hangup_after_bridge=true)
  346. Dialplan: sofia/default/31652033157@185.249.40.132 Action set(continue_on_fail=TRUE)
  347. Dialplan: sofia/default/31652033157@185.249.40.132 Action set(account_id=7)
  348. Dialplan: sofia/default/31652033157@185.249.40.132 Action set(parent_id=0)
  349. Dialplan: sofia/default/31652033157@185.249.40.132 Action set(entity_id=3)
  350. Dialplan: sofia/default/31652033157@185.249.40.132 Action set(call_processed=internal)
  351. Dialplan: sofia/default/31652033157@185.249.40.132 Action set(call_direction=inbound)
  352. Dialplan: sofia/default/31652033157@185.249.40.132 Action set(accountname=ip)
  353. Dialplan: sofia/default/31652033157@185.249.40.132 Action set(filename1=astpp.pbx.lua)
  354. Dialplan: sofia/default/31652033157@185.249.40.132 Action set(origination_rates_did=ID:43|CODE:^31855000149.*|DESTINATION:31855000149|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:7|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:136|ACCID:160)
  355. Dialplan: sofia/default/31652033157@185.249.40.132 Action set(origination_rates=0)
  356. Dialplan: sofia/default/31652033157@185.249.40.132 Action set(original_caller_id_name=31652033157)
  357. Dialplan: sofia/default/31652033157@185.249.40.132 Action set(original_caller_id_number=31652033157)
  358. Dialplan: sofia/default/31652033157@185.249.40.132 Action limit(db 9712192016 user_9712192016 10 )
  359. Dialplan: sofia/default/31652033157@185.249.40.132 Action set(effective_caller_id_name=31652033157)
  360. Dialplan: sofia/default/31652033157@185.249.40.132 Action set(effective_caller_id_number=31652033157)
  361. Dialplan: sofia/default/31652033157@185.249.40.132 Action set(receiver_accid=160)
  362. Dialplan: sofia/default/31652033157@185.249.40.132 Action export(domain_name=134271.yoursipcloud.com)
  363. Dialplan: sofia/default/31652033157@185.249.40.132 Action export(sip_to_host=134271.yoursipcloud.com)
  364. Dialplan: sofia/default/31652033157@185.249.40.132 Action export(presence_data=x|||Roy(134271)|||||||||DID|||185.249.40.132)
  365. Dialplan: sofia/default/31652033157@185.249.40.132 Action export(call_type=7)
  366. Dialplan: sofia/default/31652033157@185.249.40.132 Action set(did_calltype=7)
  367. Dialplan: sofia/default/31652033157@185.249.40.132 Action set(did_extensions=42)
  368. Dialplan: sofia/default/31652033157@185.249.40.132 Action set(group_confirm_key=exec)
  369. Dialplan: sofia/default/31652033157@185.249.40.132 Action set(group_confirm_file=lua /usr/share/freeswitch/scripts/astpp/lib/pbx/astpp.confirm.lua)
  370. Dialplan: sofia/default/31652033157@185.249.40.132 Action set(ringback=)
  371. Dialplan: sofia/default/31652033157@185.249.40.132 Action set(module_name=pbx)
  372. Dialplan: sofia/default/31652033157@185.249.40.132 Action db(insert/pickup_any_group_${callgroup}/42/${uuid})
  373. Dialplan: sofia/default/31652033157@185.249.40.132 Action set(dialed_extension=transfer_call)
  374. Dialplan: sofia/default/31652033157@185.249.40.132 Action export(dialed_extension=transfer_call)
  375. Dialplan: sofia/default/31652033157@185.249.40.132 Action bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  376. Dialplan: sofia/default/31652033157@185.249.40.132 Action bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  377. Dialplan: sofia/default/31652033157@185.249.40.132 Action export(ring_group_transfer=true)
  378. Dialplan: sofia/default/31652033157@185.249.40.132 Action bridge({sip_h_P-call_type='custom_forward'}[sip_h_p-call_type='custom_forward',sip_h_P-Accountcode=160,call_timeout=5,confirm=false,announcement=no_file,dialed_user=31854832191#,leg_timeout=5,leg_delay_start=0]sofia/${sofia_profile_name}/31854832191@134271.yoursipcloud.com:5060|[sip_invite_params=user=local,absolute_codec_string=^^:PCMA:PCMU,sip_h_p-call_type='custom_forward',call_timeout=10,confirm=false,announcement=no_file,dialed_user=100,leg_timeout=10,leg_delay_start=5]user/100@134271.yoursipcloud.com|)
  379. Dialplan: sofia/default/31652033157@185.249.40.132 Action set(original_did_number=31855000149)
  380. 2022-05-17 10:49:07.969589 [DEBUG] switch_core_state_machine.c:287 (sofia/default/31652033157@185.249.40.132) State Change CS_ROUTING -> CS_EXECUTE
  381. 2022-05-17 10:49:07.969589 [DEBUG] switch_core_state_machine.c:644 (sofia/default/31652033157@185.249.40.132) State ROUTING going to sleep
  382. 2022-05-17 10:49:07.969589 [DEBUG] switch_core_state_machine.c:585 (sofia/default/31652033157@185.249.40.132) Running State Change CS_EXECUTE (Cur 7 Tot 23770)
  383. 2022-05-17 10:49:07.969589 [DEBUG] switch_core_state_machine.c:651 (sofia/default/31652033157@185.249.40.132) State EXECUTE
  384. 2022-05-17 10:49:07.969589 [DEBUG] mod_sofia.c:209 sofia/default/31652033157@185.249.40.132 SOFIA EXECUTE
  385. 2022-05-17 10:49:07.969589 [DEBUG] switch_core_state_machine.c:329 sofia/default/31652033157@185.249.40.132 Standard EXECUTE
  386. EXECUTE [depth=0] sofia/default/31652033157@185.249.40.132 set(effective_destination_number=31855000149)
  387. 2022-05-17 10:49:07.969589 [DEBUG] mod_dptools.c:1672 SET sofia/default/31652033157@185.249.40.132 [effective_destination_number]=[31855000149]
  388. EXECUTE [depth=0] sofia/default/31652033157@185.249.40.132 set(bridge_pre_execute_bleg_app=sched_hangup)
  389. 2022-05-17 10:49:07.969589 [DEBUG] mod_dptools.c:1672 SET sofia/default/31652033157@185.249.40.132 [bridge_pre_execute_bleg_app]=[sched_hangup]
  390. EXECUTE [depth=0] sofia/default/31652033157@185.249.40.132 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  391. 2022-05-17 10:49:07.969589 [DEBUG] mod_dptools.c:1672 SET sofia/default/31652033157@185.249.40.132 [bridge_pre_execute_bleg_data]=[+6000 normal_clearing]
  392. EXECUTE [depth=0] sofia/default/31652033157@185.249.40.132 set(callstart=2022-05-17 08:49:07)
  393. 2022-05-17 10:49:07.969589 [DEBUG] mod_dptools.c:1672 SET sofia/default/31652033157@185.249.40.132 [callstart]=[2022-05-17 08:49:07]
  394. EXECUTE [depth=0] sofia/default/31652033157@185.249.40.132 set(hangup_after_bridge=true)
  395. 2022-05-17 10:49:07.969589 [DEBUG] mod_dptools.c:1672 SET sofia/default/31652033157@185.249.40.132 [hangup_after_bridge]=[true]
  396. EXECUTE [depth=0] sofia/default/31652033157@185.249.40.132 set(continue_on_fail=TRUE)
  397. 2022-05-17 10:49:07.969589 [DEBUG] mod_dptools.c:1672 SET sofia/default/31652033157@185.249.40.132 [continue_on_fail]=[TRUE]
  398. EXECUTE [depth=0] sofia/default/31652033157@185.249.40.132 set(account_id=7)
  399. 2022-05-17 10:49:07.969589 [DEBUG] mod_dptools.c:1672 SET sofia/default/31652033157@185.249.40.132 [account_id]=[7]
  400. EXECUTE [depth=0] sofia/default/31652033157@185.249.40.132 set(parent_id=0)
  401. 2022-05-17 10:49:07.969589 [DEBUG] mod_dptools.c:1672 SET sofia/default/31652033157@185.249.40.132 [parent_id]=[0]
  402. EXECUTE [depth=0] sofia/default/31652033157@185.249.40.132 set(entity_id=3)
  403. 2022-05-17 10:49:07.969589 [DEBUG] mod_dptools.c:1672 SET sofia/default/31652033157@185.249.40.132 [entity_id]=[3]
  404. EXECUTE [depth=0] sofia/default/31652033157@185.249.40.132 set(call_processed=internal)
  405. 2022-05-17 10:49:07.969589 [DEBUG] mod_dptools.c:1672 SET sofia/default/31652033157@185.249.40.132 [call_processed]=[internal]
  406. EXECUTE [depth=0] sofia/default/31652033157@185.249.40.132 set(call_direction=inbound)
  407. 2022-05-17 10:49:07.989204 [DEBUG] mod_dptools.c:1672 SET sofia/default/31652033157@185.249.40.132 [call_direction]=[inbound]
  408. EXECUTE [depth=0] sofia/default/31652033157@185.249.40.132 set(accountname=ip)
  409. 2022-05-17 10:49:07.989204 [DEBUG] mod_dptools.c:1672 SET sofia/default/31652033157@185.249.40.132 [accountname]=[ip]
  410. EXECUTE [depth=0] sofia/default/31652033157@185.249.40.132 set(filename1=astpp.pbx.lua)
  411. 2022-05-17 10:49:07.989204 [DEBUG] mod_dptools.c:1672 SET sofia/default/31652033157@185.249.40.132 [filename1]=[astpp.pbx.lua]
  412. EXECUTE [depth=0] sofia/default/31652033157@185.249.40.132 set(origination_rates_did=ID:43|CODE:^31855000149.*|DESTINATION:31855000149|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:7|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:136|ACCID:160)
  413. 2022-05-17 10:49:07.989204 [DEBUG] mod_dptools.c:1672 SET sofia/default/31652033157@185.249.40.132 [origination_rates_did]=[ID:43|CODE:^31855000149.*|DESTINATION:31855000149|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:7|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:136|ACCID:160]
  414. EXECUTE [depth=0] sofia/default/31652033157@185.249.40.132 set(origination_rates=0)
  415. 2022-05-17 10:49:07.989204 [DEBUG] mod_dptools.c:1672 SET sofia/default/31652033157@185.249.40.132 [origination_rates]=[0]
  416. EXECUTE [depth=0] sofia/default/31652033157@185.249.40.132 set(original_caller_id_name=31652033157)
  417. 2022-05-17 10:49:07.989204 [DEBUG] mod_dptools.c:1672 SET sofia/default/31652033157@185.249.40.132 [original_caller_id_name]=[31652033157]
  418. EXECUTE [depth=0] sofia/default/31652033157@185.249.40.132 set(original_caller_id_number=31652033157)
  419. 2022-05-17 10:49:07.989204 [DEBUG] mod_dptools.c:1672 SET sofia/default/31652033157@185.249.40.132 [original_caller_id_number]=[31652033157]
  420. EXECUTE [depth=0] sofia/default/31652033157@185.249.40.132 limit(db 9712192016 user_9712192016 10 )
  421. 2022-05-17 10:49:07.989204 [DEBUG] switch_limit.c:124 incr called: 9712192016_user_9712192016 max:10, interval:0
  422. 2022-05-17 10:49:07.989204 [DEBUG] mod_db.c:194 Usage for 9712192016_user_9712192016 is now 1/10
  423. EXECUTE [depth=0] sofia/default/31652033157@185.249.40.132 set(effective_caller_id_name=31652033157)
  424. 2022-05-17 10:49:07.989204 [DEBUG] mod_dptools.c:1672 SET sofia/default/31652033157@185.249.40.132 [effective_caller_id_name]=[31652033157]
  425. EXECUTE [depth=0] sofia/default/31652033157@185.249.40.132 set(effective_caller_id_number=31652033157)
  426. 2022-05-17 10:49:07.989204 [DEBUG] mod_dptools.c:1672 SET sofia/default/31652033157@185.249.40.132 [effective_caller_id_number]=[31652033157]
  427. EXECUTE [depth=0] sofia/default/31652033157@185.249.40.132 set(receiver_accid=160)
  428. 2022-05-17 10:49:07.989204 [DEBUG] mod_dptools.c:1672 SET sofia/default/31652033157@185.249.40.132 [receiver_accid]=[160]
  429. EXECUTE [depth=0] sofia/default/31652033157@185.249.40.132 export(domain_name=134271.yoursipcloud.com)
  430. 2022-05-17 10:49:07.989204 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [domain_name]=[134271.yoursipcloud.com]
  431. EXECUTE [depth=0] sofia/default/31652033157@185.249.40.132 export(sip_to_host=134271.yoursipcloud.com)
  432. 2022-05-17 10:49:07.989204 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [sip_to_host]=[134271.yoursipcloud.com]
  433. EXECUTE [depth=0] sofia/default/31652033157@185.249.40.132 export(presence_data=x|||Roy(134271)|||||||||DID|||185.249.40.132)
  434. 2022-05-17 10:49:07.989204 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [presence_data]=[x|||Roy(134271)|||||||||DID|||185.249.40.132]
  435. EXECUTE [depth=0] sofia/default/31652033157@185.249.40.132 export(call_type=7)
  436. 2022-05-17 10:49:07.989204 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [call_type]=[7]
  437. EXECUTE [depth=0] sofia/default/31652033157@185.249.40.132 set(did_calltype=7)
  438. 2022-05-17 10:49:07.989204 [DEBUG] mod_dptools.c:1672 SET sofia/default/31652033157@185.249.40.132 [did_calltype]=[7]
  439. EXECUTE [depth=0] sofia/default/31652033157@185.249.40.132 set(did_extensions=42)
  440. 2022-05-17 10:49:07.989204 [DEBUG] mod_dptools.c:1672 SET sofia/default/31652033157@185.249.40.132 [did_extensions]=[42]
  441. EXECUTE [depth=0] sofia/default/31652033157@185.249.40.132 set(group_confirm_key=exec)
  442. 2022-05-17 10:49:07.989204 [DEBUG] mod_dptools.c:1672 SET sofia/default/31652033157@185.249.40.132 [group_confirm_key]=[exec]
  443. EXECUTE [depth=0] sofia/default/31652033157@185.249.40.132 set(group_confirm_file=lua /usr/share/freeswitch/scripts/astpp/lib/pbx/astpp.confirm.lua)
  444. 2022-05-17 10:49:07.989204 [DEBUG] mod_dptools.c:1672 SET sofia/default/31652033157@185.249.40.132 [group_confirm_file]=[lua /usr/share/freeswitch/scripts/astpp/lib/pbx/astpp.confirm.lua]
  445. EXECUTE [depth=0] sofia/default/31652033157@185.249.40.132 set(ringback=)
  446. 2022-05-17 10:49:07.989204 [DEBUG] mod_dptools.c:1672 SET sofia/default/31652033157@185.249.40.132 [ringback]=[UNDEF]
  447. EXECUTE [depth=0] sofia/default/31652033157@185.249.40.132 set(module_name=pbx)
  448. 2022-05-17 10:49:07.989204 [DEBUG] mod_dptools.c:1672 SET sofia/default/31652033157@185.249.40.132 [module_name]=[pbx]
  449. EXECUTE [depth=0] sofia/default/31652033157@185.249.40.132 db(insert/pickup_any_group_/42/a14193ad-936d-43c0-9d03-f27ead3f8853)
  450. EXECUTE [depth=0] sofia/default/31652033157@185.249.40.132 set(dialed_extension=transfer_call)
  451. 2022-05-17 10:49:07.989204 [DEBUG] mod_dptools.c:1672 SET sofia/default/31652033157@185.249.40.132 [dialed_extension]=[transfer_call]
  452. EXECUTE [depth=0] sofia/default/31652033157@185.249.40.132 export(dialed_extension=transfer_call)
  453. 2022-05-17 10:49:07.989204 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [dialed_extension]=[transfer_call]
  454. EXECUTE [depth=0] sofia/default/31652033157@185.249.40.132 bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  455. 2022-05-17 10:49:07.989204 [INFO] switch_ivr_async.c:4457 Bound B-Leg: *2 execute_extension::transfer_call_2 XML default
  456. EXECUTE [depth=0] sofia/default/31652033157@185.249.40.132 bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  457. 2022-05-17 10:49:07.989204 [INFO] switch_ivr_async.c:4457 Bound B-Leg: *3 execute_extension::transfer_call_3 XML default
  458. EXECUTE [depth=0] sofia/default/31652033157@185.249.40.132 export(ring_group_transfer=true)
  459. 2022-05-17 10:49:07.989204 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [ring_group_transfer]=[true]
  460. EXECUTE [depth=0] sofia/default/31652033157@185.249.40.132 bridge({sip_h_P-call_type='custom_forward'}[sip_h_p-call_type='custom_forward',sip_h_P-Accountcode=160,call_timeout=5,confirm=false,announcement=no_file,dialed_user=31854832191#,leg_timeout=5,leg_delay_start=0]sofia/default/31854832191@134271.yoursipcloud.com:5060|[sip_invite_params=user=local,absolute_codec_string=^^:PCMA:PCMU,sip_h_p-call_type='custom_forward',call_timeout=10,confirm=false,announcement=no_file,dialed_user=100,leg_timeout=10,leg_delay_start=5]user/100@134271.yoursipcloud.com|)
  461. 2022-05-17 10:49:07.989204 [DEBUG] switch_channel.c:1264 sofia/default/31652033157@185.249.40.132 EXPORTING[export_vars] [domain_name]=[134271.yoursipcloud.com] to event
  462. 2022-05-17 10:49:07.989204 [DEBUG] switch_channel.c:1264 sofia/default/31652033157@185.249.40.132 EXPORTING[export_vars] [sip_to_host]=[134271.yoursipcloud.com] to event
  463. 2022-05-17 10:49:07.989204 [DEBUG] switch_channel.c:1264 sofia/default/31652033157@185.249.40.132 EXPORTING[export_vars] [presence_data]=[x|||Roy(134271)|||||||||DID|||185.249.40.132] to event
  464. 2022-05-17 10:49:07.989204 [DEBUG] switch_channel.c:1264 sofia/default/31652033157@185.249.40.132 EXPORTING[export_vars] [call_type]=[7] to event
  465. 2022-05-17 10:49:07.989204 [DEBUG] switch_channel.c:1264 sofia/default/31652033157@185.249.40.132 EXPORTING[export_vars] [dialed_extension]=[transfer_call] to event
  466. 2022-05-17 10:49:07.989204 [DEBUG] switch_channel.c:1264 sofia/default/31652033157@185.249.40.132 EXPORTING[export_vars] [ring_group_transfer]=[true] to event
  467. 2022-05-17 10:49:07.989204 [DEBUG] switch_ivr_originate.c:2242 Parsing global variables
  468. 2022-05-17 10:49:07.989204 [DEBUG] switch_ivr_originate.c:2804 Parsing session specific variables
  469. 2022-05-17 10:49:07.989204 [NOTICE] switch_channel.c:1118 New Channel sofia/default/31854832191@134271.yoursipcloud.com:5060 [eb952e75-9ed5-4498-b095-0526d0c8569b]
  470. 2022-05-17 10:49:07.989204 [DEBUG] mod_sofia.c:5089 (sofia/default/31854832191@134271.yoursipcloud.com:5060) State Change CS_NEW -> CS_INIT
  471. 2022-05-17 10:49:07.989204 [DEBUG] switch_ivr_originate.c:3111 sofia/default/31854832191@134271.yoursipcloud.com:5060 Setting leg timeout to 5
  472. 2022-05-17 10:49:07.989204 [DEBUG] switch_core_state_machine.c:585 (sofia/default/31854832191@134271.yoursipcloud.com:5060) Running State Change CS_INIT (Cur 8 Tot 23771)
  473. 2022-05-17 10:49:07.989204 [DEBUG] switch_core_state_machine.c:628 (sofia/default/31854832191@134271.yoursipcloud.com:5060) State INIT
  474. 2022-05-17 10:49:07.989204 [DEBUG] mod_sofia.c:93 sofia/default/31854832191@134271.yoursipcloud.com:5060 SOFIA INIT
  475. 2022-05-17 10:49:07.989204 [DEBUG] sofia_glue.c:1618 sofia/default/31854832191@134271.yoursipcloud.com:5060 sending invite version: 1.10.5 -release-17-25569c1631 64bit
  476. Local SDP:
  477. v=0
  478. o=FreeSWITCH 1652754909 1652754910 IN IP4 185.249.40.236
  479. s=FreeSWITCH
  480. c=IN IP4 185.249.40.236
  481. t=0 0
  482. m=audio 22438 RTP/AVP 8 101
  483. a=rtpmap:8 PCMA/8000
  484. a=rtpmap:101 telephone-event/8000
  485. a=fmtp:101 0-16
  486. a=ptime:20
  487. a=sendrecv
  488.  
  489. 2022-05-17 10:49:07.989204 [DEBUG] switch_core_state_machine.c:40 sofia/default/31854832191@134271.yoursipcloud.com:5060 Standard INIT
  490. 2022-05-17 10:49:07.989204 [DEBUG] switch_core_state_machine.c:48 (sofia/default/31854832191@134271.yoursipcloud.com:5060) State Change CS_INIT -> CS_ROUTING
  491. 2022-05-17 10:49:07.989204 [DEBUG] switch_core_state_machine.c:628 (sofia/default/31854832191@134271.yoursipcloud.com:5060) State INIT going to sleep
  492. 2022-05-17 10:49:07.989204 [DEBUG] switch_core_state_machine.c:585 (sofia/default/31854832191@134271.yoursipcloud.com:5060) Running State Change CS_ROUTING (Cur 8 Tot 23771)
  493. 2022-05-17 10:49:07.989204 [DEBUG] sofia.c:7326 Channel sofia/default/31854832191@134271.yoursipcloud.com:5060 entering state [calling][0]
  494. 2022-05-17 10:49:07.989204 [DEBUG] switch_core_state_machine.c:644 (sofia/default/31854832191@134271.yoursipcloud.com:5060) State ROUTING
  495. 2022-05-17 10:49:07.989204 [DEBUG] mod_sofia.c:154 sofia/default/31854832191@134271.yoursipcloud.com:5060 SOFIA ROUTING
  496. 2022-05-17 10:49:07.989204 [DEBUG] switch_ivr_originate.c:67 (sofia/default/31854832191@134271.yoursipcloud.com:5060) State Change CS_ROUTING -> CS_CONSUME_MEDIA
  497. 2022-05-17 10:49:07.989204 [DEBUG] switch_core_state_machine.c:644 (sofia/default/31854832191@134271.yoursipcloud.com:5060) State ROUTING going to sleep
  498. 2022-05-17 10:49:07.989204 [DEBUG] switch_core_state_machine.c:585 (sofia/default/31854832191@134271.yoursipcloud.com:5060) Running State Change CS_CONSUME_MEDIA (Cur 8 Tot 23771)
  499. 2022-05-17 10:49:07.989204 [DEBUG] switch_core_state_machine.c:663 (sofia/default/31854832191@134271.yoursipcloud.com:5060) State CONSUME_MEDIA
  500. 2022-05-17 10:49:07.989204 [DEBUG] switch_core_state_machine.c:663 (sofia/default/31854832191@134271.yoursipcloud.com:5060) State CONSUME_MEDIA going to sleep
  501. 2022-05-17 10:49:07.989204 [NOTICE] switch_channel.c:1118 New Channel sofia/default/31652033157@185.249.40.236 [b6aeed30-a71e-4f99-8ce8-c321ed3a0c70]
  502. 2022-05-17 10:49:07.989204 [DEBUG] switch_core_state_machine.c:585 (sofia/default/31652033157@185.249.40.236) Running State Change CS_NEW (Cur 9 Tot 23772)
  503. 2022-05-17 10:49:07.989204 [DEBUG] sofia.c:10280 sofia/default/31652033157@185.249.40.236 receiving invite from 185.249.40.236:5060 version: 1.10.5 -release-17-25569c1631 64bit
  504. 2022-05-17 10:49:07.989204 [DEBUG] sofia.c:10374 verifying acl "default" for ip/port 185.249.40.236:0.
  505. 2022-05-17 10:49:07.989204 [DEBUG] sofia.c:7326 Channel sofia/default/31652033157@185.249.40.236 entering state [received][100]
  506. 2022-05-17 10:49:07.989204 [DEBUG] sofia.c:7336 Remote SDP:
  507. v=0
  508. o=FreeSWITCH 1652754909 1652754910 IN IP4 185.249.40.236
  509. s=FreeSWITCH
  510. c=IN IP4 185.249.40.236
  511. t=0 0
  512. m=audio 22438 RTP/AVP 8 101
  513. a=rtpmap:8 PCMA/8000
  514. a=rtpmap:101 telephone-event/8000
  515. a=fmtp:101 0-16
  516. a=ptime:20
  517.  
  518. 2022-05-17 10:49:07.989204 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  519. 2022-05-17 10:49:07.989204 [DEBUG] switch_core_media.c:5649 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  520. 2022-05-17 10:49:07.989204 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  521. 2022-05-17 10:49:07.989204 [DEBUG] switch_core_media.c:5510 Set telephone-event payload to 101@8000
  522. 2022-05-17 10:49:07.989204 [DEBUG] switch_core_media.c:3839 Set Codec sofia/default/31652033157@185.249.40.236 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  523. 2022-05-17 10:49:07.989204 [DEBUG] switch_core_codec.c:111 sofia/default/31652033157@185.249.40.236 Original read codec set to PCMA:8
  524. 2022-05-17 10:49:07.989204 [DEBUG] switch_core_media.c:5853 Set telephone-event payload to 101@8000
  525. 2022-05-17 10:49:07.989204 [DEBUG] switch_core_media.c:5911 sofia/default/31652033157@185.249.40.236 Set 2833 dtmf send payload to 101 recv payload to 101
  526. 2022-05-17 10:49:07.989204 [DEBUG] sofia.c:7760 (sofia/default/31652033157@185.249.40.236) State Change CS_NEW -> CS_INIT
  527. 2022-05-17 10:49:07.989204 [DEBUG] switch_core_state_machine.c:604 (sofia/default/31652033157@185.249.40.236) State NEW
  528. 2022-05-17 10:49:07.989204 [DEBUG] switch_core_state_machine.c:585 (sofia/default/31652033157@185.249.40.236) Running State Change CS_INIT (Cur 9 Tot 23772)
  529. 2022-05-17 10:49:07.989204 [DEBUG] switch_core_state_machine.c:628 (sofia/default/31652033157@185.249.40.236) State INIT
  530. 2022-05-17 10:49:07.989204 [DEBUG] mod_sofia.c:93 sofia/default/31652033157@185.249.40.236 SOFIA INIT
  531. 2022-05-17 10:49:07.989204 [DEBUG] switch_core_state_machine.c:40 sofia/default/31652033157@185.249.40.236 Standard INIT
  532. 2022-05-17 10:49:07.989204 [DEBUG] switch_core_state_machine.c:48 (sofia/default/31652033157@185.249.40.236) State Change CS_INIT -> CS_ROUTING
  533. 2022-05-17 10:49:07.989204 [DEBUG] switch_core_state_machine.c:628 (sofia/default/31652033157@185.249.40.236) State INIT going to sleep
  534. 2022-05-17 10:49:07.989204 [DEBUG] switch_core_state_machine.c:585 (sofia/default/31652033157@185.249.40.236) Running State Change CS_ROUTING (Cur 9 Tot 23772)
  535. 2022-05-17 10:49:07.989204 [DEBUG] switch_channel.c:2332 (sofia/default/31652033157@185.249.40.236) Callstate Change DOWN -> RINGING
  536. 2022-05-17 10:49:07.989204 [DEBUG] switch_core_state_machine.c:644 (sofia/default/31652033157@185.249.40.236) State ROUTING
  537. 2022-05-17 10:49:07.989204 [DEBUG] mod_sofia.c:154 sofia/default/31652033157@185.249.40.236 SOFIA ROUTING
  538. 2022-05-17 10:49:07.989204 [DEBUG] switch_core_state_machine.c:236 sofia/default/31652033157@185.249.40.236 Standard ROUTING
  539. 2022-05-17 10:49:07.989204 [INFO] mod_dialplan_xml.c:637 Processing 31652033157 <31652033157>->31854832191 in context default
  540. 2022-05-17 10:49:07.989204 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  541. 2022-05-17 10:49:07.989204 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  542.