From Prabhat, 3 Years ago, written in FreeSWITCH.
- view diff
Embed
  1. span style="color: cornflowerblue; font-weight: bold;"> 2021-01-13 08:04:35.021082 [NOTICE] switch_channel.c:1118 New Channel sofia/default/00000111323524114@13.235.24.114 [47f64e9c-f879-4dd8-bb70-9528e1d4edbc]
  2. 2021-01-13 08:04:35.021082 [DEBUG] switch_core_state_machine.c:585 (sofia/default/00000111323524114@13.235.24.114) Running State Change CS_NEW (Cur 1 Tot 404)
  3. 2021-01-13 08:04:35.041090 [DEBUG] sofia.c:10280 sofia/default/00000111323524114@13.235.24.114 receiving invite from 143.244.57.86:55826 version: 1.10.5 -release-17-25569c1631 64bit
  4. 2021-01-13 08:04:35.041090 [DEBUG] sofia.c:10374 verifying acl "default" for ip/port 143.244.57.86:0.
  5. 2021-01-13 08:04:35.041090 [DEBUG] sofia.c:2434 detaching session 47f64e9c-f879-4dd8-bb70-9528e1d4edbc
  6. 2021-01-13 08:04:35.041090 [WARNING] sofia_reg.c:1794 SIP auth challenge (INVITE) on sofia profile 'default' for [0000011972595725668@13.235.24.114] from ip 143.244.57.86
  7. 2021-01-13 08:04:35.041090 [DEBUG] switch_core_state_machine.c:604 (sofia/default/00000111323524114@13.235.24.114) State NEW
  8. 2021-01-13 08:04:45.101075 [WARNING] switch_core_state_machine.c:688 47f64e9c-f879-4dd8-bb70-9528e1d4edbc sofia/default/00000111323524114@13.235.24.114 Abandoned
  9. 2021-01-13 08:04:45.101075 [NOTICE] switch_core_state_machine.c:691 Hangup sofia/default/00000111323524114@13.235.24.114 [CS_NEW] [WRONG_CALL_STATE]
  10. 2021-01-13 08:04:45.101075 [DEBUG] switch_core_state_machine.c:585 (sofia/default/00000111323524114@13.235.24.114) Running State Change CS_HANGUP (Cur 1 Tot 404)
  11. 2021-01-13 08:04:45.101075 [DEBUG] switch_core_state_machine.c:848 (sofia/default/00000111323524114@13.235.24.114) Callstate Change DOWN -> HANGUP
  12. 2021-01-13 08:04:45.101075 [DEBUG] switch_core_state_machine.c:850 (sofia/default/00000111323524114@13.235.24.114) State HANGUP
  13. 2021-01-13 08:04:45.101075 [DEBUG] mod_sofia.c:453 Channel sofia/default/00000111323524114@13.235.24.114 hanging up, cause: WRONG_CALL_STATE
  14. 2021-01-13 08:04:45.101075 [DEBUG] switch_core_state_machine.c:60 sofia/default/00000111323524114@13.235.24.114 Standard HANGUP, cause: WRONG_CALL_STATE
  15. 2021-01-13 08:04:45.101075 [DEBUG] switch_core_state_machine.c:850 (sofia/default/00000111323524114@13.235.24.114) State HANGUP going to sleep
  16. 2021-01-13 08:04:45.101075 [DEBUG] switch_core_state_machine.c:620 (sofia/default/00000111323524114@13.235.24.114) State Change CS_HANGUP -> CS_REPORTING
  17. 2021-01-13 08:04:45.101075 [DEBUG] switch_core_state_machine.c:585 (sofia/default/00000111323524114@13.235.24.114) Running State Change CS_REPORTING (Cur 1 Tot 404)
  18. 2021-01-13 08:04:45.101075 [DEBUG] switch_core_state_machine.c:936 (sofia/default/00000111323524114@13.235.24.114) State REPORTING
  19. 2021-01-13 08:04:45.101075 [DEBUG] switch_core_state_machine.c:174 sofia/default/00000111323524114@13.235.24.114 Standard REPORTING, cause: WRONG_CALL_STATE
  20. 2021-01-13 08:04:45.101075 [DEBUG] switch_core_state_machine.c:936 (sofia/default/00000111323524114@13.235.24.114) State REPORTING going to sleep
  21. 2021-01-13 08:04:45.101075 [DEBUG] switch_core_state_machine.c:611 (sofia/default/00000111323524114@13.235.24.114) State Change CS_REPORTING -> CS_DESTROY
  22. 2021-01-13 08:04:45.101075 [DEBUG] switch_core_session.c:1726 Session 404 (sofia/default/00000111323524114@13.235.24.114) Locked, Waiting on external entities
  23. 2021-01-13 08:04:45.101075 [NOTICE] switch_core_session.c:1744 Session 404 (sofia/default/00000111323524114@13.235.24.114) Ended
  24. 2021-01-13 08:04:45.101075 [NOTICE] switch_core_session.c:1748 Close Channel sofia/default/00000111323524114@13.235.24.114 [CS_DESTROY]
  25. 2021-01-13 08:04:45.101075 [DEBUG] switch_core_state_machine.c:739 (sofia/default/00000111323524114@13.235.24.114) Running State Change CS_DESTROY (Cur 0 Tot 404)
  26. 2021-01-13 08:04:45.101075 [DEBUG] switch_core_state_machine.c:749 (sofia/default/00000111323524114@13.235.24.114) State DESTROY
  27. 2021-01-13 08:04:45.101075 [DEBUG] mod_sofia.c:364 sofia/default/00000111323524114@13.235.24.114 SOFIA DESTROY
  28. 2021-01-13 08:04:45.101075 [DEBUG] switch_core_state_machine.c:181 sofia/default/00000111323524114@13.235.24.114 Standard DESTROY
  29. 2021-01-13 08:04:45.101075 [DEBUG] switch_core_state_machine.c:749 (sofia/default/00000111323524114@13.235.24.114) State DESTROY going to sleep
  30. 2021-01-13 08:04:58.881076 [WARNING] sofia_reg.c:1794 SIP auth challenge (REGISTER) on sofia profile 'default' for [91212223@mobile.crestdial.com] from ip 49.34.57.10
  31. 2021-01-13 08:05:46.461128 [WARNING] sofia_reg.c:1794 SIP auth challenge (REGISTER) on sofia profile 'default' for [91212223@mobile.crestdial.com] from ip 49.34.57.10
  32. 2021-01-13 08:05:48.461105 [WARNING] sofia_reg.c:1794 SIP auth challenge (REGISTER) on sofia profile 'default' for [9161626364@mobile.crestdial.com] from ip 42.106.26.11
  33. 2021-01-13 08:05:48.521103 [WARNING] sofia_reg.c:1794 SIP auth challenge (REGISTER) on sofia profile 'default' for [9161626364@mobile.crestdial.com] from ip 42.106.26.11
  34. 2021-01-13 08:05:55.861099 [WARNING] sofia_reg.c:1794 SIP auth challenge (REGISTER) on sofia profile 'default' for [9161626364@mobile.crestdial.com] from ip 185.117.83.202
  35. 2021-01-13 08:05:57.081083 [WARNING] sofia_reg.c:1794 SIP auth challenge (REGISTER) on sofia profile 'default' for [9161626364@mobile.crestdial.com] from ip 185.117.83.202
  36. 2021-01-13 08:07:14.461083 [NOTICE] switch_channel.c:1118 New Channel sofia/default/9161626364@mobile.crestdial.com [e5ffc9c8-e256-49d7-8b01-73819486dc81]
  37. 2021-01-13 08:07:14.461083 [DEBUG] switch_core_state_machine.c:585 (sofia/default/9161626364@mobile.crestdial.com) Running State Change CS_NEW (Cur 1 Tot 405)
  38. 2021-01-13 08:07:14.461083 [DEBUG] sofia.c:10280 sofia/default/9161626364@mobile.crestdial.com receiving invite from 185.117.83.202:25080 version: 1.10.5 -release-17-25569c1631 64bit
  39. 2021-01-13 08:07:14.461083 [DEBUG] sofia.c:10374 verifying acl "default" for ip/port 185.117.83.202:0.
  40. 2021-01-13 08:07:14.461083 [DEBUG] sofia.c:2434 detaching session e5ffc9c8-e256-49d7-8b01-73819486dc81
  41. 2021-01-13 08:07:14.461083 [WARNING] sofia_reg.c:1794 SIP auth challenge (INVITE) on sofia profile 'default' for [91212223@mobile.crestdial.com] from ip 185.117.83.202
  42. 2021-01-13 08:07:14.461083 [DEBUG] switch_core_state_machine.c:604 (sofia/default/9161626364@mobile.crestdial.com) State NEW
  43. 2021-01-13 08:07:15.081085 [DEBUG] sofia.c:2544 Re-attaching to session e5ffc9c8-e256-49d7-8b01-73819486dc81
  44. 2021-01-13 08:07:15.101080 [DEBUG] sofia.c:10280 sofia/default/9161626364@mobile.crestdial.com receiving invite from 185.117.83.202:25080 version: 1.10.5 -release-17-25569c1631 64bit
  45. 2021-01-13 08:07:15.101080 [DEBUG] sofia.c:10374 verifying acl "default" for ip/port 185.117.83.202:0.
  46. 2021-01-13 08:07:15.121081 [DEBUG] sofia.c:7326 Channel sofia/default/9161626364@mobile.crestdial.com entering state [received][100]
  47. 2021-01-13 08:07:15.121081 [DEBUG] sofia.c:7336 Remote SDP:
  48. v=0
  49. o=Zoiper 1610525233374 1 IN IP4 42.106.26.11
  50. s=Z
  51. c=IN IP4 42.106.26.11
  52. t=0 0
  53. m=audio 15738 RTP/AVP 106 9 98 101 0 8 18 3
  54. a=rtpmap:106 opus/48000/2
  55. a=fmtp:106 sprop-maxcapturerate=16000; minptime=20; useinbandfec=1
  56. a=rtpmap:98 telephone-event/48000
  57. a=fmtp:98 0-16
  58. a=rtpmap:101 telephone-event/8000
  59. a=fmtp:101 0-16
  60. a=rtpmap:18 G729/8000
  61. a=fmtp:18 annexb=no
  62.  
  63. 2021-01-13 08:07:15.121081 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [opus:106:48000:20:0:2]/[PCMA:8:8000:20:64000:1]
  64. 2021-01-13 08:07:15.121081 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [opus:106:48000:20:0:2]/[PCMU:0:8000:20:64000:1]
  65. 2021-01-13 08:07:15.121081 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [G722:9:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  66. 2021-01-13 08:07:15.121081 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [G722:9:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  67. 2021-01-13 08:07:15.121081 [DEBUG] switch_core_media.c:5510 Set telephone-event payload to 98@48000
  68. 2021-01-13 08:07:15.121081 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  69. 2021-01-13 08:07:15.121081 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  70. 2021-01-13 08:07:15.121081 [DEBUG] switch_core_media.c:5649 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  71. 2021-01-13 08:07:15.121081 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  72. 2021-01-13 08:07:15.121081 [DEBUG] switch_core_media.c:5649 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  73. 2021-01-13 08:07:15.121081 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  74. 2021-01-13 08:07:15.121081 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
  75. 2021-01-13 08:07:15.121081 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1]
  76. 2021-01-13 08:07:15.121081 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMA:8:8000:20:64000:1]
  77. 2021-01-13 08:07:15.121081 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMU:0:8000:20:64000:1]
  78. 2021-01-13 08:07:15.121081 [DEBUG] switch_core_media.c:3839 Set Codec sofia/default/9161626364@mobile.crestdial.com PCMU/8000 20 ms 160 samples 64000 bits 1 channels
  79. 2021-01-13 08:07:15.121081 [DEBUG] switch_core_codec.c:111 sofia/default/9161626364@mobile.crestdial.com Original read codec set to PCMU:0
  80. 2021-01-13 08:07:15.121081 [DEBUG] switch_core_media.c:5853 Set telephone-event payload to 101@8000
  81. 2021-01-13 08:07:15.121081 [DEBUG] switch_core_media.c:5911 sofia/default/9161626364@mobile.crestdial.com Set 2833 dtmf send payload to 101 recv payload to 101
  82. 2021-01-13 08:07:15.121081 [DEBUG] sofia.c:7760 (sofia/default/9161626364@mobile.crestdial.com) State Change CS_NEW -> CS_INIT
  83. 2021-01-13 08:07:15.121081 [DEBUG] switch_core_state_machine.c:585 (sofia/default/9161626364@mobile.crestdial.com) Running State Change CS_INIT (Cur 1 Tot 405)
  84. 2021-01-13 08:07:15.121081 [DEBUG] switch_core_state_machine.c:628 (sofia/default/9161626364@mobile.crestdial.com) State INIT
  85. 2021-01-13 08:07:15.121081 [DEBUG] mod_sofia.c:93 sofia/default/9161626364@mobile.crestdial.com SOFIA INIT
  86. 2021-01-13 08:07:15.121081 [DEBUG] switch_core_state_machine.c:40 sofia/default/9161626364@mobile.crestdial.com Standard INIT
  87. 2021-01-13 08:07:15.121081 [DEBUG] switch_core_state_machine.c:48 (sofia/default/9161626364@mobile.crestdial.com) State Change CS_INIT -> CS_ROUTING
  88. 2021-01-13 08:07:15.121081 [DEBUG] switch_core_state_machine.c:628 (sofia/default/9161626364@mobile.crestdial.com) State INIT going to sleep
  89. 2021-01-13 08:07:15.121081 [DEBUG] switch_core_state_machine.c:585 (sofia/default/9161626364@mobile.crestdial.com) Running State Change CS_ROUTING (Cur 1 Tot 405)
  90. 2021-01-13 08:07:15.121081 [DEBUG] switch_channel.c:2332 (sofia/default/9161626364@mobile.crestdial.com) Callstate Change DOWN -> RINGING
  91. 2021-01-13 08:07:15.121081 [DEBUG] switch_core_state_machine.c:644 (sofia/default/9161626364@mobile.crestdial.com) State ROUTING
  92. 2021-01-13 08:07:15.121081 [DEBUG] mod_sofia.c:154 sofia/default/9161626364@mobile.crestdial.com SOFIA ROUTING
  93. 2021-01-13 08:07:15.121081 [DEBUG] switch_core_state_machine.c:236 sofia/default/9161626364@mobile.crestdial.com Standard ROUTING
  94. 2021-01-13 08:07:15.121081 [INFO] mod_dialplan_xml.c:637 Processing 9161626364 <9161626364>->91212223 in context default
  95. 2021-01-13 08:07:15.221080 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  96. 2021-01-13 08:07:15.241104 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  97. 2021-01-13 08:07:15.261081 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Dialed number : 91212223
  98. 2021-01-13 08:07:15.261081 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '91212223' AND status=0 limit 1
  99. 2021-01-13 08:07:15.281091 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Caller Id name / number  : 9161626364 / 9161626364
  100. 2021-01-13 08:07:15.281091 [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 ="91212223" LIMIT 1
  101. 2021-01-13 08:07:15.281091 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT 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 WHERE accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="91212223" limit 1
  102. 2021-01-13 08:07:15.281091 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Call direction : local
  103. 2021-01-13 08:07:15.281091 [INFO] switch_cpp.cpp:1447 [ASTPP] [Accountcode : 9161626364]
  104. 2021-01-13 08:07:15.281091 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "9161626364" AND deleted = 0 limit 1
  105. 2021-01-13 08:07:15.941080 [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 ="91212223" AND A.accountid = '57' limit 1
  106. 2021-01-13 08:07:15.961087 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 91212223
  107. 2021-01-13 08:07:15.961087 [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 ="91212223" LIMIT 1
  108. 2021-01-13 08:07:15.961087 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT 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 WHERE accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="91212223" limit 1
  109. 2021-01-13 08:07:15.961087 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] New Call direction : local
  110. 2021-01-13 08:07:15.961087 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="91212223" AND (accountid = 0 OR status = 1) LIMIT 1
  111. 2021-01-13 08:07:15.961087 [NOTICE] switch_cpp.cpp:1447 [ASTPP] Localization Id: 1
  112. 2021-01-13 08:07:15.961087 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 1 AND status=0 limit 1
  113. 2021-01-13 08:07:15.961087 [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 = '^91212223.*' OR patterns = '^9121222.*' OR patterns = '^912122.*' OR patterns = '^91212.*' OR patterns = '^9121.*' OR patterns = '^912.*' OR patterns = '^91.*' OR patterns = '^9.*' OR patterns ='--') AND accountid = 57 ORDER BY LENGTH(PKGPTR.patterns) DESC
  114. 2021-01-13 08:07:16.001082 [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 = '91212223' OR number = '9121222' OR number = '912122' OR number = '91212' OR number = '9121' OR number = '912' OR number = '91' OR number = '9' OR number ='--') OR (number = '91212223*' OR number = '9121222*' OR number = '912122*' OR number = '91212*' OR number = '9121*' OR number = '912*' OR number = '91*' OR number = '9*' OR number ='--') OR (number = '9161626364' OR number = '916162636' OR number = '91616263' OR number = '9161626' OR number = '916162' OR number = '91616' OR number = '9161' OR number = '916' OR number = '91' OR number = '9' OR number ='--') OR (number = '9161626364*' OR number = '916162636*' OR number = '91616263*' OR number = '9161626*' OR number = '916162*' OR number = '91616*' OR number = '9161*' OR number = '916*' OR number = '91*' OR number = '9*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC
  115. 2021-01-13 08:07:16.001082 [DEBUG] switch_cpp.cpp:1447 [ASTPP] Call Barring Status : -1
  116. 2021-01-13 08:07:16.001082 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '91212223' OR routing_prefix = '9121222' OR routing_prefix = '912122' OR routing_prefix = '91212' OR routing_prefix = '9121' OR routing_prefix = '912' OR routing_prefix = '91' OR routing_prefix = '9' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1
  117. 2021-01-13 08:07:16.021080 [INFO] switch_cpp.cpp:1447 [ASTPP] =============== Account Information ===================
  118. 2021-01-13 08:07:16.021080 [INFO] switch_cpp.cpp:1447 [ASTPP] User id : 57
  119. 2021-01-13 08:07:16.021080 [INFO] switch_cpp.cpp:1447 [ASTPP] Account code : 9161626364
  120. 2021-01-13 08:07:16.021080 [INFO] switch_cpp.cpp:1447 [ASTPP] Balance : 100
  121. 2021-01-13 08:07:16.021080 [INFO] switch_cpp.cpp:1447 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  122. 2021-01-13 08:07:16.021080 [INFO] switch_cpp.cpp:1447 [ASTPP] Ratecard id : 1
  123. 2021-01-13 08:07:16.021080 [INFO] switch_cpp.cpp:1447 [ASTPP] CID Pool : 0
  124. 2021-01-13 08:07:16.021080 [INFO] switch_cpp.cpp:1447 [ASTPP] ========================================================
  125. 2021-01-13 08:07:16.021080 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0
  126. 2021-01-13 08:07:16.021080 [WARNING] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] free_inbound!!!1
  127. 2021-01-13 08:07:16.021080 [WARNING] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] charge_per_min!!!0
  128. 2021-01-13 08:07:16.021080 [INFO] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] Your100 balance Accountid 57 !!!
  129. 2021-01-13 08:07:16.021080 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] Call is free - assigning max length!!! :: 100
  130. 2021-01-13 08:07:16.021080 [INFO] switch_cpp.cpp:1447 [ASTPP] Call Max length duration : 100 minutes
  131. 2021-01-13 08:07:16.021080 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT 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 WHERE accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="91212223" limit 1
  132. 2021-01-13 08:07:16.021080 [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 = 57 AND status=0 LIMIT 1
  133. 2021-01-13 08:07:16.021080 [INFO] switch_cpp.cpp:1447 [ASTPP] maxlength::::::::: 100
  134. 2021-01-13 08:07:16.021080 [ERR] mod_lua.cpp:202 /usr/share/freeswitch/scripts/astpp/scripts/astpp.xml.lua:467: attempt to concatenate global 'from_ip' (a nil value)
  135. stack traceback:
  136.         /usr/share/freeswitch/scripts/astpp/scripts/astpp.xml.lua:467: in function 'freeswitch_xml_local'
  137.         ...hare/freeswitch/scripts/astpp/scripts/astpp.dialplan.lua:686: in main chunk
  138.         [C]: in function 'dofile'
  139.         /usr/share/freeswitch/scripts/astpp/astpp.lua:86: in main chunk
  140. 2021-01-13 08:07:16.021080 [ERR] mod_lua.cpp:270 LUA script parse/execute error!
  141. 2021-01-13 08:07:16.021080 [WARNING] mod_dialplan_xml.c:667 Context default not found
  142. 2021-01-13 08:07:16.021080 [INFO] switch_core_state_machine.c:312 No Route, Aborting
  143. 2021-01-13 08:07:16.021080 [NOTICE] switch_core_state_machine.c:313 Hangup sofia/default/9161626364@mobile.crestdial.com [CS_ROUTING] [NO_ROUTE_DESTINATION]
  144. 2021-01-13 08:07:16.021080 [DEBUG] switch_core_state_machine.c:644 (sofia/default/9161626364@mobile.crestdial.com) State ROUTING going to sleep
  145. 2021-01-13 08:07:16.021080 [DEBUG] switch_core_state_machine.c:585 (sofia/default/9161626364@mobile.crestdial.com) Running State Change CS_HANGUP (Cur 1 Tot 405)
  146. 2021-01-13 08:07:16.021080 [DEBUG] switch_core_state_machine.c:848 (sofia/default/9161626364@mobile.crestdial.com) Callstate Change RINGING -> HANGUP
  147. 2021-01-13 08:07:16.021080 [DEBUG] switch_core_state_machine.c:850 (sofia/default/9161626364@mobile.crestdial.com) State HANGUP
  148. 2021-01-13 08:07:16.021080 [DEBUG] mod_sofia.c:453 Channel sofia/default/9161626364@mobile.crestdial.com hanging up, cause: NO_ROUTE_DESTINATION
  149. 2021-01-13 08:07:16.021080 [DEBUG] mod_sofia.c:598 Responding to INVITE with: 404
  150. 2021-01-13 08:07:16.021080 [DEBUG] switch_core_state_machine.c:60 sofia/default/9161626364@mobile.crestdial.com Standard HANGUP, cause: NO_ROUTE_DESTINATION
  151. 2021-01-13 08:07:16.021080 [DEBUG] switch_core_state_machine.c:850 (sofia/default/9161626364@mobile.crestdial.com) State HANGUP going to sleep
  152. 2021-01-13 08:07:16.021080 [DEBUG] switch_core_state_machine.c:620 (sofia/default/9161626364@mobile.crestdial.com) State Change CS_HANGUP -> CS_REPORTING
  153. 2021-01-13 08:07:16.021080 [DEBUG] switch_core_state_machine.c:585 (sofia/default/9161626364@mobile.crestdial.com) Running State Change CS_REPORTING (Cur 1 Tot 405)
  154. 2021-01-13 08:07:16.021080 [DEBUG] switch_core_state_machine.c:936 (sofia/default/9161626364@mobile.crestdial.com) State REPORTING
  155. 2021-01-13 08:07:16.021080 [INFO] mod_json_cdr.c:271 Process [e5ffc9c8-e256-49d7-8b01-73819486dc81.cdr.json]
  156. 2021-01-13 08:07:16.041105 [DEBUG] switch_core_state_machine.c:174 sofia/default/9161626364@mobile.crestdial.com Standard REPORTING, cause: NO_ROUTE_DESTINATION
  157. 2021-01-13 08:07:16.041105 [DEBUG] switch_core_state_machine.c:936 (sofia/default/9161626364@mobile.crestdial.com) State REPORTING going to sleep
  158. 2021-01-13 08:07:16.041105 [DEBUG] switch_core_state_machine.c:611 (sofia/default/9161626364@mobile.crestdial.com) State Change CS_REPORTING -> CS_DESTROY
  159. 2021-01-13 08:07:16.041105 [DEBUG] switch_core_session.c:1726 Session 405 (sofia/default/9161626364@mobile.crestdial.com) Locked, Waiting on external entities
  160. 2021-01-13 08:07:16.041105 [NOTICE] switch_core_session.c:1744 Session 405 (sofia/default/9161626364@mobile.crestdial.com) Ended
  161. 2021-01-13 08:07:16.041105 [NOTICE] switch_core_session.c:1748 Close Channel sofia/default/9161626364@mobile.crestdial.com [CS_DESTROY]
  162. 2021-01-13 08:07:16.041105 [DEBUG] switch_core_state_machine.c:739 (sofia/default/9161626364@mobile.crestdial.com) Running State Change CS_DESTROY (Cur 0 Tot 405)
  163. 2021-01-13 08:07:16.041105 [DEBUG] switch_core_state_machine.c:749 (sofia/default/9161626364@mobile.crestdial.com) State DESTROY
  164. 2021-01-13 08:07:16.041105 [DEBUG] mod_sofia.c:364 sofia/default/9161626364@mobile.crestdial.com SOFIA DESTROY
  165. 2021-01-13 08:07:16.041105 [DEBUG] switch_core_state_machine.c:181 sofia/default/9161626364@mobile.crestdial.com Standard DESTROY
  166. 2021-01-13 08:07:16.041105 [DEBUG] switch_core_state_machine.c:749 (sofia/default/9161626364@mobile.crestdial.com) State DESTROY going to sleep
  167. 2021-01-13 08:07:51.561102 [NOTICE] switch_channel.c:1118 New Channel sofia/default/91212223@mobile.crestdial.com [41f665ba-4634-4e7d-b549-73fd8a2a2d81]
  168. 2021-01-13 08:07:51.561102 [DEBUG] switch_core_state_machine.c:585 (sofia/default/91212223@mobile.crestdial.com) Running State Change CS_NEW (Cur 1 Tot 406)
  169. 2021-01-13 08:07:51.561102 [DEBUG] sofia.c:10280 sofia/default/91212223@mobile.crestdial.com receiving invite from 49.34.57.10:52127 version: 1.10.5 -release-17-25569c1631 64bit
  170. 2021-01-13 08:07:51.561102 [DEBUG] sofia.c:10374 verifying acl "default" for ip/port 49.34.57.10:0.
  171. 2021-01-13 08:07:51.561102 [DEBUG] sofia.c:2434 detaching session 41f665ba-4634-4e7d-b549-73fd8a2a2d81
  172. 2021-01-13 08:07:51.561102 [WARNING] sofia_reg.c:1794 SIP auth challenge (INVITE) on sofia profile 'default' for [9161626364@mobile.crestdial.com] from ip 49.34.57.10
  173. 2021-01-13 08:07:51.561102 [DEBUG] switch_core_state_machine.c:604 (sofia/default/91212223@mobile.crestdial.com) State NEW
  174. 2021-01-13 08:07:52.321110 [DEBUG] sofia.c:2544 Re-attaching to session 41f665ba-4634-4e7d-b549-73fd8a2a2d81
  175. 2021-01-13 08:07:52.321110 [DEBUG] sofia.c:10280 sofia/default/91212223@mobile.crestdial.com receiving invite from 49.34.57.10:52127 version: 1.10.5 -release-17-25569c1631 64bit
  176. 2021-01-13 08:07:52.321110 [DEBUG] sofia.c:10374 verifying acl "default" for ip/port 49.34.57.10:0.
  177. 2021-01-13 08:07:52.341102 [DEBUG] sofia.c:11477 Setting NAT mode based on via received
  178. 2021-01-13 08:07:52.341102 [DEBUG] sofia.c:7326 Channel sofia/default/91212223@mobile.crestdial.com entering state [received][100]
  179. 2021-01-13 08:07:52.341102 [DEBUG] sofia.c:7336 Remote SDP:
  180. v=0
  181. o=91212223 79 2126 IN IP4 192.168.234.188
  182. s=Talk
  183. c=IN IP4 192.168.234.188
  184. t=0 0
  185. a=rtcp-xr:rcvr-rtt=all:10000 stat-summary=loss,dup,jitt,TTL voip-metrics
  186. m=audio 7078 RTP/AVP 96 97 98 0 8 18 101 99 100
  187. a=rtpmap:96 opus/48000/2
  188. a=fmtp:96 useinbandfec=1
  189. a=rtpmap:97 speex/16000
  190. a=fmtp:97 vbr=on
  191. a=rtpmap:98 speex/8000
  192. a=fmtp:98 vbr=on
  193. a=fmtp:18 annexb=yes
  194. a=rtpmap:101 telephone-event/48000
  195. a=rtpmap:99 telephone-event/16000
  196. a=rtpmap:100 telephone-event/8000
  197. a=rtcp-fb:* trr-int 1000
  198. a=rtcp-fb:* ccm tmmbr
  199.  
  200. 2021-01-13 08:07:52.341102 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [opus:96:48000:20:0:2]/[PCMA:8:8000:20:64000:1]
  201. 2021-01-13 08:07:52.341102 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [opus:96:48000:20:0:2]/[PCMU:0:8000:20:64000:1]
  202. 2021-01-13 08:07:52.341102 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [speex:97:16000:20:0:1]/[PCMA:8:8000:20:64000:1]
  203. 2021-01-13 08:07:52.341102 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [speex:97:16000:20:0:1]/[PCMU:0:8000:20:64000:1]
  204. 2021-01-13 08:07:52.341102 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [speex:98:8000:20:0:1]/[PCMA:8:8000:20:64000:1]
  205. 2021-01-13 08:07:52.341102 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [speex:98:8000:20:0:1]/[PCMU:0:8000:20:64000:1]
  206. 2021-01-13 08:07:52.341102 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  207. 2021-01-13 08:07:52.341102 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  208. 2021-01-13 08:07:52.341102 [DEBUG] switch_core_media.c:5649 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  209. 2021-01-13 08:07:52.341102 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  210. 2021-01-13 08:07:52.341102 [DEBUG] switch_core_media.c:5649 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  211. 2021-01-13 08:07:52.341102 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  212. 2021-01-13 08:07:52.341102 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
  213. 2021-01-13 08:07:52.341102 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1]
  214. 2021-01-13 08:07:52.341102 [DEBUG] switch_core_media.c:5510 Set telephone-event payload to 101@48000
  215. 2021-01-13 08:07:52.341102 [DEBUG] switch_core_media.c:3839 Set Codec sofia/default/91212223@mobile.crestdial.com PCMU/8000 20 ms 160 samples 64000 bits 1 channels
  216. 2021-01-13 08:07:52.341102 [DEBUG] switch_core_codec.c:111 sofia/default/91212223@mobile.crestdial.com Original read codec set to PCMU:0
  217. 2021-01-13 08:07:52.341102 [DEBUG] switch_core_media.c:5853 Set telephone-event payload to 100@8000
  218. 2021-01-13 08:07:52.341102 [DEBUG] switch_core_media.c:5911 sofia/default/91212223@mobile.crestdial.com Set 2833 dtmf send payload to 100 recv payload to 100
  219. 2021-01-13 08:07:52.341102 [DEBUG] sofia.c:7760 (sofia/default/91212223@mobile.crestdial.com) State Change CS_NEW -> CS_INIT
  220. 2021-01-13 08:07:52.341102 [DEBUG] switch_core_state_machine.c:585 (sofia/default/91212223@mobile.crestdial.com) Running State Change CS_INIT (Cur 1 Tot 406)
  221. 2021-01-13 08:07:52.341102 [DEBUG] switch_core_state_machine.c:628 (sofia/default/91212223@mobile.crestdial.com) State INIT
  222. 2021-01-13 08:07:52.341102 [DEBUG] mod_sofia.c:93 sofia/default/91212223@mobile.crestdial.com SOFIA INIT
  223. 2021-01-13 08:07:52.341102 [DEBUG] switch_core_state_machine.c:40 sofia/default/91212223@mobile.crestdial.com Standard INIT
  224. 2021-01-13 08:07:52.341102 [DEBUG] switch_core_state_machine.c:48 (sofia/default/91212223@mobile.crestdial.com) State Change CS_INIT -> CS_ROUTING
  225. 2021-01-13 08:07:52.341102 [DEBUG] switch_core_state_machine.c:628 (sofia/default/91212223@mobile.crestdial.com) State INIT going to sleep
  226. 2021-01-13 08:07:52.341102 [DEBUG] switch_core_state_machine.c:585 (sofia/default/91212223@mobile.crestdial.com) Running State Change CS_ROUTING (Cur 1 Tot 406)
  227. 2021-01-13 08:07:52.341102 [DEBUG] switch_channel.c:2332 (sofia/default/91212223@mobile.crestdial.com) Callstate Change DOWN -> RINGING
  228. 2021-01-13 08:07:52.341102 [DEBUG] switch_core_state_machine.c:644 (sofia/default/91212223@mobile.crestdial.com) State ROUTING
  229. 2021-01-13 08:07:52.341102 [DEBUG] mod_sofia.c:154 sofia/default/91212223@mobile.crestdial.com SOFIA ROUTING
  230. 2021-01-13 08:07:52.341102 [DEBUG] switch_core_state_machine.c:236 sofia/default/91212223@mobile.crestdial.com Standard ROUTING
  231. 2021-01-13 08:07:52.341102 [INFO] mod_dialplan_xml.c:637 Processing 91212223 <91212223>->9161626364 in context default
  232. 2021-01-13 08:07:52.381074 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  233. 2021-01-13 08:07:52.401100 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  234. 2021-01-13 08:07:52.401100 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Dialed number : 9161626364
  235. 2021-01-13 08:07:52.401100 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '9161626364' AND status=0 limit 1
  236. 2021-01-13 08:07:52.421077 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Caller Id name / number  : 91212223 / 91212223
  237. 2021-01-13 08:07:52.421077 [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 ="9161626364" LIMIT 1
  238. 2021-01-13 08:07:52.421077 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT 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 WHERE accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="9161626364" limit 1
  239. 2021-01-13 08:07:52.421077 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Call direction : local
  240. 2021-01-13 08:07:52.421077 [INFO] switch_cpp.cpp:1447 [ASTPP] [Accountcode : 9161626364]
  241. 2021-01-13 08:07:52.421077 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "9161626364" AND deleted = 0 limit 1
  242. 2021-01-13 08:07:52.861076 [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 ="9161626364" AND A.accountid = '57' limit 1
  243. 2021-01-13 08:07:52.861076 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 9161626364
  244. 2021-01-13 08:07:52.861076 [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 ="9161626364" LIMIT 1
  245. 2021-01-13 08:07:52.861076 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT 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 WHERE accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="9161626364" limit 1
  246. 2021-01-13 08:07:52.861076 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] New Call direction : local
  247. 2021-01-13 08:07:52.861076 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="9161626364" AND (accountid = 0 OR status = 1) LIMIT 1
  248. 2021-01-13 08:07:52.861076 [NOTICE] switch_cpp.cpp:1447 [ASTPP] Localization Id: 1
  249. 2021-01-13 08:07:52.861076 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 1 AND status=0 limit 1
  250. 2021-01-13 08:07:52.861076 [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 = '^9161626364.*' OR patterns = '^916162636.*' OR patterns = '^91616263.*' OR patterns = '^9161626.*' OR patterns = '^916162.*' OR patterns = '^91616.*' OR patterns = '^9161.*' OR patterns = '^916.*' OR patterns = '^91.*' OR patterns = '^9.*' OR patterns ='--') AND accountid = 57 ORDER BY LENGTH(PKGPTR.patterns) DESC
  251. 2021-01-13 08:07:52.881076 [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 = '9161626364' OR number = '916162636' OR number = '91616263' OR number = '9161626' OR number = '916162' OR number = '91616' OR number = '9161' OR number = '916' OR number = '91' OR number = '9' OR number ='--') OR (number = '9161626364*' OR number = '916162636*' OR number = '91616263*' OR number = '9161626*' OR number = '916162*' OR number = '91616*' OR number = '9161*' OR number = '916*' OR number = '91*' OR number = '9*' OR number ='--') OR (number = '91212223' OR number = '9121222' OR number = '912122' OR number = '91212' OR number = '9121' OR number = '912' OR number = '91' OR number = '9' OR number ='--') OR (number = '91212223*' OR number = '9121222*' OR number = '912122*' OR number = '91212*' OR number = '9121*' OR number = '912*' OR number = '91*' OR number = '9*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC
  252. 2021-01-13 08:07:52.881076 [DEBUG] switch_cpp.cpp:1447 [ASTPP] Call Barring Status : -1
  253. 2021-01-13 08:07:52.881076 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '9161626364' OR routing_prefix = '916162636' OR routing_prefix = '91616263' OR routing_prefix = '9161626' OR routing_prefix = '916162' OR routing_prefix = '91616' OR routing_prefix = '9161' OR routing_prefix = '916' OR routing_prefix = '91' OR routing_prefix = '9' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1
  254. 2021-01-13 08:07:52.881076 [INFO] switch_cpp.cpp:1447 [ASTPP] =============== Account Information ===================
  255. 2021-01-13 08:07:52.881076 [INFO] switch_cpp.cpp:1447 [ASTPP] User id : 57
  256. 2021-01-13 08:07:52.881076 [INFO] switch_cpp.cpp:1447 [ASTPP] Account code : 9161626364
  257. 2021-01-13 08:07:52.881076 [INFO] switch_cpp.cpp:1447 [ASTPP] Balance : 100
  258. 2021-01-13 08:07:52.881076 [INFO] switch_cpp.cpp:1447 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  259. 2021-01-13 08:07:52.881076 [INFO] switch_cpp.cpp:1447 [ASTPP] Ratecard id : 1
  260. 2021-01-13 08:07:52.881076 [INFO] switch_cpp.cpp:1447 [ASTPP] CID Pool : 0
  261. 2021-01-13 08:07:52.881076 [INFO] switch_cpp.cpp:1447 [ASTPP] ========================================================
  262. 2021-01-13 08:07:52.881076 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0
  263. 2021-01-13 08:07:52.901078 [WARNING] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] free_inbound!!!1
  264. 2021-01-13 08:07:52.901078 [WARNING] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] charge_per_min!!!0
  265. 2021-01-13 08:07:52.901078 [INFO] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] Your100 balance Accountid 57 !!!
  266. 2021-01-13 08:07:52.901078 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] Call is free - assigning max length!!! :: 100
  267. 2021-01-13 08:07:52.901078 [INFO] switch_cpp.cpp:1447 [ASTPP] Call Max length duration : 100 minutes
  268. 2021-01-13 08:07:52.901078 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT 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 WHERE accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="9161626364" limit 1
  269. 2021-01-13 08:07:52.901078 [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 = 57 AND status=0 LIMIT 1
  270. 2021-01-13 08:07:52.901078 [INFO] switch_cpp.cpp:1447 [ASTPP] maxlength::::::::: 100
  271. 2021-01-13 08:07:52.901078 [ERR] mod_lua.cpp:202 /usr/share/freeswitch/scripts/astpp/scripts/astpp.xml.lua:467: attempt to concatenate global 'from_ip' (a nil value)
  272. stack traceback:
  273.         /usr/share/freeswitch/scripts/astpp/scripts/astpp.xml.lua:467: in function 'freeswitch_xml_local'
  274.         ...hare/freeswitch/scripts/astpp/scripts/astpp.dialplan.lua:686: in main chunk
  275.         [C]: in function 'dofile'
  276.         /usr/share/freeswitch/scripts/astpp/astpp.lua:86: in main chunk
  277. 2021-01-13 08:07:52.901078 [ERR] mod_lua.cpp:270 LUA script parse/execute error!
  278. 2021-01-13 08:07:52.901078 [WARNING] mod_dialplan_xml.c:667 Context default not found
  279. 2021-01-13 08:07:52.901078 [INFO] switch_core_state_machine.c:312 No Route, Aborting
  280. 2021-01-13 08:07:52.901078 [NOTICE] switch_core_state_machine.c:313 Hangup sofia/default/91212223@mobile.crestdial.com [CS_ROUTING] [NO_ROUTE_DESTINATION]
  281. 2021-01-13 08:07:52.901078 [DEBUG] switch_core_state_machine.c:644 (sofia/default/91212223@mobile.crestdial.com) State ROUTING going to sleep
  282. 2021-01-13 08:07:52.901078 [DEBUG] switch_core_state_machine.c:585 (sofia/default/91212223@mobile.crestdial.com) Running State Change CS_HANGUP (Cur 1 Tot 406)
  283. 2021-01-13 08:07:52.901078 [DEBUG] switch_core_state_machine.c:848 (sofia/default/91212223@mobile.crestdial.com) Callstate Change RINGING -> HANGUP
  284. 2021-01-13 08:07:52.901078 [DEBUG] switch_core_state_machine.c:850 (sofia/default/91212223@mobile.crestdial.com) State HANGUP
  285. 2021-01-13 08:07:52.901078 [DEBUG] mod_sofia.c:453 Channel sofia/default/91212223@mobile.crestdial.com hanging up, cause: NO_ROUTE_DESTINATION
  286. 2021-01-13 08:07:52.901078 [DEBUG] mod_sofia.c:598 Responding to INVITE with: 404
  287. 2021-01-13 08:07:52.901078 [DEBUG] switch_core_state_machine.c:60 sofia/default/91212223@mobile.crestdial.com Standard HANGUP, cause: NO_ROUTE_DESTINATION
  288. 2021-01-13 08:07:52.901078 [DEBUG] switch_core_state_machine.c:850 (sofia/default/91212223@mobile.crestdial.com) State HANGUP going to sleep
  289. 2021-01-13 08:07:52.901078 [DEBUG] switch_core_state_machine.c:620 (sofia/default/91212223@mobile.crestdial.com) State Change CS_HANGUP -> CS_REPORTING
  290. 2021-01-13 08:07:52.901078 [DEBUG] switch_core_state_machine.c:585 (sofia/default/91212223@mobile.crestdial.com) Running State Change CS_REPORTING (Cur 1 Tot 406)
  291. 2021-01-13 08:07:52.901078 [DEBUG] switch_core_state_machine.c:936 (sofia/default/91212223@mobile.crestdial.com) State REPORTING
  292. 2021-01-13 08:07:52.901078 [INFO] mod_json_cdr.c:271 Process [41f665ba-4634-4e7d-b549-73fd8a2a2d81.cdr.json]
  293. 2021-01-13 08:07:52.901078 [DEBUG] switch_core_state_machine.c:174 sofia/default/91212223@mobile.crestdial.com Standard REPORTING, cause: NO_ROUTE_DESTINATION
  294. 2021-01-13 08:07:52.901078 [DEBUG] switch_core_state_machine.c:936 (sofia/default/91212223@mobile.crestdial.com) State REPORTING going to sleep
  295. 2021-01-13 08:07:52.901078 [DEBUG] switch_core_state_machine.c:611 (sofia/default/91212223@mobile.crestdial.com) State Change CS_REPORTING -> CS_DESTROY
  296. 2021-01-13 08:07:52.901078 [DEBUG] switch_core_session.c:1726 Session 406 (sofia/default/91212223@mobile.crestdial.com) Locked, Waiting on external entities
  297. 2021-01-13 08:07:52.901078 [NOTICE] switch_core_session.c:1744 Session 406 (sofia/default/91212223@mobile.crestdial.com) Ended
  298. 2021-01-13 08:07:52.901078 [NOTICE] switch_core_session.c:1748 Close Channel sofia/default/91212223@mobile.crestdial.com [CS_DESTROY]
  299. 2021-01-13 08:07:52.901078 [DEBUG] switch_core_state_machine.c:739 (sofia/default/91212223@mobile.crestdial.com) Running State Change CS_DESTROY (Cur 0 Tot 406)
  300. 2021-01-13 08:07:52.901078 [DEBUG] switch_core_state_machine.c:749 (sofia/default/91212223@mobile.crestdial.com) State DESTROY
  301. 2021-01-13 08:07:52.901078 [DEBUG] mod_sofia.c:364 sofia/default/91212223@mobile.crestdial.com SOFIA DESTROY
  302. 2021-01-13 08:07:52.901078 [DEBUG] switch_core_state_machine.c:181 sofia/default/91212223@mobile.crestdial.com Standard DESTROY
  303. 2021-01-13 08:07:52.901078 [DEBUG] switch_core_state_machine.c:749 (sofia/default/91212223@mobile.crestdial.com) State DESTROY going to sleep
  304. 2021-01-13 08:09:04.581162 [NOTICE] switch_channel.c:1118 New Channel sofia/default/1001@13.235.24.114 [ea73d209-0b5e-4c0d-ab14-472d32af162f]
  305. 2021-01-13 08:09:04.581162 [DEBUG] switch_core_state_machine.c:585 (sofia/default/1001@13.235.24.114) Running State Change CS_NEW (Cur 1 Tot 407)
  306. 2021-01-13 08:09:04.581162 [DEBUG] sofia.c:10280 sofia/default/1001@13.235.24.114 receiving invite from 185.16.38.4:55497 version: 1.10.5 -release-17-25569c1631 64bit
  307. 2021-01-13 08:09:04.581162 [DEBUG] sofia.c:10374 verifying acl "default" for ip/port 185.16.38.4:0.
  308. 2021-01-13 08:09:04.581162 [DEBUG] sofia.c:2434 detaching session ea73d209-0b5e-4c0d-ab14-472d32af162f
  309. 2021-01-13 08:09:04.581162 [WARNING] sofia_reg.c:1794 SIP auth challenge (INVITE) on sofia profile 'default' for [0046812420242@13.235.24.114] from ip 185.16.38.4
  310. 2021-01-13 08:09:04.581162 [DEBUG] switch_core_state_machine.c:604 (sofia/default/1001@13.235.24.114) State NEW
  311. 2021-01-13 08:09:04.741100 [DEBUG] sofia.c:2544 Re-attaching to session ea73d209-0b5e-4c0d-ab14-472d32af162f
  312. 2021-01-13 08:09:04.741100 [DEBUG] sofia.c:10280 sofia/default/1001@13.235.24.114 receiving invite from 185.16.38.4:55497 version: 1.10.5 -release-17-25569c1631 64bit
  313. 2021-01-13 08:09:04.741100 [DEBUG] sofia.c:10374 verifying acl "default" for ip/port 185.16.38.4:0.
  314. 2021-01-13 08:09:04.741100 [WARNING] sofia_reg.c:2930 Can't find user [1001@13.235.24.114] from 185.16.38.4
  315. You must define a domain called '13.235.24.114' in your directory and add a user with the id="1001" attribute
  316. and you must configure your device to use the proper domain in its authentication credentials.
  317. 2021-01-13 08:09:04.741100 [NOTICE] sofia.c:2432 Hangup sofia/default/1001@13.235.24.114 [CS_NEW] [CALL_REJECTED]
  318. 2021-01-13 08:09:04.741100 [WARNING] sofia_reg.c:1739 SIP auth failure (INVITE) on sofia profile 'default' for [0046812420242@13.235.24.114] from ip 185.16.38.4
  319. 2021-01-13 08:09:04.741100 [DEBUG] sofia.c:1548 Channel is already hungup.
  320. 2021-01-13 08:09:04.741100 [DEBUG] sofia.c:1548 Channel is already hungup.
  321. 2021-01-13 08:09:04.741100 [DEBUG] switch_core_state_machine.c:585 (sofia/default/1001@13.235.24.114) Running State Change CS_HANGUP (Cur 1 Tot 407)
  322. 2021-01-13 08:09:04.741100 [DEBUG] switch_core_state_machine.c:848 (sofia/default/1001@13.235.24.114) Callstate Change DOWN -> HANGUP
  323. 2021-01-13 08:09:04.741100 [DEBUG] switch_core_state_machine.c:850 (sofia/default/1001@13.235.24.114) State HANGUP
  324. 2021-01-13 08:09:04.741100 [DEBUG] mod_sofia.c:453 Channel sofia/default/1001@13.235.24.114 hanging up, cause: CALL_REJECTED
  325. 2021-01-13 08:09:04.741100 [DEBUG] switch_core_state_machine.c:60 sofia/default/1001@13.235.24.114 Standard HANGUP, cause: CALL_REJECTED
  326. 2021-01-13 08:09:04.741100 [DEBUG] switch_core_state_machine.c:850 (sofia/default/1001@13.235.24.114) State HANGUP going to sleep
  327. 2021-01-13 08:09:04.741100 [DEBUG] switch_core_state_machine.c:620 (sofia/default/1001@13.235.24.114) State Change CS_HANGUP -> CS_REPORTING
  328. 2021-01-13 08:09:04.741100 [DEBUG] switch_core_state_machine.c:585 (sofia/default/1001@13.235.24.114) Running State Change CS_REPORTING (Cur 1 Tot 407)
  329. 2021-01-13 08:09:04.741100 [DEBUG] switch_core_state_machine.c:936 (sofia/default/1001@13.235.24.114) State REPORTING
  330. 2021-01-13 08:09:04.741100 [DEBUG] switch_core_state_machine.c:174 sofia/default/1001@13.235.24.114 Standard REPORTING, cause: CALL_REJECTED
  331. 2021-01-13 08:09:04.741100 [DEBUG] switch_core_state_machine.c:936 (sofia/default/1001@13.235.24.114) State REPORTING going to sleep
  332. 2021-01-13 08:09:04.741100 [DEBUG] switch_core_state_machine.c:611 (sofia/default/1001@13.235.24.114) State Change CS_REPORTING -> CS_DESTROY
  333. 2021-01-13 08:09:04.741100 [DEBUG] switch_core_session.c:1726 Session 407 (sofia/default/1001@13.235.24.114) Locked, Waiting on external entities
  334. 2021-01-13 08:09:04.741100 [NOTICE] switch_core_session.c:1744 Session 407 (sofia/default/1001@13.235.24.114) Ended
  335. 2021-01-13 08:09:04.741100 [NOTICE] switch_core_session.c:1748 Close Channel sofia/default/1001@13.235.24.114 [CS_DESTROY]
  336. 2021-01-13 08:09:04.741100 [DEBUG] switch_core_state_machine.c:739 (sofia/default/1001@13.235.24.114) Running State Change CS_DESTROY (Cur 0 Tot 407)
  337. 2021-01-13 08:09:04.741100 [DEBUG] switch_core_state_machine.c:749 (sofia/default/1001@13.235.24.114) State DESTROY
  338. 2021-01-13 08:09:04.741100 [DEBUG] mod_sofia.c:364 sofia/default/1001@13.235.24.114 SOFIA DESTROY
  339. 2021-01-13 08:09:04.741100 [DEBUG] switch_core_state_machine.c:181 sofia/default/1001@13.235.24.114 Standard DESTROY
  340. 2021-01-13 08:09:04.741100 [DEBUG] switch_core_state_machine.c:749 (sofia/default/1001@13.235.24.114) State DESTROY going to sleep
  341. 2021-01-13 08:09:16.221111 [NOTICE] switch_channel.c:1118 New Channel sofia/default/9161626364@mobile.crestdial.com [6356401f-9127-4e92-857a-36aea8752757]
  342. 2021-01-13 08:09:16.221111 [DEBUG] switch_core_state_machine.c:585 (sofia/default/9161626364@mobile.crestdial.com) Running State Change CS_NEW (Cur 1 Tot 408)
  343. 2021-01-13 08:09:16.221111 [DEBUG] sofia.c:10280 sofia/default/9161626364@mobile.crestdial.com receiving invite from 185.117.83.202:25080 version: 1.10.5 -release-17-25569c1631 64bit
  344. 2021-01-13 08:09:16.221111 [DEBUG] sofia.c:10374 verifying acl "default" for ip/port 185.117.83.202:0.
  345. 2021-01-13 08:09:16.221111 [DEBUG] sofia.c:2434 detaching session 6356401f-9127-4e92-857a-36aea8752757
  346. 2021-01-13 08:09:16.221111 [WARNING] sofia_reg.c:1794 SIP auth challenge (INVITE) on sofia profile 'default' for [91212223@mobile.crestdial.com] from ip 185.117.83.202
  347. 2021-01-13 08:09:16.221111 [DEBUG] switch_core_state_machine.c:604 (sofia/default/9161626364@mobile.crestdial.com) State NEW
  348. 2021-01-13 08:09:16.841099 [DEBUG] sofia.c:2544 Re-attaching to session 6356401f-9127-4e92-857a-36aea8752757
  349. 2021-01-13 08:09:16.861108 [DEBUG] sofia.c:10280 sofia/default/9161626364@mobile.crestdial.com receiving invite from 185.117.83.202:25080 version: 1.10.5 -release-17-25569c1631 64bit
  350. 2021-01-13 08:09:16.861108 [DEBUG] sofia.c:10374 verifying acl "default" for ip/port 185.117.83.202:0.
  351. 2021-01-13 08:09:16.881116 [DEBUG] sofia.c:7326 Channel sofia/default/9161626364@mobile.crestdial.com entering state [received][100]
  352. 2021-01-13 08:09:16.881116 [DEBUG] sofia.c:7336 Remote SDP:
  353. v=0
  354. o=Zoiper 1610525355163 1 IN IP4 42.106.26.11
  355. s=Z
  356. c=IN IP4 42.106.26.11
  357. t=0 0
  358. m=audio 15738 RTP/AVP 106 9 98 101 0 8 18 3
  359. a=rtpmap:106 opus/48000/2
  360. a=fmtp:106 sprop-maxcapturerate=16000; minptime=20; useinbandfec=1
  361. a=rtpmap:98 telephone-event/48000
  362. a=fmtp:98 0-16
  363. a=rtpmap:101 telephone-event/8000
  364. a=fmtp:101 0-16
  365. a=rtpmap:18 G729/8000
  366. a=fmtp:18 annexb=no
  367.  
  368. 2021-01-13 08:09:16.881116 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [opus:106:48000:20:0:2]/[PCMA:8:8000:20:64000:1]
  369. 2021-01-13 08:09:16.881116 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [opus:106:48000:20:0:2]/[PCMU:0:8000:20:64000:1]
  370. 2021-01-13 08:09:16.881116 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [G722:9:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  371. 2021-01-13 08:09:16.881116 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [G722:9:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  372. 2021-01-13 08:09:16.881116 [DEBUG] switch_core_media.c:5510 Set telephone-event payload to 98@48000
  373. 2021-01-13 08:09:16.881116 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  374. 2021-01-13 08:09:16.881116 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  375. 2021-01-13 08:09:16.881116 [DEBUG] switch_core_media.c:5649 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  376. 2021-01-13 08:09:16.881116 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  377. 2021-01-13 08:09:16.881116 [DEBUG] switch_core_media.c:5649 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  378. 2021-01-13 08:09:16.881116 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  379. 2021-01-13 08:09:16.881116 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
  380. 2021-01-13 08:09:16.881116 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1]
  381. 2021-01-13 08:09:16.881116 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMA:8:8000:20:64000:1]
  382. 2021-01-13 08:09:16.881116 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMU:0:8000:20:64000:1]
  383. 2021-01-13 08:09:16.881116 [DEBUG] switch_core_media.c:3839 Set Codec sofia/default/9161626364@mobile.crestdial.com PCMU/8000 20 ms 160 samples 64000 bits 1 channels
  384. 2021-01-13 08:09:16.881116 [DEBUG] switch_core_codec.c:111 sofia/default/9161626364@mobile.crestdial.com Original read codec set to PCMU:0
  385. 2021-01-13 08:09:16.881116 [DEBUG] switch_core_media.c:5853 Set telephone-event payload to 101@8000
  386. 2021-01-13 08:09:16.881116 [DEBUG] switch_core_media.c:5911 sofia/default/9161626364@mobile.crestdial.com Set 2833 dtmf send payload to 101 recv payload to 101
  387. 2021-01-13 08:09:16.881116 [DEBUG] sofia.c:7760 (sofia/default/9161626364@mobile.crestdial.com) State Change CS_NEW -> CS_INIT
  388. 2021-01-13 08:09:16.881116 [DEBUG] switch_core_state_machine.c:585 (sofia/default/9161626364@mobile.crestdial.com) Running State Change CS_INIT (Cur 1 Tot 408)
  389. 2021-01-13 08:09:16.881116 [DEBUG] switch_core_state_machine.c:628 (sofia/default/9161626364@mobile.crestdial.com) State INIT
  390. 2021-01-13 08:09:16.881116 [DEBUG] mod_sofia.c:93 sofia/default/9161626364@mobile.crestdial.com SOFIA INIT
  391. 2021-01-13 08:09:16.881116 [DEBUG] switch_core_state_machine.c:40 sofia/default/9161626364@mobile.crestdial.com Standard INIT
  392. 2021-01-13 08:09:16.881116 [DEBUG] switch_core_state_machine.c:48 (sofia/default/9161626364@mobile.crestdial.com) State Change CS_INIT -> CS_ROUTING
  393. 2021-01-13 08:09:16.881116 [DEBUG] switch_core_state_machine.c:628 (sofia/default/9161626364@mobile.crestdial.com) State INIT going to sleep
  394. 2021-01-13 08:09:16.881116 [DEBUG] switch_core_state_machine.c:585 (sofia/default/9161626364@mobile.crestdial.com) Running State Change CS_ROUTING (Cur 1 Tot 408)
  395. 2021-01-13 08:09:16.881116 [DEBUG] switch_channel.c:2332 (sofia/default/9161626364@mobile.crestdial.com) Callstate Change DOWN -> RINGING
  396. 2021-01-13 08:09:16.881116 [DEBUG] switch_core_state_machine.c:644 (sofia/default/9161626364@mobile.crestdial.com) State ROUTING
  397. 2021-01-13 08:09:16.881116 [DEBUG] mod_sofia.c:154 sofia/default/9161626364@mobile.crestdial.com SOFIA ROUTING
  398. 2021-01-13 08:09:16.881116 [DEBUG] switch_core_state_machine.c:236 sofia/default/9161626364@mobile.crestdial.com Standard ROUTING
  399. 2021-01-13 08:09:16.881116 [INFO] mod_dialplan_xml.c:637 Processing 9161626364 <9161626364>->91212223 in context default
  400. 2021-01-13 08:09:16.901086 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  401. 2021-01-13 08:09:16.901086 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  402. 2021-01-13 08:09:16.921077 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Dialed number : 91212223
  403. 2021-01-13 08:09:16.921077 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '91212223' AND status=0 limit 1
  404. 2021-01-13 08:09:16.921077 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Caller Id name / number  : 9161626364 / 9161626364
  405. 2021-01-13 08:09:16.921077 [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 ="91212223" LIMIT 1
  406. 2021-01-13 08:09:16.921077 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT 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 WHERE accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="91212223" limit 1
  407. 2021-01-13 08:09:16.921077 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Call direction : local
  408. 2021-01-13 08:09:16.921077 [INFO] switch_cpp.cpp:1447 [ASTPP] [Accountcode : 9161626364]
  409. 2021-01-13 08:09:16.921077 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "9161626364" AND deleted = 0 limit 1
  410. 2021-01-13 08:09:17.261079 [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 ="91212223" AND A.accountid = '57' limit 1
  411. 2021-01-13 08:09:17.261079 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 91212223
  412. 2021-01-13 08:09:17.261079 [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 ="91212223" LIMIT 1
  413. 2021-01-13 08:09:17.261079 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT 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 WHERE accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="91212223" limit 1
  414. 2021-01-13 08:09:17.261079 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] New Call direction : local
  415. 2021-01-13 08:09:17.261079 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="91212223" AND (accountid = 0 OR status = 1) LIMIT 1
  416. 2021-01-13 08:09:17.261079 [NOTICE] switch_cpp.cpp:1447 [ASTPP] Localization Id: 1
  417. 2021-01-13 08:09:17.261079 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 1 AND status=0 limit 1
  418. 2021-01-13 08:09:17.261079 [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 = '^91212223.*' OR patterns = '^9121222.*' OR patterns = '^912122.*' OR patterns = '^91212.*' OR patterns = '^9121.*' OR patterns = '^912.*' OR patterns = '^91.*' OR patterns = '^9.*' OR patterns ='--') AND accountid = 57 ORDER BY LENGTH(PKGPTR.patterns) DESC
  419. 2021-01-13 08:09:17.261079 [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 = '91212223' OR number = '9121222' OR number = '912122' OR number = '91212' OR number = '9121' OR number = '912' OR number = '91' OR number = '9' OR number ='--') OR (number = '91212223*' OR number = '9121222*' OR number = '912122*' OR number = '91212*' OR number = '9121*' OR number = '912*' OR number = '91*' OR number = '9*' OR number ='--') OR (number = '9161626364' OR number = '916162636' OR number = '91616263' OR number = '9161626' OR number = '916162' OR number = '91616' OR number = '9161' OR number = '916' OR number = '91' OR number = '9' OR number ='--') OR (number = '9161626364*' OR number = '916162636*' OR number = '91616263*' OR number = '9161626*' OR number = '916162*' OR number = '91616*' OR number = '9161*' OR number = '916*' OR number = '91*' OR number = '9*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC
  420. 2021-01-13 08:09:17.261079 [DEBUG] switch_cpp.cpp:1447 [ASTPP] Call Barring Status : -1
  421. 2021-01-13 08:09:17.261079 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '91212223' OR routing_prefix = '9121222' OR routing_prefix = '912122' OR routing_prefix = '91212' OR routing_prefix = '9121' OR routing_prefix = '912' OR routing_prefix = '91' OR routing_prefix = '9' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1
  422. 2021-01-13 08:09:17.261079 [INFO] switch_cpp.cpp:1447 [ASTPP] =============== Account Information ===================
  423. 2021-01-13 08:09:17.261079 [INFO] switch_cpp.cpp:1447 [ASTPP] User id : 57
  424. 2021-01-13 08:09:17.261079 [INFO] switch_cpp.cpp:1447 [ASTPP] Account code : 9161626364
  425. 2021-01-13 08:09:17.261079 [INFO] switch_cpp.cpp:1447 [ASTPP] Balance : 100
  426. 2021-01-13 08:09:17.261079 [INFO] switch_cpp.cpp:1447 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  427. 2021-01-13 08:09:17.261079 [INFO] switch_cpp.cpp:1447 [ASTPP] Ratecard id : 1
  428. 2021-01-13 08:09:17.261079 [INFO] switch_cpp.cpp:1447 [ASTPP] CID Pool : 0
  429. 2021-01-13 08:09:17.261079 [INFO] switch_cpp.cpp:1447 [ASTPP] ========================================================
  430. 2021-01-13 08:09:17.261079 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0
  431. 2021-01-13 08:09:17.261079 [WARNING] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] free_inbound!!!1
  432. 2021-01-13 08:09:17.261079 [WARNING] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] charge_per_min!!!0
  433. 2021-01-13 08:09:17.261079 [INFO] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] Your100 balance Accountid 57 !!!
  434. 2021-01-13 08:09:17.261079 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] Call is free - assigning max length!!! :: 100
  435. 2021-01-13 08:09:17.261079 [INFO] switch_cpp.cpp:1447 [ASTPP] Call Max length duration : 100 minutes
  436. 2021-01-13 08:09:17.261079 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT 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 WHERE accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="91212223" limit 1
  437. 2021-01-13 08:09:17.261079 [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 = 57 AND status=0 LIMIT 1
  438. 2021-01-13 08:09:17.261079 [INFO] switch_cpp.cpp:1447 [ASTPP] maxlength::::::::: 100
  439. 2021-01-13 08:09:17.261079 [ERR] mod_lua.cpp:202 /usr/share/freeswitch/scripts/astpp/scripts/astpp.xml.lua:467: attempt to concatenate global 'from_ip' (a nil value)
  440. stack traceback:
  441.         /usr/share/freeswitch/scripts/astpp/scripts/astpp.xml.lua:467: in function 'freeswitch_xml_local'
  442.         ...hare/freeswitch/scripts/astpp/scripts/astpp.dialplan.lua:686: in main chunk
  443.         [C]: in function 'dofile'
  444.         /usr/share/freeswitch/scripts/astpp/astpp.lua:86: in main chunk
  445. 2021-01-13 08:09:17.261079 [ERR] mod_lua.cpp:270 LUA script parse/execute error!
  446. 2021-01-13 08:09:17.261079 [WARNING] mod_dialplan_xml.c:667 Context default not found
  447. 2021-01-13 08:09:17.261079 [INFO] switch_core_state_machine.c:312 No Route, Aborting
  448. 2021-01-13 08:09:17.261079 [NOTICE] switch_core_state_machine.c:313 Hangup sofia/default/9161626364@mobile.crestdial.com [CS_ROUTING] [NO_ROUTE_DESTINATION]
  449. 2021-01-13 08:09:17.261079 [DEBUG] switch_core_state_machine.c:644 (sofia/default/9161626364@mobile.crestdial.com) State ROUTING going to sleep
  450. 2021-01-13 08:09:17.261079 [DEBUG] switch_core_state_machine.c:585 (sofia/default/9161626364@mobile.crestdial.com) Running State Change CS_HANGUP (Cur 1 Tot 408)
  451. 2021-01-13 08:09:17.261079 [DEBUG] switch_core_state_machine.c:848 (sofia/default/9161626364@mobile.crestdial.com) Callstate Change RINGING -> HANGUP
  452. 2021-01-13 08:09:17.261079 [DEBUG] switch_core_state_machine.c:850 (sofia/default/9161626364@mobile.crestdial.com) State HANGUP
  453. 2021-01-13 08:09:17.261079 [DEBUG] mod_sofia.c:453 Channel sofia/default/9161626364@mobile.crestdial.com hanging up, cause: NO_ROUTE_DESTINATION
  454. 2021-01-13 08:09:17.261079 [DEBUG] mod_sofia.c:598 Responding to INVITE with: 404
  455. 2021-01-13 08:09:17.261079 [DEBUG] switch_core_state_machine.c:60 sofia/default/9161626364@mobile.crestdial.com Standard HANGUP, cause: NO_ROUTE_DESTINATION
  456. 2021-01-13 08:09:17.261079 [DEBUG] switch_core_state_machine.c:850 (sofia/default/9161626364@mobile.crestdial.com) State HANGUP going to sleep
  457. 2021-01-13 08:09:17.261079 [DEBUG] switch_core_state_machine.c:620 (sofia/default/9161626364@mobile.crestdial.com) State Change CS_HANGUP -> CS_REPORTING
  458. 2021-01-13 08:09:17.261079 [DEBUG] switch_core_state_machine.c:585 (sofia/default/9161626364@mobile.crestdial.com) Running State Change CS_REPORTING (Cur 1 Tot 408)
  459. 2021-01-13 08:09:17.261079 [DEBUG] switch_core_state_machine.c:936 (sofia/default/9161626364@mobile.crestdial.com) State REPORTING
  460. 2021-01-13 08:09:17.261079 [INFO] mod_json_cdr.c:271 Process [6356401f-9127-4e92-857a-36aea8752757.cdr.json]
  461. 2021-01-13 08:09:17.281091 [DEBUG] switch_core_state_machine.c:174 sofia/default/9161626364@mobile.crestdial.com Standard REPORTING, cause: NO_ROUTE_DESTINATION
  462. 2021-01-13 08:09:17.281091 [DEBUG] switch_core_state_machine.c:936 (sofia/default/9161626364@mobile.crestdial.com) State REPORTING going to sleep
  463. 2021-01-13 08:09:17.281091 [DEBUG] switch_core_state_machine.c:611 (sofia/default/9161626364@mobile.crestdial.com) State Change CS_REPORTING -> CS_DESTROY
  464. 2021-01-13 08:09:17.281091 [DEBUG] switch_core_session.c:1726 Session 408 (sofia/default/9161626364@mobile.crestdial.com) Locked, Waiting on external entities
  465. 2021-01-13 08:09:17.281091 [NOTICE] switch_core_session.c:1744 Session 408 (sofia/default/9161626364@mobile.crestdial.com) Ended
  466. 2021-01-13 08:09:17.281091 [NOTICE] switch_core_session.c:1748 Close Channel sofia/default/9161626364@mobile.crestdial.com [CS_DESTROY]
  467. 2021-01-13 08:09:17.281091 [DEBUG] switch_core_state_machine.c:739 (sofia/default/9161626364@mobile.crestdial.com) Running State Change CS_DESTROY (Cur 0 Tot 408)
  468. 2021-01-13 08:09:17.281091 [DEBUG] switch_core_state_machine.c:749 (sofia/default/9161626364@mobile.crestdial.com) State DESTROY
  469. 2021-01-13 08:09:17.281091 [DEBUG] mod_sofia.c:364 sofia/default/9161626364@mobile.crestdial.com SOFIA DESTROY
  470. 2021-01-13 08:09:17.281091 [DEBUG] switch_core_state_machine.c:181 sofia/default/9161626364@mobile.crestdial.com Standard DESTROY
  471. 2021-01-13 08:09:17.281091 [DEBUG] switch_core_state_machine.c:749 (sofia/default/9161626364@mobile.crestdial.com) State DESTROY going to sleep
  472. 2021-01-13 08:10:01.381082 [NOTICE] switch_channel.c:1118 New Channel sofia/default/000000111323524114@13.235.24.114 [985cfa53-d79b-43d4-b78a-8b3c6a40993f]
  473. 2021-01-13 08:10:01.381082 [DEBUG] switch_core_state_machine.c:585 (sofia/default/000000111323524114@13.235.24.114) Running State Change CS_NEW (Cur 1 Tot 409)
  474. 2021-01-13 08:10:01.381082 [DEBUG] sofia.c:10280 sofia/default/000000111323524114@13.235.24.114 receiving invite from 143.244.57.86:60707 version: 1.10.5 -release-17-25569c1631 64bit
  475. 2021-01-13 08:10:01.381082 [DEBUG] sofia.c:10374 verifying acl "default" for ip/port 143.244.57.86:0.
  476. 2021-01-13 08:10:01.381082 [DEBUG] sofia.c:2434 detaching session 985cfa53-d79b-43d4-b78a-8b3c6a40993f
  477. 2021-01-13 08:10:01.381082 [WARNING] sofia_reg.c:1794 SIP auth challenge (INVITE) on sofia profile 'default' for [00000011972595725668@13.235.24.114] from ip 143.244.57.86
  478. 2021-01-13 08:10:01.381082 [DEBUG] switch_core_state_machine.c:604 (sofia/default/000000111323524114@13.235.24.114) State NEW
  479. 2021-01-13 08:10:11.441099 [WARNING] switch_core_state_machine.c:688 985cfa53-d79b-43d4-b78a-8b3c6a40993f sofia/default/000000111323524114@13.235.24.114 Abandoned
  480. 2021-01-13 08:10:11.441099 [NOTICE] switch_core_state_machine.c:691 Hangup sofia/default/000000111323524114@13.235.24.114 [CS_NEW] [WRONG_CALL_STATE]
  481. 2021-01-13 08:10:11.441099 [DEBUG] switch_core_state_machine.c:585 (sofia/default/000000111323524114@13.235.24.114) Running State Change CS_HANGUP (Cur 1 Tot 409)
  482. 2021-01-13 08:10:11.441099 [DEBUG] switch_core_state_machine.c:848 (sofia/default/000000111323524114@13.235.24.114) Callstate Change DOWN -> HANGUP
  483. 2021-01-13 08:10:11.441099 [DEBUG] switch_core_state_machine.c:850 (sofia/default/000000111323524114@13.235.24.114) State HANGUP
  484. 2021-01-13 08:10:11.441099 [DEBUG] mod_sofia.c:453 Channel sofia/default/000000111323524114@13.235.24.114 hanging up, cause: WRONG_CALL_STATE
  485. 2021-01-13 08:10:11.441099 [DEBUG] switch_core_state_machine.c:60 sofia/default/000000111323524114@13.235.24.114 Standard HANGUP, cause: WRONG_CALL_STATE
  486. 2021-01-13 08:10:11.441099 [DEBUG] switch_core_state_machine.c:850 (sofia/default/000000111323524114@13.235.24.114) State HANGUP going to sleep
  487. 2021-01-13 08:10:11.441099 [DEBUG] switch_core_state_machine.c:620 (sofia/default/000000111323524114@13.235.24.114) State Change CS_HANGUP -> CS_REPORTING
  488. 2021-01-13 08:10:11.441099 [DEBUG] switch_core_state_machine.c:585 (sofia/default/000000111323524114@13.235.24.114) Running State Change CS_REPORTING (Cur 1 Tot 409)
  489. 2021-01-13 08:10:11.441099 [DEBUG] switch_core_state_machine.c:936 (sofia/default/000000111323524114@13.235.24.114) State REPORTING
  490. 2021-01-13 08:10:11.441099 [DEBUG] switch_core_state_machine.c:174 sofia/default/000000111323524114@13.235.24.114 Standard REPORTING, cause: WRONG_CALL_STATE
  491. 2021-01-13 08:10:11.441099 [DEBUG] switch_core_state_machine.c:936 (sofia/default/000000111323524114@13.235.24.114) State REPORTING going to sleep
  492. 2021-01-13 08:10:11.441099 [DEBUG] switch_core_state_machine.c:611 (sofia/default/000000111323524114@13.235.24.114) State Change CS_REPORTING -> CS_DESTROY
  493. 2021-01-13 08:10:11.441099 [DEBUG] switch_core_session.c:1726 Session 409 (sofia/default/000000111323524114@13.235.24.114) Locked, Waiting on external entities
  494. 2021-01-13 08:10:11.441099 [NOTICE] switch_core_session.c:1744 Session 409 (sofia/default/000000111323524114@13.235.24.114) Ended
  495. 2021-01-13 08:10:11.441099 [NOTICE] switch_core_session.c:1748 Close Channel sofia/default/000000111323524114@13.235.24.114 [CS_DESTROY]
  496. 2021-01-13 08:10:11.441099 [DEBUG] switch_core_state_machine.c:739 (sofia/default/000000111323524114@13.235.24.114) Running State Change CS_DESTROY (Cur 0 Tot 409)
  497. 2021-01-13 08:10:11.441099 [DEBUG] switch_core_state_machine.c:749 (sofia/default/000000111323524114@13.235.24.114) State DESTROY
  498. 2021-01-13 08:10:11.441099 [DEBUG] mod_sofia.c:364 sofia/default/000000111323524114@13.235.24.114 SOFIA DESTROY
  499. 2021-01-13 08:10:11.441099 [DEBUG] switch_core_state_machine.c:181 sofia/default/000000111323524114@13.235.24.114 Standard DESTROY
  500. 2021-01-13 08:10:11.441099 [DEBUG] switch_core_state_machine.c:749 (sofia/default/000000111323524114@13.235.24.114) State DESTROY going to sleep
  501. 2021-01-13 08:12:00.161079 [NOTICE] switch_channel.c:1118 New Channel sofia/default/9161626364@mobile.crestdial.com [61d58f69-e4f1-4391-a027-3aa364c6e0e9]
  502. 2021-01-13 08:12:00.161079 [DEBUG] switch_core_state_machine.c:585 (sofia/default/9161626364@mobile.crestdial.com) Running State Change CS_NEW (Cur 1 Tot 410)
  503. 2021-01-13 08:12:00.161079 [DEBUG] sofia.c:10280 sofia/default/9161626364@mobile.crestdial.com receiving invite from 185.117.83.202:25080 version: 1.10.5 -release-17-25569c1631 64bit
  504. 2021-01-13 08:12:00.161079 [DEBUG] sofia.c:10374 verifying acl "default" for ip/port 185.117.83.202:0.
  505. 2021-01-13 08:12:00.161079 [DEBUG] sofia.c:2434 detaching session 61d58f69-e4f1-4391-a027-3aa364c6e0e9
  506. 2021-01-13 08:12:00.161079 [WARNING] sofia_reg.c:1794 SIP auth challenge (INVITE) on sofia profile 'default' for [91212223@mobile.crestdial.com] from ip 185.117.83.202
  507. 2021-01-13 08:12:00.161079 [DEBUG] switch_core_state_machine.c:604 (sofia/default/9161626364@mobile.crestdial.com) State NEW
  508. 2021-01-13 08:12:00.761079 [DEBUG] sofia.c:2544 Re-attaching to session 61d58f69-e4f1-4391-a027-3aa364c6e0e9
  509. 2021-01-13 08:12:00.781111 [DEBUG] sofia.c:10280 sofia/default/9161626364@mobile.crestdial.com receiving invite from 185.117.83.202:25080 version: 1.10.5 -release-17-25569c1631 64bit
  510. 2021-01-13 08:12:00.781111 [DEBUG] sofia.c:10374 verifying acl "default" for ip/port 185.117.83.202:0.
  511. 2021-01-13 08:12:00.801090 [DEBUG] sofia.c:7326 Channel sofia/default/9161626364@mobile.crestdial.com entering state [received][100]
  512. 2021-01-13 08:12:00.801090 [DEBUG] sofia.c:7336 Remote SDP:
  513. v=0
  514. o=Zoiper 1610525519089 1 IN IP4 42.106.26.11
  515. s=Z
  516. c=IN IP4 42.106.26.11
  517. t=0 0
  518. m=audio 15738 RTP/AVP 106 9 98 101 0 8 18 3
  519. a=rtpmap:106 opus/48000/2
  520. a=fmtp:106 sprop-maxcapturerate=16000; minptime=20; useinbandfec=1
  521. a=rtpmap:98 telephone-event/48000
  522. a=fmtp:98 0-16
  523. a=rtpmap:101 telephone-event/8000
  524. a=fmtp:101 0-16
  525. a=rtpmap:18 G729/8000
  526. a=fmtp:18 annexb=no
  527.  
  528. 2021-01-13 08:12:00.801090 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [opus:106:48000:20:0:2]/[PCMA:8:8000:20:64000:1]
  529. 2021-01-13 08:12:00.801090 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [opus:106:48000:20:0:2]/[PCMU:0:8000:20:64000:1]
  530. 2021-01-13 08:12:00.801090 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [G722:9:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  531. 2021-01-13 08:12:00.801090 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [G722:9:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  532. 2021-01-13 08:12:00.801090 [DEBUG] switch_core_media.c:5510 Set telephone-event payload to 98@48000
  533. 2021-01-13 08:12:00.801090 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  534. 2021-01-13 08:12:00.801090 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  535. 2021-01-13 08:12:00.801090 [DEBUG] switch_core_media.c:5649 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  536. 2021-01-13 08:12:00.801090 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  537. 2021-01-13 08:12:00.801090 [DEBUG] switch_core_media.c:5649 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  538. 2021-01-13 08:12:00.801090 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  539. 2021-01-13 08:12:00.801090 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
  540. 2021-01-13 08:12:00.801090 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1]
  541. 2021-01-13 08:12:00.801090 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMA:8:8000:20:64000:1]
  542. 2021-01-13 08:12:00.801090 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMU:0:8000:20:64000:1]
  543. 2021-01-13 08:12:00.801090 [DEBUG] switch_core_media.c:3839 Set Codec sofia/default/9161626364@mobile.crestdial.com PCMU/8000 20 ms 160 samples 64000 bits 1 channels
  544. 2021-01-13 08:12:00.801090 [DEBUG] switch_core_codec.c:111 sofia/default/9161626364@mobile.crestdial.com Original read codec set to PCMU:0
  545. 2021-01-13 08:12:00.801090 [DEBUG] switch_core_media.c:5853 Set telephone-event payload to 101@8000
  546. 2021-01-13 08:12:00.801090 [DEBUG] switch_core_media.c:5911 sofia/default/9161626364@mobile.crestdial.com Set 2833 dtmf send payload to 101 recv payload to 101
  547. 2021-01-13 08:12:00.801090 [DEBUG] sofia.c:7760 (sofia/default/9161626364@mobile.crestdial.com) State Change CS_NEW -> CS_INIT
  548. 2021-01-13 08:12:00.801090 [DEBUG] switch_core_state_machine.c:585 (sofia/default/9161626364@mobile.crestdial.com) Running State Change CS_INIT (Cur 1 Tot 410)
  549. 2021-01-13 08:12:00.801090 [DEBUG] switch_core_state_machine.c:628 (sofia/default/9161626364@mobile.crestdial.com) State INIT
  550. 2021-01-13 08:12:00.801090 [DEBUG] mod_sofia.c:93 sofia/default/9161626364@mobile.crestdial.com SOFIA INIT
  551. 2021-01-13 08:12:00.801090 [DEBUG] switch_core_state_machine.c:40 sofia/default/9161626364@mobile.crestdial.com Standard INIT
  552. 2021-01-13 08:12:00.801090 [DEBUG] switch_core_state_machine.c:48 (sofia/default/9161626364@mobile.crestdial.com) State Change CS_INIT -> CS_ROUTING
  553. 2021-01-13 08:12:00.801090 [DEBUG] switch_core_state_machine.c:628 (sofia/default/9161626364@mobile.crestdial.com) State INIT going to sleep
  554. 2021-01-13 08:12:00.801090 [DEBUG] switch_core_state_machine.c:585 (sofia/default/9161626364@mobile.crestdial.com) Running State Change CS_ROUTING (Cur 1 Tot 410)
  555. 2021-01-13 08:12:00.801090 [DEBUG] switch_channel.c:2332 (sofia/default/9161626364@mobile.crestdial.com) Callstate Change DOWN -> RINGING
  556. 2021-01-13 08:12:00.801090 [DEBUG] switch_core_state_machine.c:644 (sofia/default/9161626364@mobile.crestdial.com) State ROUTING
  557. 2021-01-13 08:12:00.801090 [DEBUG] mod_sofia.c:154 sofia/default/9161626364@mobile.crestdial.com SOFIA ROUTING
  558. 2021-01-13 08:12:00.801090 [DEBUG] switch_core_state_machine.c:236 sofia/default/9161626364@mobile.crestdial.com Standard ROUTING
  559. 2021-01-13 08:12:00.801090 [INFO] mod_dialplan_xml.c:637 Processing 9161626364 <9161626364>->91212223 in context default
  560. 2021-01-13 08:12:00.821075 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  561. 2021-01-13 08:12:00.821075 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  562. 2021-01-13 08:12:00.821075 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Dialed number : 91212223
  563. 2021-01-13 08:12:00.821075 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '91212223' AND status=0 limit 1
  564. 2021-01-13 08:12:00.841085 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Caller Id name / number  : 9161626364 / 9161626364
  565. 2021-01-13 08:12:00.841085 [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 ="91212223" LIMIT 1
  566. 2021-01-13 08:12:00.841085 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT 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 WHERE accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="91212223" limit 1
  567. 2021-01-13 08:12:00.841085 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Call direction : local
  568. 2021-01-13 08:12:00.841085 [INFO] switch_cpp.cpp:1447 [ASTPP] [Accountcode : 9161626364]
  569. 2021-01-13 08:12:00.841085 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "9161626364" AND deleted = 0 limit 1
  570. 2021-01-13 08:12:01.301083 [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 ="91212223" AND A.accountid = '57' limit 1
  571. 2021-01-13 08:12:01.301083 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 91212223
  572. 2021-01-13 08:12:01.301083 [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 ="91212223" LIMIT 1
  573. 2021-01-13 08:12:01.301083 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT 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 WHERE accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="91212223" limit 1
  574. 2021-01-13 08:12:01.301083 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] New Call direction : local
  575. 2021-01-13 08:12:01.301083 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="91212223" AND (accountid = 0 OR status = 1) LIMIT 1
  576. 2021-01-13 08:12:01.301083 [NOTICE] switch_cpp.cpp:1447 [ASTPP] Localization Id: 1
  577. 2021-01-13 08:12:01.301083 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 1 AND status=0 limit 1
  578. 2021-01-13 08:12:01.301083 [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 = '^91212223.*' OR patterns = '^9121222.*' OR patterns = '^912122.*' OR patterns = '^91212.*' OR patterns = '^9121.*' OR patterns = '^912.*' OR patterns = '^91.*' OR patterns = '^9.*' OR patterns ='--') AND accountid = 57 ORDER BY LENGTH(PKGPTR.patterns) DESC
  579. 2021-01-13 08:12:01.321116 [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 = '91212223' OR number = '9121222' OR number = '912122' OR number = '91212' OR number = '9121' OR number = '912' OR number = '91' OR number = '9' OR number ='--') OR (number = '91212223*' OR number = '9121222*' OR number = '912122*' OR number = '91212*' OR number = '9121*' OR number = '912*' OR number = '91*' OR number = '9*' OR number ='--') OR (number = '9161626364' OR number = '916162636' OR number = '91616263' OR number = '9161626' OR number = '916162' OR number = '91616' OR number = '9161' OR number = '916' OR number = '91' OR number = '9' OR number ='--') OR (number = '9161626364*' OR number = '916162636*' OR number = '91616263*' OR number = '9161626*' OR number = '916162*' OR number = '91616*' OR number = '9161*' OR number = '916*' OR number = '91*' OR number = '9*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC
  580. 2021-01-13 08:12:01.321116 [DEBUG] switch_cpp.cpp:1447 [ASTPP] Call Barring Status : -1
  581. 2021-01-13 08:12:01.321116 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '91212223' OR routing_prefix = '9121222' OR routing_prefix = '912122' OR routing_prefix = '91212' OR routing_prefix = '9121' OR routing_prefix = '912' OR routing_prefix = '91' OR routing_prefix = '9' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1
  582. 2021-01-13 08:12:01.321116 [INFO] switch_cpp.cpp:1447 [ASTPP] =============== Account Information ===================
  583. 2021-01-13 08:12:01.321116 [INFO] switch_cpp.cpp:1447 [ASTPP] User id : 57
  584. 2021-01-13 08:12:01.321116 [INFO] switch_cpp.cpp:1447 [ASTPP] Account code : 9161626364
  585. 2021-01-13 08:12:01.321116 [INFO] switch_cpp.cpp:1447 [ASTPP] Balance : 100
  586. 2021-01-13 08:12:01.321116 [INFO] switch_cpp.cpp:1447 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  587. 2021-01-13 08:12:01.321116 [INFO] switch_cpp.cpp:1447 [ASTPP] Ratecard id : 1
  588. 2021-01-13 08:12:01.321116 [INFO] switch_cpp.cpp:1447 [ASTPP] CID Pool : 0
  589. 2021-01-13 08:12:01.321116 [INFO] switch_cpp.cpp:1447 [ASTPP] ========================================================
  590. 2021-01-13 08:12:01.321116 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0
  591. 2021-01-13 08:12:01.321116 [WARNING] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] free_inbound!!!1
  592. 2021-01-13 08:12:01.321116 [WARNING] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] charge_per_min!!!0
  593. 2021-01-13 08:12:01.321116 [INFO] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] Your100 balance Accountid 57 !!!
  594. 2021-01-13 08:12:01.321116 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] Call is free - assigning max length!!! :: 100
  595. 2021-01-13 08:12:01.321116 [INFO] switch_cpp.cpp:1447 [ASTPP] Call Max length duration : 100 minutes
  596. 2021-01-13 08:12:01.321116 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT 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 WHERE accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="91212223" limit 1
  597. 2021-01-13 08:12:01.321116 [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 = 57 AND status=0 LIMIT 1
  598. 2021-01-13 08:12:01.321116 [INFO] switch_cpp.cpp:1447 [ASTPP] maxlength::::::::: 100
  599. 2021-01-13 08:12:01.321116 [ERR] mod_lua.cpp:202 /usr/share/freeswitch/scripts/astpp/scripts/astpp.xml.lua:467: attempt to concatenate global 'from_ip' (a nil value)
  600. stack traceback:
  601.         /usr/share/freeswitch/scripts/astpp/scripts/astpp.xml.lua:467: in function 'freeswitch_xml_local'
  602.         ...hare/freeswitch/scripts/astpp/scripts/astpp.dialplan.lua:686: in main chunk
  603.         [C]: in function 'dofile'
  604.         /usr/share/freeswitch/scripts/astpp/astpp.lua:86: in main chunk
  605. 2021-01-13 08:12:01.321116 [ERR] mod_lua.cpp:270 LUA script parse/execute error!
  606. 2021-01-13 08:12:01.321116 [WARNING] mod_dialplan_xml.c:667 Context default not found
  607. 2021-01-13 08:12:01.321116 [INFO] switch_core_state_machine.c:312 No Route, Aborting
  608. 2021-01-13 08:12:01.321116 [NOTICE] switch_core_state_machine.c:313 Hangup sofia/default/9161626364@mobile.crestdial.com [CS_ROUTING] [NO_ROUTE_DESTINATION]
  609. 2021-01-13 08:12:01.321116 [DEBUG] switch_core_state_machine.c:644 (sofia/default/9161626364@mobile.crestdial.com) State ROUTING going to sleep
  610. 2021-01-13 08:12:01.321116 [DEBUG] switch_core_state_machine.c:585 (sofia/default/9161626364@mobile.crestdial.com) Running State Change CS_HANGUP (Cur 1 Tot 410)
  611. 2021-01-13 08:12:01.321116 [DEBUG] switch_core_state_machine.c:848 (sofia/default/9161626364@mobile.crestdial.com) Callstate Change RINGING -> HANGUP
  612. 2021-01-13 08:12:01.321116 [DEBUG] switch_core_state_machine.c:850 (sofia/default/9161626364@mobile.crestdial.com) State HANGUP
  613. 2021-01-13 08:12:01.321116 [DEBUG] mod_sofia.c:453 Channel sofia/default/9161626364@mobile.crestdial.com hanging up, cause: NO_ROUTE_DESTINATION
  614. 2021-01-13 08:12:01.321116 [DEBUG] mod_sofia.c:598 Responding to INVITE with: 404
  615. 2021-01-13 08:12:01.321116 [DEBUG] switch_core_state_machine.c:60 sofia/default/9161626364@mobile.crestdial.com Standard HANGUP, cause: NO_ROUTE_DESTINATION
  616. 2021-01-13 08:12:01.321116 [DEBUG] switch_core_state_machine.c:850 (sofia/default/9161626364@mobile.crestdial.com) State HANGUP going to sleep
  617. 2021-01-13 08:12:01.321116 [DEBUG] switch_core_state_machine.c:620 (sofia/default/9161626364@mobile.crestdial.com) State Change CS_HANGUP -> CS_REPORTING
  618. 2021-01-13 08:12:01.321116 [DEBUG] switch_core_state_machine.c:585 (sofia/default/9161626364@mobile.crestdial.com) Running State Change CS_REPORTING (Cur 1 Tot 410)
  619. 2021-01-13 08:12:01.321116 [DEBUG] switch_core_state_machine.c:936 (sofia/default/9161626364@mobile.crestdial.com) State REPORTING
  620. 2021-01-13 08:12:01.321116 [INFO] mod_json_cdr.c:271 Process [61d58f69-e4f1-4391-a027-3aa364c6e0e9.cdr.json]
  621. 2021-01-13 08:12:01.341088 [DEBUG] switch_core_state_machine.c:174 sofia/default/9161626364@mobile.crestdial.com Standard REPORTING, cause: NO_ROUTE_DESTINATION
  622. 2021-01-13 08:12:01.341088 [DEBUG] switch_core_state_machine.c:936 (sofia/default/9161626364@mobile.crestdial.com) State REPORTING going to sleep
  623. 2021-01-13 08:12:01.341088 [DEBUG] switch_core_state_machine.c:611 (sofia/default/9161626364@mobile.crestdial.com) State Change CS_REPORTING -> CS_DESTROY
  624. 2021-01-13 08:12:01.341088 [DEBUG] switch_core_session.c:1726 Session 410 (sofia/default/9161626364@mobile.crestdial.com) Locked, Waiting on external entities
  625. 2021-01-13 08:12:01.341088 [NOTICE] switch_core_session.c:1744 Session 410 (sofia/default/9161626364@mobile.crestdial.com) Ended
  626. 2021-01-13 08:12:01.341088 [NOTICE] switch_core_session.c:1748 Close Channel sofia/default/9161626364@mobile.crestdial.com [CS_DESTROY]
  627. 2021-01-13 08:12:01.341088 [DEBUG] switch_core_state_machine.c:739 (sofia/default/9161626364@mobile.crestdial.com) Running State Change CS_DESTROY (Cur 0 Tot 410)
  628. 2021-01-13 08:12:01.341088 [DEBUG] switch_core_state_machine.c:749 (sofia/default/9161626364@mobile.crestdial.com) State DESTROY
  629. 2021-01-13 08:12:01.341088 [DEBUG] mod_sofia.c:364 sofia/default/9161626364@mobile.crestdial.com SOFIA DESTROY
  630. 2021-01-13 08:12:01.341088 [DEBUG] switch_core_state_machine.c:181 sofia/default/9161626364@mobile.crestdial.com Standard DESTROY
  631. 2021-01-13 08:12:01.341088 [DEBUG] switch_core_state_machine.c:749 (sofia/default/9161626364@mobile.crestdial.com) State DESTROY going to sleep
  632. 2021-01-13 08:12:44.381097 [NOTICE] switch_channel.c:1118 New Channel sofia/default/9161626364@mobile.crestdial.com [21dcd52f-78c2-4894-83f1-deeb9689ce9b]
  633. 2021-01-13 08:12:44.381097 [DEBUG] switch_core_state_machine.c:585 (sofia/default/9161626364@mobile.crestdial.com) Running State Change CS_NEW (Cur 1 Tot 411)
  634. 2021-01-13 08:12:44.381097 [DEBUG] sofia.c:10280 sofia/default/9161626364@mobile.crestdial.com receiving invite from 185.117.83.202:25080 version: 1.10.5 -release-17-25569c1631 64bit
  635. 2021-01-13 08:12:44.381097 [DEBUG] sofia.c:10374 verifying acl "default" for ip/port 185.117.83.202:0.
  636. 2021-01-13 08:12:44.381097 [DEBUG] sofia.c:2434 detaching session 21dcd52f-78c2-4894-83f1-deeb9689ce9b
  637. 2021-01-13 08:12:44.381097 [WARNING] sofia_reg.c:1794 SIP auth challenge (INVITE) on sofia profile 'default' for [91212223@mobile.crestdial.com] from ip 185.117.83.202
  638. 2021-01-13 08:12:44.381097 [DEBUG] switch_core_state_machine.c:604 (sofia/default/9161626364@mobile.crestdial.com) State NEW
  639. 2021-01-13 08:12:44.981098 [DEBUG] sofia.c:2544 Re-attaching to session 21dcd52f-78c2-4894-83f1-deeb9689ce9b
  640. 2021-01-13 08:12:45.001105 [DEBUG] sofia.c:10280 sofia/default/9161626364@mobile.crestdial.com receiving invite from 185.117.83.202:25080 version: 1.10.5 -release-17-25569c1631 64bit
  641. 2021-01-13 08:12:45.001105 [DEBUG] sofia.c:10374 verifying acl "default" for ip/port 185.117.83.202:0.
  642. 2021-01-13 08:12:45.001105 [DEBUG] sofia.c:7326 Channel sofia/default/9161626364@mobile.crestdial.com entering state [received][100]
  643. 2021-01-13 08:12:45.001105 [DEBUG] sofia.c:7336 Remote SDP:
  644. v=0
  645. o=Zoiper 1610525563343 1 IN IP4 42.106.26.11
  646. s=Z
  647. c=IN IP4 42.106.26.11
  648. t=0 0
  649. m=audio 15738 RTP/AVP 106 9 98 101 0 8 18 3
  650. a=rtpmap:106 opus/48000/2
  651. a=fmtp:106 sprop-maxcapturerate=16000; minptime=20; useinbandfec=1
  652. a=rtpmap:98 telephone-event/48000
  653. a=fmtp:98 0-16
  654. a=rtpmap:101 telephone-event/8000
  655. a=fmtp:101 0-16
  656. a=rtpmap:18 G729/8000
  657. a=fmtp:18 annexb=no
  658.  
  659. 2021-01-13 08:12:45.001105 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [opus:106:48000:20:0:2]/[PCMA:8:8000:20:64000:1]
  660. 2021-01-13 08:12:45.001105 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [opus:106:48000:20:0:2]/[PCMU:0:8000:20:64000:1]
  661. 2021-01-13 08:12:45.001105 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [G722:9:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  662. 2021-01-13 08:12:45.001105 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [G722:9:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  663. 2021-01-13 08:12:45.001105 [DEBUG] switch_core_media.c:5510 Set telephone-event payload to 98@48000
  664. 2021-01-13 08:12:45.001105 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  665. 2021-01-13 08:12:45.001105 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  666. 2021-01-13 08:12:45.001105 [DEBUG] switch_core_media.c:5649 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  667. 2021-01-13 08:12:45.001105 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  668. 2021-01-13 08:12:45.001105 [DEBUG] switch_core_media.c:5649 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  669. 2021-01-13 08:12:45.001105 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  670. 2021-01-13 08:12:45.001105 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
  671. 2021-01-13 08:12:45.001105 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1]
  672. 2021-01-13 08:12:45.001105 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMA:8:8000:20:64000:1]
  673. 2021-01-13 08:12:45.001105 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMU:0:8000:20:64000:1]
  674. 2021-01-13 08:12:45.001105 [DEBUG] switch_core_media.c:3839 Set Codec sofia/default/9161626364@mobile.crestdial.com PCMU/8000 20 ms 160 samples 64000 bits 1 channels
  675. 2021-01-13 08:12:45.001105 [DEBUG] switch_core_codec.c:111 sofia/default/9161626364@mobile.crestdial.com Original read codec set to PCMU:0
  676. 2021-01-13 08:12:45.001105 [DEBUG] switch_core_media.c:5853 Set telephone-event payload to 101@8000
  677. 2021-01-13 08:12:45.001105 [DEBUG] switch_core_media.c:5911 sofia/default/9161626364@mobile.crestdial.com Set 2833 dtmf send payload to 101 recv payload to 101
  678. 2021-01-13 08:12:45.001105 [DEBUG] sofia.c:7760 (sofia/default/9161626364@mobile.crestdial.com) State Change CS_NEW -> CS_INIT
  679. 2021-01-13 08:12:45.001105 [DEBUG] switch_core_state_machine.c:585 (sofia/default/9161626364@mobile.crestdial.com) Running State Change CS_INIT (Cur 1 Tot 411)
  680. 2021-01-13 08:12:45.001105 [DEBUG] switch_core_state_machine.c:628 (sofia/default/9161626364@mobile.crestdial.com) State INIT
  681. 2021-01-13 08:12:45.001105 [DEBUG] mod_sofia.c:93 sofia/default/9161626364@mobile.crestdial.com SOFIA INIT
  682. 2021-01-13 08:12:45.001105 [DEBUG] switch_core_state_machine.c:40 sofia/default/9161626364@mobile.crestdial.com Standard INIT
  683. 2021-01-13 08:12:45.001105 [DEBUG] switch_core_state_machine.c:48 (sofia/default/9161626364@mobile.crestdial.com) State Change CS_INIT -> CS_ROUTING
  684. 2021-01-13 08:12:45.001105 [DEBUG] switch_core_state_machine.c:628 (sofia/default/9161626364@mobile.crestdial.com) State INIT going to sleep
  685. 2021-01-13 08:12:45.001105 [DEBUG] switch_core_state_machine.c:585 (sofia/default/9161626364@mobile.crestdial.com) Running State Change CS_ROUTING (Cur 1 Tot 411)
  686. 2021-01-13 08:12:45.001105 [DEBUG] switch_channel.c:2332 (sofia/default/9161626364@mobile.crestdial.com) Callstate Change DOWN -> RINGING
  687. 2021-01-13 08:12:45.001105 [DEBUG] switch_core_state_machine.c:644 (sofia/default/9161626364@mobile.crestdial.com) State ROUTING
  688. 2021-01-13 08:12:45.001105 [DEBUG] mod_sofia.c:154 sofia/default/9161626364@mobile.crestdial.com SOFIA ROUTING
  689. 2021-01-13 08:12:45.001105 [DEBUG] switch_core_state_machine.c:236 sofia/default/9161626364@mobile.crestdial.com Standard ROUTING
  690. 2021-01-13 08:12:45.001105 [INFO] mod_dialplan_xml.c:637 Processing 9161626364 <9161626364>->91212223 in context default
  691. 2021-01-13 08:12:45.001105 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  692. 2021-01-13 08:12:45.021081 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  693. 2021-01-13 08:12:45.021081 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Dialed number : 91212223
  694. 2021-01-13 08:12:45.021081 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '91212223' AND status=0 limit 1
  695. 2021-01-13 08:12:45.021081 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Caller Id name / number  : 9161626364 / 9161626364
  696. 2021-01-13 08:12:45.021081 [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 ="91212223" LIMIT 1
  697. 2021-01-13 08:12:45.021081 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT 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 WHERE accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="91212223" limit 1
  698. 2021-01-13 08:12:45.021081 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Call direction : local
  699. 2021-01-13 08:12:45.021081 [INFO] switch_cpp.cpp:1447 [ASTPP] [Accountcode : 9161626364]
  700. 2021-01-13 08:12:45.021081 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "9161626364" AND deleted = 0 limit 1
  701. 2021-01-13 08:12:45.041076 [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 ="91212223" AND A.accountid = '57' limit 1
  702. 2021-01-13 08:12:45.041076 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 91212223
  703. 2021-01-13 08:12:45.041076 [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 ="91212223" LIMIT 1
  704. 2021-01-13 08:12:45.041076 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT 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 WHERE accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="91212223" limit 1
  705. 2021-01-13 08:12:45.041076 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] New Call direction : local
  706. 2021-01-13 08:12:45.041076 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="91212223" AND (accountid = 0 OR status = 1) LIMIT 1
  707. 2021-01-13 08:12:45.041076 [NOTICE] switch_cpp.cpp:1447 [ASTPP] Localization Id: 1
  708. 2021-01-13 08:12:45.041076 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 1 AND status=0 limit 1
  709. 2021-01-13 08:12:45.041076 [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 = '^91212223.*' OR patterns = '^9121222.*' OR patterns = '^912122.*' OR patterns = '^91212.*' OR patterns = '^9121.*' OR patterns = '^912.*' OR patterns = '^91.*' OR patterns = '^9.*' OR patterns ='--') AND accountid = 57 ORDER BY LENGTH(PKGPTR.patterns) DESC
  710. 2021-01-13 08:12:45.041076 [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 = '91212223' OR number = '9121222' OR number = '912122' OR number = '91212' OR number = '9121' OR number = '912' OR number = '91' OR number = '9' OR number ='--') OR (number = '91212223*' OR number = '9121222*' OR number = '912122*' OR number = '91212*' OR number = '9121*' OR number = '912*' OR number = '91*' OR number = '9*' OR number ='--') OR (number = '9161626364' OR number = '916162636' OR number = '91616263' OR number = '9161626' OR number = '916162' OR number = '91616' OR number = '9161' OR number = '916' OR number = '91' OR number = '9' OR number ='--') OR (number = '9161626364*' OR number = '916162636*' OR number = '91616263*' OR number = '9161626*' OR number = '916162*' OR number = '91616*' OR number = '9161*' OR number = '916*' OR number = '91*' OR number = '9*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC
  711. 2021-01-13 08:12:45.041076 [DEBUG] switch_cpp.cpp:1447 [ASTPP] Call Barring Status : -1
  712. 2021-01-13 08:12:45.041076 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '91212223' OR routing_prefix = '9121222' OR routing_prefix = '912122' OR routing_prefix = '91212' OR routing_prefix = '9121' OR routing_prefix = '912' OR routing_prefix = '91' OR routing_prefix = '9' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1
  713. 2021-01-13 08:12:45.041076 [INFO] switch_cpp.cpp:1447 [ASTPP] =============== Account Information ===================
  714. 2021-01-13 08:12:45.041076 [INFO] switch_cpp.cpp:1447 [ASTPP] User id : 57
  715. 2021-01-13 08:12:45.041076 [INFO] switch_cpp.cpp:1447 [ASTPP] Account code : 9161626364
  716. 2021-01-13 08:12:45.041076 [INFO] switch_cpp.cpp:1447 [ASTPP] Balance : 100
  717. 2021-01-13 08:12:45.041076 [INFO] switch_cpp.cpp:1447 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  718. 2021-01-13 08:12:45.041076 [INFO] switch_cpp.cpp:1447 [ASTPP] Ratecard id : 1
  719. 2021-01-13 08:12:45.041076 [INFO] switch_cpp.cpp:1447 [ASTPP] CID Pool : 0
  720. 2021-01-13 08:12:45.041076 [INFO] switch_cpp.cpp:1447 [ASTPP] ========================================================
  721. 2021-01-13 08:12:45.041076 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0
  722. 2021-01-13 08:12:45.041076 [WARNING] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] free_inbound!!!1
  723. 2021-01-13 08:12:45.041076 [WARNING] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] charge_per_min!!!0
  724. 2021-01-13 08:12:45.041076 [INFO] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] Your100 balance Accountid 57 !!!
  725. 2021-01-13 08:12:45.041076 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] Call is free - assigning max length!!! :: 100
  726. 2021-01-13 08:12:45.041076 [INFO] switch_cpp.cpp:1447 [ASTPP] Call Max length duration : 100 minutes
  727. 2021-01-13 08:12:45.041076 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT 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 WHERE accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="91212223" limit 1
  728. 2021-01-13 08:12:45.041076 [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 = 57 AND status=0 LIMIT 1
  729. 2021-01-13 08:12:45.041076 [INFO] switch_cpp.cpp:1447 [ASTPP] maxlength::::::::: 100
  730. 2021-01-13 08:12:45.041076 [ERR] mod_lua.cpp:202 /usr/share/freeswitch/scripts/astpp/scripts/astpp.xml.lua:467: attempt to concatenate global 'from_ip' (a nil value)
  731. stack traceback:
  732.         /usr/share/freeswitch/scripts/astpp/scripts/astpp.xml.lua:467: in function 'freeswitch_xml_local'
  733.         ...hare/freeswitch/scripts/astpp/scripts/astpp.dialplan.lua:686: in main chunk
  734.         [C]: in function 'dofile'
  735.         /usr/share/freeswitch/scripts/astpp/astpp.lua:86: in main chunk
  736. 2021-01-13 08:12:45.041076 [ERR] mod_lua.cpp:270 LUA script parse/execute error!
  737. 2021-01-13 08:12:45.041076 [WARNING] mod_dialplan_xml.c:667 Context default not found
  738. 2021-01-13 08:12:45.041076 [INFO] switch_core_state_machine.c:312 No Route, Aborting
  739. 2021-01-13 08:12:45.041076 [NOTICE] switch_core_state_machine.c:313 Hangup sofia/default/9161626364@mobile.crestdial.com [CS_ROUTING] [NO_ROUTE_DESTINATION]
  740. 2021-01-13 08:12:45.041076 [DEBUG] switch_core_state_machine.c:644 (sofia/default/9161626364@mobile.crestdial.com) State ROUTING going to sleep
  741. 2021-01-13 08:12:45.041076 [DEBUG] switch_core_state_machine.c:585 (sofia/default/9161626364@mobile.crestdial.com) Running State Change CS_HANGUP (Cur 1 Tot 411)
  742. 2021-01-13 08:12:45.041076 [DEBUG] switch_core_state_machine.c:848 (sofia/default/9161626364@mobile.crestdial.com) Callstate Change RINGING -> HANGUP
  743. 2021-01-13 08:12:45.041076 [DEBUG] switch_core_state_machine.c:850 (sofia/default/9161626364@mobile.crestdial.com) State HANGUP
  744. 2021-01-13 08:12:45.041076 [DEBUG] mod_sofia.c:453 Channel sofia/default/9161626364@mobile.crestdial.com hanging up, cause: NO_ROUTE_DESTINATION
  745. 2021-01-13 08:12:45.041076 [DEBUG] mod_sofia.c:598 Responding to INVITE with: 404
  746. 2021-01-13 08:12:45.041076 [DEBUG] switch_core_state_machine.c:60 sofia/default/9161626364@mobile.crestdial.com Standard HANGUP, cause: NO_ROUTE_DESTINATION
  747. 2021-01-13 08:12:45.041076 [DEBUG] switch_core_state_machine.c:850 (sofia/default/9161626364@mobile.crestdial.com) State HANGUP going to sleep
  748. 2021-01-13 08:12:45.041076 [DEBUG] switch_core_state_machine.c:620 (sofia/default/9161626364@mobile.crestdial.com) State Change CS_HANGUP -> CS_REPORTING
  749. 2021-01-13 08:12:45.041076 [DEBUG] switch_core_state_machine.c:585 (sofia/default/9161626364@mobile.crestdial.com) Running State Change CS_REPORTING (Cur 1 Tot 411)
  750. 2021-01-13 08:12:45.041076 [DEBUG] switch_core_state_machine.c:936 (sofia/default/9161626364@mobile.crestdial.com) State REPORTING
  751. 2021-01-13 08:12:45.041076 [INFO] mod_json_cdr.c:271 Process [21dcd52f-78c2-4894-83f1-deeb9689ce9b.cdr.json]
  752. 2021-01-13 08:12:45.061113 [DEBUG] switch_core_state_machine.c:174 sofia/default/9161626364@mobile.crestdial.com Standard REPORTING, cause: NO_ROUTE_DESTINATION
  753. 2021-01-13 08:12:45.061113 [DEBUG] switch_core_state_machine.c:936 (sofia/default/9161626364@mobile.crestdial.com) State REPORTING going to sleep
  754. 2021-01-13 08:12:45.061113 [DEBUG] switch_core_state_machine.c:611 (sofia/default/9161626364@mobile.crestdial.com) State Change CS_REPORTING -> CS_DESTROY
  755. 2021-01-13 08:12:45.061113 [DEBUG] switch_core_session.c:1726 Session 411 (sofia/default/9161626364@mobile.crestdial.com) Locked, Waiting on external entities
  756. 2021-01-13 08:12:45.061113 [NOTICE] switch_core_session.c:1744 Session 411 (sofia/default/9161626364@mobile.crestdial.com) Ended
  757. 2021-01-13 08:12:45.061113 [NOTICE] switch_core_session.c:1748 Close Channel sofia/default/9161626364@mobile.crestdial.com [CS_DESTROY]
  758. 2021-01-13 08:12:45.061113 [DEBUG] switch_core_state_machine.c:739 (sofia/default/9161626364@mobile.crestdial.com) Running State Change CS_DESTROY (Cur 0 Tot 411)
  759. 2021-01-13 08:12:45.061113 [DEBUG] switch_core_state_machine.c:749 (sofia/default/9161626364@mobile.crestdial.com) State DESTROY
  760. 2021-01-13 08:12:45.061113 [DEBUG] mod_sofia.c:364 sofia/default/9161626364@mobile.crestdial.com SOFIA DESTROY
  761. 2021-01-13 08:12:45.061113 [DEBUG] switch_core_state_machine.c:181 sofia/default/9161626364@mobile.crestdial.com Standard DESTROY
  762. 2021-01-13 08:12:45.061113 [DEBUG] switch_core_state_machine.c:749 (sofia/default/9161626364@mobile.crestdial.com) State DESTROY going to sleep