From DID-local, 3 Years ago, written in FreeSWITCH.
- view diff
Embed
  1. freeswitch@ip-172-31-23-227>
  2. freeswitch@ip-172-31-23-227>
  3. freeswitch@ip-172-31-23-227>
  4. 2021-02-23 05:06:37.146673 [NOTICE] switch_channel.c:1118 New Channel sofia/default/4001@13.127.159.248 [fcb7d2de-098a-4d7e-a9c0-98a58d2a08fb]
  5. 2021-02-23 05:06:37.146673 [DEBUG] switch_core_state_machine.c:585 (sofia/default/4001@13.127.159.248) Running State Change CS_NEW (Cur 1 Tot 45)
  6. 2021-02-23 05:06:37.146673 [DEBUG] sofia.c:10280 sofia/default/4001@13.127.159.248 receiving invite from 13.127.159.248:5060 version: 1.10.5 -release-17-25569c1631 64bit
  7. 2021-02-23 05:06:37.146673 [DEBUG] sofia.c:10374 verifying acl "default" for ip/port 13.127.159.248:0.
  8. 2021-02-23 05:06:37.146673 [DEBUG] sofia.c:10403 IP 13.127.159.248 Approved by acl "default[]". Access Granted.
  9. 2021-02-23 05:06:37.146673 [DEBUG] sofia.c:7326 Channel sofia/default/4001@13.127.159.248 entering state [received][100]
  10. 2021-02-23 05:06:37.146673 [DEBUG] sofia.c:7336 Remote SDP:
  11. v=0
  12. o=FreeSWITCH 1614031080 1614031081 IN IP4 13.127.159.248
  13. s=FreeSWITCH
  14. c=IN IP4 13.127.159.248
  15. t=0 0
  16. m=audio 25716 RTP/AVP 8 0 18 101
  17. a=rtpmap:8 PCMA/8000
  18. a=rtpmap:0 PCMU/8000
  19. a=rtpmap:18 G729/8000
  20. a=rtpmap:101 telephone-event/8000
  21. a=fmtp:101 0-16
  22. a=ptime:20
  23.  
  24. 2021-02-23 05:06:37.146673 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  25. 2021-02-23 05:06:37.146673 [DEBUG] switch_core_media.c:5649 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  26. 2021-02-23 05:06:37.146673 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  27. 2021-02-23 05:06:37.146673 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  28. 2021-02-23 05:06:37.146673 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  29. 2021-02-23 05:06:37.146673 [DEBUG] switch_core_media.c:5649 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  30. 2021-02-23 05:06:37.146673 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
  31. 2021-02-23 05:06:37.146673 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1]
  32. 2021-02-23 05:06:37.146673 [DEBUG] switch_core_media.c:5510 Set telephone-event payload to 101@8000
  33. 2021-02-23 05:06:37.146673 [DEBUG] switch_core_media.c:3839 Set Codec sofia/default/4001@13.127.159.248 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  34. 2021-02-23 05:06:37.146673 [DEBUG] switch_core_codec.c:111 sofia/default/4001@13.127.159.248 Original read codec set to PCMA:8
  35. 2021-02-23 05:06:37.146673 [DEBUG] switch_core_media.c:5853 Set telephone-event payload to 101@8000
  36. 2021-02-23 05:06:37.146673 [DEBUG] switch_core_media.c:5911 sofia/default/4001@13.127.159.248 Set 2833 dtmf send payload to 101 recv payload to 101
  37. 2021-02-23 05:06:37.146673 [DEBUG] sofia.c:7760 (sofia/default/4001@13.127.159.248) State Change CS_NEW -> CS_INIT
  38. 2021-02-23 05:06:37.146673 [DEBUG] switch_core_state_machine.c:604 (sofia/default/4001@13.127.159.248) State NEW
  39. 2021-02-23 05:06:37.146673 [DEBUG] switch_core_state_machine.c:585 (sofia/default/4001@13.127.159.248) Running State Change CS_INIT (Cur 1 Tot 45)
  40. 2021-02-23 05:06:37.146673 [DEBUG] switch_core_state_machine.c:628 (sofia/default/4001@13.127.159.248) State INIT
  41. 2021-02-23 05:06:37.146673 [DEBUG] mod_sofia.c:93 sofia/default/4001@13.127.159.248 SOFIA INIT
  42. 2021-02-23 05:06:37.146673 [DEBUG] switch_core_state_machine.c:40 sofia/default/4001@13.127.159.248 Standard INIT
  43. 2021-02-23 05:06:37.146673 [DEBUG] switch_core_state_machine.c:48 (sofia/default/4001@13.127.159.248) State Change CS_INIT -> CS_ROUTING
  44. 2021-02-23 05:06:37.146673 [DEBUG] switch_core_state_machine.c:628 (sofia/default/4001@13.127.159.248) State INIT going to sleep
  45. 2021-02-23 05:06:37.146673 [DEBUG] switch_core_state_machine.c:585 (sofia/default/4001@13.127.159.248) Running State Change CS_ROUTING (Cur 1 Tot 45)
  46. 2021-02-23 05:06:37.146673 [DEBUG] switch_channel.c:2332 (sofia/default/4001@13.127.159.248) Callstate Change DOWN -> RINGING
  47. 2021-02-23 05:06:37.146673 [DEBUG] switch_core_state_machine.c:644 (sofia/default/4001@13.127.159.248) State ROUTING
  48. 2021-02-23 05:06:37.146673 [DEBUG] mod_sofia.c:154 sofia/default/4001@13.127.159.248 SOFIA ROUTING
  49. 2021-02-23 05:06:37.146673 [DEBUG] switch_core_state_machine.c:236 sofia/default/4001@13.127.159.248 Standard ROUTING
  50. 2021-02-23 05:06:37.146673 [INFO] mod_dialplan_xml.c:637 Processing 4001 <4001>->123 in context default
  51. 2021-02-23 05:06:37.166654 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  52. 2021-02-23 05:06:37.166654 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  53. 2021-02-23 05:06:37.166654 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [xml_handler] Params:
  54. Event-Name: REQUEST_PARAMS
  55. Core-UUID: a2342a31-d21d-430a-9dfc-f4dad9d852d1
  56. FreeSWITCH-Hostname: ip-172-31-23-227
  57. FreeSWITCH-Switchname: ip-172-31-23-227
  58. FreeSWITCH-IPv4: 172.31.23.227
  59. FreeSWITCH-IPv6: %3A%3A1
  60. Event-Date-Local: 2021-02-23%2005%3A06%3A37
  61. Event-Date-GMT: Tue,%2023%20Feb%202021%2005%3A06%3A37%20GMT
  62. Event-Date-Timestamp: 1614056797146673
  63. Event-Calling-File: mod_dialplan_xml.c
  64. Event-Calling-Function: dialplan_xml_locate
  65. Event-Calling-Line-Number: 608
  66. Event-Sequence: 98247
  67. Channel-State: CS_ROUTING
  68. Channel-Call-State: RINGING
  69. Channel-State-Number: 2
  70. Channel-Name: sofia/default/4001%4013.127.159.248
  71. Unique-ID: fcb7d2de-098a-4d7e-a9c0-98a58d2a08fb
  72. Call-Direction: inbound
  73. Presence-Call-Direction: inbound
  74. Channel-HIT-Dialplan: true
  75. Channel-Presence-ID: 4001%4013.127.159.248
  76. Channel-Call-UUID: fcb7d2de-098a-4d7e-a9c0-98a58d2a08fb
  77. Answer-State: ringing
  78. Channel-Read-Codec-Name: PCMA
  79. Channel-Read-Codec-Rate: 8000
  80. Channel-Read-Codec-Bit-Rate: 64000
  81. Channel-Write-Codec-Name: PCMA
  82. Channel-Write-Codec-Rate: 8000
  83. Channel-Write-Codec-Bit-Rate: 64000
  84. Caller-Direction: inbound
  85. Caller-Logical-Direction: inbound
  86. Caller-Username: 4001
  87. Caller-Dialplan: XML
  88. Caller-Caller-ID-Name: 4001
  89. Caller-Caller-ID-Number: 4001
  90. Caller-Orig-Caller-ID-Name: 4001
  91. Caller-Orig-Caller-ID-Number: 4001
  92. Caller-Network-Addr: 13.127.159.248
  93. Caller-ANI: 4001
  94. Caller-Destination-Number: 123
  95. Caller-Unique-ID: fcb7d2de-098a-4d7e-a9c0-98a58d2a08fb
  96. Caller-Source: mod_sofia
  97. Caller-Context: default
  98. Caller-Channel-Name: sofia/default/4001%4013.127.159.248
  99. Caller-Profile-Index: 1
  100. Caller-Profile-Created-Time: 1614056797146673
  101. Caller-Channel-Created-Time: 1614056797146673
  102. Caller-Channel-Answered-Time: 0
  103. Caller-Channel-Progress-Time: 0
  104. Caller-Channel-Progress-Media-Time: 0
  105. Caller-Channel-Hangup-Time: 0
  106. Caller-Channel-Transfer-Time: 0
  107. Caller-Channel-Resurrect-Time: 0
  108. Caller-Channel-Bridged-Time: 0
  109. Caller-Channel-Last-Hold: 0
  110. Caller-Channel-Hold-Accum: 0
  111. Caller-Screen-Bit: true
  112. Caller-Privacy-Hide-Name: false
  113. Caller-Privacy-Hide-Number: false
  114. variable_direction: inbound
  115. variable_uuid: fcb7d2de-098a-4d7e-a9c0-98a58d2a08fb
  116. variable_session_id: 45
  117. variable_sip_from_user: 4001
  118. variable_sip_from_uri: 4001%4013.127.159.248
  119. variable_sip_from_host: 13.127.159.248
  120. variable_video_media_flow: disabled
  121. variable_text_media_flow: disabled
  122. variable_channel_name: sofia/default/4001%4013.127.159.248
  123. variable_sip_call_id: bf04696e-f037-1239-f6ab-029485f1bd1c
  124. variable_sip_local_network_addr: 18.221.51.90
  125. variable_sip_network_ip: 13.127.159.248
  126. variable_sip_network_port: 5060
  127. variable_sip_invite_stamp: 1614056797146673
  128. variable_sip_received_ip: 13.127.159.248
  129. variable_sip_received_port: 5060
  130. variable_sip_via_protocol: udp
  131. variable_sip_authorized: true
  132. variable_sip_acl_authed_by: default
  133. variable_sip_from_user_stripped: 4001
  134. variable_sip_from_tag: p1Q7FtBeNvQHg
  135. variable_sofia_profile_name: default
  136. variable_sofia_profile_url: sip%3Amod_sofia%4018.221.51.90%3A7777
  137. variable_recovery_profile_name: default
  138. variable_sip_Remote-Party-ID: %224001%22%20%3Csip%3A4001%4013.127.159.248%3E%3Bparty%3Dcalling%3Bscreen%3Dyes%3Bprivacy%3Doff
  139. variable_sip_cid_type: rpid
  140. variable_sip_full_via: SIP/2.0/UDP%2013.127.159.248%3Brport%3D5060%3Bbranch%3Dz9hG4bKgX098pBr29vSj
  141. variable_sip_from_display: 4001
  142. variable_sip_full_from: %224001%22%20%3Csip%3A4001%4013.127.159.248%3E%3Btag%3Dp1Q7FtBeNvQHg
  143. variable_sip_full_to: %3Csip%3A123%4018.221.51.90%3A7777%3E
  144. variable_sip_allow: INVITE,%20ACK,%20BYE,%20CANCEL,%20OPTIONS,%20MESSAGE,%20INFO,%20UPDATE,%20REGISTER,%20REFER,%20NOTIFY,%20PUBLISH,%20SUBSCRIBE
  145. variable_sip_req_user: 123
  146. variable_sip_req_port: 7777
  147. variable_sip_req_uri: 123%4018.221.51.90%3A7777
  148. variable_sip_req_host: 18.221.51.90
  149. variable_sip_to_user: 123
  150. variable_sip_to_port: 7777
  151. variable_sip_to_uri: 123%4018.221.51.90%3A7777
  152. variable_sip_to_host: 18.221.51.90
  153. variable_sip_contact_params: transport%3Dudp%3Bgw%3DDhaval_gt
  154. variable_sip_contact_user: gw%2BDhaval_gt
  155. variable_sip_contact_port: 5060
  156. variable_sip_contact_uri: gw%2BDhaval_gt%4013.127.159.248%3A5060
  157. variable_sip_contact_host: 13.127.159.248
  158. variable_sip_user_agent: ASTPP
  159. variable_sip_via_host: 13.127.159.248
  160. variable_sip_via_rport: 5060
  161. variable_max_forwards: 69
  162. variable_presence_id: 4001%4013.127.159.248
  163. variable_switch_r_sdp: v%3D0%0D%0Ao%3DFreeSWITCH%201614031080%201614031081%20IN%20IP4%2013.127.159.248%0D%0As%3DFreeSWITCH%0D%0Ac%3DIN%20IP4%2013.127.159.248%0D%0At%3D0%200%0D%0Am%3Daudio%2025716%20RTP/AVP%208%200%2018%20101%0D%0Aa%3Drtpmap%3A8%20PCMA/8000%0D%0Aa%3Drtpmap%3A0%20PCMU/8000%0D%0Aa%3Drtpmap%3A18%20G729/8000%0D%0Aa%3Drtpmap%3A101%20telephone-event/8000%0D%0Aa%3Dfmtp%3A101%200-16%0D%0Aa%3Dptime%3A20%0D%0A
  164. variable_ep_codec_string: CORE_PCM_MODULE.PCMA%408000h%4020i%4064000b,CORE_PCM_MODULE.PCMU%408000h%4020i%4064000b
  165. variable_rtp_use_codec_string: PCMA,PCMU
  166. variable_remote_video_media_flow: inactive
  167. variable_remote_text_media_flow: inactive
  168. variable_remote_audio_media_flow: sendrecv
  169. variable_audio_media_flow: sendrecv
  170. variable_remote_media_ip: 13.127.159.248
  171. variable_remote_media_port: 25716
  172. variable_rtp_audio_recv_pt: 8
  173. variable_rtp_use_codec_name: PCMA
  174. variable_rtp_use_codec_rate: 8000
  175. variable_rtp_use_codec_ptime: 20
  176. variable_rtp_use_codec_channels: 1
  177. variable_rtp_last_audio_codec_string: PCMA%408000h%4020i%401c
  178. variable_read_codec: PCMA
  179. variable_original_read_codec: PCMA
  180. variable_read_rate: 8000
  181. variable_original_read_rate: 8000
  182. variable_write_codec: PCMA
  183. variable_write_rate: 8000
  184. variable_dtmf_type: rfc2833
  185. variable_endpoint_disposition: RECEIVED
  186. variable_call_uuid: fcb7d2de-098a-4d7e-a9c0-98a58d2a08fb
  187. Hunt-Direction: inbound
  188. Hunt-Logical-Direction: inbound
  189. Hunt-Username: 4001
  190. Hunt-Dialplan: XML
  191. Hunt-Caller-ID-Name: 4001
  192. Hunt-Caller-ID-Number: 4001
  193. Hunt-Orig-Caller-ID-Name: 4001
  194. Hunt-Orig-Caller-ID-Number: 4001
  195. Hunt-Network-Addr: 13.127.159.248
  196. Hunt-ANI: 4001
  197. Hunt-Destination-Number: 123
  198. Hunt-Unique-ID: fcb7d2de-098a-4d7e-a9c0-98a58d2a08fb
  199. Hunt-Source: mod_sofia
  200. Hunt-Context: default
  201. Hunt-Channel-Name: sofia/default/4001%4013.127.159.248
  202. Hunt-Profile-Index: 1
  203. Hunt-Profile-Created-Time: 1614056797146673
  204. Hunt-Channel-Created-Time: 1614056797146673
  205. Hunt-Channel-Answered-Time: 0
  206. Hunt-Channel-Progress-Time: 0
  207. Hunt-Channel-Progress-Media-Time: 0
  208. Hunt-Channel-Hangup-Time: 0
  209. Hunt-Channel-Transfer-Time: 0
  210. Hunt-Channel-Resurrect-Time: 0
  211. Hunt-Channel-Bridged-Time: 0
  212. Hunt-Channel-Last-Hold: 0
  213. Hunt-Channel-Hold-Accum: 0
  214. Hunt-Screen-Bit: true
  215. Hunt-Privacy-Hide-Name: false
  216. Hunt-Privacy-Hide-Number: false
  217.  
  218.  
  219. 2021-02-23 05:06:37.166654 [INFO] switch_cpp.cpp:1447 [ASTPP] [xml_REQUEST] key_name:
  220. 2021-02-23 05:06:37.166654 [INFO] switch_cpp.cpp:1447 [ASTPP] [xml_REQUEST] section: dialplan
  221. 2021-02-23 05:06:37.166654 [INFO] switch_cpp.cpp:1447 [ASTPP] [xml_REQUEST] tag_name:
  222. 2021-02-23 05:06:37.166654 [INFO] switch_cpp.cpp:1447 [ASTPP] [xml_REQUEST] key_value:
  223. 2021-02-23 05:06:37.166654 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] blind_flag: 0
  224. 2021-02-23 05:06:37.166654 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Dialed number : 123
  225. 2021-02-23 05:06:37.166654 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '123' limit 1
  226. 2021-02-23 05:06:37.166654 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '123' AND status=0 limit 1
  227. 2021-02-23 05:06:37.166654 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [Functions] [GET_queue_INFO] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '123' and status=0 LIMIT 1
  228. 2021-02-23 05:06:37.166654 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Caller Id name / number  : 4001 / 4001
  229. 2021-02-23 05:06:37.166654 [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 ="123" LIMIT 1
  230. 2021-02-23 05:06:37.166654 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Call direction : inbound
  231. 2021-02-23 05:06:37.166654 [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("13.127.159.248") 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 "123"  LIKE CONCAT(prefix,'%') ORDER BY LENGTH(prefix) DESC LIMIT 1
  232. 2021-02-23 05:06:37.166654 [INFO] switch_cpp.cpp:1447 [ASTPP] [Accountcode : 3673942894]
  233. 2021-02-23 05:06:37.166654 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "3673942894" AND deleted = 0 limit 1
  234. 2021-02-23 05:06:37.186655 [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 ="123" AND A.accountid = '3' limit 1
  235. 2021-02-23 05:06:37.186655 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 123
  236. 2021-02-23 05:06:37.186655 [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 ="123" LIMIT 1
  237. 2021-02-23 05:06:37.186655 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] New Call direction : inbound
  238. 2021-02-23 05:06:37.186655 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="123" AND (accountid = 0 OR status = 1) LIMIT 1
  239. 2021-02-23 05:06:37.186655 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PACKAGE_INFO] call_direction :inbound
  240. 2021-02-23 05:06:37.186655 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PACKAGE_INFO] DID_ACCOUNTID :4
  241. 2021-02-23 05:06:37.186655 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PACKAGE_INFO] Query :SELECT *,P.id as package_id,P.product_id as product_id FROM packages_view as P inner join package_patterns as PKGPTR on P.product_id = PKGPTR.product_id WHERE (patterns = '^123.*' OR patterns = '^12.*' OR patterns = '^1.*' OR patterns ='--') AND accountid = 4 ORDER BY LENGTH(PKGPTR.patterns) DESC
  242. 2021-02-23 05:06:37.206654 [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 = '123' OR number = '12' OR number = '1' OR number ='--') OR (number = '123*' OR number = '12*' OR number = '1*' OR number ='--') OR (number = '4001' OR number = '400' OR number = '40' OR number = '4' OR number ='--') OR (number = '4001*' OR number = '400*' OR number = '40*' OR number = '4*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC
  243. 2021-02-23 05:06:37.206654 [DEBUG] switch_cpp.cpp:1447 [ASTPP] Call Barring Status : -1
  244. 2021-02-23 05:06:37.206654 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '123' OR routing_prefix = '12' OR routing_prefix = '1' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1
  245. 2021-02-23 05:06:37.206654 [INFO] switch_cpp.cpp:1447 [ASTPP] =============== Account Information ===================
  246. 2021-02-23 05:06:37.206654 [INFO] switch_cpp.cpp:1447 [ASTPP] User id : 3
  247. 2021-02-23 05:06:37.206654 [INFO] switch_cpp.cpp:1447 [ASTPP] Account code : 3673942894
  248. 2021-02-23 05:06:37.206654 [INFO] switch_cpp.cpp:1447 [ASTPP] Balance : 10000
  249. 2021-02-23 05:06:37.206654 [INFO] switch_cpp.cpp:1447 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  250. 2021-02-23 05:06:37.206654 [INFO] switch_cpp.cpp:1447 [ASTPP] Ratecard id : 1
  251. 2021-02-23 05:06:37.206654 [INFO] switch_cpp.cpp:1447 [ASTPP] CID Pool : 0
  252. 2021-02-23 05:06:37.206654 [INFO] switch_cpp.cpp:1447 [ASTPP] ========================================================
  253. 2021-02-23 05:06:37.206654 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0
  254. 2021-02-23 05:06:37.206654 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_RATES] call_direction :inbound
  255. 2021-02-23 05:06:37.206654 [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 ="123" LIMIT 1
  256. 2021-02-23 05:06:37.206654 [INFO] switch_cpp.cpp:1447 [ASTPP] call_direction:::::: inbound
  257. 2021-02-23 05:06:37.206654 [INFO] switch_cpp.cpp:1447 [ASTPP] =============== Rates Information ===================
  258. 2021-02-23 05:06:37.206654 [INFO] switch_cpp.cpp:1447 [ASTPP] ID : 1
  259. 2021-02-23 05:06:37.206654 [INFO] switch_cpp.cpp:1447 [ASTPP] Connectcost : 0.00000
  260. 2021-02-23 05:06:37.206654 [INFO] switch_cpp.cpp:1447 [ASTPP] Includedseconds : 0
  261. 2021-02-23 05:06:37.206654 [INFO] switch_cpp.cpp:1447 [ASTPP] Cost : 1.00000
  262. 2021-02-23 05:06:37.206654 [INFO] switch_cpp.cpp:1447 [ASTPP] comment : 123
  263. 2021-02-23 05:06:37.206654 [INFO] switch_cpp.cpp:1447 [ASTPP] Country Id : 85
  264. 2021-02-23 05:06:37.206654 [INFO] switch_cpp.cpp:1447 [ASTPP] Accid : 3
  265. 2021-02-23 05:06:37.206654 [INFO] switch_cpp.cpp:1447 [ASTPP] ================================================================
  266. 2021-02-23 05:06:37.206654 [INFO] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] Your10000 balance Accountid 3 !!!
  267. 2021-02-23 05:06:37.206654 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] Limiting call to config max length 100 mins!
  268. 2021-02-23 05:06:37.206654 [INFO] switch_cpp.cpp:1447 [ASTPP] Call Max length duration : 100 minutes
  269. 2021-02-23 05:06:37.206654 [INFO] switch_cpp.cpp:1447 [ASTPP] [userinfo] INB_FREE:TRUE
  270. 2021-02-23 05:06:37.206654 [INFO] switch_cpp.cpp:1447 [ASTPP] [userinfo] free_inbound:1
  271. 2021-02-23 05:06:37.206654 [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 = 3 AND status=0 LIMIT 1
  272. 2021-02-23 05:06:37.206654 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "4" AND deleted = 0 limit 1
  273. 2021-02-23 05:06:37.206654 [INFO] switch_cpp.cpp:1447 [ASTPP] [userinfo] Actual CustomerInfo XML:3
  274. 2021-02-23 05:06:37.206654 [INFO] switch_cpp.cpp:1447 [ASTPP] [userinfo] Userinfo XML:3
  275. 2021-02-23 05:06:37.206654 [INFO] switch_cpp.cpp:1447 [ASTPP] [userinfo] Actual CustomerInfo XML : 3
  276. 2021-02-23 05:06:37.206654 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 4 limit 1
  277. 2021-02-23 05:06:37.206654 [WARNING] switch_cpp.cpp:1447 [ASTPP] [user_domain] user_domaindhaval.dhaval.astppbilling.org
  278. 2021-02-23 05:06:37.206654 [INFO] switch_cpp.cpp:1447 [ASTPP] maxlength::::::::: 100
  279. 2021-02-23 05:06:37.206654 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  280. 2021-02-23 05:06:37.206654 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] customer_userinfo['is_recording'] : 1
  281. 2021-02-23 05:06:37.206654 [INFO] switch_cpp.cpp:1447 [ASTPP] [PBX] call_direction : inbound
  282. 2021-02-23 05:06:37.206654 [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 = "1100" AND accounts.status = 0
  283. 2021-02-23 05:06:37.206654 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 4 limit 1
  284. 2021-02-23 05:06:37.206654 [WARNING] switch_cpp.cpp:1447 [ASTPP] [user_domain] user_domaindhaval.dhaval.astppbilling.org
  285. 2021-02-23 05:06:37.206654 [DEBUG] switch_cpp.cpp:1447 [ASTPP] custom_function_name:::::::::::::::::::::::::custom_inbound_0
  286. 2021-02-23 05:06:37.206654 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT sip_devices.id as sip_id,sip_devices.username as username,accounts.number as accountcode,sip_devices.accountid as accountid,accounts.did_cid_translation as did_cid_translation FROM sip_devices as sip_devices,accounts as  accounts ,domains WHERE accounts.id=domains.accountid AND accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="1100"  AND domains.domain="dhaval.dhaval.astppbilling.org" limit 1
  287. 2021-02-23 05:06:37.226651 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [PBX_SIP_ROUTING] [GET_ROUTING_INFO] Query :SELECT * from sip_device_routing WHERE sip_device_id = 3 limit 1
  288. 2021-02-23 05:06:37.226651 [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
  289. 2021-02-23 05:06:37.226651 [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
  290. 2021-02-23 05:06:37.226651 [WARNING] switch_cpp.cpp:1447 [ASTPP] [user_domain] user_domain beforedhaval.dhaval.astppbilling.org
  291. 2021-02-23 05:06:37.226651 [WARNING] switch_cpp.cpp:1447 [ASTPP] [user_domain] pickup_group_permission pickup_str
  292. 2021-02-23 05:06:37.226651 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [NOTIFY] START:
  293. 2021-02-23 05:06:37.226651 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT sip_devices.id as sip_id,sip_devices.username as username,accounts.number as accountcode,sip_devices.accountid as accountid,accounts.did_cid_translation as did_cid_translation FROM sip_devices as sip_devices,accounts as  accounts ,domains WHERE accounts.id=domains.accountid AND accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="1100"  AND domains.domain="dhaval.dhaval.astppbilling.org" limit 1
  294. 2021-02-23 05:06:37.226651 [INFO] switch_cpp.cpp:1447 [ASTPP] [PBX_SIP_ROUTING] SIP ID : 3
  295. 2021-02-23 05:06:37.226651 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [PBX_SIP_ROUTING] [GET_ROUTING_INFO] Query :SELECT * from sip_device_routing WHERE sip_device_id = 3 limit 1
  296. 2021-02-23 05:06:37.226651 [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
  297. 2021-02-23 05:06:37.226651 [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
  298. 2021-02-23 05:06:37.226651 [INFO] switch_cpp.cpp:1447 [ASTPP] [PBX_SIP_ROUTING] call_forwarding_flag : 1
  299. 2021-02-23 05:06:37.226651 [INFO] switch_cpp.cpp:1447 [ASTPP] [PBX_SIP_ROUTING] SIP Call forwarding Disable
  300. 2021-02-23 05:06:37.226651 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [NOTIFY] START:
  301. 2021-02-23 05:06:37.226651 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT sip_devices.id as sip_id,sip_devices.username as username,accounts.number as accountcode,sip_devices.accountid as accountid,accounts.did_cid_translation as did_cid_translation FROM sip_devices as sip_devices,accounts as  accounts ,domains WHERE accounts.id=domains.accountid AND accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="1100"  AND domains.domain="dhaval.dhaval.astppbilling.org" limit 1
  302. 2021-02-23 05:06:37.246650 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [PBX_SIP_ROUTING] [GET_ROUTING_INFO] Query :SELECT * from sip_device_routing WHERE sip_device_id = 3 limit 1
  303. 2021-02-23 05:06:37.246650 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Generated XML:<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  304. <document type="freeswitch/xml">
  305. <section name="dialplan" description="ASTPP Dialplan">
  306. <context name="default">
  307. <extension name="123">
  308. <condition field="destination_number" expression="123">
  309. <action application="set" data="effective_destination_number=123"/>
  310. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
  311. <action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>
  312. <action application="set" data="callstart=2021-02-23 05:06:36"/>
  313. <action application="set" data="hangup_after_bridge=true"/>
  314. <action application="set" data="continue_on_fail=TRUE"/>
  315. <action application="set" data="account_id=3"/>
  316. <action application="set" data="parent_id=0"/>
  317. <action application="set" data="entity_id=3"/>
  318. <action application="set" data="call_processed=internal"/>
  319. <action application="set" data="call_direction=inbound"/>
  320. <action application="set" data="accountname=Tinku bhai"/>
  321. <action application="set" data="origination_rates_did=ID:1|CODE:^123.*|DESTINATION:123|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:0|COST:1.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:85|ACCID:4"/>
  322. <action application="set" data="origination_rates=0"/>
  323. <action application="set" data="original_caller_id_name=4001"/>
  324. <action application="set" data="original_caller_id_number=4001"/>
  325. <action application="set" data="effective_caller_id_name=4001"/>
  326. <action application="set" data="effective_caller_id_number=4001"/>
  327. <action application="set" data="receiver_accid=4"/>
  328. <action application="export" data="domain_name=dhaval.dhaval.astppbilling.org"/>
  329. <action application="export" data="sip_to_host=dhaval.dhaval.astppbilling.org"/>
  330. <action application="export" data="presence_data=x|||default(3673942894)|||^123.* // 123 // 1.00000||||||DID|||13.127.159.248"/>
  331. <action application="export" data="call_type=0"/>
  332. <action application="set" data="calltype=DID-LOCAL"/>
  333. <action application="db" data="insert/pickup_any_group_${callgroup}/1100/${uuid}"/>
  334. <action application="set" data="dialed_extension=transfer_call"/>
  335. <action application="export" data="dialed_extension=transfer_call"/>
  336. <action application="bind_meta_app" data="3 b s execute_extension::transfer_call_3 XML default"/>
  337. <action application="bind_meta_app" data="2 b s execute_extension::transfer_call_2 XML default"/>
  338. <action application="set" data="hangup_after_bridge=true"/>
  339. <action application="export" data="did_user_domain=dhaval.dhaval.astppbilling.org"/>
  340. <action application="db" data="insert/pickup_any_group_${callgroup}/1100/${uuid}"/>
  341. <action application="set" data="dialed_extension=transfer_call"/>
  342. <action application="export" data="dialed_extension=transfer_call"/>
  343. <action application="bind_meta_app" data="3 b s execute_extension::transfer_call_3 XML default"/>
  344. <action application="bind_meta_app" data="2 b s execute_extension::transfer_call_2 XML default"/>
  345. <action application="set" data="transfer_ringback=$${hold_music}"/>
  346. <action application="set" data="hangup_after_bridge=true"/>
  347. <action application="bridge" data="{sip_invite_params=user=LOCAL,ignore_early_media=true,sip_h_P-call_type='custom_forward',sip_h_P-Accountcode=4}[leg_timeout=60 ] user/1100@dhaval.dhaval.astppbilling.org"/>
  348. <action application="set" data="on_busy_flag=1"/>
  349. <action application="set" data="on_busy_destination=0"/>
  350. <action application="set" data="no_answer_flag=1"/>
  351. <action application="set" data="no_answer_destination=0"/>
  352. <action application="set" data="not_register_flag=1"/>
  353. <action application="set" data="not_register_destination=0"/>
  354. <action application="set" data="opensips_flag=1"/>
  355. <action application="set" data="variable_sip_to_host=dhaval.dhaval.astppbilling.org"/>
  356. <action application="set" data="opensips_domain=127.0.0.1"/>
  357. <action application="set" data="leg_timeout=60"/>
  358. <action application="set" data="userinfo_id=4"/>
  359. <action application="set" data="sip_destination_number=1100"/>
  360. <action application="set" data="did_number=1100"/>
  361. <action application="set" data="user_domain=dhaval.dhaval.astppbilling.org"/>
  362. <action application="lua" data="astpp/lib/pbx/astpp-sipdevice-routing.lua"/>
  363. <action application="set" data="on_busy_flag=1"/>
  364. <action application="set" data="on_busy_destination=0"/>
  365. <action application="set" data="no_answer_flag=1"/>
  366. <action application="set" data="no_answer_destination=0"/>
  367. <action application="set" data="not_register_flag=1"/>
  368. <action application="set" data="not_register_destination=0"/>
  369. <action application="set" data="opensips_flag=1"/>
  370. <action application="set" data="variable_sip_to_host=dhaval.dhaval.astppbilling.org"/>
  371. <action application="set" data="opensips_domain=127.0.0.1"/>
  372. <action application="set" data="leg_timeout=60"/>
  373. <action application="set" data="userinfo_id=4"/>
  374. <action application="set" data="sip_destination_number=1100"/>
  375. <action application="set" data="destination_number=123"/>
  376. <action application="set" data="did_number=123"/>
  377. <action application="set" data="user_domain=dhaval.dhaval.astppbilling.org"/>
  378. <action application="lua" data="astpp/lib/pbx/astpp-sipdevice-routing.lua"/>
  379. <condition field="${cond(${user_data 1100@${domain_name} param vm-enabled} == true ? YES : NO)}" expression="^YES$">
  380. <action application="answer"/>
  381. <action application="export" data="voicemail_alternate_greet_id=123"/>
  382. <action application="voicemail" data="default $${domain_name} 1100"/>
  383. <anti-action application="hangup" data="${originate_disposition}"/>
  384. </condition>
  385. </condition>
  386. </extension>
  387. </context>
  388. </section>
  389. </document>
  390. Dialplan: sofia/default/4001@13.127.159.248 parsing [default->123] continue=false
  391. Dialplan: sofia/default/4001@13.127.159.248 Regex (PASS) [123] destination_number(123) =~ /123/ break=on-false
  392. Dialplan: sofia/default/4001@13.127.159.248 Action set(effective_destination_number=123)
  393. Dialplan: sofia/default/4001@13.127.159.248 Action set(bridge_pre_execute_bleg_app=sched_hangup)
  394. Dialplan: sofia/default/4001@13.127.159.248 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  395. Dialplan: sofia/default/4001@13.127.159.248 Action set(callstart=2021-02-23 05:06:36)
  396. Dialplan: sofia/default/4001@13.127.159.248 Action set(hangup_after_bridge=true)
  397. Dialplan: sofia/default/4001@13.127.159.248 Action set(continue_on_fail=TRUE)
  398. Dialplan: sofia/default/4001@13.127.159.248 Action set(account_id=3)
  399. Dialplan: sofia/default/4001@13.127.159.248 Action set(parent_id=0)
  400. Dialplan: sofia/default/4001@13.127.159.248 Action set(entity_id=3)
  401. Dialplan: sofia/default/4001@13.127.159.248 Action set(call_processed=internal)
  402. Dialplan: sofia/default/4001@13.127.159.248 Action set(call_direction=inbound)
  403. Dialplan: sofia/default/4001@13.127.159.248 Action set(accountname=Tinku bhai)
  404. Dialplan: sofia/default/4001@13.127.159.248 Action set(origination_rates_did=ID:1|CODE:^123.*|DESTINATION:123|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:0|COST:1.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:85|ACCID:4)
  405. Dialplan: sofia/default/4001@13.127.159.248 Action set(origination_rates=0)
  406. Dialplan: sofia/default/4001@13.127.159.248 Action set(original_caller_id_name=4001)
  407. Dialplan: sofia/default/4001@13.127.159.248 Action set(original_caller_id_number=4001)
  408. Dialplan: sofia/default/4001@13.127.159.248 Action set(effective_caller_id_name=4001)
  409. Dialplan: sofia/default/4001@13.127.159.248 Action set(effective_caller_id_number=4001)
  410. Dialplan: sofia/default/4001@13.127.159.248 Action set(receiver_accid=4)
  411. Dialplan: sofia/default/4001@13.127.159.248 Action export(domain_name=dhaval.dhaval.astppbilling.org)
  412. Dialplan: sofia/default/4001@13.127.159.248 Action export(sip_to_host=dhaval.dhaval.astppbilling.org)
  413. Dialplan: sofia/default/4001@13.127.159.248 Action export(presence_data=x|||default(3673942894)|||^123.* // 123 // 1.00000||||||DID|||13.127.159.248)
  414. Dialplan: sofia/default/4001@13.127.159.248 Action export(call_type=0)
  415. Dialplan: sofia/default/4001@13.127.159.248 Action set(calltype=DID-LOCAL)
  416. Dialplan: sofia/default/4001@13.127.159.248 Action db(insert/pickup_any_group_${callgroup}/1100/${uuid})
  417. Dialplan: sofia/default/4001@13.127.159.248 Action set(dialed_extension=transfer_call)
  418. Dialplan: sofia/default/4001@13.127.159.248 Action export(dialed_extension=transfer_call)
  419. Dialplan: sofia/default/4001@13.127.159.248 Action bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  420. Dialplan: sofia/default/4001@13.127.159.248 Action bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  421. Dialplan: sofia/default/4001@13.127.159.248 Action set(hangup_after_bridge=true)
  422. Dialplan: sofia/default/4001@13.127.159.248 Action export(did_user_domain=dhaval.dhaval.astppbilling.org)
  423. Dialplan: sofia/default/4001@13.127.159.248 Action db(insert/pickup_any_group_${callgroup}/1100/${uuid})
  424. Dialplan: sofia/default/4001@13.127.159.248 Action set(dialed_extension=transfer_call)
  425. Dialplan: sofia/default/4001@13.127.159.248 Action export(dialed_extension=transfer_call)
  426. Dialplan: sofia/default/4001@13.127.159.248 Action bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  427. Dialplan: sofia/default/4001@13.127.159.248 Action bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  428. Dialplan: sofia/default/4001@13.127.159.248 Action set(transfer_ringback=$${hold_music})
  429. Dialplan: sofia/default/4001@13.127.159.248 Action set(hangup_after_bridge=true)
  430. Dialplan: sofia/default/4001@13.127.159.248 Action bridge({sip_invite_params=user=LOCAL,ignore_early_media=true,sip_h_P-call_type='custom_forward',sip_h_P-Accountcode=4}[leg_timeout=60 ] user/1100@dhaval.dhaval.astppbilling.org)
  431. Dialplan: sofia/default/4001@13.127.159.248 Action set(on_busy_flag=1)
  432. Dialplan: sofia/default/4001@13.127.159.248 Action set(on_busy_destination=0)
  433. Dialplan: sofia/default/4001@13.127.159.248 Action set(no_answer_flag=1)
  434. Dialplan: sofia/default/4001@13.127.159.248 Action set(no_answer_destination=0)
  435. Dialplan: sofia/default/4001@13.127.159.248 Action set(not_register_flag=1)
  436. Dialplan: sofia/default/4001@13.127.159.248 Action set(not_register_destination=0)
  437. Dialplan: sofia/default/4001@13.127.159.248 Action set(opensips_flag=1)
  438. Dialplan: sofia/default/4001@13.127.159.248 Action set(variable_sip_to_host=dhaval.dhaval.astppbilling.org)
  439. Dialplan: sofia/default/4001@13.127.159.248 Action set(opensips_domain=127.0.0.1)
  440. Dialplan: sofia/default/4001@13.127.159.248 Action set(leg_timeout=60)
  441. Dialplan: sofia/default/4001@13.127.159.248 Action set(userinfo_id=4)
  442. Dialplan: sofia/default/4001@13.127.159.248 Action set(sip_destination_number=1100)
  443. Dialplan: sofia/default/4001@13.127.159.248 Action set(did_number=1100)
  444. Dialplan: sofia/default/4001@13.127.159.248 Action set(user_domain=dhaval.dhaval.astppbilling.org)
  445. Dialplan: sofia/default/4001@13.127.159.248 Action lua(astpp/lib/pbx/astpp-sipdevice-routing.lua)
  446. Dialplan: sofia/default/4001@13.127.159.248 Action set(on_busy_flag=1)
  447. Dialplan: sofia/default/4001@13.127.159.248 Action set(on_busy_destination=0)
  448. Dialplan: sofia/default/4001@13.127.159.248 Action set(no_answer_flag=1)
  449. Dialplan: sofia/default/4001@13.127.159.248 Action set(no_answer_destination=0)
  450. Dialplan: sofia/default/4001@13.127.159.248 Action set(not_register_flag=1)
  451. Dialplan: sofia/default/4001@13.127.159.248 Action set(not_register_destination=0)
  452. Dialplan: sofia/default/4001@13.127.159.248 Action set(opensips_flag=1)
  453. Dialplan: sofia/default/4001@13.127.159.248 Action set(variable_sip_to_host=dhaval.dhaval.astppbilling.org)
  454. Dialplan: sofia/default/4001@13.127.159.248 Action set(opensips_domain=127.0.0.1)
  455. Dialplan: sofia/default/4001@13.127.159.248 Action set(leg_timeout=60)
  456. Dialplan: sofia/default/4001@13.127.159.248 Action set(userinfo_id=4)
  457. Dialplan: sofia/default/4001@13.127.159.248 Action set(sip_destination_number=1100)
  458. Dialplan: sofia/default/4001@13.127.159.248 Action set(destination_number=123)
  459. Dialplan: sofia/default/4001@13.127.159.248 Action set(did_number=123)
  460. Dialplan: sofia/default/4001@13.127.159.248 Action set(user_domain=dhaval.dhaval.astppbilling.org)
  461. Dialplan: sofia/default/4001@13.127.159.248 Action lua(astpp/lib/pbx/astpp-sipdevice-routing.lua)
  462. |--- Dialplan: Processing recursive conditions level:1 [123_recur_1] require-nested=TRUE
  463. |--- Dialplan: sofia/default/4001@13.127.159.248 Regex (FAIL) [123_recur_1] ${cond(${user_data 1100@${domain_name} param vm-enabled} == true ? YES : NO)}(-ERR) =~ /^YES$/ break=on-false
  464. |--- Dialplan: sofia/default/4001@13.127.159.248 ANTI-Action hangup(${originate_disposition})
  465. 2021-02-23 05:06:37.266654 [DEBUG] switch_core_state_machine.c:287 (sofia/default/4001@13.127.159.248) State Change CS_ROUTING -> CS_EXECUTE
  466. 2021-02-23 05:06:37.266654 [DEBUG] switch_core_state_machine.c:644 (sofia/default/4001@13.127.159.248) State ROUTING going to sleep
  467. 2021-02-23 05:06:37.266654 [DEBUG] switch_core_state_machine.c:585 (sofia/default/4001@13.127.159.248) Running State Change CS_EXECUTE (Cur 1 Tot 45)
  468. 2021-02-23 05:06:37.266654 [DEBUG] switch_core_state_machine.c:651 (sofia/default/4001@13.127.159.248) State EXECUTE
  469. 2021-02-23 05:06:37.266654 [DEBUG] mod_sofia.c:209 sofia/default/4001@13.127.159.248 SOFIA EXECUTE
  470. 2021-02-23 05:06:37.266654 [DEBUG] switch_core_state_machine.c:329 sofia/default/4001@13.127.159.248 Standard EXECUTE
  471. EXECUTE [depth=0] sofia/default/4001@13.127.159.248 set(effective_destination_number=123)
  472. 2021-02-23 05:06:37.266654 [DEBUG] mod_dptools.c:1672 SET sofia/default/4001@13.127.159.248 [effective_destination_number]=[123]
  473. EXECUTE [depth=0] sofia/default/4001@13.127.159.248 set(bridge_pre_execute_bleg_app=sched_hangup)
  474. 2021-02-23 05:06:37.266654 [DEBUG] mod_dptools.c:1672 SET sofia/default/4001@13.127.159.248 [bridge_pre_execute_bleg_app]=[sched_hangup]
  475. EXECUTE [depth=0] sofia/default/4001@13.127.159.248 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  476. 2021-02-23 05:06:37.266654 [DEBUG] mod_dptools.c:1672 SET sofia/default/4001@13.127.159.248 [bridge_pre_execute_bleg_data]=[+6000 normal_clearing]
  477. EXECUTE [depth=0] sofia/default/4001@13.127.159.248 set(callstart=2021-02-23 05:06:36)
  478. 2021-02-23 05:06:37.266654 [DEBUG] mod_dptools.c:1672 SET sofia/default/4001@13.127.159.248 [callstart]=[2021-02-23 05:06:36]
  479. EXECUTE [depth=0] sofia/default/4001@13.127.159.248 set(hangup_after_bridge=true)
  480. 2021-02-23 05:06:37.266654 [DEBUG] mod_dptools.c:1672 SET sofia/default/4001@13.127.159.248 [hangup_after_bridge]=[true]
  481. EXECUTE [depth=0] sofia/default/4001@13.127.159.248 set(continue_on_fail=TRUE)
  482. 2021-02-23 05:06:37.266654 [DEBUG] mod_dptools.c:1672 SET sofia/default/4001@13.127.159.248 [continue_on_fail]=[TRUE]
  483. EXECUTE [depth=0] sofia/default/4001@13.127.159.248 set(account_id=3)
  484. 2021-02-23 05:06:37.266654 [DEBUG] mod_dptools.c:1672 SET sofia/default/4001@13.127.159.248 [account_id]=[3]
  485. EXECUTE [depth=0] sofia/default/4001@13.127.159.248 set(parent_id=0)
  486. 2021-02-23 05:06:37.266654 [DEBUG] mod_dptools.c:1672 SET sofia/default/4001@13.127.159.248 [parent_id]=[0]
  487. EXECUTE [depth=0] sofia/default/4001@13.127.159.248 set(entity_id=3)
  488. 2021-02-23 05:06:37.266654 [DEBUG] mod_dptools.c:1672 SET sofia/default/4001@13.127.159.248 [entity_id]=[3]
  489. EXECUTE [depth=0] sofia/default/4001@13.127.159.248 set(call_processed=internal)
  490. 2021-02-23 05:06:37.266654 [DEBUG] mod_dptools.c:1672 SET sofia/default/4001@13.127.159.248 [call_processed]=[internal]
  491. EXECUTE [depth=0] sofia/default/4001@13.127.159.248 set(call_direction=inbound)
  492. 2021-02-23 05:06:37.266654 [DEBUG] mod_dptools.c:1672 SET sofia/default/4001@13.127.159.248 [call_direction]=[inbound]
  493. EXECUTE [depth=0] sofia/default/4001@13.127.159.248 set(accountname=Tinku bhai)
  494. 2021-02-23 05:06:37.266654 [DEBUG] mod_dptools.c:1672 SET sofia/default/4001@13.127.159.248 [accountname]=[Tinku bhai]
  495. EXECUTE [depth=0] sofia/default/4001@13.127.159.248 set(origination_rates_did=ID:1|CODE:^123.*|DESTINATION:123|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:0|COST:1.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:85|ACCID:4)
  496. 2021-02-23 05:06:37.266654 [DEBUG] mod_dptools.c:1672 SET sofia/default/4001@13.127.159.248 [origination_rates_did]=[ID:1|CODE:^123.*|DESTINATION:123|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:0|COST:1.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:85|ACCID:4]
  497. EXECUTE [depth=0] sofia/default/4001@13.127.159.248 set(origination_rates=0)
  498. 2021-02-23 05:06:37.266654 [DEBUG] mod_dptools.c:1672 SET sofia/default/4001@13.127.159.248 [origination_rates]=[0]
  499. EXECUTE [depth=0] sofia/default/4001@13.127.159.248 set(original_caller_id_name=4001)
  500. 2021-02-23 05:06:37.266654 [DEBUG] mod_dptools.c:1672 SET sofia/default/4001@13.127.159.248 [original_caller_id_name]=[4001]
  501. EXECUTE [depth=0] sofia/default/4001@13.127.159.248 set(original_caller_id_number=4001)
  502. 2021-02-23 05:06:37.266654 [DEBUG] mod_dptools.c:1672 SET sofia/default/4001@13.127.159.248 [original_caller_id_number]=[4001]
  503. EXECUTE [depth=0] sofia/default/4001@13.127.159.248 set(effective_caller_id_name=4001)
  504. 2021-02-23 05:06:37.266654 [DEBUG] mod_dptools.c:1672 SET sofia/default/4001@13.127.159.248 [effective_caller_id_name]=[4001]
  505. EXECUTE [depth=0] sofia/default/4001@13.127.159.248 set(effective_caller_id_number=4001)
  506. 2021-02-23 05:06:37.266654 [DEBUG] mod_dptools.c:1672 SET sofia/default/4001@13.127.159.248 [effective_caller_id_number]=[4001]
  507. EXECUTE [depth=0] sofia/default/4001@13.127.159.248 set(receiver_accid=4)
  508. 2021-02-23 05:06:37.266654 [DEBUG] mod_dptools.c:1672 SET sofia/default/4001@13.127.159.248 [receiver_accid]=[4]
  509. EXECUTE [depth=0] sofia/default/4001@13.127.159.248 export(domain_name=dhaval.dhaval.astppbilling.org)
  510. 2021-02-23 05:06:37.266654 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [domain_name]=[dhaval.dhaval.astppbilling.org]
  511. EXECUTE [depth=0] sofia/default/4001@13.127.159.248 export(sip_to_host=dhaval.dhaval.astppbilling.org)
  512. 2021-02-23 05:06:37.266654 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [sip_to_host]=[dhaval.dhaval.astppbilling.org]
  513. EXECUTE [depth=0] sofia/default/4001@13.127.159.248 export(presence_data=x|||default(3673942894)|||^123.* // 123 // 1.00000||||||DID|||13.127.159.248)
  514. 2021-02-23 05:06:37.266654 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [presence_data]=[x|||default(3673942894)|||^123.* // 123 // 1.00000||||||DID|||13.127.159.248]
  515. EXECUTE [depth=0] sofia/default/4001@13.127.159.248 export(call_type=0)
  516. 2021-02-23 05:06:37.266654 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [call_type]=[0]
  517. EXECUTE [depth=0] sofia/default/4001@13.127.159.248 set(calltype=DID-LOCAL)
  518. 2021-02-23 05:06:37.266654 [DEBUG] mod_dptools.c:1672 SET sofia/default/4001@13.127.159.248 [calltype]=[DID-LOCAL]
  519. EXECUTE [depth=0] sofia/default/4001@13.127.159.248 db(insert/pickup_any_group_/1100/fcb7d2de-098a-4d7e-a9c0-98a58d2a08fb)
  520. EXECUTE [depth=0] sofia/default/4001@13.127.159.248 set(dialed_extension=transfer_call)
  521. 2021-02-23 05:06:37.266654 [DEBUG] mod_dptools.c:1672 SET sofia/default/4001@13.127.159.248 [dialed_extension]=[transfer_call]
  522. EXECUTE [depth=0] sofia/default/4001@13.127.159.248 export(dialed_extension=transfer_call)
  523. 2021-02-23 05:06:37.266654 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [dialed_extension]=[transfer_call]
  524. EXECUTE [depth=0] sofia/default/4001@13.127.159.248 bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  525. 2021-02-23 05:06:37.266654 [INFO] switch_ivr_async.c:4457 Bound B-Leg: *3 execute_extension::transfer_call_3 XML default
  526. EXECUTE [depth=0] sofia/default/4001@13.127.159.248 bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  527. 2021-02-23 05:06:37.266654 [INFO] switch_ivr_async.c:4457 Bound B-Leg: *2 execute_extension::transfer_call_2 XML default
  528. EXECUTE [depth=0] sofia/default/4001@13.127.159.248 set(hangup_after_bridge=true)
  529. 2021-02-23 05:06:37.266654 [DEBUG] mod_dptools.c:1672 SET sofia/default/4001@13.127.159.248 [hangup_after_bridge]=[true]
  530. EXECUTE [depth=0] sofia/default/4001@13.127.159.248 export(did_user_domain=dhaval.dhaval.astppbilling.org)
  531. 2021-02-23 05:06:37.266654 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [did_user_domain]=[dhaval.dhaval.astppbilling.org]
  532. EXECUTE [depth=0] sofia/default/4001@13.127.159.248 db(insert/pickup_any_group_/1100/fcb7d2de-098a-4d7e-a9c0-98a58d2a08fb)
  533. EXECUTE [depth=0] sofia/default/4001@13.127.159.248 set(dialed_extension=transfer_call)
  534. 2021-02-23 05:06:37.266654 [DEBUG] mod_dptools.c:1672 SET sofia/default/4001@13.127.159.248 [dialed_extension]=[transfer_call]
  535. EXECUTE [depth=0] sofia/default/4001@13.127.159.248 export(dialed_extension=transfer_call)
  536. 2021-02-23 05:06:37.266654 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [dialed_extension]=[transfer_call]
  537. EXECUTE [depth=0] sofia/default/4001@13.127.159.248 bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  538. 2021-02-23 05:06:37.266654 [INFO] switch_ivr_async.c:4457 Bound B-Leg: *3 execute_extension::transfer_call_3 XML default
  539. EXECUTE [depth=0] sofia/default/4001@13.127.159.248 bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  540. 2021-02-23 05:06:37.266654 [INFO] switch_ivr_async.c:4457 Bound B-Leg: *2 execute_extension::transfer_call_2 XML default
  541. EXECUTE [depth=0] sofia/default/4001@13.127.159.248 set(transfer_ringback=local_stream://moh)
  542. 2021-02-23 05:06:37.266654 [DEBUG] mod_dptools.c:1672 SET sofia/default/4001@13.127.159.248 [transfer_ringback]=[local_stream://moh]
  543. EXECUTE [depth=0] sofia/default/4001@13.127.159.248 set(hangup_after_bridge=true)
  544. 2021-02-23 05:06:37.266654 [DEBUG] mod_dptools.c:1672 SET sofia/default/4001@13.127.159.248 [hangup_after_bridge]=[true]
  545. EXECUTE [depth=0] sofia/default/4001@13.127.159.248 bridge({sip_invite_params=user=LOCAL,ignore_early_media=true,sip_h_P-call_type='custom_forward',sip_h_P-Accountcode=4}[leg_timeout=60 ] user/1100@dhaval.dhaval.astppbilling.org)
  546. 2021-02-23 05:06:37.266654 [DEBUG] switch_channel.c:1264 sofia/default/4001@13.127.159.248 EXPORTING[export_vars] [domain_name]=[dhaval.dhaval.astppbilling.org] to event
  547. 2021-02-23 05:06:37.266654 [DEBUG] switch_channel.c:1264 sofia/default/4001@13.127.159.248 EXPORTING[export_vars] [sip_to_host]=[dhaval.dhaval.astppbilling.org] to event
  548. 2021-02-23 05:06:37.266654 [DEBUG] switch_channel.c:1264 sofia/default/4001@13.127.159.248 EXPORTING[export_vars] [presence_data]=[x|||default(3673942894)|||^123.* // 123 // 1.00000||||||DID|||13.127.159.248] to event
  549. 2021-02-23 05:06:37.266654 [DEBUG] switch_channel.c:1264 sofia/default/4001@13.127.159.248 EXPORTING[export_vars] [call_type]=[0] to event
  550. 2021-02-23 05:06:37.266654 [DEBUG] switch_channel.c:1264 sofia/default/4001@13.127.159.248 EXPORTING[export_vars] [dialed_extension]=[transfer_call] to event
  551. 2021-02-23 05:06:37.266654 [DEBUG] switch_channel.c:1264 sofia/default/4001@13.127.159.248 EXPORTING[export_vars] [did_user_domain]=[dhaval.dhaval.astppbilling.org] to event
  552. 2021-02-23 05:06:37.266654 [DEBUG] switch_channel.c:1264 sofia/default/4001@13.127.159.248 EXPORTING[export_vars] [dialed_extension]=[transfer_call] to event
  553. 2021-02-23 05:06:37.266654 [DEBUG] switch_ivr_originate.c:2242 Parsing global variables
  554. 2021-02-23 05:06:37.266654 [DEBUG] switch_ivr_originate.c:2804 Parsing session specific variables
  555. 2021-02-23 05:06:37.266654 [DEBUG] switch_channel.c:1264 sofia/default/4001@13.127.159.248 EXPORTING[export_vars] [domain_name]=[dhaval.dhaval.astppbilling.org] to event
  556. 2021-02-23 05:06:37.266654 [DEBUG] switch_channel.c:1264 sofia/default/4001@13.127.159.248 EXPORTING[export_vars] [sip_to_host]=[dhaval.dhaval.astppbilling.org] to event
  557. 2021-02-23 05:06:37.266654 [DEBUG] switch_channel.c:1264 sofia/default/4001@13.127.159.248 EXPORTING[export_vars] [presence_data]=[x|||default(3673942894)|||^123.* // 123 // 1.00000||||||DID|||13.127.159.248] to event
  558. 2021-02-23 05:06:37.266654 [DEBUG] switch_channel.c:1264 sofia/default/4001@13.127.159.248 EXPORTING[export_vars] [call_type]=[0] to event
  559. 2021-02-23 05:06:37.266654 [DEBUG] switch_channel.c:1264 sofia/default/4001@13.127.159.248 EXPORTING[export_vars] [dialed_extension]=[transfer_call] to event
  560. 2021-02-23 05:06:37.266654 [DEBUG] switch_channel.c:1264 sofia/default/4001@13.127.159.248 EXPORTING[export_vars] [did_user_domain]=[dhaval.dhaval.astppbilling.org] to event
  561. 2021-02-23 05:06:37.266654 [DEBUG] switch_channel.c:1264 sofia/default/4001@13.127.159.248 EXPORTING[export_vars] [dialed_extension]=[transfer_call] to event
  562. 2021-02-23 05:06:37.266654 [DEBUG] switch_ivr_originate.c:2242 Parsing global variables
  563. 2021-02-23 05:06:37.266654 [NOTICE] switch_channel.c:1118 New Channel sofia/default/1100@117.247.91.162 [2065a2d7-bb32-420c-8eb4-c052d29c2bdc]
  564. 2021-02-23 05:06:37.266654 [DEBUG] mod_sofia.c:5089 (sofia/default/1100@117.247.91.162) State Change CS_NEW -> CS_INIT
  565. 2021-02-23 05:06:37.266654 [DEBUG] switch_ivr_originate.c:3111 sofia/default/1100@117.247.91.162 Setting leg timeout to 60
  566. 2021-02-23 05:06:37.266654 [DEBUG] switch_core_state_machine.c:585 (sofia/default/1100@117.247.91.162) Running State Change CS_INIT (Cur 2 Tot 46)
  567. 2021-02-23 05:06:37.266654 [DEBUG] switch_core_state_machine.c:628 (sofia/default/1100@117.247.91.162) State INIT
  568. 2021-02-23 05:06:37.266654 [DEBUG] mod_sofia.c:93 sofia/default/1100@117.247.91.162 SOFIA INIT
  569. 2021-02-23 05:06:37.266654 [DEBUG] sofia_glue.c:1587 sip:1100@117.247.91.162:5060;transport=udp Setting proxy route to sofia/default/1100@117.247.91.162
  570. 2021-02-23 05:06:37.266654 [DEBUG] sofia_glue.c:1618 sofia/default/1100@117.247.91.162 sending invite version: 1.10.5 -release-17-25569c1631 64bit
  571. Local SDP:
  572. v=0
  573. o=FreeSWITCH 1614025697 1614025698 IN IP4 18.221.51.90
  574. s=FreeSWITCH
  575. c=IN IP4 18.221.51.90
  576. t=0 0
  577. m=audio 31100 RTP/AVP 8 101
  578. a=rtpmap:8 PCMA/8000
  579. a=rtpmap:101 telephone-event/8000
  580. a=fmtp:101 0-16
  581. a=ptime:20
  582. a=sendrecv
  583.  
  584. 2021-02-23 05:06:37.266654 [DEBUG] switch_core_state_machine.c:40 sofia/default/1100@117.247.91.162 Standard INIT
  585. 2021-02-23 05:06:37.266654 [DEBUG] switch_core_state_machine.c:48 (sofia/default/1100@117.247.91.162) State Change CS_INIT -> CS_ROUTING
  586. 2021-02-23 05:06:37.266654 [DEBUG] switch_core_state_machine.c:628 (sofia/default/1100@117.247.91.162) State INIT going to sleep
  587. 2021-02-23 05:06:37.266654 [DEBUG] switch_core_state_machine.c:585 (sofia/default/1100@117.247.91.162) Running State Change CS_ROUTING (Cur 2 Tot 46)
  588. 2021-02-23 05:06:37.266654 [DEBUG] sofia.c:7326 Channel sofia/default/1100@117.247.91.162 entering state [calling][0]
  589. 2021-02-23 05:06:37.266654 [DEBUG] switch_core_state_machine.c:644 (sofia/default/1100@117.247.91.162) State ROUTING
  590. 2021-02-23 05:06:37.266654 [DEBUG] mod_sofia.c:154 sofia/default/1100@117.247.91.162 SOFIA ROUTING
  591. 2021-02-23 05:06:37.266654 [DEBUG] switch_ivr_originate.c:67 (sofia/default/1100@117.247.91.162) State Change CS_ROUTING -> CS_CONSUME_MEDIA
  592. 2021-02-23 05:06:37.266654 [DEBUG] switch_core_state_machine.c:644 (sofia/default/1100@117.247.91.162) State ROUTING going to sleep
  593. 2021-02-23 05:06:37.286656 [DEBUG] switch_core_state_machine.c:585 (sofia/default/1100@117.247.91.162) Running State Change CS_CONSUME_MEDIA (Cur 2 Tot 46)
  594. 2021-02-23 05:06:37.286656 [DEBUG] switch_core_state_machine.c:663 (sofia/default/1100@117.247.91.162) State CONSUME_MEDIA
  595. 2021-02-23 05:06:37.286656 [DEBUG] switch_core_state_machine.c:663 (sofia/default/1100@117.247.91.162) State CONSUME_MEDIA going to sleep
  596. 2021-02-23 05:06:37.646677 [DEBUG] sofia.c:7326 Channel sofia/default/1100@117.247.91.162 entering state [proceeding][180]
  597. 2021-02-23 05:06:37.646677 [NOTICE] sofia.c:7437 Ring-Ready sofia/default/1100@117.247.91.162!
  598. 2021-02-23 05:06:37.646677 [DEBUG] switch_channel.c:3437 (sofia/default/1100@117.247.91.162) Callstate Change DOWN -> RINGING
  599. 2021-02-23 05:06:37.666681 [NOTICE] mod_sofia.c:2498 Ring-Ready sofia/default/4001@13.127.159.248!
  600. 2021-02-23 05:06:37.666681 [DEBUG] sofia.c:7326 Channel sofia/default/4001@13.127.159.248 entering state [early][180]
  601. 2021-02-23 05:06:37.666681 [NOTICE] switch_ivr_originate.c:556 Ring Ready sofia/default/4001@13.127.159.248!
  602. 2021-02-23 05:06:39.126691 [DEBUG] sofia.c:7326 Channel sofia/default/1100@117.247.91.162 entering state [completing][200]
  603. 2021-02-23 05:06:39.126691 [DEBUG] sofia.c:7336 Remote SDP:
  604. v=0
  605. o=1100 3152 2131 IN IP4 192.168.1.46
  606. s=Talk
  607. c=IN IP4 192.168.1.46
  608. t=0 0
  609. m=audio 7078 RTP/AVP 8 101
  610. a=rtpmap:101 telephone-event/8000
  611.  
  612. 2021-02-23 05:06:39.146804 [DEBUG] sofia.c:7326 Channel sofia/default/1100@117.247.91.162 entering state [ready][200]
  613. 2021-02-23 05:06:39.146804 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  614. 2021-02-23 05:06:39.146804 [DEBUG] switch_core_media.c:5649 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  615. 2021-02-23 05:06:39.146804 [DEBUG] switch_core_media.c:5510 Set telephone-event payload to 101@8000
  616. 2021-02-23 05:06:39.146804 [DEBUG] switch_core_media.c:3839 Set Codec sofia/default/1100@117.247.91.162 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  617. 2021-02-23 05:06:39.146804 [DEBUG] switch_core_codec.c:111 sofia/default/1100@117.247.91.162 Original read codec set to PCMA:8
  618. 2021-02-23 05:06:39.146804 [DEBUG] switch_core_media.c:5853 Set telephone-event payload to 101@8000
  619. 2021-02-23 05:06:39.146804 [DEBUG] switch_core_media.c:5911 sofia/default/1100@117.247.91.162 Set 2833 dtmf send payload to 101 recv payload to 101
  620. 2021-02-23 05:06:39.146804 [DEBUG] switch_core_media.c:8663 AUDIO RTP [sofia/default/1100@117.247.91.162] 172.31.23.227 port 31100 -> 192.168.1.46 port 7078 codec: 8 ms: 20
  621. 2021-02-23 05:06:39.146804 [DEBUG] switch_rtp.c:4450 Starting timer [soft] 160 bytes per 20ms
  622. 2021-02-23 05:06:39.146804 [DEBUG] switch_core_media.c:8977 sofia/default/1100@117.247.91.162 Set 2833 dtmf send payload to 101
  623. 2021-02-23 05:06:39.146804 [DEBUG] switch_core_media.c:8984 sofia/default/1100@117.247.91.162 Set 2833 dtmf receive payload to 101
  624. 2021-02-23 05:06:39.146804 [DEBUG] switch_core_media.c:9007 sofia/default/1100@117.247.91.162 Set rtp dtmf delay to 40
  625. 2021-02-23 05:06:39.146804 [NOTICE] sofia.c:8504 Channel [sofia/default/1100@117.247.91.162] has been answered
  626. 2021-02-23 05:06:39.146804 [DEBUG] switch_channel.c:3865 (sofia/default/1100@117.247.91.162) Callstate Change RINGING -> ACTIVE
  627. 2021-02-23 05:06:39.146804 [DEBUG] switch_core_media.c:8663 AUDIO RTP [sofia/default/4001@13.127.159.248] 172.31.23.227 port 29518 -> 13.127.159.248 port 25716 codec: 8 ms: 20
  628. 2021-02-23 05:06:39.146804 [DEBUG] switch_rtp.c:4450 Starting timer [soft] 160 bytes per 20ms
  629. 2021-02-23 05:06:39.146804 [DEBUG] switch_core_media.c:8977 sofia/default/4001@13.127.159.248 Set 2833 dtmf send payload to 101
  630. 2021-02-23 05:06:39.146804 [DEBUG] switch_core_media.c:8984 sofia/default/4001@13.127.159.248 Set 2833 dtmf receive payload to 101
  631. 2021-02-23 05:06:39.146804 [DEBUG] switch_core_media.c:9007 sofia/default/4001@13.127.159.248 Set rtp dtmf delay to 40
  632. 2021-02-23 05:06:39.146804 [DEBUG] mod_sofia.c:898 Local SDP sofia/default/4001@13.127.159.248:
  633. v=0
  634. o=FreeSWITCH 1614027281 1614027282 IN IP4 18.221.51.90
  635. s=FreeSWITCH
  636. c=IN IP4 18.221.51.90
  637. t=0 0
  638. m=audio 29518 RTP/AVP 8 101
  639. a=rtpmap:8 PCMA/8000
  640. a=rtpmap:101 telephone-event/8000
  641. a=fmtp:101 0-16
  642. a=ptime:20
  643. a=sendrecv
  644.  
  645. 2021-02-23 05:06:39.146804 [DEBUG] sofia.c:7326 Channel sofia/default/4001@13.127.159.248 entering state [completed][200]
  646. 2021-02-23 05:06:39.146804 [NOTICE] switch_ivr_originate.c:3794 Channel [sofia/default/4001@13.127.159.248] has been answered
  647. 2021-02-23 05:06:39.146804 [DEBUG] switch_channel.c:3865 (sofia/default/4001@13.127.159.248) Callstate Change RINGING -> ACTIVE
  648. 2021-02-23 05:06:39.146804 [DEBUG] switch_ivr_originate.c:3852 Originate Resulted in Success: [sofia/default/1100@117.247.91.162]
  649. 2021-02-23 05:06:39.146804 [DEBUG] switch_ivr_originate.c:3111 sofia/default/1100@117.247.91.162 Setting leg timeout to 60
  650. 2021-02-23 05:06:39.146804 [DEBUG] switch_ivr_originate.c:3852 Originate Resulted in Success: [sofia/default/1100@117.247.91.162]
  651. 2021-02-23 05:06:39.146804 [DEBUG] switch_ivr_bridge.c:1793 (sofia/default/1100@117.247.91.162) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA
  652. 2021-02-23 05:06:39.146804 [DEBUG] switch_core_state_machine.c:585 (sofia/default/1100@117.247.91.162) Running State Change CS_EXCHANGE_MEDIA (Cur 2 Tot 46)
  653. 2021-02-23 05:06:39.146804 [DEBUG] switch_core_state_machine.c:654 (sofia/default/1100@117.247.91.162) State EXCHANGE_MEDIA
  654. 2021-02-23 05:06:39.146804 [DEBUG] mod_sofia.c:656 SOFIA EXCHANGE_MEDIA
  655. 2021-02-23 05:06:39.326684 [DEBUG] switch_ivr_bridge.c:655 sofia/default/1100@117.247.91.162 Bridge execute app sched_hangup(+6000 normal_clearing)
  656. 2021-02-23 05:06:39.326684 [DEBUG] sofia.c:7326 Channel sofia/default/4001@13.127.159.248 entering state [ready][200]
  657. 2021-02-23 05:06:39.366681 [DEBUG] switch_ivr.c:632 sofia/default/1100@117.247.91.162 Command Execute [depth=0] sched_hangup(+6000 normal_clearing)
  658. EXECUTE [depth=0] sofia/default/1100@117.247.91.162 sched_hangup(+6000 normal_clearing)
  659. 2021-02-23 05:06:39.366681 [DEBUG] switch_scheduler.c:252 Added task 15 switch_ivr_schedule_hangup (2065a2d7-bb32-420c-8eb4-c052d29c2bdc) to run at 1614062799
  660. 2021-02-23 05:06:39.426681 [INFO] switch_rtp.c:7719 Auto Changing audio port from 192.168.1.46:7078 to 117.247.91.162:7078
  661. 2021-02-23 05:06:39.446681 [DEBUG] switch_rtp.c:7759 Correct audio ip/port confirmed.
  662. 2021-02-23 05:06:41.646676 [NOTICE] sofia.c:1089 Hangup sofia/default/1100@117.247.91.162 [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]
  663. 2021-02-23 05:06:41.646676 [DEBUG] switch_ivr_bridge.c:912 BRIDGE THREAD DONE [sofia/default/1100@117.247.91.162]
  664. 2021-02-23 05:06:41.646676 [DEBUG] switch_core_state_machine.c:654 (sofia/default/1100@117.247.91.162) State EXCHANGE_MEDIA going to sleep
  665. 2021-02-23 05:06:41.646676 [DEBUG] switch_core_state_machine.c:585 (sofia/default/1100@117.247.91.162) Running State Change CS_HANGUP (Cur 2 Tot 46)
  666. 2021-02-23 05:06:41.646676 [DEBUG] switch_core_state_machine.c:848 (sofia/default/1100@117.247.91.162) Callstate Change ACTIVE -> HANGUP
  667. 2021-02-23 05:06:41.646676 [DEBUG] switch_core_state_machine.c:850 (sofia/default/1100@117.247.91.162) State HANGUP
  668. 2021-02-23 05:06:41.646676 [DEBUG] mod_sofia.c:453 Channel sofia/default/1100@117.247.91.162 hanging up, cause: NORMAL_CLEARING
  669. 2021-02-23 05:06:41.646676 [DEBUG] switch_core_state_machine.c:60 sofia/default/1100@117.247.91.162 Standard HANGUP, cause: NORMAL_CLEARING
  670. 2021-02-23 05:06:41.646676 [DEBUG] switch_core_state_machine.c:850 (sofia/default/1100@117.247.91.162) State HANGUP going to sleep
  671. 2021-02-23 05:06:41.646676 [DEBUG] switch_core_state_machine.c:620 (sofia/default/1100@117.247.91.162) State Change CS_HANGUP -> CS_REPORTING
  672. 2021-02-23 05:06:41.646676 [DEBUG] switch_core_state_machine.c:585 (sofia/default/1100@117.247.91.162) Running State Change CS_REPORTING (Cur 2 Tot 46)
  673. 2021-02-23 05:06:41.646676 [DEBUG] switch_core_state_machine.c:936 (sofia/default/1100@117.247.91.162) State REPORTING
  674. 2021-02-23 05:06:41.646676 [INFO] mod_json_cdr.c:271 Process [2065a2d7-bb32-420c-8eb4-c052d29c2bdc.cdr.json]
  675. 2021-02-23 05:06:41.646676 [DEBUG] switch_ivr_bridge.c:820 sofia/default/1100@117.247.91.162 ending bridge by request from write function
  676. 2021-02-23 05:06:41.646676 [DEBUG] switch_ivr_bridge.c:912 BRIDGE THREAD DONE [sofia/default/4001@13.127.159.248]
  677. 2021-02-23 05:06:41.646676 [DEBUG] switch_ivr_bridge.c:1892 sofia/default/1100@117.247.91.162 skip receive message [UNBRIDGE] (channel is hungup already)
  678. 2021-02-23 05:06:41.646676 [NOTICE] switch_ivr_bridge.c:1944 Hangup sofia/default/4001@13.127.159.248 [CS_EXECUTE] [NORMAL_CLEARING]
  679. 2021-02-23 05:06:41.646676 [DEBUG] switch_core_session.c:2905 sofia/default/4001@13.127.159.248 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
  680. 2021-02-23 05:06:41.646676 [DEBUG] switch_core_state_machine.c:651 (sofia/default/4001@13.127.159.248) State EXECUTE going to sleep
  681. 2021-02-23 05:06:41.646676 [DEBUG] switch_core_state_machine.c:585 (sofia/default/4001@13.127.159.248) Running State Change CS_HANGUP (Cur 2 Tot 46)
  682. 2021-02-23 05:06:41.646676 [DEBUG] switch_core_state_machine.c:848 (sofia/default/4001@13.127.159.248) Callstate Change ACTIVE -> HANGUP
  683. 2021-02-23 05:06:41.646676 [DEBUG] switch_core_state_machine.c:850 (sofia/default/4001@13.127.159.248) State HANGUP
  684. 2021-02-23 05:06:41.646676 [DEBUG] mod_sofia.c:447 sofia/default/4001@13.127.159.248 Overriding SIP cause 480 with 200 from the other leg
  685. 2021-02-23 05:06:41.646676 [DEBUG] mod_sofia.c:453 Channel sofia/default/4001@13.127.159.248 hanging up, cause: NORMAL_CLEARING
  686. 2021-02-23 05:06:41.646676 [DEBUG] mod_sofia.c:507 Sending BYE to sofia/default/4001@13.127.159.248
  687. 2021-02-23 05:06:41.646676 [DEBUG] switch_core_state_machine.c:60 sofia/default/4001@13.127.159.248 Standard HANGUP, cause: NORMAL_CLEARING
  688. 2021-02-23 05:06:41.646676 [DEBUG] switch_core_state_machine.c:850 (sofia/default/4001@13.127.159.248) State HANGUP going to sleep
  689. 2021-02-23 05:06:41.646676 [DEBUG] switch_core_state_machine.c:620 (sofia/default/4001@13.127.159.248) State Change CS_HANGUP -> CS_REPORTING
  690. 2021-02-23 05:06:41.646676 [DEBUG] switch_core_state_machine.c:585 (sofia/default/4001@13.127.159.248) Running State Change CS_REPORTING (Cur 2 Tot 46)
  691. 2021-02-23 05:06:41.646676 [DEBUG] switch_core_state_machine.c:936 (sofia/default/4001@13.127.159.248) State REPORTING
  692. 2021-02-23 05:06:41.646676 [INFO] mod_json_cdr.c:271 Process [fcb7d2de-098a-4d7e-a9c0-98a58d2a08fb.cdr.json]
  693. 2021-02-23 05:06:41.646676 [DEBUG] switch_core_state_machine.c:174 sofia/default/1100@117.247.91.162 Standard REPORTING, cause: NORMAL_CLEARING
  694. 2021-02-23 05:06:41.646676 [DEBUG] switch_core_state_machine.c:936 (sofia/default/1100@117.247.91.162) State REPORTING going to sleep
  695. 2021-02-23 05:06:41.646676 [DEBUG] switch_core_state_machine.c:611 (sofia/default/1100@117.247.91.162) State Change CS_REPORTING -> CS_DESTROY
  696. 2021-02-23 05:06:41.646676 [DEBUG] switch_core_session.c:1726 Session 46 (sofia/default/1100@117.247.91.162) Locked, Waiting on external entities
  697. 2021-02-23 05:06:41.646676 [NOTICE] switch_core_session.c:1744 Session 46 (sofia/default/1100@117.247.91.162) Ended
  698. 2021-02-23 05:06:41.646676 [NOTICE] switch_core_session.c:1748 Close Channel sofia/default/1100@117.247.91.162 [CS_DESTROY]
  699. 2021-02-23 05:06:41.646676 [DEBUG] switch_core_state_machine.c:739 (sofia/default/1100@117.247.91.162) Running State Change CS_DESTROY (Cur 1 Tot 46)
  700. 2021-02-23 05:06:41.646676 [DEBUG] switch_core_state_machine.c:749 (sofia/default/1100@117.247.91.162) State DESTROY
  701. 2021-02-23 05:06:41.646676 [DEBUG] mod_sofia.c:364 sofia/default/1100@117.247.91.162 SOFIA DESTROY
  702. 2021-02-23 05:06:41.646676 [DEBUG] switch_core_state_machine.c:181 sofia/default/1100@117.247.91.162 Standard DESTROY
  703. 2021-02-23 05:06:41.646676 [DEBUG] switch_core_state_machine.c:749 (sofia/default/1100@117.247.91.162) State DESTROY going to sleep
  704. 2021-02-23 05:06:41.666650 [DEBUG] switch_core_state_machine.c:174 sofia/default/4001@13.127.159.248 Standard REPORTING, cause: NORMAL_CLEARING
  705. 2021-02-23 05:06:41.666650 [DEBUG] switch_core_state_machine.c:936 (sofia/default/4001@13.127.159.248) State REPORTING going to sleep
  706. 2021-02-23 05:06:41.686658 [DEBUG] switch_core_state_machine.c:611 (sofia/default/4001@13.127.159.248) State Change CS_REPORTING -> CS_DESTROY
  707. 2021-02-23 05:06:41.686658 [DEBUG] switch_core_session.c:1726 Session 45 (sofia/default/4001@13.127.159.248) Locked, Waiting on external entities
  708. 2021-02-23 05:06:41.686658 [NOTICE] switch_core_session.c:1744 Session 45 (sofia/default/4001@13.127.159.248) Ended
  709. 2021-02-23 05:06:41.686658 [NOTICE] switch_core_session.c:1748 Close Channel sofia/default/4001@13.127.159.248 [CS_DESTROY]
  710. 2021-02-23 05:06:41.686658 [DEBUG] switch_core_state_machine.c:739 (sofia/default/4001@13.127.159.248) Running State Change CS_DESTROY (Cur 0 Tot 46)
  711. 2021-02-23 05:06:41.686658 [DEBUG] switch_core_state_machine.c:749 (sofia/default/4001@13.127.159.248) State DESTROY
  712. 2021-02-23 05:06:41.686658 [DEBUG] mod_sofia.c:364 sofia/default/4001@13.127.159.248 SOFIA DESTROY
  713. 2021-02-23 05:06:41.686658 [DEBUG] switch_core_state_machine.c:181 sofia/default/4001@13.127.159.248 Standard DESTROY
  714. 2021-02-23 05:06:41.686658 [DEBUG] switch_core_state_machine.c:749 (sofia/default/4001@13.127.159.248) State DESTROY going to sleep
  715. 2021-02-23 05:06:41.866679 [DEBUG] switch_scheduler.c:147 Deleting task 15 switch_ivr_schedule_hangup (2065a2d7-bb32-420c-8eb4-c052d29c2bdc)
  716. 2021-02-23 05:07:56.266680 [WARNING] switch_core_db.c:92 SQLite is BUSY, sane=299 [BEGIN EXCLUSIVE]
  717.