From Prashant Kumar, 2 Years ago, written in FreeSWITCH.
- view diff
Embed
  1. freeswitch@entdemo-gibfibre>
  2. freeswitch@entdemo-gibfibre>
  3. freeswitch@entdemo-gibfibre>
  4. 2022-10-11 08:13:44.653526 98.30% [WARNING] sofia_reg.c:1861 SIP auth challenge (REGISTER) on sofia profile 'default' for [9846029962@entdemo.astppbilling.org] from ip 103.240.35.46
  5. 2022-10-11 08:13:45.093528 98.30% [WARNING] sofia_reg.c:1861 SIP auth challenge (INVITE) on sofia profile 'default' for [9846029962@entdemo.astppbilling.org] from ip 103.240.35.46
  6. 2022-10-11 08:13:45.213523 98.30% [WARNING] sofia_reg.c:1861 SIP auth challenge (REGISTER) on sofia profile 'default' for [9846029962@entdemo.astppbilling.org] from ip 103.240.35.46
  7. 2022-10-11 08:13:45.893527 98.17% [WARNING] sofia_reg.c:1861 SIP auth challenge (INVITE) on sofia profile 'default' for [9846029962@entdemo.astppbilling.org] from ip 103.240.35.46
  8. 2022-10-11 08:13:46.013525 98.17% [WARNING] sofia_reg.c:1861 SIP auth challenge (INVITE) on sofia profile 'default' for [9846029962@entdemo.astppbilling.org] from ip 103.240.35.46
  9. 2022-10-11 08:14:15.233533 96.50% [NOTICE] switch_channel.c:1123 New Channel sofia/default/9348842387@entdemo.astppbilling.org:5064 [c96f6554-603f-4f12-acd1-433169c779ab]
  10. 2022-10-11 08:14:15.233533 96.50% [DEBUG] switch_core_state_machine.c:581 (sofia/default/9348842387@entdemo.astppbilling.org:5064) Running State Change CS_NEW (Cur 1 Tot 30)
  11. 2022-10-11 08:14:15.233533 96.50% [INFO] sofia.c:10462 sofia/default/9348842387@entdemo.astppbilling.org:5064 receiving invite from 103.240.35.46:5078 version: 1.10.7 -release-19-883d2cb662 64bit call-id: dfpwmbdkfwcrpyg@pk-qa
  12. 2022-10-11 08:14:15.233533 96.50% [DEBUG] sofia.c:10556 verifying acl "default" for ip/port 103.240.35.46:0.
  13. 2022-10-11 08:14:15.233533 96.50% [DEBUG] sofia.c:2419 detaching session c96f6554-603f-4f12-acd1-433169c779ab
  14. 2022-10-11 08:14:15.233533 96.50% [WARNING] sofia_reg.c:1861 SIP auth challenge (INVITE) on sofia profile 'default' for [100070@entdemo.astppbilling.org] from ip 103.240.35.46
  15. 2022-10-11 08:14:15.233533 96.50% [DEBUG] switch_core_state_machine.c:600 (sofia/default/9348842387@entdemo.astppbilling.org:5064) State NEW
  16. 2022-10-11 08:14:15.373530 96.63% [DEBUG] sofia.c:2532 Re-attaching to session c96f6554-603f-4f12-acd1-433169c779ab
  17. 2022-10-11 08:14:15.393542 96.63% [INFO] sofia.c:10462 sofia/default/9348842387@entdemo.astppbilling.org:5064 receiving invite from 103.240.35.46:5078 version: 1.10.7 -release-19-883d2cb662 64bit call-id: dfpwmbdkfwcrpyg@pk-qa
  18. 2022-10-11 08:14:15.393542 96.63% [DEBUG] sofia.c:10556 verifying acl "default" for ip/port 103.240.35.46:0.
  19. 2022-10-11 08:14:15.393542 96.63% [DEBUG] sofia.c:11672 Setting NAT mode based on via received
  20. 2022-10-11 08:14:15.413521 96.63% [DEBUG] sofia.c:7499 Channel sofia/default/9348842387@entdemo.astppbilling.org:5064 entering state [received][100]
  21. 2022-10-11 08:14:15.413521 96.63% [DEBUG] sofia.c:7509 Remote SDP:
  22. v=0
  23. o=twinkle 643149488 724190660 IN IP4 192.168.1.51
  24. s=-
  25. c=IN IP4 192.168.1.51
  26. t=0 0
  27. m=audio 8000 RTP/AVP 98 97 8 0 3 101
  28. a=rtpmap:98 speex/16000
  29. a=rtpmap:97 speex/8000
  30. a=rtpmap:8 PCMA/8000
  31. a=rtpmap:0 PCMU/8000
  32. a=rtpmap:3 GSM/8000
  33. a=rtpmap:101 telephone-event/8000
  34. a=fmtp:101 0-15
  35. a=ptime:20
  36.  
  37. 2022-10-11 08:14:15.413521 96.63% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [speex:98:16000:20:0:1]/[PCMA:8:8000:20:64000:1]
  38. 2022-10-11 08:14:15.413521 96.63% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [speex:98:16000:20:0:1]/[PCMU:0:8000:20:64000:1]
  39. 2022-10-11 08:14:15.413521 96.63% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [speex:97:8000:20:0:1]/[PCMA:8:8000:20:64000:1]
  40. 2022-10-11 08:14:15.413521 96.63% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [speex:97:8000:20:0:1]/[PCMU:0:8000:20:64000:1]
  41. 2022-10-11 08:14:15.413521 96.63% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  42. 2022-10-11 08:14:15.413521 96.63% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  43. 2022-10-11 08:14:15.413521 96.63% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  44. 2022-10-11 08:14:15.413521 96.63% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  45. 2022-10-11 08:14:15.413521 96.63% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  46. 2022-10-11 08:14:15.413521 96.63% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  47. 2022-10-11 08:14:15.413521 96.63% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMA:8:8000:20:64000:1]
  48. 2022-10-11 08:14:15.413521 96.63% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMU:0:8000:20:64000:1]
  49. 2022-10-11 08:14:15.413521 96.63% [DEBUG] switch_core_media.c:5566 Set telephone-event payload to 101@8000
  50. 2022-10-11 08:14:15.413521 96.63% [DEBUG] switch_core_media.c:3870 Set Codec sofia/default/9348842387@entdemo.astppbilling.org:5064 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  51. 2022-10-11 08:14:15.413521 96.63% [DEBUG] switch_core_codec.c:111 sofia/default/9348842387@entdemo.astppbilling.org:5064 Original read codec set to PCMA:8
  52. 2022-10-11 08:14:15.413521 96.63% [DEBUG] switch_core_media.c:5915 Set telephone-event payload to 101@8000
  53. 2022-10-11 08:14:15.413521 96.63% [DEBUG] switch_core_media.c:5973 sofia/default/9348842387@entdemo.astppbilling.org:5064 Set 2833 dtmf send payload to 101 recv payload to 101
  54. 2022-10-11 08:14:15.413521 96.63% [DEBUG] sofia.c:7933 (sofia/default/9348842387@entdemo.astppbilling.org:5064) State Change CS_NEW -> CS_INIT
  55. 2022-10-11 08:14:15.413521 96.63% [DEBUG] switch_core_state_machine.c:581 (sofia/default/9348842387@entdemo.astppbilling.org:5064) Running State Change CS_INIT (Cur 1 Tot 30)
  56. 2022-10-11 08:14:15.413521 96.63% [DEBUG] switch_core_state_machine.c:624 (sofia/default/9348842387@entdemo.astppbilling.org:5064) State INIT
  57. 2022-10-11 08:14:15.413521 96.63% [DEBUG] mod_sofia.c:97 sofia/default/9348842387@entdemo.astppbilling.org:5064 SOFIA INIT
  58. 2022-10-11 08:14:15.413521 96.63% [DEBUG] switch_core_state_machine.c:40 sofia/default/9348842387@entdemo.astppbilling.org:5064 Standard INIT
  59. 2022-10-11 08:14:15.413521 96.63% [DEBUG] switch_core_state_machine.c:48 (sofia/default/9348842387@entdemo.astppbilling.org:5064) State Change CS_INIT -> CS_ROUTING
  60. 2022-10-11 08:14:15.413521 96.63% [DEBUG] switch_core_state_machine.c:624 (sofia/default/9348842387@entdemo.astppbilling.org:5064) State INIT going to sleep
  61. 2022-10-11 08:14:15.413521 96.63% [DEBUG] switch_core_state_machine.c:581 (sofia/default/9348842387@entdemo.astppbilling.org:5064) Running State Change CS_ROUTING (Cur 1 Tot 30)
  62. 2022-10-11 08:14:15.413521 96.63% [DEBUG] switch_channel.c:2380 (sofia/default/9348842387@entdemo.astppbilling.org:5064) Callstate Change DOWN -> RINGING
  63. 2022-10-11 08:14:15.413521 96.63% [DEBUG] switch_core_state_machine.c:640 (sofia/default/9348842387@entdemo.astppbilling.org:5064) State ROUTING
  64. 2022-10-11 08:14:15.413521 96.63% [DEBUG] mod_sofia.c:158 sofia/default/9348842387@entdemo.astppbilling.org:5064 SOFIA ROUTING
  65. 2022-10-11 08:14:15.413521 96.63% [DEBUG] switch_core_state_machine.c:230 sofia/default/9348842387@entdemo.astppbilling.org:5064 Standard ROUTING
  66. 2022-10-11 08:14:15.413521 96.63% [INFO] mod_dialplan_xml.c:639 Processing 9348842387 <9348842387>->100070 in context default
  67. 2022-10-11 08:14:15.413521 96.63% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  68. 2022-10-11 08:14:15.413521 96.63% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  69. 2022-10-11 08:14:15.433527 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 100070
  70. 2022-10-11 08:14:15.433527 96.63% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '100070' AND status=0 limit 1
  71. 2022-10-11 08:14:15.433527 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number  : 9348842387 / 9348842387
  72. 2022-10-11 08:14:15.433527 96.63% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="100070" LIMIT 1
  73. 2022-10-11 08:14:15.433527 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : inbound
  74. 2022-10-11 08:14:15.433527 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] [Accountcode : 9348842387]
  75. 2022-10-11 08:14:15.433527 96.63% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "9348842387" AND deleted = 0 limit 1
  76. 2022-10-11 08:14:15.433527 96.63% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_SPEEDDIAL] Query :SELECT A.number FROM speed_dial as A,accounts as B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.speed_num ="100070" AND A.accountid = '15' limit 1
  77. 2022-10-11 08:14:15.433527 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 100070
  78. 2022-10-11 08:14:15.433527 96.63% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="100070" LIMIT 1
  79. 2022-10-11 08:14:15.433527 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] New Call direction : inbound
  80. 2022-10-11 08:14:15.433527 96.63% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="100070" AND (accountid = 0 OR status = 1) LIMIT 1
  81. 2022-10-11 08:14:15.453535 96.63% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] call_direction :inbound
  82. 2022-10-11 08:14:15.453535 96.63% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] DID_ACCOUNTID :13
  83. 2022-10-11 08:14:15.453535 96.63% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] Query :SELECT *,P.id as package_id,P.product_id as product_id FROM packages_view as P inner join package_patterns as PKGPTR on P.product_id = PKGPTR.product_id WHERE (patterns = '^100070.*' OR patterns = '^10007.*' OR patterns = '^1000.*' OR patterns = '^100.*' OR patterns = '^10.*' OR patterns = '^1.*' OR patterns ='--') AND accountid = 13 ORDER BY LENGTH(PKGPTR.patterns) DESC
  84. 2022-10-11 08:14:15.453535 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Account Information ===================
  85. 2022-10-11 08:14:15.453535 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] User id : 15
  86. 2022-10-11 08:14:15.453535 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Account code : 9348842387
  87. 2022-10-11 08:14:15.453535 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Balance : 995.8
  88. 2022-10-11 08:14:15.453535 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  89. 2022-10-11 08:14:15.453535 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Ratecard id : 4
  90. 2022-10-11 08:14:15.453535 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================================================
  91. 2022-10-11 08:14:15.453535 96.63% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 4 AND status = 0
  92. 2022-10-11 08:14:15.453535 96.63% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :inbound
  93. 2022-10-11 08:14:15.453535 96.63% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="100070" LIMIT 1
  94. 2022-10-11 08:14:15.453535 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] call_direction:::::: inbound
  95. 2022-10-11 08:14:15.453535 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information ===================
  96. 2022-10-11 08:14:15.453535 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 2
  97. 2022-10-11 08:14:15.453535 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
  98. 2022-10-11 08:14:15.453535 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0
  99. 2022-10-11 08:14:15.453535 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 0.00000
  100. 2022-10-11 08:14:15.453535 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] comment : 100070
  101. 2022-10-11 08:14:15.453535 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 85
  102. 2022-10-11 08:14:15.453535 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 15
  103. 2022-10-11 08:14:15.453535 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================
  104. 2022-10-11 08:14:15.453535 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your995.8 balance Accountid 15 !!!
  105. 2022-10-11 08:14:15.453535 96.63% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Call is free - assigning max length!!! :: 100
  106. 2022-10-11 08:14:15.453535 96.63% [NOTICE] switch_cpp.cpp:1465 [ASTPP] FINDING LIMIT FOR RESELLER: 14
  107. 2022-10-11 08:14:15.453535 96.63% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "14" AND deleted = 0 limit 1
  108. 2022-10-11 08:14:15.453535 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Reseller Information ===================
  109. 2022-10-11 08:14:15.453535 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] User id : 14
  110. 2022-10-11 08:14:15.453535 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Account code : 2169940770
  111. 2022-10-11 08:14:15.453535 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Balance : 996.6
  112. 2022-10-11 08:14:15.453535 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  113. 2022-10-11 08:14:15.453535 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Ratecard id : 1
  114. 2022-10-11 08:14:15.453535 96.63% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0
  115. 2022-10-11 08:14:15.453535 96.63% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :inbound
  116. 2022-10-11 08:14:15.453535 96.63% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="100070" LIMIT 1
  117. 2022-10-11 08:14:15.453535 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] call_direction:::::: inbound
  118. 2022-10-11 08:14:15.453535 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information ===================
  119. 2022-10-11 08:14:15.453535 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 2
  120. 2022-10-11 08:14:15.453535 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
  121. 2022-10-11 08:14:15.453535 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0
  122. 2022-10-11 08:14:15.453535 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 0.00000
  123. 2022-10-11 08:14:15.453535 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] comment : 100070
  124. 2022-10-11 08:14:15.453535 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 85
  125. 2022-10-11 08:14:15.453535 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 14
  126. 2022-10-11 08:14:15.453535 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================
  127. 2022-10-11 08:14:15.453535 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your996.6 balance Accountid 14 !!!
  128. 2022-10-11 08:14:15.453535 96.63% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Call is free - assigning max length!!! :: 100
  129. 2022-10-11 08:14:15.453535 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Reseller xml_user_rates : ID:2|CODE:^100070.*|DESTINATION:100070|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:0|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:85|ACCID:13||ID:2|CODE:^100070.*|DESTINATION:100070|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:0|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:85|ACCID:13
  130. 2022-10-11 08:14:15.453535 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================================================
  131. 2022-10-11 08:14:15.453535 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Call Max length duration : 100 minutes
  132. 2022-10-11 08:14:15.453535 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] INB_FREE:TRUE
  133. 2022-10-11 08:14:15.453535 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] free_inbound:1
  134. 2022-10-11 08:14:15.453535 96.63% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 15 AND status=0 LIMIT 1
  135. 2022-10-11 08:14:15.453535 96.63% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "13" AND deleted = 0 limit 1
  136. 2022-10-11 08:14:15.453535 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Actual CustomerInfo XML:15
  137. 2022-10-11 08:14:15.453535 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Userinfo XML:15
  138. 2022-10-11 08:14:15.453535 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] [WHILE DID CONDITION] FOR CHECKING RESELLER :14
  139. 2022-10-11 08:14:15.453535 96.63% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "14" AND deleted = 0 limit 1
  140. 2022-10-11 08:14:15.473522 96.63% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0
  141. 2022-10-11 08:14:15.473522 96.63% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :outbound
  142. 2022-10-11 08:14:15.473522 96.63% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^100070.*' OR pattern = '^10007.*' OR pattern = '^1000.*' OR pattern = '^100.*' OR pattern = '^10.*' OR pattern = '^1.*' OR pattern ='--') AND status = 0 AND (pricelist_id = 1 OR accountid=14)  ORDER BY accountid DESC,LENGTH(pattern) DESC,cost DESC LIMIT 1
  143. 2022-10-11 08:14:15.473522 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] call_direction:::::: outbound
  144. 2022-10-11 08:14:15.473522 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information ===================
  145. 2022-10-11 08:14:15.473522 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 1
  146. 2022-10-11 08:14:15.473522 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
  147. 2022-10-11 08:14:15.473522 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0
  148. 2022-10-11 08:14:15.473522 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 0.20000
  149. 2022-10-11 08:14:15.473522 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] comment : USA
  150. 2022-10-11 08:14:15.473522 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 0
  151. 2022-10-11 08:14:15.473522 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 14
  152. 2022-10-11 08:14:15.473522 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Trunk ID: 0
  153. 2022-10-11 08:14:15.473522 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] Routing type:
  154. 2022-10-11 08:14:15.473522 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================
  155. 2022-10-11 08:14:15.473522 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your996.6 balance Accountid 14 !!!
  156. 2022-10-11 08:14:15.473522 96.63% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Limiting call to config max length 100 mins!
  157. 2022-10-11 08:14:15.473522 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Userinfo XML:14
  158. 2022-10-11 08:14:15.473522 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Actual CustomerInfo XML : 15
  159. 2022-10-11 08:14:15.473522 96.63% [INFO] switch_cpp.cpp:1465 [ASTPP] maxlength::::::::: 100
  160. 2022-10-11 08:14:15.473522 96.63% [DEBUG] switch_cpp.cpp:1465 [ASTPP] custom_function_name:::::::::::::::::::::::::custom_inbound_0
  161. 2022-10-11 08:14:15.473522 96.63% [ERR] mod_lua.cpp:202 ...hare/freeswitch/scripts/astpp/lib/addons/sip_routing.lua:150: attempt to get length of global 'destination_str' (a nil value)
  162. stack traceback:
  163.         ...hare/freeswitch/scripts/astpp/lib/addons/sip_routing.lua:150: in function '?'
  164.         /usr/share/freeswitch/scripts/astpp/scripts/astpp.xml.lua:305: in function 'freeswitch_xml_inbound'
  165.         ...hare/freeswitch/scripts/astpp/scripts/astpp.dialplan.lua:455: in main chunk
  166.         [C]: in function 'dofile'
  167.         /usr/share/freeswitch/scripts/astpp/astpp.lua:85: in main chunk
  168. 2022-10-11 08:14:15.473522 96.63% [ERR] mod_lua.cpp:270 LUA script parse/execute error!
  169. 2022-10-11 08:14:15.473522 96.63% [WARNING] mod_dialplan_xml.c:669 Context default not found
  170. 2022-10-11 08:14:15.473522 96.63% [INFO] switch_core_state_machine.c:306 No Route, Aborting
  171. 2022-10-11 08:14:15.473522 96.63% [NOTICE] switch_core_state_machine.c:307 Hangup sofia/default/9348842387@entdemo.astppbilling.org:5064 [CS_ROUTING] [NO_ROUTE_DESTINATION]
  172. 2022-10-11 08:14:15.473522 96.63% [DEBUG] switch_core_state_machine.c:640 (sofia/default/9348842387@entdemo.astppbilling.org:5064) State ROUTING going to sleep
  173. 2022-10-11 08:14:15.473522 96.63% [DEBUG] switch_core_state_machine.c:581 (sofia/default/9348842387@entdemo.astppbilling.org:5064) Running State Change CS_HANGUP (Cur 1 Tot 30)
  174. 2022-10-11 08:14:15.473522 96.63% [DEBUG] switch_core_state_machine.c:844 (sofia/default/9348842387@entdemo.astppbilling.org:5064) Callstate Change RINGING -> HANGUP
  175. 2022-10-11 08:14:15.473522 96.63% [DEBUG] switch_core_state_machine.c:846 (sofia/default/9348842387@entdemo.astppbilling.org:5064) State HANGUP
  176. 2022-10-11 08:14:15.473522 96.63% [DEBUG] mod_sofia.c:468 Channel sofia/default/9348842387@entdemo.astppbilling.org:5064 hanging up, cause: NO_ROUTE_DESTINATION
  177. 2022-10-11 08:14:15.473522 96.63% [DEBUG] mod_sofia.c:613 Responding to INVITE with: 404
  178. 2022-10-11 08:14:15.473522 96.63% [DEBUG] switch_core_state_machine.c:59 sofia/default/9348842387@entdemo.astppbilling.org:5064 Standard HANGUP, cause: NO_ROUTE_DESTINATION
  179. 2022-10-11 08:14:15.473522 96.63% [DEBUG] switch_core_state_machine.c:846 (sofia/default/9348842387@entdemo.astppbilling.org:5064) State HANGUP going to sleep
  180. 2022-10-11 08:14:15.473522 96.63% [DEBUG] switch_core_state_machine.c:616 (sofia/default/9348842387@entdemo.astppbilling.org:5064) State Change CS_HANGUP -> CS_REPORTING
  181. 2022-10-11 08:14:15.473522 96.63% [DEBUG] switch_core_state_machine.c:581 (sofia/default/9348842387@entdemo.astppbilling.org:5064) Running State Change CS_REPORTING (Cur 1 Tot 30)
  182. 2022-10-11 08:14:15.473522 96.63% [DEBUG] switch_core_state_machine.c:932 (sofia/default/9348842387@entdemo.astppbilling.org:5064) State REPORTING
  183. 2022-10-11 08:14:15.473522 96.63% [INFO] mod_json_cdr.c:271 Process [c96f6554-603f-4f12-acd1-433169c779ab.cdr.json]
  184. 2022-10-11 08:14:15.473522 96.63% [DEBUG] switch_core_state_machine.c:168 sofia/default/9348842387@entdemo.astppbilling.org:5064 Standard REPORTING, cause: NO_ROUTE_DESTINATION
  185. 2022-10-11 08:14:15.473522 96.63% [DEBUG] switch_core_state_machine.c:932 (sofia/default/9348842387@entdemo.astppbilling.org:5064) State REPORTING going to sleep
  186. 2022-10-11 08:14:15.473522 96.63% [DEBUG] switch_core_state_machine.c:607 (sofia/default/9348842387@entdemo.astppbilling.org:5064) State Change CS_REPORTING -> CS_DESTROY
  187. 2022-10-11 08:14:15.473522 96.63% [DEBUG] switch_core_session.c:1753 Session 30 (sofia/default/9348842387@entdemo.astppbilling.org:5064) Locked, Waiting on external entities
  188. 2022-10-11 08:14:15.473522 96.63% [NOTICE] switch_core_session.c:1771 Session 30 (sofia/default/9348842387@entdemo.astppbilling.org:5064) Ended
  189. 2022-10-11 08:14:15.473522 96.63% [NOTICE] switch_core_session.c:1775 Close Channel sofia/default/9348842387@entdemo.astppbilling.org:5064 [CS_DESTROY]
  190. 2022-10-11 08:14:15.473522 96.63% [DEBUG] switch_core_state_machine.c:735 (sofia/default/9348842387@entdemo.astppbilling.org:5064) Running State Change CS_DESTROY (Cur 0 Tot 30)
  191. 2022-10-11 08:14:15.473522 96.63% [DEBUG] switch_core_state_machine.c:745 (sofia/default/9348842387@entdemo.astppbilling.org:5064) State DESTROY
  192. 2022-10-11 08:14:15.473522 96.63% [DEBUG] mod_sofia.c:379 sofia/default/9348842387@entdemo.astppbilling.org:5064 SOFIA DESTROY
  193. 2022-10-11 08:14:15.473522 96.63% [DEBUG] switch_core_state_machine.c:175 sofia/default/9348842387@entdemo.astppbilling.org:5064 Standard DESTROY
  194. 2022-10-11 08:14:15.473522 96.63% [DEBUG] switch_core_state_machine.c:745 (sofia/default/9348842387@entdemo.astppbilling.org:5064) State DESTROY going to sleep
  195. freeswitch@entdemo-gibfibre>
  196. freeswitch@entdemo-gibfibre>
  197. freeswitch@entdemo-gibfibre>
  198. freeswitch@entdemo-gibfibre>
  199. freeswitch@entdemo-gibfibre>