From Prashant Kumar, 11 Months ago, written in FreeSWITCH.
- view diff
Embed
  1. [This app Best viewed at 160x60 or more..]
  2. +OK log level  [7]
  3. 2023-05-16 10:42:55.964480 84.20% [WARNING] switch_core_file.c:463 File has 2 channels, muxing to 1 channel will occur.
  4. 2023-05-16 10:42:58.984460 84.73% [NOTICE] switch_channel.c:1123 New Channel sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 [64708f0a-1fa0-4b57-b58c-a629ab7b43b1]
  5. 2023-05-16 10:42:58.984460 84.73% [DEBUG] switch_core_state_machine.c:581 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) Running State Change CS_NEW (Cur 1 Tot 211)
  6. 2023-05-16 10:42:58.984460 84.73% [INFO] sofia.c:10453 sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 receiving invite from 103.240.35.46:44726 version: 1.10.9-release git a615e85 2023-02-03 20:07:30Z 64bit call-id: NGFiNzE3MGExNjg0MmFkMjk5YTg5NTk4NTUwMDViZTA.
  7. 2023-05-16 10:42:58.984460 84.73% [DEBUG] sofia.c:10547 verifying acl "alphaPKsipPROFILE" for ip/port 103.240.35.46:0.
  8. 2023-05-16 10:42:58.984460 84.73% [WARNING] sofia_reg.c:1846 SIP auth challenge (INVITE) on sofia profile 'alphaPKsipPROFILE' for [9030030@alpha7.astppbilling.org] from ip 103.240.35.46
  9. 2023-05-16 10:42:58.984460 84.73% [DEBUG] switch_core_state_machine.c:600 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) State NEW
  10. 2023-05-16 10:42:58.984460 84.73% [DEBUG] sofia.c:2419 detaching session 64708f0a-1fa0-4b57-b58c-a629ab7b43b1
  11. 2023-05-16 10:43:00.104464 84.93% [DEBUG] sofia.c:2532 Re-attaching to session 64708f0a-1fa0-4b57-b58c-a629ab7b43b1
  12. 2023-05-16 10:43:00.104464 84.93% [INFO] sofia.c:10453 sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 receiving invite from 103.240.35.46:44726 version: 1.10.9-release git a615e85 2023-02-03 20:07:30Z 64bit call-id: NGFiNzE3MGExNjg0MmFkMjk5YTg5NTk4NTUwMDViZTA.
  13. 2023-05-16 10:43:00.104464 84.93% [DEBUG] sofia.c:10547 verifying acl "alphaPKsipPROFILE" for ip/port 103.240.35.46:0.
  14. 2023-05-16 10:43:00.144395 84.93% [DEBUG] sofia.c:11668 Setting NAT mode based on via received
  15. 2023-05-16 10:43:00.144395 84.93% [DEBUG] sofia.c:7487 Channel sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 entering state [received][100]
  16. 2023-05-16 10:43:00.144395 84.93% [DEBUG] sofia.c:7497 Remote SDP:
  17. v=0
  18. o=Z 0 0 IN IP4 103.240.35.46
  19. s=Z
  20. c=IN IP4 103.240.35.46
  21. t=0 0
  22. m=audio 8000 RTP/AVP 3 110 8 0 98 101
  23. a=rtpmap:110 speex/8000
  24. a=rtpmap:98 iLBC/8000
  25. a=fmtp:98 mode=20
  26. a=rtpmap:101 telephone-event/8000
  27. a=fmtp:101 0-15
  28.  
  29. 2023-05-16 10:43:00.144395 84.93% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMU:0:8000:20:64000:1]
  30. 2023-05-16 10:43:00.144395 84.93% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMA:8:8000:20:64000:1]
  31. 2023-05-16 10:43:00.144395 84.93% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [GSM:3:8000:20:13200:1]/[G729:18:8000:20:8000:1]
  32. 2023-05-16 10:43:00.144395 84.93% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [speex:110:8000:20:0:1]/[PCMU:0:8000:20:64000:1]
  33. 2023-05-16 10:43:00.144395 84.93% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [speex:110:8000:20:0:1]/[PCMA:8:8000:20:64000:1]
  34. 2023-05-16 10:43:00.144395 84.93% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [speex:110:8000:20:0:1]/[G729:18:8000:20:8000:1]
  35. 2023-05-16 10:43:00.144395 84.93% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  36. 2023-05-16 10:43:00.144395 84.93% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  37. 2023-05-16 10:43:00.144395 84.93% [DEBUG] switch_core_media.c:5582 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  38. 2023-05-16 10:43:00.144395 84.93% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  39. 2023-05-16 10:43:00.144395 84.93% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  40. 2023-05-16 10:43:00.144395 84.93% [DEBUG] switch_core_media.c:5582 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  41. 2023-05-16 10:43:00.144395 84.93% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  42. 2023-05-16 10:43:00.144395 84.93% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  43. 2023-05-16 10:43:00.144395 84.93% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [iLBC:98:8000:30:0:1]/[PCMU:0:8000:20:64000:1]
  44. 2023-05-16 10:43:00.144395 84.93% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [iLBC:98:8000:30:0:1]/[PCMA:8:8000:20:64000:1]
  45. 2023-05-16 10:43:00.144395 84.93% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [iLBC:98:8000:30:0:1]/[G729:18:8000:20:8000:1]
  46. 2023-05-16 10:43:00.144395 84.93% [DEBUG] switch_core_media.c:5443 Set telephone-event payload to 101@8000
  47. 2023-05-16 10:43:00.144395 84.93% [DEBUG] switch_core_media.c:3750 Set Codec sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  48. 2023-05-16 10:43:00.144395 84.93% [DEBUG] switch_core_codec.c:111 sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 Original read codec set to PCMA:8
  49. 2023-05-16 10:43:00.144395 84.93% [DEBUG] switch_core_media.c:5792 Set telephone-event payload to 101@8000
  50. 2023-05-16 10:43:00.144395 84.93% [DEBUG] switch_core_media.c:5850 sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 Set 2833 dtmf send payload to 101 recv payload to 101
  51. 2023-05-16 10:43:00.144395 84.93% [DEBUG] sofia.c:7921 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) State Change CS_NEW -> CS_INIT
  52. 2023-05-16 10:43:00.144395 84.93% [DEBUG] switch_core_state_machine.c:581 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) Running State Change CS_INIT (Cur 1 Tot 211)
  53. 2023-05-16 10:43:00.144395 84.93% [DEBUG] switch_core_state_machine.c:624 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) State INIT
  54. 2023-05-16 10:43:00.144395 84.93% [DEBUG] mod_sofia.c:97 sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 SOFIA INIT
  55. 2023-05-16 10:43:00.144395 84.93% [DEBUG] switch_core_state_machine.c:40 sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 Standard INIT
  56. 2023-05-16 10:43:00.144395 84.93% [DEBUG] switch_core_state_machine.c:48 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) State Change CS_INIT -> CS_ROUTING
  57. 2023-05-16 10:43:00.144395 84.93% [DEBUG] switch_core_state_machine.c:624 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) State INIT going to sleep
  58. 2023-05-16 10:43:00.144395 84.93% [DEBUG] switch_core_state_machine.c:581 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) Running State Change CS_ROUTING (Cur 1 Tot 211)
  59. 2023-05-16 10:43:00.144395 84.93% [DEBUG] switch_channel.c:2380 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) Callstate Change DOWN -> RINGING
  60. 2023-05-16 10:43:00.144395 84.93% [DEBUG] switch_core_state_machine.c:640 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) State ROUTING
  61. 2023-05-16 10:43:00.144395 84.93% [DEBUG] mod_sofia.c:158 sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 SOFIA ROUTING
  62. 2023-05-16 10:43:00.144395 84.93% [DEBUG] switch_core_state_machine.c:230 sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 Standard ROUTING
  63. 2023-05-16 10:43:00.144395 84.93% [INFO] mod_dialplan_xml.c:639 Processing 887134 <887134>->9030030 in context default
  64. 2023-05-16 10:43:00.164393 84.93% [INFO] switch_cpp.cpp:1465 [ASTPP] USING CACHE
  65. 2023-05-16 10:43:00.164393 84.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_SYSTEM]1.0
  66. 2023-05-16 10:43:00.164393 84.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_SYSTEM]1.0
  67. 2023-05-16 10:43:00.164393 84.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  68. 2023-05-16 10:43:00.184409 84.93% [INFO] switch_cpp.cpp:1465 [ASTPP] [feature_code_call_transfer] Blind Call Flag: 0
  69. 2023-05-16 10:43:00.184409 84.93% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 9030030
  70. 2023-05-16 10:43:00.184409 84.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '9030030' limit 1
  71. 2023-05-16 10:43:00.184409 84.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_ACCESS_NUMBER]1.0
  72. 2023-05-16 10:43:00.184409 84.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [Fifo Condition Check] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '9030030' and status=0 LIMIT 1
  73. 2023-05-16 10:43:00.184409 84.93% [INFO] switch_cpp.cpp:1465 [ASTPP] SOURCE NUMBER887134
  74. 2023-05-16 10:43:00.184409 84.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  75. 2023-05-16 10:43:00.184409 84.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL SOURCE] Query :SELECT accountid FROM sip_devices WHERE username = '9030030' limit 1
  76. 2023-05-16 10:43:00.184409 84.93% [WARNING] switch_cpp.cpp:1465 [ASTPP] [FAXER] Custom Caller ID
  77. 2023-05-16 10:43:00.184409 84.93% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number  : 887134 / 887134
  78. 2023-05-16 10:43:00.184409 84.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Interconnect code destination number 0
  79. 2023-05-16 10:43:00.184409 84.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_interconnectcode_info] Query :SELECT * FROM interconnectcode WHERE interconnectcode = 903003 AND status=0 limit 1
  80. 2023-05-16 10:43:00.184409 84.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]0.0
  81. 2023-05-16 10:43:00.184409 84.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT sip_devices.id as sip_id,sip_devices.username as username,accounts.number as accountcode,sip_devices.accountid as accountid,accounts.did_cid_translation as did_cid_translation,sip_devices.codec as sip_codec FROM sip_devices as sip_devices,accounts as  accounts ,domains WHERE accounts.id=domains.accountid AND accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="9030030"  AND domains.domain="alpha7.astppbilling.org" limit 1
  82. 2023-05-16 10:43:00.184409 84.93% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : outbound
  83. 2023-05-16 10:43:00.184409 84.93% [INFO] switch_cpp.cpp:1465 [ASTPP] [OPENSIP_FROM_IP] from_ip : 103.240.35.46
  84. 2023-05-16 10:43:00.184409 84.93% [INFO] switch_cpp.cpp:1465 [ASTPP] [Accountcode : 887134]
  85. 2023-05-16 10:43:00.184409 84.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET get_acc_info] Query :SELECT count(id) as id FROM local_number WHERE number =9030030
  86. 2023-05-16 10:43:00.184409 84.93% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== local number ===================
  87. 2023-05-16 10:43:00.184409 84.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET get_acc_info] Query :SELECT count(id) as id FROM local_number WHERE number =9030030
  88. 2023-05-16 10:43:00.184409 84.93% [INFO] switch_cpp.cpp:1465 [ASTPP] destination number : 9030030
  89. 2023-05-16 10:43:00.184409 84.93% [INFO] switch_cpp.cpp:1465 [ASTPP] caller id name : 887134
  90. 2023-05-16 10:43:00.184409 84.93% [INFO] switch_cpp.cpp:1465 [ASTPP] caller id number : 887134
  91. 2023-05-16 10:43:00.184409 84.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_ani] Query :SELECT * FROM ani_map WHERE number = 887134
  92. 2023-05-16 10:43:00.184409 84.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "887134" AND deleted = 0 limit 1
  93. 2023-05-16 10:43:00.204395 84.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^9030030.*' OR blocked_patterns = '^903003.*' OR blocked_patterns = '^90300.*' OR blocked_patterns = '^9030.*' OR blocked_patterns = '^903.*' OR blocked_patterns = '^90.*' OR blocked_patterns = '^9.*' OR blocked_patterns ='--') AND accountid = 170 limit 1
  94. 2023-05-16 10:43:00.204395 84.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DID]0
  95. 2023-05-16 10:43:00.204395 84.93% [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 P.is_terminated = 0 AND (patterns = '^9030030.*' OR patterns = '^903003.*' OR patterns = '^90300.*' OR patterns = '^9030.*' OR patterns = '^903.*' OR patterns = '^90.*' OR patterns = '^9.*' OR patterns ='--') AND accountid = 170 ORDER BY LENGTH(PKGPTR.patterns) DESC
  96. 2023-05-16 10:43:00.204395 84.93% [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 ="9030030" AND A.accountid = '170' limit 1
  97. 2023-05-16 10:43:00.204395 84.93% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 9030030
  98. 2023-05-16 10:43:00.204395 84.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]0.0
  99. 2023-05-16 10:43:00.204395 84.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT sip_devices.id as sip_id,sip_devices.username as username,accounts.number as accountcode,sip_devices.accountid as accountid,accounts.did_cid_translation as did_cid_translation,sip_devices.codec as sip_codec FROM sip_devices as sip_devices,accounts as  accounts ,domains WHERE accounts.id=domains.accountid AND accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="9030030"  AND domains.domain="alpha7.astppbilling.org" limit 1
  100. 2023-05-16 10:43:00.204395 84.93% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] New Call Direction : outbound
  101. 2023-05-16 10:43:00.204395 84.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type,accountid FROM call_barring WHERE ((number = '9030030' OR number = '903003' OR number = '90300' OR number = '9030' OR number = '903' OR number = '90' OR number = '9' OR number ='--') OR (number = '9030030*' OR number = '903003*' OR number = '90300*' OR number = '9030*' OR number = '903*' OR number = '90*' OR number = '9*' OR number ='--') OR (number = '887134' OR number = '88713' OR number = '8871' OR number = '887' OR number = '88' OR number = '8' OR number ='--') OR (number = '887134*' OR number = '88713*' OR number = '8871*' OR number = '887*' OR number = '88*' OR number = '8*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC
  102. 2023-05-16 10:43:00.204395 84.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Call Barring Status : -1
  103. 2023-05-16 10:43:00.204395 84.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '9030030' OR routing_prefix = '903003' OR routing_prefix = '90300' OR routing_prefix = '9030' OR routing_prefix = '903' OR routing_prefix = '90' OR routing_prefix = '9' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1
  104. 2023-05-16 10:43:00.204395 84.93% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Account Information ===================
  105. 2023-05-16 10:43:00.204395 84.93% [INFO] switch_cpp.cpp:1465 [ASTPP] User id : 170
  106. 2023-05-16 10:43:00.204395 84.93% [INFO] switch_cpp.cpp:1465 [ASTPP] Account code : 887134
  107. 2023-05-16 10:43:00.204395 84.93% [INFO] switch_cpp.cpp:1465 [ASTPP] Balance : 23972.99
  108. 2023-05-16 10:43:00.204395 84.93% [INFO] switch_cpp.cpp:1465 [ASTPP] Type : 1 [0:prepaid,1:postpaid]
  109. 2023-05-16 10:43:00.204395 84.93% [INFO] switch_cpp.cpp:1465 [ASTPP] Ratecard id : 23
  110. 2023-05-16 10:43:00.204395 84.93% [INFO] switch_cpp.cpp:1465 [ASTPP] CID Pool : 0
  111. 2023-05-16 10:43:00.204395 84.93% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================================================
  112. 2023-05-16 10:43:00.204395 84.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.0
  113. 2023-05-16 10:43:00.204395 84.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.1:CACHING ID:::23
  114. 2023-05-16 10:43:00.204395 84.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :outbound
  115. 2023-05-16 10:43:00.204395 84.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.0
  116. 2023-05-16 10:43:00.204395 84.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.1:CACHING ID:::23
  117. 2023-05-16 10:43:00.204395 84.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^9030030.*' OR pattern = '^903003.*' OR pattern = '^90300.*' OR pattern = '^9030.*' OR pattern = '^903.*' OR pattern = '^90.*' OR pattern = '^9.*' OR pattern ='--') AND (caller_id_pattern = '^887134.*' OR caller_id_pattern = '^88713.*' OR caller_id_pattern = '^8871.*' OR caller_id_pattern = '^887.*' OR caller_id_pattern = '^88.*' OR caller_id_pattern = '^8.*' OR caller_id_pattern ='^.*') AND status = 0 AND effective_date <= UTC_TIMESTAMP() AND (pricelist_id = 23 OR accountid=170)  ORDER BY accountid DESC,LENGTH(pattern) DESC,LENGTH(caller_id_pattern) DESC,cost DESC,effective_date DESC LIMIT 1
  118. 2023-05-16 10:43:00.204395 84.93% [INFO] switch_cpp.cpp:1465 [ASTPP]  Call Direction : outbound
  119. 2023-05-16 10:43:00.204395 84.93% [WARNING] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Rates Not Found :
  120. 2023-05-16 10:43:00.204395 84.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP]  Post Cdrs : 0
  121. 2023-05-16 10:43:00.204395 84.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET RESELLERID] Query :SELECT reseller_id FROM accounts WHERE id = 170
  122. 2023-05-16 10:43:00.204395 84.93% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Generated XML:
  123. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  124. <document type="freeswitch/xml">
  125. <section name="dialplan" description="ASTPP Dialplan">
  126. <context name="default">
  127. <extension name="9030030">
  128. <condition field="destination_number" expression="9030030">
  129. <action application="log" data="WARNING Accountcode 887134. Dialed number (9030030)  origination rates not found!!"/>
  130. <action application="playback" data="/usr/local/freeswitch/sounds/en/us/callie/astpp-badphone.wav"/>
  131. <action application="set" data="original_caller_id_name=887134"/>
  132. <action application="set" data="original_caller_id_number=887134"/>
  133. <action application="set" data="error_cdr=1"/>
  134. <action application="set" data="callstart=2023-05-16 10:43:00"/>
  135. <action application="set" data="account_id=170"/>
  136. <action application="set" data="parent_id=0"/>
  137. <action application="set" data="call_direction=outbound"/>
  138. <action application="set" data="sip_ignore_remote_cause=true"/>
  139. <action application="set" data="call_processed=internal"/>
  140. <action application="set" data="effective_destination_number=9030030"/>
  141. <action application="set" data="last_bridge_hangup_cause=ORIGINATION_RATE_NOT_FOUND"/>
  142. <action application="hangup" data="ORIGINATION_RATE_NOT_FOUND"/>
  143. </condition>
  144. </extension>
  145. </context>
  146. </section>
  147. </document>
  148. Dialplan: sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 parsing [default->9030030] continue=false
  149. Dialplan: sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 Regex (PASS) [9030030] destination_number(9030030) =~ /9030030/ break=on-false
  150. Dialplan: sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 Action log(WARNING Accountcode 887134. Dialed number (9030030)  origination rates not found!!)
  151. Dialplan: sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 Action playback(/usr/local/freeswitch/sounds/en/us/callie/astpp-badphone.wav)
  152. Dialplan: sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 Action set(original_caller_id_name=887134)
  153. Dialplan: sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 Action set(original_caller_id_number=887134)
  154. Dialplan: sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 Action set(error_cdr=1)
  155. Dialplan: sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 Action set(callstart=2023-05-16 10:43:00)
  156. Dialplan: sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 Action set(account_id=170)
  157. Dialplan: sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 Action set(parent_id=0)
  158. Dialplan: sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 Action set(call_direction=outbound)
  159. Dialplan: sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 Action set(sip_ignore_remote_cause=true)
  160. Dialplan: sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 Action set(call_processed=internal)
  161. Dialplan: sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 Action set(effective_destination_number=9030030)
  162. Dialplan: sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 Action set(last_bridge_hangup_cause=ORIGINATION_RATE_NOT_FOUND)
  163. Dialplan: sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 Action hangup(ORIGINATION_RATE_NOT_FOUND)
  164. 2023-05-16 10:43:00.204395 84.93% [DEBUG] switch_core_state_machine.c:281 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) State Change CS_ROUTING -> CS_EXECUTE
  165. 2023-05-16 10:43:00.204395 84.93% [DEBUG] switch_core_state_machine.c:640 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) State ROUTING going to sleep
  166. 2023-05-16 10:43:00.204395 84.93% [DEBUG] switch_core_state_machine.c:581 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) Running State Change CS_EXECUTE (Cur 1 Tot 211)
  167. 2023-05-16 10:43:00.204395 84.93% [DEBUG] switch_core_state_machine.c:647 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) State EXECUTE
  168. 2023-05-16 10:43:00.204395 84.93% [DEBUG] mod_sofia.c:213 sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 SOFIA EXECUTE
  169. 2023-05-16 10:43:00.204395 84.93% [DEBUG] switch_core_state_machine.c:323 sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 Standard EXECUTE
  170. EXECUTE [depth=0] sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 log(WARNING Accountcode 887134. Dialed number (9030030)  origination rates not found!!)
  171. 2023-05-16 10:43:00.204395 84.93% [WARNING] mod_dptools.c:1867 Accountcode 887134. Dialed number (9030030)  origination rates not found!!
  172. 2023-05-16 10:43:00.204395 84.93% [DEBUG] switch_core_session.c:2785 Application playback Requires media! pre_answering channel sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075
  173. 2023-05-16 10:43:00.224389 84.93% [INFO] switch_core_session.c:2787 Sending early media
  174. 2023-05-16 10:43:00.224389 84.93% [DEBUG] switch_core_media.c:8651 AUDIO RTP [sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075] 95.217.238.195 port 26102 -> 103.240.35.46 port 8000 codec: 8 ms: 20
  175. 2023-05-16 10:43:00.224389 84.93% [DEBUG] switch_rtp.c:4377 Starting timer [soft] 160 bytes per 20ms
  176. 2023-05-16 10:43:00.224389 84.93% [DEBUG] switch_core_media.c:8963 sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 Set 2833 dtmf send payload to 101
  177. 2023-05-16 10:43:00.224389 84.93% [DEBUG] switch_core_media.c:8970 sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 Set 2833 dtmf receive payload to 101
  178. 2023-05-16 10:43:00.224389 84.93% [DEBUG] switch_core_media.c:8993 sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 Set rtp dtmf delay to 40
  179. 2023-05-16 10:43:00.224389 84.93% [DEBUG] mod_sofia.c:2609 Ring SDP:
  180. v=0
  181. o=FreeSWITCH 1684207678 1684207679 IN IP4 95.217.238.195
  182. s=FreeSWITCH
  183. c=IN IP4 95.217.238.195
  184. t=0 0
  185. m=audio 26102 RTP/AVP 8 101
  186. a=rtpmap:8 PCMA/8000
  187. a=rtpmap:101 telephone-event/8000
  188. a=fmtp:101 0-15
  189. a=ptime:20
  190. a=sendrecv
  191.  
  192. 2023-05-16 10:43:00.224389 84.93% [NOTICE] mod_sofia.c:2612 Pre-Answer sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075!
  193. 2023-05-16 10:43:00.224389 84.93% [DEBUG] switch_channel.c:3566 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) Callstate Change RINGING -> EARLY
  194. EXECUTE [depth=0] sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 playback(/usr/local/freeswitch/sounds/en/us/callie/astpp-badphone.wav)
  195. 2023-05-16 10:43:00.224389 84.93% [DEBUG] switch_core_file.c:444 File /usr/local/freeswitch/sounds/en/us/callie/astpp-badphone.wav sample rate 16000 doesn't match requested rate 8000
  196. 2023-05-16 10:43:00.224389 84.93% [DEBUG] switch_ivr_play_say.c:1566 Codec Activated L16@8000hz 1 channels 20ms
  197. 2023-05-16 10:43:00.224389 84.93% [DEBUG] sofia.c:7487 Channel sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 entering state [early][183]
  198. 2023-05-16 10:43:01.344418 85.80% [DEBUG] switch_rtp.c:7511 Correct audio ip/port confirmed.
  199. 2023-05-16 10:43:01.664420 85.80% [DEBUG] switch_ivr_play_say.c:2015 done playing file /usr/local/freeswitch/sounds/en/us/callie/astpp-badphone.wav
  200. EXECUTE [depth=0] sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 set(original_caller_id_name=887134)
  201. 2023-05-16 10:43:01.664420 85.80% [DEBUG] mod_dptools.c:1673 SET sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 [original_caller_id_name]=[887134]
  202. EXECUTE [depth=0] sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 set(original_caller_id_number=887134)
  203. 2023-05-16 10:43:01.664420 85.80% [DEBUG] mod_dptools.c:1673 SET sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 [original_caller_id_number]=[887134]
  204. EXECUTE [depth=0] sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 set(error_cdr=1)
  205. 2023-05-16 10:43:01.664420 85.80% [DEBUG] mod_dptools.c:1673 SET sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 [error_cdr]=[1]
  206. EXECUTE [depth=0] sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 set(callstart=2023-05-16 10:43:00)
  207. 2023-05-16 10:43:01.664420 85.80% [DEBUG] mod_dptools.c:1673 SET sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 [callstart]=[2023-05-16 10:43:00]
  208. EXECUTE [depth=0] sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 set(account_id=170)
  209. 2023-05-16 10:43:01.664420 85.80% [DEBUG] mod_dptools.c:1673 SET sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 [account_id]=[170]
  210. EXECUTE [depth=0] sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 set(parent_id=0)
  211. 2023-05-16 10:43:01.664420 85.80% [DEBUG] mod_dptools.c:1673 SET sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 [parent_id]=[0]
  212. EXECUTE [depth=0] sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 set(call_direction=outbound)
  213. 2023-05-16 10:43:01.664420 85.80% [DEBUG] mod_dptools.c:1673 SET sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 [call_direction]=[outbound]
  214. EXECUTE [depth=0] sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 set(sip_ignore_remote_cause=true)
  215. 2023-05-16 10:43:01.664420 85.80% [DEBUG] mod_dptools.c:1673 SET sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 [sip_ignore_remote_cause]=[true]
  216. EXECUTE [depth=0] sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 set(call_processed=internal)
  217. 2023-05-16 10:43:01.664420 85.80% [DEBUG] mod_dptools.c:1673 SET sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 [call_processed]=[internal]
  218. EXECUTE [depth=0] sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 set(effective_destination_number=9030030)
  219. 2023-05-16 10:43:01.664420 85.80% [DEBUG] mod_dptools.c:1673 SET sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 [effective_destination_number]=[9030030]
  220. EXECUTE [depth=0] sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 set(last_bridge_hangup_cause=ORIGINATION_RATE_NOT_FOUND)
  221. 2023-05-16 10:43:01.664420 85.80% [DEBUG] mod_dptools.c:1673 SET sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 [last_bridge_hangup_cause]=[ORIGINATION_RATE_NOT_FOUND]
  222. EXECUTE [depth=0] sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 hangup(ORIGINATION_RATE_NOT_FOUND)
  223. 2023-05-16 10:43:01.664420 85.80% [NOTICE] mod_dptools.c:1376 Hangup sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 [CS_EXECUTE] [NORMAL_CLEARING]
  224. 2023-05-16 10:43:01.664420 85.80% [DEBUG] switch_core_session.c:2973 sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 skip receive message [PHONE_EVENT] (channel is hungup already)
  225. 2023-05-16 10:43:01.664420 85.80% [DEBUG] switch_core_state_machine.c:647 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) State EXECUTE going to sleep
  226. 2023-05-16 10:43:01.664420 85.80% [DEBUG] switch_core_state_machine.c:581 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) Running State Change CS_HANGUP (Cur 1 Tot 211)
  227. 2023-05-16 10:43:01.664420 85.80% [DEBUG] switch_core_state_machine.c:844 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) Callstate Change EARLY -> HANGUP
  228. 2023-05-16 10:43:01.664420 85.80% [DEBUG] switch_core_state_machine.c:846 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) State HANGUP
  229. 2023-05-16 10:43:01.664420 85.80% [DEBUG] mod_sofia.c:468 Channel sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 hanging up, cause: NORMAL_CLEARING
  230. 2023-05-16 10:43:01.664420 85.80% [DEBUG] mod_sofia.c:613 Responding to INVITE with: 480
  231. 2023-05-16 10:43:01.664420 85.80% [DEBUG] switch_core_state_machine.c:59 sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 Standard HANGUP, cause: NORMAL_CLEARING
  232. 2023-05-16 10:43:01.664420 85.80% [DEBUG] switch_core_state_machine.c:846 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) State HANGUP going to sleep
  233. 2023-05-16 10:43:01.664420 85.80% [DEBUG] switch_core_state_machine.c:616 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) State Change CS_HANGUP -> CS_REPORTING
  234. 2023-05-16 10:43:01.664420 85.80% [DEBUG] switch_core_state_machine.c:581 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) Running State Change CS_REPORTING (Cur 1 Tot 211)
  235. 2023-05-16 10:43:01.664420 85.80% [DEBUG] switch_core_state_machine.c:932 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) State REPORTING
  236. 2023-05-16 10:43:01.664420 85.80% [INFO] mod_json_cdr.c:272 Process [64708f0a-1fa0-4b57-b58c-a629ab7b43b1.cdr.json]
  237. 2023-05-16 10:43:01.704439 85.80% [DEBUG] switch_core_state_machine.c:168 sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 Standard REPORTING, cause: NORMAL_CLEARING
  238. 2023-05-16 10:43:01.704439 85.80% [DEBUG] switch_core_state_machine.c:932 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) State REPORTING going to sleep
  239. 2023-05-16 10:43:01.704439 85.80% [DEBUG] switch_core_state_machine.c:607 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) State Change CS_REPORTING -> CS_DESTROY
  240. 2023-05-16 10:43:01.704439 85.80% [DEBUG] switch_core_session.c:1743 Session 211 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) Locked, Waiting on external entities
  241. 2023-05-16 10:43:01.704439 85.80% [NOTICE] switch_core_session.c:1761 Session 211 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) Ended
  242. 2023-05-16 10:43:01.704439 85.80% [NOTICE] switch_core_session.c:1765 Close Channel sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 [CS_DESTROY]
  243. 2023-05-16 10:43:01.704439 85.80% [DEBUG] switch_core_state_machine.c:735 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) Running State Change CS_DESTROY (Cur 0 Tot 211)
  244. 2023-05-16 10:43:01.704439 85.80% [DEBUG] switch_core_state_machine.c:745 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) State DESTROY
  245. 2023-05-16 10:43:01.704439 85.80% [DEBUG] mod_sofia.c:379 sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 SOFIA DESTROY
  246. 2023-05-16 10:43:01.704439 85.80% [DEBUG] switch_core_state_machine.c:175 sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 Standard DESTROY
  247. 2023-05-16 10:43:01.704439 85.80% [DEBUG] switch_core_state_machine.c:745 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) State DESTROY going to sleep
  248. freeswitch@AlphaQaAlpesh>
  249. freeswitch@AlphaQaAlpesh>
  250. freeswitch@AlphaQaAlpesh>
  251. freeswitch@AlphaQaAlpesh>
  252. freeswitch@AlphaQaAlpesh>
  253. freeswitch@AlphaQaAlpesh>