From Akash, 4 Years ago, written in FreeSWITCH.
- view diff
Embed
  1. span style="color: cornflowerblue; font-weight: bold;"> 2019-06-24 08:11:30.295642 [NOTICE] switch_channel.c:1104 New Channel sofia/default/1909834226@165.22.13.168 [330b88fc-9679-11e9-966c-bd5d12ddb142]
  2. 2019-06-24 08:11:30.295642 [DEBUG] switch_core_state_machine.c:584 (sofia/default/1909834226@165.22.13.168) Running State Change CS_NEW (Cur 1 Tot 21)
  3. 2019-06-24 08:11:30.295642 [DEBUG] sofia.c:9873 sofia/default/1909834226@165.22.13.168 receiving invite from 117.247.91.162:62623 version: 1.6.20  64bit
  4. 2019-06-24 08:11:30.295642 [DEBUG] sofia.c:10044 IP 117.247.91.162 Rejected by acl "default". Falling back to Digest auth.
  5. 2019-06-24 08:11:30.295642 [WARNING] sofia_reg.c:1792 SIP auth challenge (INVITE) on sofia profile 'default' for [08001234444@165.22.13.168] from ip 117.247.91.162
  6. 2019-06-24 08:11:30.295642 [DEBUG] switch_core_state_machine.c:603 (sofia/default/1909834226@165.22.13.168) State NEW
  7. 2019-06-24 08:11:30.295642 [DEBUG] sofia.c:2334 detaching session 330b88fc-9679-11e9-966c-bd5d12ddb142
  8. 2019-06-24 08:11:30.495603 [DEBUG] sofia.c:2442 Re-attaching to session 330b88fc-9679-11e9-966c-bd5d12ddb142
  9. 2019-06-24 08:11:30.495603 [DEBUG] sofia.c:9873 sofia/default/1909834226@165.22.13.168 receiving invite from 117.247.91.162:62623 version: 1.6.20  64bit
  10. 2019-06-24 08:11:30.495603 [DEBUG] sofia.c:10044 IP 117.247.91.162 Rejected by acl "default". Falling back to Digest auth.
  11. 2019-06-24 08:11:30.515578 [DEBUG] sofia.c:7084 Channel sofia/default/1909834226@165.22.13.168 entering state [received][100]
  12. 2019-06-24 08:11:30.515578 [DEBUG] sofia.c:7094 Remote SDP:
  13. v=0
  14. o=Z 0 0 IN IP4 117.247.91.162
  15. s=Z
  16. c=IN IP4 117.247.91.162
  17. t=0 0
  18. m=audio 8000 RTP/AVP 3 110 8 0 98 101
  19. a=rtpmap:110 speex/8000
  20. a=rtpmap:98 iLBC/8000
  21. a=fmtp:98 mode=20
  22. a=rtpmap:101 telephone-event/8000
  23. a=fmtp:101 0-15
  24.  
  25. 2019-06-24 08:11:30.515578 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMA:8:8000:20:64000:1]
  26. 2019-06-24 08:11:30.515578 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMU:0:8000:20:64000:1]
  27. 2019-06-24 08:11:30.515578 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [speex:110:8000:20:0:1]/[PCMA:8:8000:20:64000:1]
  28. 2019-06-24 08:11:30.515578 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [speex:110:8000:20:0:1]/[PCMU:0:8000:20:64000:1]
  29. 2019-06-24 08:11:30.515578 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  30. 2019-06-24 08:11:30.515578 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  31. 2019-06-24 08:11:30.515578 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  32. 2019-06-24 08:11:30.515578 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  33. 2019-06-24 08:11:30.515578 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  34. 2019-06-24 08:11:30.515578 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  35. 2019-06-24 08:11:30.515578 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [iLBC:98:8000:30:0:1]/[PCMA:8:8000:20:64000:1]
  36. 2019-06-24 08:11:30.515578 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [iLBC:98:8000:30:0:1]/[PCMU:0:8000:20:64000:1]
  37. 2019-06-24 08:11:30.515578 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  38. 2019-06-24 08:11:30.515578 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/1909834226@165.22.13.168 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  39. 2019-06-24 08:11:30.515578 [DEBUG] switch_core_codec.c:111 sofia/default/1909834226@165.22.13.168 Original read codec set to PCMA:8
  40. 2019-06-24 08:11:30.515578 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  41. 2019-06-24 08:11:30.515578 [DEBUG] switch_core_media.c:4767 sofia/default/1909834226@165.22.13.168 Set 2833 dtmf send payload to 101 recv payload to 101
  42. 2019-06-24 08:11:30.515578 [DEBUG] sofia.c:7507 (sofia/default/1909834226@165.22.13.168) State Change CS_NEW -> CS_INIT
  43. 2019-06-24 08:11:30.515578 [DEBUG] switch_core_state_machine.c:584 (sofia/default/1909834226@165.22.13.168) Running State Change CS_INIT (Cur 1 Tot 21)
  44. 2019-06-24 08:11:30.515578 [DEBUG] switch_core_state_machine.c:627 (sofia/default/1909834226@165.22.13.168) State INIT
  45. 2019-06-24 08:11:30.515578 [DEBUG] mod_sofia.c:90 sofia/default/1909834226@165.22.13.168 SOFIA INIT
  46. 2019-06-24 08:11:30.515578 [DEBUG] switch_core_state_machine.c:40 sofia/default/1909834226@165.22.13.168 Standard INIT
  47. 2019-06-24 08:11:30.515578 [DEBUG] switch_core_state_machine.c:48 (sofia/default/1909834226@165.22.13.168) State Change CS_INIT -> CS_ROUTING
  48. 2019-06-24 08:11:30.515578 [DEBUG] switch_core_state_machine.c:627 (sofia/default/1909834226@165.22.13.168) State INIT going to sleep
  49. 2019-06-24 08:11:30.515578 [DEBUG] switch_core_state_machine.c:584 (sofia/default/1909834226@165.22.13.168) Running State Change CS_ROUTING (Cur 1 Tot 21)
  50. 2019-06-24 08:11:30.515578 [DEBUG] switch_channel.c:2249 (sofia/default/1909834226@165.22.13.168) Callstate Change DOWN -> RINGING
  51. 2019-06-24 08:11:30.515578 [DEBUG] switch_core_state_machine.c:643 (sofia/default/1909834226@165.22.13.168) State ROUTING
  52. 2019-06-24 08:11:30.515578 [DEBUG] mod_sofia.c:143 sofia/default/1909834226@165.22.13.168 SOFIA ROUTING
  53. 2019-06-24 08:11:30.515578 [DEBUG] switch_core_state_machine.c:236 sofia/default/1909834226@165.22.13.168 Standard ROUTING
  54. 2019-06-24 08:11:30.515578 [INFO] mod_dialplan_xml.c:637 Processing 1909834226 <1909834226>->08001234444 in context default
  55. 2019-06-24 08:11:30.515578 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fc61c133ce0 Connected.
  56. 2019-06-24 08:11:30.515578 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  57. 2019-06-24 08:11:30.515578 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  58. 2019-06-24 08:11:30.536112 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : 08001234444
  59. 2019-06-24 08:11:30.536112 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '08001234444' AND status=0 limit 1
  60. 2019-06-24 08:11:30.536112 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Generated XML:
  61. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  62. <document type="freeswitch/xml">
  63. <section name="dialplan" description="ASTPP Dialplan">
  64. <context name="default">
  65. <extension name="08001234444">
  66. <condition field="destination_number" expression="08001234444">
  67. <action application="log" data="INFO ASTPP - Calling Card Call"/>
  68. <action application="answer"/>
  69. <action application="sleep" data="2000"/>
  70. <action application="lua" data="astpp-callingcards.lua"/>
  71. </condition>
  72. </extension>
  73. </context>
  74. </section>
  75. </document>
  76. 2019-06-24 08:11:30.536112 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fc61c133ce0 released.
  77. Dialplan: sofia/default/1909834226@165.22.13.168 parsing [default->08001234444] continue=false
  78. Dialplan: sofia/default/1909834226@165.22.13.168 Regex (PASS) [08001234444] destination_number(08001234444) =~ /08001234444/ break=on-false
  79. Dialplan: sofia/default/1909834226@165.22.13.168 Action log(INFO ASTPP - Calling Card Call)
  80. Dialplan: sofia/default/1909834226@165.22.13.168 Action answer()
  81. Dialplan: sofia/default/1909834226@165.22.13.168 Action sleep(2000)
  82. Dialplan: sofia/default/1909834226@165.22.13.168 Action lua(astpp-callingcards.lua)
  83. 2019-06-24 08:11:30.536112 [DEBUG] switch_core_state_machine.c:286 (sofia/default/1909834226@165.22.13.168) State Change CS_ROUTING -> CS_EXECUTE
  84. 2019-06-24 08:11:30.536112 [DEBUG] switch_core_state_machine.c:643 (sofia/default/1909834226@165.22.13.168) State ROUTING going to sleep
  85. 2019-06-24 08:11:30.536112 [DEBUG] switch_core_state_machine.c:584 (sofia/default/1909834226@165.22.13.168) Running State Change CS_EXECUTE (Cur 1 Tot 21)
  86. 2019-06-24 08:11:30.536112 [DEBUG] switch_core_state_machine.c:650 (sofia/default/1909834226@165.22.13.168) State EXECUTE
  87. 2019-06-24 08:11:30.536112 [DEBUG] mod_sofia.c:198 sofia/default/1909834226@165.22.13.168 SOFIA EXECUTE
  88. 2019-06-24 08:11:30.536112 [DEBUG] switch_core_state_machine.c:328 sofia/default/1909834226@165.22.13.168 Standard EXECUTE
  89. EXECUTE sofia/default/1909834226@165.22.13.168 log(INFO ASTPP - Calling Card Call)
  90. 2019-06-24 08:11:30.536112 [INFO] mod_dptools.c:1742 ASTPP - Calling Card Call
  91. EXECUTE sofia/default/1909834226@165.22.13.168 answer()
  92. 2019-06-24 08:11:30.536112 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/1909834226@165.22.13.168] 165.22.13.168 port 31440 -> 117.247.91.162 port 8000 codec: 8 ms: 20
  93. 2019-06-24 08:11:30.536112 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
  94. 2019-06-24 08:11:30.536112 [DEBUG] switch_core_media.c:7180 sofia/default/1909834226@165.22.13.168 Set 2833 dtmf send payload to 101
  95. 2019-06-24 08:11:30.536112 [DEBUG] switch_core_media.c:7187 sofia/default/1909834226@165.22.13.168 Set 2833 dtmf receive payload to 101
  96. 2019-06-24 08:11:30.536112 [DEBUG] switch_core_media.c:7210 sofia/default/1909834226@165.22.13.168 Set rtp dtmf delay to 40
  97. 2019-06-24 08:11:30.536112 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/1909834226@165.22.13.168:
  98. v=0
  99. o=FreeSWITCH 1561346850 1561346851 IN IP4 165.22.13.168
  100. s=FreeSWITCH
  101. c=IN IP4 165.22.13.168
  102. t=0 0
  103. m=audio 31440 RTP/AVP 8 101
  104. a=rtpmap:8 PCMA/8000
  105. a=rtpmap:101 telephone-event/8000
  106. a=fmtp:101 0-16
  107. a=ptime:20
  108. a=sendrecv
  109.  
  110. 2019-06-24 08:11:30.536112 [NOTICE] mod_dptools.c:1312 Channel [sofia/default/1909834226@165.22.13.168] has been answered
  111. 2019-06-24 08:11:30.536112 [DEBUG] switch_channel.c:3773 (sofia/default/1909834226@165.22.13.168) Callstate Change RINGING -> ACTIVE
  112. EXECUTE sofia/default/1909834226@165.22.13.168 sleep(2000)
  113. 2019-06-24 08:11:30.536112 [DEBUG] sofia.c:7084 Channel sofia/default/1909834226@165.22.13.168 entering state [completed][200]
  114. 2019-06-24 08:11:30.775644 [DEBUG] sofia.c:7084 Channel sofia/default/1909834226@165.22.13.168 entering state [ready][200]
  115. 2019-06-24 08:11:30.835647 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
  116. EXECUTE sofia/default/1909834226@165.22.13.168 lua(astpp-callingcards.lua)
  117. 2019-06-24 08:11:32.555682 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fc61c133ce0 Connected.
  118. 2019-06-24 08:11:32.555682 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  119. 2019-06-24 08:11:32.575611 [NOTICE] switch_cpp.cpp:1365 [ASTPP] SECTION
  120. 2019-06-24 08:11:32.575611 [DEBUG] switch_core_file.c:342 File /usr/share/freeswitch/sounds/en/us/callie/astpp-welcome.wav sample rate 16000 doesn't match requested rate 8000
  121. 2019-06-24 08:11:32.575611 [DEBUG] switch_ivr_play_say.c:1498 Codec Activated L16@8000hz 1 channels 20ms
  122. 2019-06-24 08:11:34.355634 [DEBUG] switch_ivr_play_say.c:1942 done playing file /usr/share/freeswitch/sounds/en/us/callie/astpp-welcome.wav
  123. 2019-06-24 08:11:34.355634 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_DID] Query :SELECT * FROM ani_map WHERE number = 1909834226
  124. 2019-06-24 08:11:34.355634 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT *,(select currencyrate from currency where id=currency_id) as currencyrate FROM accounts WHERE (number = "15" OR id="15") AND status=0 AND deleted=0 limit 1
  125. 2019-06-24 08:11:34.355634 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [validate_card_usage] Query :SELECT DATE_FORMAT('2029-06-21 11:12:39' , '%Y%m%d%H%i%s') AS expiry
  126. 2019-06-24 08:11:34.355634 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [validate_card_usage] Query :SELECT DATE_FORMAT('2019-06-24 12:11:34' , '%Y%m%d%H%i%s') AS expiry
  127. 2019-06-24 08:11:34.355634 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 9983869251]
  128. 2019-06-24 08:11:34.355634 [DEBUG] switch_core_file.c:342 File /usr/share/freeswitch/sounds/en/us/callie/astpp-phonenum.wav sample rate 16000 doesn't match requested rate 8000
  129. 2019-06-24 08:11:34.375567 [DEBUG] switch_ivr_play_say.c:1498 Codec Activated L16@8000hz 1 channels 20ms
  130. 2019-06-24 08:11:38.055629 [DEBUG] switch_ivr_play_say.c:1942 done playing file /usr/share/freeswitch/sounds/en/us/callie/astpp-phonenum.wav
  131. 2019-06-24 08:11:40.275639 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF 1:960
  132. 2019-06-24 08:11:40.275639 [INFO] switch_channel.c:515 RECV DTMF 1:960
  133. 2019-06-24 08:11:40.835644 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF 2:960
  134. 2019-06-24 08:11:40.835644 [INFO] switch_channel.c:515 RECV DTMF 2:960
  135. 2019-06-24 08:11:41.275678 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF 3:960
  136. 2019-06-24 08:11:41.275678 [INFO] switch_channel.c:515 RECV DTMF 3:960
  137. 2019-06-24 08:11:41.815633 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF 4:960
  138. 2019-06-24 08:11:41.815633 [INFO] switch_channel.c:515 RECV DTMF 4:960
  139. 2019-06-24 08:11:42.215692 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF 5:960
  140. 2019-06-24 08:11:42.215692 [INFO] switch_channel.c:515 RECV DTMF 5:960
  141. 2019-06-24 08:11:42.715635 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF 6:960
  142. 2019-06-24 08:11:42.715635 [INFO] switch_channel.c:515 RECV DTMF 6:960
  143. 2019-06-24 08:11:43.255664 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF 7:960
  144. 2019-06-24 08:11:43.255664 [INFO] switch_channel.c:515 RECV DTMF 7:960
  145. 2019-06-24 08:11:43.575690 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF 8:960
  146. 2019-06-24 08:11:43.575690 [INFO] switch_channel.c:515 RECV DTMF 8:960
  147. 2019-06-24 08:11:44.075706 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF #:960
  148. span style="color: green; font-weight: bold;"> 2019-06-24 08:11:44.075706 [INFO] switch_channel.c:515 RECV DTMF #:960
  149. span style="color: green; font-weight: bold;"> 2019-06-24 08:11:44.075706 [INFO] switch_cpp.cpp:1365 [ASTPP] [CHECK_destination] Dialed destination number :12345678
  150. 2019-06-24 08:11:44.075706 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '12345678' OR number = '1234567' OR number = '123456' OR number = '12345' OR number = '1234' OR number = '123' OR number = '12' OR number = '1' OR number ='--') OR (number = '12345678*' OR number = '1234567*' OR number = '123456*' OR number = '12345*' OR number = '1234*' OR number = '123*' OR number = '12*' OR number = '1*' OR number ='--') OR (number = '1909834226' OR number = '190983422' OR number = '19098342' OR number = '1909834' OR number = '190983' OR number = '19098' OR number = '1909' OR number = '190' OR number = '19' OR number = '1' OR number ='--') OR (number = '1909834226*' OR number = '190983422*' OR number = '19098342*' OR number = '1909834*' OR number = '190983*' OR number = '19098*' OR number = '1909*' OR number = '190*' OR number = '19*' OR number = '1*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC
  151. 2019-06-24 08:11:44.075706 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1
  152. 2019-06-24 08:11:44.075706 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '12345678' OR routing_prefix = '1234567' OR routing_prefix = '123456' OR routing_prefix = '12345' OR routing_prefix = '1234' OR routing_prefix = '123' OR routing_prefix = '12' OR routing_prefix = '1' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1
  153. 2019-06-24 08:11:44.075706 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
  154. 2019-06-24 08:11:44.075706 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 15
  155. 2019-06-24 08:11:44.075706 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 9983869251
  156. 2019-06-24 08:11:44.075706 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 9.951
  157. 2019-06-24 08:11:44.075706 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  158. 2019-06-24 08:11:44.075706 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 2
  159. 2019-06-24 08:11:44.075706 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0
  160. 2019-06-24 08:11:44.075706 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
  161. 2019-06-24 08:11:44.075706 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^12345678.*' OR blocked_patterns = '^1234567.*' OR blocked_patterns = '^123456.*' OR blocked_patterns = '^12345.*' OR blocked_patterns = '^1234.*' OR blocked_patterns = '^123.*' OR blocked_patterns = '^12.*' OR blocked_patterns = '^1.*' OR blocked_patterns ='--') AND accountid = 15 limit 1
  162. 2019-06-24 08:11:44.075706 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PACKAGE_INFO] Query :SELECT * FROM packages_view as P inner join package_patterns as PKGPTR on P.id = PKGPTR.product_id WHERE (patterns = '^12345678.*' OR patterns = '^1234567.*' OR patterns = '^123456.*' OR patterns = '^12345.*' OR patterns = '^1234.*' OR patterns = '^123.*' OR patterns = '^12.*' OR patterns = '^1.*' OR patterns ='--') AND accountid = 15 ORDER BY LENGTH(PKGPTR.patterns) DESC
  163. 2019-06-24 08:11:44.075706 [INFO] switch_cpp.cpp:1365 [ASTPP] Package Type : 1 Call Direction : outbound [0:inbound,1:outbound,2:both]
  164. 2019-06-24 08:11:44.075706 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_COUNTER_INFO] Query :SELECT used_seconds FROM counters  WHERE  accountid = 15 AND product_id = 576 AND status=1 LIMIT 1
  165. 2019-06-24 08:11:44.075706 [INFO] switch_cpp.cpp:1365 [ASTPP] Remaining minutes : 9
  166. 2019-06-24 08:11:44.075706 [NOTICE] switch_cpp.cpp:1365 [ASTPP] package_id : 72
  167. 2019-06-24 08:11:44.075706 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 2 AND status = 0
  168. 2019-06-24 08:11:44.075706 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :
  169. 2019-06-24 08:11:44.075706 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^12345678.*' OR pattern = '^1234567.*' OR pattern = '^123456.*' OR pattern = '^12345.*' OR pattern = '^1234.*' OR pattern = '^123.*' OR pattern = '^12.*' OR pattern = '^1.*' OR pattern ='--') AND status = 0 AND (pricelist_id = 2 OR accountid=15)  ORDER BY accountid DESC,LENGTH(pattern) DESC,cost DESC LIMIT 1
  170. 2019-06-24 08:11:44.095619 [INFO] switch_cpp.cpp:1365 [ASTPP] call_direction::::::
  171. 2019-06-24 08:11:44.095619 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
  172. 2019-06-24 08:11:44.095619 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 1
  173. 2019-06-24 08:11:44.095619 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  174. 2019-06-24 08:11:44.095619 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
  175. 2019-06-24 08:11:44.095619 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.04900
  176. 2019-06-24 08:11:44.095619 [INFO] switch_cpp.cpp:1365 [ASTPP] comment : USA
  177. 2019-06-24 08:11:44.095619 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 203
  178. 2019-06-24 08:11:44.095619 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 15
  179. 2019-06-24 08:11:44.095619 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk ID:
  180. 2019-06-24 08:11:44.095619 [INFO] switch_cpp.cpp:1365 [ASTPP] Routing type:
  181. 2019-06-24 08:11:44.095619 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
  182. 2019-06-24 08:11:44.095619 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your9.951 balance Accountid 15 !!!
  183. 2019-06-24 08:11:44.095619 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Limiting call to config max length 180 mins!
  184. 2019-06-24 08:11:44.095619 [NOTICE] switch_cpp.cpp:1365 [ASTPP] 9 Minutes
  185. 2019-06-24 08:11:44.095619 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [SAY_TIMELIMIT] MINUTES 9
  186. 2019-06-24 08:11:44.095619 [DEBUG] switch_core_file.c:342 File /usr/share/freeswitch/sounds/en/us/callie/astpp-this-call-will-last.wav sample rate 16000 doesn't match requested rate 8000
  187. 2019-06-24 08:11:44.095619 [DEBUG] switch_ivr_play_say.c:1498 Codec Activated L16@8000hz 1 channels 20ms
  188. 2019-06-24 08:11:45.275664 [DEBUG] switch_ivr_play_say.c:1942 done playing file /usr/share/freeswitch/sounds/en/us/callie/astpp-this-call-will-last.wav
  189. EXECUTE sofia/default/1909834226@165.22.13.168 say(en number pronounced 9)
  190. 2019-06-24 08:11:45.295622 [DEBUG] switch_ivr_play_say.c:1498 Codec Activated L16@8000hz 1 channels 20ms
  191. 2019-06-24 08:11:45.955729 [DEBUG] switch_ivr_play_say.c:1942 done playing file file_string://digits/9.wav
  192. 2019-06-24 08:11:45.955729 [DEBUG] switch_core_file.c:342 File /usr/share/freeswitch/sounds/en/us/callie/astpp-minutes.wav sample rate 16000 doesn't match requested rate 8000
  193. 2019-06-24 08:11:45.955729 [DEBUG] switch_ivr_play_say.c:1498 Codec Activated L16@8000hz 1 channels 20ms
  194. 2019-06-24 08:11:46.575704 [DEBUG] switch_ivr_play_say.c:1942 done playing file /usr/share/freeswitch/sounds/en/us/callie/astpp-minutes.wav
  195. 2019-06-24 08:11:46.575704 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_CARRIER_RATES]123131 Query rate_carrier_id  :
  196. 2019-06-24 08:11:46.575704 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_CARRIER_RATES_TRUNKS] Query :SELECT GROUP_CONCAT(trunk_id) as ids FROM routing WHERE pricelist_id=2 ORDER by id asc
  197. 2019-06-24 08:11:46.575704 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_CARRIER_RATES] Query :SELECT TK.id as trunk_id,TK.name as trunk_name,TK.codec,GW.name as path,GW.dialplan_variable,TK.provider_id,TR.init_inc,TK.status,TK.maxchannels,TK.cps,TK.leg_timeout,TR.pattern,TR.id as outbound_route_id,TR.connectcost,TR.comment,TR.includedseconds,TR.cost,TR.inc,TR.prepend,TR.strip,(select name from gateways where status=0 AND id = TK.failover_gateway_id) as path1,(select name from gateways where status=0 AND id = TK.failover_gateway_id1) as path2 FROM outbound_routes as TR,trunks as TK,gateways as GW WHERE GW.status=0 AND GW.id= TK.gateway_id AND TK.status=0 AND TK.id= TR.trunk_id AND (pattern = '^12345678.*' OR pattern = '^1234567.*' OR pattern = '^123456.*' OR pattern = '^12345.*' OR pattern = '^1234.*' OR pattern = '^123.*' OR pattern = '^12.*' OR pattern = '^1.*' OR pattern ='--') AND TR.status = 0  AND TR.trunk_id IN (1) ORDER by TR.cost ASC,TR.precedence ASC, TK.precedence
  198. 2019-06-24 08:11:46.575704 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Termination Rates Information ===================
  199. 2019-06-24 08:11:46.575704 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 1
  200. 2019-06-24 08:11:46.575704 [INFO] switch_cpp.cpp:1365 [ASTPP] Code : ^1.*
  201. 2019-06-24 08:11:46.575704 [INFO] switch_cpp.cpp:1365 [ASTPP] Destination :
  202. 2019-06-24 08:11:46.575704 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  203. 2019-06-24 08:11:46.575704 [INFO] switch_cpp.cpp:1365 [ASTPP] Free Seconds : 0
  204. 2019-06-24 08:11:46.575704 [INFO] switch_cpp.cpp:1365 [ASTPP] Prefix : ^1.*
  205. 2019-06-24 08:11:46.575704 [INFO] switch_cpp.cpp:1365 [ASTPP] Strip :
  206. 2019-06-24 08:11:46.575704 [INFO] switch_cpp.cpp:1365 [ASTPP] Termination rate id : 1
  207. 2019-06-24 08:11:46.575704 [INFO] switch_cpp.cpp:1365 [ASTPP] Gateway name : YourProvider
  208. 2019-06-24 08:11:46.575704 [INFO] switch_cpp.cpp:1365 [ASTPP] Failover gateway :
  209. 2019-06-24 08:11:46.575704 [INFO] switch_cpp.cpp:1365 [ASTPP] Vendor id : 3
  210. 2019-06-24 08:11:46.575704 [INFO] switch_cpp.cpp:1365 [ASTPP] Max channels : 0
  211. 2019-06-24 08:11:46.575704 [INFO] switch_cpp.cpp:1365 [ASTPP] trunk_name : YourProvider
  212. 2019-06-24 08:11:46.575704 [INFO] switch_cpp.cpp:1365 [ASTPP] =================================================================
  213. 2019-06-24 08:11:46.575704 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Loss less routing flag ::> 1
  214. EXECUTE sofia/default/1909834226@165.22.13.168 export(call_processed=internal)
  215. 2019-06-24 08:11:46.575704 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [call_processed]=[internal]
  216. EXECUTE sofia/default/1909834226@165.22.13.168 export(callstart=2019-06-24 12:11:46)
  217. 2019-06-24 08:11:46.575704 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [callstart]=[2019-06-24 12:11:46]
  218. EXECUTE sofia/default/1909834226@165.22.13.168 export(originated_destination_number=12345678)
  219. 2019-06-24 08:11:46.575704 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [originated_destination_number]=[12345678]
  220. EXECUTE sofia/default/1909834226@165.22.13.168 export(effective_destination_number=12345678)
  221. 2019-06-24 08:11:46.575704 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [effective_destination_number]=[12345678]
  222. EXECUTE sofia/default/1909834226@165.22.13.168 set(continue_on_fail=true)
  223. 2019-06-24 08:11:46.575704 [DEBUG] mod_dptools.c:1548 SET sofia/default/1909834226@165.22.13.168 [continue_on_fail]=[true]
  224. EXECUTE sofia/default/1909834226@165.22.13.168 set(hangup_after_bridge=true)
  225. 2019-06-24 08:11:46.575704 [DEBUG] mod_dptools.c:1548 SET sofia/default/1909834226@165.22.13.168 [hangup_after_bridge]=[true]
  226. EXECUTE sofia/default/1909834226@165.22.13.168 export(account_id=15)
  227. 2019-06-24 08:11:46.575704 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [account_id]=[15]
  228. EXECUTE sofia/default/1909834226@165.22.13.168 export(account_type=0)
  229. 2019-06-24 08:11:46.575704 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [account_type]=[0]
  230. EXECUTE sofia/default/1909834226@165.22.13.168 export(resellerid=0)
  231. 2019-06-24 08:11:46.575704 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [resellerid]=[0]
  232. EXECUTE sofia/default/1909834226@165.22.13.168 export(parent_id=0)
  233. 2019-06-24 08:11:46.575704 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [parent_id]=[0]
  234. EXECUTE sofia/default/1909834226@165.22.13.168 export(accountcode=9983869251)
  235. 2019-06-24 08:11:46.575704 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [accountcode]=[9983869251]
  236. EXECUTE sofia/default/1909834226@165.22.13.168 export(call_direction=outbound)
  237. 2019-06-24 08:11:46.575704 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [call_direction]=[outbound]
  238. EXECUTE sofia/default/1909834226@165.22.13.168 export(calltype=CALLINGCARD)
  239. 2019-06-24 08:11:46.575704 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [calltype]=[CALLINGCARD]
  240. EXECUTE sofia/default/1909834226@165.22.13.168 export(origination_rates=ID:1|CODE:^1.*|DESTINATION:USA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.04900|INC:60|INITIALBLOCK:60|RATEGROUP:2|MARKUP:0|CI:203|ACCID:15)
  241. 2019-06-24 08:11:46.575704 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [origination_rates]=[ID:1|CODE:^1.*|DESTINATION:USA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.04900|INC:60|INITIALBLOCK:60|RATEGROUP:2|MARKUP:0|CI:203|ACCID:15]
  242. EXECUTE sofia/default/1909834226@165.22.13.168 set(execute_on_answer=sched_hangup +540)
  243. 2019-06-24 08:11:46.595798 [DEBUG] mod_dptools.c:1548 SET sofia/default/1909834226@165.22.13.168 [execute_on_answer]=[sched_hangup +540]
  244. EXECUTE sofia/default/1909834226@165.22.13.168 set(process_cdr=true)
  245. 2019-06-24 08:11:46.595798 [DEBUG] mod_dptools.c:1548 SET sofia/default/1909834226@165.22.13.168 [process_cdr]=[true]
  246. EXECUTE sofia/default/1909834226@165.22.13.168 sched_hangup(+540)
  247. 2019-06-24 08:11:46.595798 [DEBUG] switch_scheduler.c:249 Added task 6 switch_ivr_schedule_hangup (330b88fc-9679-11e9-966c-bd5d12ddb142) to run at 1561378846
  248. 2019-06-24 08:11:46.595798 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 15 AND status=0 LIMIT 1
  249. EXECUTE sofia/default/1909834226@165.22.13.168 export(original_caller_id_name=1909834226)
  250. 2019-06-24 08:11:46.595798 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [original_caller_id_name]=[1909834226]
  251. EXECUTE sofia/default/1909834226@165.22.13.168 export(original_caller_id_number=1909834226)
  252. 2019-06-24 08:11:46.595798 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [original_caller_id_number]=[1909834226]
  253. EXECUTE sofia/default/1909834226@165.22.13.168 export(presence_data=x|||Test(9983869251)|||^1.* // USA // 0.04900|||YourProvider // ^1.* //  // 0.01000|||CC)
  254. 2019-06-24 08:11:46.595798 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [presence_data]=[x|||Test(9983869251)|||^1.* // USA // 0.04900|||YourProvider // ^1.* //  // 0.01000|||CC]
  255. 2019-06-24 08:11:46.595798 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,out_caller_id_terminate,number_terminate FROM localization WHERE id=(SELECT localization_id from accounts where id = 3) AND status=0 limit 1
  256. EXECUTE sofia/default/1909834226@165.22.13.168 export(termination_rates=ID:1|CODE:^1.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.01000|INC:0|TRUNK:1|PROVIDER:3)
  257. 2019-06-24 08:11:46.595798 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [termination_rates]=[ID:1|CODE:^1.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.01000|INC:0|TRUNK:1|PROVIDER:3]
  258. EXECUTE sofia/default/1909834226@165.22.13.168 export(trunk_id=1)
  259. 2019-06-24 08:11:46.595798 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [trunk_id]=[1]
  260. EXECUTE sofia/default/1909834226@165.22.13.168 export(provider_id=3)
  261. 2019-06-24 08:11:46.595798 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [provider_id]=[3]
  262. EXECUTE sofia/default/1909834226@165.22.13.168 set(hangup_after_bridge=false)
  263. 2019-06-24 08:11:46.595798 [DEBUG] mod_dptools.c:1548 SET sofia/default/1909834226@165.22.13.168 [hangup_after_bridge]=[false]
  264. EXECUTE sofia/default/1909834226@165.22.13.168 export(absolute_codec_string=PCMA,G729,PCMA)
  265. 2019-06-24 08:11:46.595798 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [absolute_codec_string]=[PCMA,G729,PCMA]
  266. EXECUTE sofia/default/1909834226@165.22.13.168 bridge([leg_timeout=30]sofia/gateway/YourProvider/12345678)
  267. 2019-06-24 08:11:46.595798 [DEBUG] switch_channel.c:1823 (sofia/default/1909834226@165.22.13.168) Callstate Change ACTIVE -> RING_WAIT
  268. 2019-06-24 08:11:46.595798 [DEBUG] switch_channel.c:1250 sofia/default/1909834226@165.22.13.168 EXPORTING[export_vars] [call_processed]=[internal] to event
  269. 2019-06-24 08:11:46.595798 [DEBUG] switch_channel.c:1250 sofia/default/1909834226@165.22.13.168 EXPORTING[export_vars] [callstart]=[2019-06-24 12:11:46] to event
  270. 2019-06-24 08:11:46.595798 [DEBUG] switch_channel.c:1250 sofia/default/1909834226@165.22.13.168 EXPORTING[export_vars] [originated_destination_number]=[12345678] to event
  271. 2019-06-24 08:11:46.595798 [DEBUG] switch_channel.c:1250 sofia/default/1909834226@165.22.13.168 EXPORTING[export_vars] [effective_destination_number]=[12345678] to event
  272. 2019-06-24 08:11:46.595798 [DEBUG] switch_channel.c:1250 sofia/default/1909834226@165.22.13.168 EXPORTING[export_vars] [account_id]=[15] to event
  273. 2019-06-24 08:11:46.595798 [DEBUG] switch_channel.c:1250 sofia/default/1909834226@165.22.13.168 EXPORTING[export_vars] [account_type]=[0] to event
  274. 2019-06-24 08:11:46.595798 [DEBUG] switch_channel.c:1250 sofia/default/1909834226@165.22.13.168 EXPORTING[export_vars] [resellerid]=[0] to event
  275. 2019-06-24 08:11:46.595798 [DEBUG] switch_channel.c:1250 sofia/default/1909834226@165.22.13.168 EXPORTING[export_vars] [parent_id]=[0] to event
  276. 2019-06-24 08:11:46.595798 [DEBUG] switch_channel.c:1250 sofia/default/1909834226@165.22.13.168 EXPORTING[export_vars] [accountcode]=[9983869251] to event
  277. 2019-06-24 08:11:46.595798 [DEBUG] switch_channel.c:1250 sofia/default/1909834226@165.22.13.168 EXPORTING[export_vars] [call_direction]=[outbound] to event
  278. 2019-06-24 08:11:46.595798 [DEBUG] switch_channel.c:1250 sofia/default/1909834226@165.22.13.168 EXPORTING[export_vars] [calltype]=[CALLINGCARD] to event
  279. 2019-06-24 08:11:46.595798 [DEBUG] switch_channel.c:1250 sofia/default/1909834226@165.22.13.168 EXPORTING[export_vars] [origination_rates]=[ID:1|CODE:^1.*|DESTINATION:USA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.04900|INC:60|INITIALBLOCK:60|RATEGROUP:2|MARKUP:0|CI:203|ACCID:15] to event
  280. 2019-06-24 08:11:46.595798 [DEBUG] switch_channel.c:1250 sofia/default/1909834226@165.22.13.168 EXPORTING[export_vars] [original_caller_id_name]=[1909834226] to event
  281. 2019-06-24 08:11:46.595798 [DEBUG] switch_channel.c:1250 sofia/default/1909834226@165.22.13.168 EXPORTING[export_vars] [original_caller_id_number]=[1909834226] to event
  282. 2019-06-24 08:11:46.595798 [DEBUG] switch_channel.c:1250 sofia/default/1909834226@165.22.13.168 EXPORTING[export_vars] [presence_data]=[x|||Test(9983869251)|||^1.* // USA // 0.04900|||YourProvider // ^1.* //  // 0.01000|||CC] to event
  283. 2019-06-24 08:11:46.595798 [DEBUG] switch_channel.c:1250 sofia/default/1909834226@165.22.13.168 EXPORTING[export_vars] [termination_rates]=[ID:1|CODE:^1.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.01000|INC:0|TRUNK:1|PROVIDER:3] to event
  284. 2019-06-24 08:11:46.595798 [DEBUG] switch_channel.c:1250 sofia/default/1909834226@165.22.13.168 EXPORTING[export_vars] [trunk_id]=[1] to event
  285. 2019-06-24 08:11:46.595798 [DEBUG] switch_channel.c:1250 sofia/default/1909834226@165.22.13.168 EXPORTING[export_vars] [provider_id]=[3] to event
  286. 2019-06-24 08:11:46.595798 [DEBUG] switch_channel.c:1250 sofia/default/1909834226@165.22.13.168 EXPORTING[export_vars] [absolute_codec_string]=[PCMA,G729,PCMA] to event
  287. 2019-06-24 08:11:46.595798 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
  288. 2019-06-24 08:11:46.595798 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
  289. 2019-06-24 08:11:46.595798 [NOTICE] switch_channel.c:1104 New Channel sofia/default/12345678 [3cc15390-9679-11e9-9691-bd5d12ddb142]
  290. 2019-06-24 08:11:46.595798 [DEBUG] mod_sofia.c:4819 (sofia/default/12345678) State Change CS_NEW -> CS_INIT
  291. 2019-06-24 08:11:46.595798 [DEBUG] switch_ivr_originate.c:2963 sofia/default/12345678 Setting leg timeout to 30
  292. 2019-06-24 08:11:46.595798 [DEBUG] switch_core_state_machine.c:584 (sofia/default/12345678) Running State Change CS_INIT (Cur 2 Tot 22)
  293. 2019-06-24 08:11:46.595798 [DEBUG] switch_core_state_machine.c:627 (sofia/default/12345678) State INIT
  294. 2019-06-24 08:11:46.595798 [DEBUG] mod_sofia.c:90 sofia/default/12345678 SOFIA INIT
  295. 2019-06-24 08:11:46.595798 [DEBUG] sofia_glue.c:1295 sofia/default/12345678 sending invite version: 1.6.20  64bit
  296. Local SDP:
  297. v=0
  298. o=FreeSWITCH 1561352324 1561352325 IN IP4 165.22.13.168
  299. s=FreeSWITCH
  300. c=IN IP4 165.22.13.168
  301. t=0 0
  302. m=audio 25982 RTP/AVP 8 101
  303. a=rtpmap:8 PCMA/8000
  304. a=rtpmap:101 telephone-event/8000
  305. a=fmtp:101 0-16
  306. a=ptime:20
  307. a=sendrecv
  308.  
  309. 2019-06-24 08:11:46.595798 [DEBUG] switch_core_state_machine.c:40 sofia/default/12345678 Standard INIT
  310. 2019-06-24 08:11:46.595798 [DEBUG] switch_core_state_machine.c:48 (sofia/default/12345678) State Change CS_INIT -> CS_ROUTING
  311. 2019-06-24 08:11:46.595798 [DEBUG] switch_core_state_machine.c:627 (sofia/default/12345678) State INIT going to sleep
  312. 2019-06-24 08:11:46.595798 [DEBUG] switch_core_state_machine.c:584 (sofia/default/12345678) Running State Change CS_ROUTING (Cur 2 Tot 22)
  313. 2019-06-24 08:11:46.595798 [DEBUG] switch_core_state_machine.c:643 (sofia/default/12345678) State ROUTING
  314. 2019-06-24 08:11:46.595798 [DEBUG] mod_sofia.c:143 sofia/default/12345678 SOFIA ROUTING
  315. 2019-06-24 08:11:46.595798 [DEBUG] switch_ivr_originate.c:67 (sofia/default/12345678) State Change CS_ROUTING -> CS_CONSUME_MEDIA
  316. 2019-06-24 08:11:46.595798 [DEBUG] switch_core_state_machine.c:643 (sofia/default/12345678) State ROUTING going to sleep
  317. 2019-06-24 08:11:46.595798 [DEBUG] switch_core_state_machine.c:584 (sofia/default/12345678) Running State Change CS_CONSUME_MEDIA (Cur 2 Tot 22)
  318. 2019-06-24 08:11:46.595798 [DEBUG] switch_core_state_machine.c:662 (sofia/default/12345678) State CONSUME_MEDIA
  319. 2019-06-24 08:11:46.595798 [DEBUG] switch_core_state_machine.c:662 (sofia/default/12345678) State CONSUME_MEDIA going to sleep
  320. 2019-06-24 08:11:46.595798 [DEBUG] sofia.c:7084 Channel sofia/default/12345678 entering state [calling][0]
  321. 2019-06-24 08:11:46.815666 [DEBUG] sofia.c:7084 Channel sofia/default/12345678 entering state [completing][200]
  322. 2019-06-24 08:11:46.815666 [DEBUG] sofia.c:7094 Remote SDP:
  323. v=0
  324. o=root 1122097807 1122097807 IN IP4 139.59.75.7
  325. s=Asterisk PBX 16.4.0
  326. c=IN IP4 139.59.75.7
  327. t=0 0
  328. m=audio 17556 RTP/AVP 8 101
  329. a=rtpmap:8 PCMA/8000
  330. a=rtpmap:101 telephone-event/8000
  331. a=fmtp:101 0-16
  332. a=maxptime:150
  333.  
  334. 2019-06-24 08:11:46.815666 [DEBUG] sofia.c:7084 Channel sofia/default/12345678 entering state [ready][200]
  335. 2019-06-24 08:11:46.815666 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:150:64000:1]/[PCMA:8:8000:20:64000:1]
  336. 2019-06-24 08:11:46.815666 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  337. 2019-06-24 08:11:46.815666 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  338. 2019-06-24 08:11:46.815666 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/12345678 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  339. 2019-06-24 08:11:46.815666 [DEBUG] switch_core_codec.c:111 sofia/default/12345678 Original read codec set to PCMA:8
  340. 2019-06-24 08:11:46.815666 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  341. 2019-06-24 08:11:46.815666 [DEBUG] switch_core_media.c:4767 sofia/default/12345678 Set 2833 dtmf send payload to 101 recv payload to 101
  342. 2019-06-24 08:11:46.815666 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/12345678] 165.22.13.168 port 25982 -> 139.59.75.7 port 17556 codec: 8 ms: 20
  343. 2019-06-24 08:11:46.815666 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms
  344. 2019-06-24 08:11:46.815666 [DEBUG] switch_core_media.c:7180 sofia/default/12345678 Set 2833 dtmf send payload to 101
  345. 2019-06-24 08:11:46.815666 [DEBUG] switch_core_media.c:7187 sofia/default/12345678 Set 2833 dtmf receive payload to 101
  346. 2019-06-24 08:11:46.815666 [DEBUG] switch_core_media.c:7210 sofia/default/12345678 Set rtp dtmf delay to 40
  347. 2019-06-24 08:11:46.815666 [NOTICE] sofia.c:8218 Channel [sofia/default/12345678] has been answered
  348. 2019-06-24 08:11:46.815666 [DEBUG] switch_channel.c:3773 (sofia/default/12345678) Callstate Change DOWN -> ACTIVE
  349. 2019-06-24 08:11:46.835633 [DEBUG] switch_ivr_originate.c:3705 Originate Resulted in Success: [sofia/default/12345678]
  350. 2019-06-24 08:11:46.835633 [DEBUG] switch_channel.c:2047 (sofia/default/1909834226@165.22.13.168) Callstate Change RING_WAIT -> ACTIVE
  351. 2019-06-24 08:11:46.835633 [DEBUG] switch_ivr_bridge.c:1614 (sofia/default/12345678) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA
  352. 2019-06-24 08:11:46.835633 [DEBUG] switch_core_state_machine.c:584 (sofia/default/12345678) Running State Change CS_EXCHANGE_MEDIA (Cur 2 Tot 22)
  353. 2019-06-24 08:11:46.835633 [DEBUG] switch_core_state_machine.c:653 (sofia/default/12345678) State EXCHANGE_MEDIA
  354. 2019-06-24 08:11:46.835633 [DEBUG] mod_sofia.c:631 SOFIA EXCHANGE_MEDIA
  355. 2019-06-24 08:11:47.115649 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
  356. 2019-06-24 08:13:03.575656 [NOTICE] sofia.c:1012 Hangup sofia/default/1909834226@165.22.13.168 [CS_EXECUTE] [NORMAL_CLEARING]
  357. 2019-06-24 08:13:03.575656 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/1909834226@165.22.13.168]
  358. 2019-06-24 08:13:03.575656 [DEBUG] switch_ivr_bridge.c:706 sofia/default/1909834226@165.22.13.168 ending bridge by request from write function
  359. 2019-06-24 08:13:03.575656 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/12345678]
  360. 2019-06-24 08:13:03.575656 [NOTICE] switch_ivr_bridge.c:904 Hangup sofia/default/12345678 [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]
  361. 2019-06-24 08:13:03.575656 [DEBUG] switch_core_state_machine.c:653 (sofia/default/12345678) State EXCHANGE_MEDIA going to sleep
  362. 2019-06-24 08:13:03.575656 [DEBUG] switch_core_state_machine.c:584 (sofia/default/12345678) Running State Change CS_HANGUP (Cur 2 Tot 22)
  363. 2019-06-24 08:13:03.575656 [DEBUG] switch_core_state_machine.c:850 (sofia/default/12345678) Callstate Change ACTIVE -> HANGUP
  364. 2019-06-24 08:13:03.575656 [DEBUG] switch_core_state_machine.c:852 (sofia/default/12345678) State HANGUP
  365. 2019-06-24 08:13:03.575656 [DEBUG] mod_sofia.c:432 sofia/default/12345678 Overriding SIP cause 480 with 200 from the other leg
  366. 2019-06-24 08:13:03.575656 [DEBUG] mod_sofia.c:438 Channel sofia/default/12345678 hanging up, cause: NORMAL_CLEARING
  367. 2019-06-24 08:13:03.575656 [DEBUG] switch_ivr_bridge.c:1712 sofia/default/12345678 skip receive message [UNBRIDGE] (channel is hungup already)
  368. 2019-06-24 08:13:03.575656 [DEBUG] switch_ivr_bridge.c:1715 sofia/default/1909834226@165.22.13.168 skip receive message [UNBRIDGE] (channel is hungup already)
  369. 2019-06-24 08:13:03.575656 [DEBUG] switch_core_session.c:2815 sofia/default/1909834226@165.22.13.168 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
  370. 2019-06-24 08:13:03.575656 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Got DTMF digits: retries:0
  371. 2019-06-24 08:13:03.575656 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Got DTMF digits: retries:1
  372. 2019-06-24 08:13:03.575656 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Got DTMF digits: retries:2
  373. 2019-06-24 08:13:03.575656 [DEBUG] switch_cpp.cpp:721 CoreSession::hangup
  374. 2019-06-24 08:13:03.575656 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fc61c133ce0 released.
  375. 2019-06-24 08:13:03.575656 [DEBUG] switch_cpp.cpp:1112 sofia/default/1909834226@165.22.13.168 destroy/unlink session from object
  376. 2019-06-24 08:13:03.575656 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/12345678
  377. 2019-06-24 08:13:03.575656 [DEBUG] switch_core_state_machine.c:60 sofia/default/12345678 Standard HANGUP, cause: NORMAL_CLEARING
  378. 2019-06-24 08:13:03.575656 [DEBUG] switch_core_state_machine.c:852 (sofia/default/12345678) State HANGUP going to sleep
  379. 2019-06-24 08:13:03.575656 [DEBUG] switch_core_session.c:2815 sofia/default/1909834226@165.22.13.168 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
  380. 2019-06-24 08:13:03.575656 [DEBUG] switch_core_state_machine.c:650 (sofia/default/1909834226@165.22.13.168) State EXECUTE going to sleep
  381. 2019-06-24 08:13:03.575656 [DEBUG] switch_core_state_machine.c:584 (sofia/default/1909834226@165.22.13.168) Running State Change CS_HANGUP (Cur 2 Tot 22)
  382. 2019-06-24 08:13:03.575656 [DEBUG] switch_core_state_machine.c:619 (sofia/default/12345678) State Change CS_HANGUP -> CS_REPORTING
  383. 2019-06-24 08:13:03.575656 [DEBUG] switch_core_state_machine.c:584 (sofia/default/12345678) Running State Change CS_REPORTING (Cur 2 Tot 22)
  384. 2019-06-24 08:13:03.575656 [DEBUG] switch_core_state_machine.c:850 (sofia/default/1909834226@165.22.13.168) Callstate Change ACTIVE -> HANGUP
  385. 2019-06-24 08:13:03.575656 [DEBUG] switch_core_state_machine.c:938 (sofia/default/12345678) State REPORTING
  386. 2019-06-24 08:13:03.575656 [DEBUG] switch_core_state_machine.c:852 (sofia/default/1909834226@165.22.13.168) State HANGUP
  387. 2019-06-24 08:13:03.575656 [DEBUG] mod_sofia.c:438 Channel sofia/default/1909834226@165.22.13.168 hanging up, cause: NORMAL_CLEARING
  388. 2019-06-24 08:13:03.575656 [DEBUG] switch_core_state_machine.c:60 sofia/default/1909834226@165.22.13.168 Standard HANGUP, cause: NORMAL_CLEARING
  389. 2019-06-24 08:13:03.575656 [DEBUG] switch_core_state_machine.c:852 (sofia/default/1909834226@165.22.13.168) State HANGUP going to sleep
  390. 2019-06-24 08:13:03.575656 [INFO] mod_json_cdr.c:271 Process [3cc15390-9679-11e9-9691-bd5d12ddb142.cdr.json]
  391. 2019-06-24 08:13:03.575656 [DEBUG] switch_core_state_machine.c:619 (sofia/default/1909834226@165.22.13.168) State Change CS_HANGUP -> CS_REPORTING
  392. 2019-06-24 08:13:03.575656 [DEBUG] switch_core_state_machine.c:584 (sofia/default/1909834226@165.22.13.168) Running State Change CS_REPORTING (Cur 2 Tot 22)
  393. 2019-06-24 08:13:03.575656 [DEBUG] switch_core_state_machine.c:938 (sofia/default/1909834226@165.22.13.168) State REPORTING
  394. 2019-06-24 08:13:03.575656 [INFO] mod_json_cdr.c:271 Process [330b88fc-9679-11e9-966c-bd5d12ddb142.cdr.json]
  395. 2019-06-24 08:13:03.595587 [DEBUG] switch_core_state_machine.c:174 sofia/default/1909834226@165.22.13.168 Standard REPORTING, cause: NORMAL_CLEARING
  396. 2019-06-24 08:13:03.595587 [DEBUG] switch_core_state_machine.c:938 (sofia/default/1909834226@165.22.13.168) State REPORTING going to sleep
  397. 2019-06-24 08:13:03.595587 [DEBUG] switch_core_state_machine.c:610 (sofia/default/1909834226@165.22.13.168) State Change CS_REPORTING -> CS_DESTROY
  398. 2019-06-24 08:13:03.595587 [DEBUG] switch_core_session.c:1665 Session 21 (sofia/default/1909834226@165.22.13.168) Locked, Waiting on external entities
  399. 2019-06-24 08:13:03.595587 [NOTICE] switch_core_session.c:1683 Session 21 (sofia/default/1909834226@165.22.13.168) Ended
  400. 2019-06-24 08:13:03.595587 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/1909834226@165.22.13.168 [CS_DESTROY]
  401. 2019-06-24 08:13:03.595587 [DEBUG] switch_core_state_machine.c:741 (sofia/default/1909834226@165.22.13.168) Running State Change CS_DESTROY (Cur 1 Tot 22)
  402. 2019-06-24 08:13:03.595587 [DEBUG] switch_core_state_machine.c:751 (sofia/default/1909834226@165.22.13.168) State DESTROY
  403. 2019-06-24 08:13:03.595587 [DEBUG] mod_sofia.c:343 sofia/default/1909834226@165.22.13.168 SOFIA DESTROY
  404. 2019-06-24 08:13:03.595587 [DEBUG] switch_core_state_machine.c:181 sofia/default/1909834226@165.22.13.168 Standard DESTROY
  405. 2019-06-24 08:13:03.595587 [DEBUG] switch_core_state_machine.c:751 (sofia/default/1909834226@165.22.13.168) State DESTROY going to sleep
  406. 2019-06-24 08:13:03.615586 [DEBUG] switch_scheduler.c:144 Deleting task 6 switch_ivr_schedule_hangup (330b88fc-9679-11e9-966c-bd5d12ddb142)
  407. 2019-06-24 08:13:03.615586 [DEBUG] switch_core_state_machine.c:174 sofia/default/12345678 Standard REPORTING, cause: NORMAL_CLEARING
  408. 2019-06-24 08:13:03.615586 [DEBUG] switch_core_state_machine.c:938 (sofia/default/12345678) State REPORTING going to sleep
  409. 2019-06-24 08:13:03.615586 [DEBUG] switch_core_state_machine.c:610 (sofia/default/12345678) State Change CS_REPORTING -> CS_DESTROY
  410. 2019-06-24 08:13:03.615586 [DEBUG] switch_core_session.c:1665 Session 22 (sofia/default/12345678) Locked, Waiting on external entities
  411. 2019-06-24 08:13:03.615586 [NOTICE] switch_core_session.c:1683 Session 22 (sofia/default/12345678) Ended
  412. 2019-06-24 08:13:03.615586 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/12345678 [CS_DESTROY]
  413. 2019-06-24 08:13:03.615586 [DEBUG] switch_core_state_machine.c:741 (sofia/default/12345678) Running State Change CS_DESTROY (Cur 0 Tot 22)
  414. 2019-06-24 08:13:03.615586 [DEBUG] switch_core_state_machine.c:751 (sofia/default/12345678) State DESTROY
  415. 2019-06-24 08:13:03.615586 [DEBUG] mod_sofia.c:343 sofia/default/12345678 SOFIA DESTROY
  416. 2019-06-24 08:13:03.615586 [DEBUG] switch_core_state_machine.c:181 sofia/default/12345678 Standard DESTROY
  417. 2019-06-24 08:13:03.615586 [DEBUG] switch_core_state_machine.c:751 (sofia/default/12345678) State DESTROY going to sleep
  418.