From Prashant Kumar, 1 Year ago, written in FreeSWITCH.
- view diff
Embed
  1. OK log level  [7]
  2. freeswitch@AlphaQA>
  3. freeswitch@AlphaQA>
  4. 2023-03-17 12:13:59.454741 93.53% [WARNING] sofia_reg.c:1861 SIP auth challenge (INVITE) on sofia profile 'default' for [45459@alpha.astppbilling.org] from ip 103.240.35.46
  5. 2023-03-17 12:13:59.774766 93.53% [WARNING] sofia_reg.c:3223 Can't find user [45459@alpha.astppbilling.org] from 103.240.35.46
  6. You must define a domain called 'alpha.astppbilling.org' in your directory and add a user with the id="45459" attribute
  7. and you must configure your device to use the proper domain in its authentication credentials.
  8. 2023-03-17 12:14:01.774737 92.77% [INFO] switch_stun.c:897 External ip address detected using STUN: 95.217.238.195
  9. 2023-03-17 12:14:01.994744 92.77% [INFO] switch_stun.c:897 External ip address detected using STUN: 95.217.238.195
  10. 2023-03-17 12:14:02.054741 92.77% [NOTICE] switch_loadable_module.c:1228 Deleting Application 'nibblebill'
  11. 2023-03-17 12:14:02.054741 92.77% [DEBUG] switch_loadable_module.c:1230 Write lock interface 'nibblebill' to wait for existing references.
  12. 2023-03-17 12:14:02.054741 92.77% [NOTICE] switch_loadable_module.c:1283 Deleting API Function 'nibblebill'
  13. 2023-03-17 12:14:02.054741 92.77% [DEBUG] switch_loadable_module.c:1285 Write lock interface 'nibblebill' to wait for existing references.
  14. 2023-03-17 12:14:02.054741 92.77% [CONSOLE] switch_loadable_module.c:2349 Stopping: mod_nibblebill
  15. 2023-03-17 12:14:02.074743 92.77% [INFO] switch_time.c:1430 Timezone reloaded 1750 definitions
  16. 2023-03-17 12:14:02.074743 92.77% [DEBUG] switch_event.c:2178 Event Binding deleted for mod_nibblebill:SESSION_HEARTBEAT
  17. 2023-03-17 12:14:02.074743 92.77% [CONSOLE] switch_loadable_module.c:2369 mod_nibblebill unloaded.
  18. 2023-03-17 12:14:02.094734 92.77% [INFO] mod_nibblebill.c:224 odbc_dsn is ASTPP:astppuser:tztR*eTWTIOX7aL7eDHe
  19. 2023-03-17 12:14:02.094734 92.77% [DEBUG] mod_nibblebill.c:284 dsn is "ASTPP:astppuser:tztR*eTWTIOX7aL7eDHe"
  20. 2023-03-17 12:14:02.094734 92.77% [CONSOLE] switch_loadable_module.c:1768 Successfully Loaded [mod_nibblebill]
  21. 2023-03-17 12:14:02.094734 92.77% [NOTICE] switch_loadable_module.c:329 Adding Application 'nibblebill'
  22. 2023-03-17 12:14:02.094734 92.77% [NOTICE] switch_loadable_module.c:389 Adding API Function 'nibblebill'
  23. 2023-03-17 12:14:04.854745 90.67% [WARNING] sofia_reg.c:1861 SIP auth challenge (INVITE) on sofia profile 'default' for [4455007@alpha.astppbilling.org] from ip 103.240.35.46
  24. 2023-03-17 12:14:05.154757 90.67% [WARNING] sofia_reg.c:3223 Can't find user [4455007@alpha.astppbilling.org] from 103.240.35.46
  25. You must define a domain called 'alpha.astppbilling.org' in your directory and add a user with the id="4455007" attribute
  26. and you must configure your device to use the proper domain in its authentication credentials.
  27. 2023-03-17 12:14:12.494744 91.17% [WARNING] sofia_reg.c:1861 SIP auth challenge (REGISTER) on sofia profile 'default' for [086860@alpha3.astppbilling.org] from ip 103.240.35.46
  28. 2023-03-17 12:14:13.214737 91.13% [WARNING] sofia_reg.c:3223 Can't find user [086860@alpha3.astppbilling.org] from 103.240.35.46
  29. You must define a domain called 'alpha3.astppbilling.org' in your directory and add a user with the id="086860" attribute
  30. and you must configure your device to use the proper domain in its authentication credentials.
  31. 2023-03-17 12:14:13.514755 91.13% [WARNING] sofia_reg.c:1861 SIP auth challenge (INVITE) on sofia profile 'default' for [086860@alpha3.astppbilling.org] from ip 103.240.35.46
  32. 2023-03-17 12:14:15.734753 91.20% [NOTICE] switch_channel.c:1123 New Channel sofia/default/990004@142.132.184.134 [03d333e6-a67f-494f-8cb1-29db0959dc23]
  33. 2023-03-17 12:14:15.734753 91.20% [DEBUG] switch_core_state_machine.c:581 (sofia/default/990004@142.132.184.134) Running State Change CS_NEW (Cur 1 Tot 41)
  34. 2023-03-17 12:14:15.734753 91.20% [INFO] sofia.c:10462 sofia/default/990004@142.132.184.134 receiving invite from 142.132.184.134:5076 version: 1.10.7 -release 64bit call-id: 13a2dd39-3f60-123c-e281-9600013c8d14
  35. 2023-03-17 12:14:15.734753 91.20% [DEBUG] sofia.c:10556 verifying acl "default" for ip/port 142.132.184.134:0.
  36. 2023-03-17 12:14:15.734753 91.20% [DEBUG] sofia.c:10585 IP 142.132.184.134 Approved by acl "default[]". Access Granted.
  37. 2023-03-17 12:14:15.734753 91.20% [DEBUG] sofia.c:7499 Channel sofia/default/990004@142.132.184.134 entering state [received][100]
  38. 2023-03-17 12:14:15.734753 91.20% [DEBUG] sofia.c:7509 Remote SDP:
  39. v=0
  40. o=FreeSWITCH 1679035901 1679035902 IN IP4 142.132.184.134
  41. s=FreeSWITCH
  42. c=IN IP4 142.132.184.134
  43. t=0 0
  44. m=audio 19354 RTP/AVP 8 18 101
  45. a=rtpmap:8 PCMA/8000
  46. a=rtpmap:18 G729/8000
  47. a=rtpmap:101 telephone-event/8000
  48. a=fmtp:101 0-15
  49. a=ptime:20
  50.  
  51. 2023-03-17 12:14:15.734753 91.20% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  52. 2023-03-17 12:14:15.734753 91.20% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  53. 2023-03-17 12:14:15.734753 91.20% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  54. 2023-03-17 12:14:15.734753 91.20% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
  55. 2023-03-17 12:14:15.734753 91.20% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1]
  56. 2023-03-17 12:14:15.734753 91.20% [DEBUG] switch_core_media.c:5566 Set telephone-event payload to 101@8000
  57. 2023-03-17 12:14:15.734753 91.20% [DEBUG] switch_core_media.c:3870 Set Codec sofia/default/990004@142.132.184.134 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  58. 2023-03-17 12:14:15.734753 91.20% [DEBUG] switch_core_codec.c:111 sofia/default/990004@142.132.184.134 Original read codec set to PCMA:8
  59. 2023-03-17 12:14:15.734753 91.20% [DEBUG] switch_core_media.c:5915 Set telephone-event payload to 101@8000
  60. 2023-03-17 12:14:15.734753 91.20% [DEBUG] switch_core_media.c:5973 sofia/default/990004@142.132.184.134 Set 2833 dtmf send payload to 101 recv payload to 101
  61. 2023-03-17 12:14:15.734753 91.20% [DEBUG] sofia.c:7933 (sofia/default/990004@142.132.184.134) State Change CS_NEW -> CS_INIT
  62. 2023-03-17 12:14:15.734753 91.20% [DEBUG] switch_core_state_machine.c:600 (sofia/default/990004@142.132.184.134) State NEW
  63. 2023-03-17 12:14:15.734753 91.20% [DEBUG] switch_core_state_machine.c:581 (sofia/default/990004@142.132.184.134) Running State Change CS_INIT (Cur 1 Tot 41)
  64. 2023-03-17 12:14:15.734753 91.20% [DEBUG] switch_core_state_machine.c:624 (sofia/default/990004@142.132.184.134) State INIT
  65. 2023-03-17 12:14:15.734753 91.20% [DEBUG] mod_sofia.c:97 sofia/default/990004@142.132.184.134 SOFIA INIT
  66. 2023-03-17 12:14:15.734753 91.20% [DEBUG] switch_core_state_machine.c:40 sofia/default/990004@142.132.184.134 Standard INIT
  67. 2023-03-17 12:14:15.734753 91.20% [DEBUG] switch_core_state_machine.c:48 (sofia/default/990004@142.132.184.134) State Change CS_INIT -> CS_ROUTING
  68. 2023-03-17 12:14:15.734753 91.20% [DEBUG] switch_core_state_machine.c:624 (sofia/default/990004@142.132.184.134) State INIT going to sleep
  69. 2023-03-17 12:14:15.734753 91.20% [DEBUG] switch_core_state_machine.c:581 (sofia/default/990004@142.132.184.134) Running State Change CS_ROUTING (Cur 1 Tot 41)
  70. 2023-03-17 12:14:15.734753 91.20% [DEBUG] switch_channel.c:2380 (sofia/default/990004@142.132.184.134) Callstate Change DOWN -> RINGING
  71. 2023-03-17 12:14:15.734753 91.20% [DEBUG] switch_core_state_machine.c:640 (sofia/default/990004@142.132.184.134) State ROUTING
  72. 2023-03-17 12:14:15.734753 91.20% [DEBUG] mod_sofia.c:158 sofia/default/990004@142.132.184.134 SOFIA ROUTING
  73. 2023-03-17 12:14:15.734753 91.20% [DEBUG] switch_core_state_machine.c:230 sofia/default/990004@142.132.184.134 Standard ROUTING
  74. 2023-03-17 12:14:15.734753 91.20% [INFO] mod_dialplan_xml.c:639 Processing 990004 <990004>->144 in context default
  75. 2023-03-17 12:14:15.754763 91.20% [INFO] switch_cpp.cpp:1465 [ASTPP] USING CACHE
  76. 2023-03-17 12:14:15.754763 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_SYSTEM]1.0
  77. 2023-03-17 12:14:15.754763 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_SYSTEM]1.0
  78. 2023-03-17 12:14:15.754763 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  79. 2023-03-17 12:14:15.774748 91.20% [INFO] switch_cpp.cpp:1465 [ASTPP] [feature_code_call_transfer] Blind Call Flag: 0
  80. 2023-03-17 12:14:15.774748 91.20% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 144
  81. 2023-03-17 12:14:15.774748 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '144' limit 1
  82. 2023-03-17 12:14:15.774748 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_ACCESS_NUMBER]1.0
  83. 2023-03-17 12:14:15.774748 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [Fifo Condition Check] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '144' and status=0 LIMIT 1
  84. 2023-03-17 12:14:15.774748 91.20% [INFO] switch_cpp.cpp:1465 [ASTPP] SOURCE NUMBERUSERNAME
  85. 2023-03-17 12:14:15.774748 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  86. 2023-03-17 12:14:15.774748 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL SOURCE] Query :SELECT accountid FROM sip_devices WHERE username = '144' limit 1
  87. 2023-03-17 12:14:15.774748 91.20% [WARNING] switch_cpp.cpp:1465 [ASTPP] [FAXER] Custom Caller ID
  88. 2023-03-17 12:14:15.774748 91.20% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number  : 990004 / 990004
  89. 2023-03-17 12:14:15.774748 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Interconnect code destination number
  90. 2023-03-17 12:14:15.774748 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_interconnectcode_info] Query :SELECT * FROM interconnectcode WHERE interconnectcode = 144 AND status=0 limit 1
  91. 2023-03-17 12:14:15.774748 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]0.0
  92. 2023-03-17 12:14:15.774748 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]1.1
  93. 2023-03-17 12:14:15.774748 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]1.1 :: CALL IS DID
  94. 2023-03-17 12:14:15.774748 91.20% [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, A.codec as did_codec,A.provider_id as provider_id FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="144" LIMIT 1
  95. 2023-03-17 12:14:15.774748 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID_CALL_TRANSFER] Query :SELECT A.id as id,A.provider_id as provider_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,A.transfer_status,A.busy_status,A.no_answer_status,A.always_status,A.transfer_call_type,A.transfer_extensions FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="144" LIMIT 1
  96. 2023-03-17 12:14:15.774748 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  97. 2023-03-17 12:14:15.774748 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID12] Query :SELECT call_type,extensions from inbound_routes where accountid ="133" and did_id ="16" and number ="990004" and status = '0' LIMIT 1
  98. 2023-03-17 12:14:15.774748 91.20% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : inbound
  99. 2023-03-17 12:14:15.774748 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [IPAUTHENTICATION] Query :SELECT ip_map.*, (SELECT number FROM accounts where id=accountid AND status=0 AND deleted=0) AS account_code FROM ip_map WHERE INET_ATON("142.132.184.134") BETWEEN(INET_ATON(SUBSTRING_INDEX(`ip`, '/', 1)) & 0xffffffff ^((0x1 <<(32 -  SUBSTRING_INDEX(`ip`, '/', -1))) -1 )) AND(INET_ATON(SUBSTRING_INDEX(`ip`, '/', 1)) |((0x100000000 >> SUBSTRING_INDEX(`ip`,'/', -1)) -1))  AND "144"  LIKE CONCAT(prefix,'%') ORDER BY LENGTH(prefix) DESC LIMIT 1
  100. 2023-03-17 12:14:15.774748 91.20% [INFO] switch_cpp.cpp:1465 [ASTPP] [Accountcode : 058762]
  101. 2023-03-17 12:14:15.774748 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET get_acc_info] Query :SELECT count(id) as id FROM local_number WHERE number =144
  102. 2023-03-17 12:14:15.774748 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "058762" AND deleted = 0 limit 1
  103. 2023-03-17 12:14:15.794765 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Ashish account call balance :SELECT * FROM accounts WHERE id =133
  104. 2023-03-17 12:14:15.794765 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DID]0
  105. 2023-03-17 12:14:15.794765 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DID]1
  106. 2023-03-17 12:14:15.794765 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] Call Direction : inbound
  107. 2023-03-17 12:14:15.794765 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] DID ACCOUNT ID : 133
  108. 2023-03-17 12:14:15.794765 91.20% [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 = '^144.*' OR patterns = '^14.*' OR patterns = '^1.*' OR patterns ='--') AND accountid = 133 ORDER BY LENGTH(PKGPTR.patterns) DESC
  109. 2023-03-17 12:14:15.794765 91.20% [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 ="144" AND A.accountid = '133' limit 1
  110. 2023-03-17 12:14:15.794765 91.20% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 144
  111. 2023-03-17 12:14:15.794765 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]0.0
  112. 2023-03-17 12:14:15.794765 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]1.1
  113. 2023-03-17 12:14:15.794765 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]1.1 :: CALL IS DID
  114. 2023-03-17 12:14:15.794765 91.20% [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, A.codec as did_codec,A.provider_id as provider_id FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="144" LIMIT 1
  115. 2023-03-17 12:14:15.794765 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID_CALL_TRANSFER] Query :SELECT A.id as id,A.provider_id as provider_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,A.transfer_status,A.busy_status,A.no_answer_status,A.always_status,A.transfer_call_type,A.transfer_extensions FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="144" LIMIT 1
  116. 2023-03-17 12:14:15.794765 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  117. 2023-03-17 12:14:15.794765 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID12] Query :SELECT call_type,extensions from inbound_routes where accountid ="133" and did_id ="16" and number ="990004" and status = '0' LIMIT 1
  118. 2023-03-17 12:14:15.794765 91.20% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] New Call Direction : inbound
  119. 2023-03-17 12:14:15.794765 91.20% [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 = '144' OR number = '14' OR number = '1' OR number ='--') OR (number = '144*' OR number = '14*' OR number = '1*' OR number ='--') OR (number = '990004' OR number = '99000' OR number = '9900' OR number = '990' OR number = '99' OR number = '9' OR number ='--') OR (number = '990004*' OR number = '99000*' OR number = '9900*' OR number = '990*' OR number = '99*' OR number = '9*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC
  120. 2023-03-17 12:14:15.794765 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Call Barring Status : -1
  121. 2023-03-17 12:14:15.794765 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '144' OR routing_prefix = '14' OR routing_prefix = '1' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1
  122. 2023-03-17 12:14:15.814752 91.20% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Account Information ===================
  123. 2023-03-17 12:14:15.814752 91.20% [INFO] switch_cpp.cpp:1465 [ASTPP] User id : 133
  124. 2023-03-17 12:14:15.814752 91.20% [INFO] switch_cpp.cpp:1465 [ASTPP] Account code : 058762
  125. 2023-03-17 12:14:15.814752 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Ashish account call balance :SELECT * FROM accounts WHERE id =133
  126. 2023-03-17 12:14:15.814752 91.20% [INFO] switch_cpp.cpp:1465 [ASTPP] Balance : 21.85
  127. 2023-03-17 12:14:15.814752 91.20% [INFO] switch_cpp.cpp:1465 [ASTPP] Type : 1 [0:prepaid,1:postpaid]
  128. 2023-03-17 12:14:15.814752 91.20% [INFO] switch_cpp.cpp:1465 [ASTPP] Ratecard id : 1
  129. 2023-03-17 12:14:15.814752 91.20% [INFO] switch_cpp.cpp:1465 [ASTPP] CID Pool : 0
  130. 2023-03-17 12:14:15.814752 91.20% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================================================
  131. 2023-03-17 12:14:15.814752 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.0
  132. 2023-03-17 12:14:15.814752 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.1:CACHING ID:::1
  133. 2023-03-17 12:14:15.814752 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :inbound
  134. 2023-03-17 12:14:15.814752 91.20% [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, A.codec as did_codec,A.provider_id as provider_id FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="144" LIMIT 1
  135. 2023-03-17 12:14:15.814752 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID_CALL_TRANSFER] Query :SELECT A.id as id,A.provider_id as provider_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,A.transfer_status,A.busy_status,A.no_answer_status,A.always_status,A.transfer_call_type,A.transfer_extensions FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="144" LIMIT 1
  136. 2023-03-17 12:14:15.814752 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  137. 2023-03-17 12:14:15.814752 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID12] Query :SELECT call_type,extensions from inbound_routes where accountid ="133" and did_id ="16" and number ="990004" and status = '0' LIMIT 1
  138. 2023-03-17 12:14:15.814752 91.20% [INFO] switch_cpp.cpp:1465 [ASTPP]  Call Direction : inbound
  139. 2023-03-17 12:14:15.814752 91.20% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing]Going For Check Demand Base Routing
  140. 2023-03-17 12:14:15.814752 91.20% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] OLD COST:0.60000
  141. 2023-03-17 12:14:15.814752 91.20% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing]pricelist_id:1
  142. 2023-03-17 12:14:15.814752 91.20% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] Query :SELECT demand_based_condition,holiday,timezone_name from demand_based_routing where pricelist_id = '1' and status=0
  143. 2023-03-17 12:14:15.814752 91.20% [INFO] switch_cpp.cpp:1465 [ASTPP] [Demand_Base_Routing] NEW COST:0.60000
  144. 2023-03-17 12:14:15.814752 91.20% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information ===================
  145. 2023-03-17 12:14:15.814752 91.20% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 16
  146. 2023-03-17 12:14:15.814752 91.20% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
  147. 2023-03-17 12:14:15.814752 91.20% [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0
  148. 2023-03-17 12:14:15.814752 91.20% [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 0.60000
  149. 2023-03-17 12:14:15.814752 91.20% [INFO] switch_cpp.cpp:1465 [ASTPP] Comment : 144
  150. 2023-03-17 12:14:15.814752 91.20% [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 88
  151. 2023-03-17 12:14:15.814752 91.20% [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 133
  152. 2023-03-17 12:14:15.814752 91.20% [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================
  153. 2023-03-17 12:14:15.814752 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Ashish account call balance :SELECT * FROM accounts WHERE id =133
  154. 2023-03-17 12:14:15.814752 91.20% [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your21.85 balance Accountid 133 !!!
  155. 2023-03-17 12:14:15.814752 91.20% [INFO] switch_cpp.cpp:1465 [ASTPP] NIBBLE ID 133
  156. 2023-03-17 12:14:15.814752 91.20% [INFO] switch_cpp.cpp:1465 [ASTPP] NIBBLE RATE 0.60000
  157. 2023-03-17 12:14:15.814752 91.20% [INFO] switch_cpp.cpp:1465 [ASTPP] NIBBLE CONNECT COST 0.00000
  158. 2023-03-17 12:14:15.814752 91.20% [INFO] switch_cpp.cpp:1465 [ASTPP] NIBBLE INITIAL INC 0
  159. 2023-03-17 12:14:15.814752 91.20% [INFO] switch_cpp.cpp:1465 [ASTPP] NIBBLE INC 0
  160. 2023-03-17 12:14:15.814752 91.20% [INFO] switch_cpp.cpp:1465 [ASTPP] Call Max Length Duration : 36.416666666667 minutes
  161. 2023-03-17 12:14:15.814752 91.20% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] INB_FREE:TRUE
  162. 2023-03-17 12:14:15.814752 91.20% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] free_inbound:1
  163. 2023-03-17 12:14:15.814752 91.20% [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 = 133 AND status=0 LIMIT 1
  164. 2023-03-17 12:14:15.814752 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "133" AND deleted = 0 limit 1
  165. 2023-03-17 12:14:15.814752 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Ashish account call balance :SELECT * FROM accounts WHERE id =133
  166. 2023-03-17 12:14:15.814752 91.20% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Actual CustomerInfo XML:133
  167. 2023-03-17 12:14:15.814752 91.20% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Userinfo XML:133
  168. 2023-03-17 12:14:15.814752 91.20% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Actual CustomerInfo XML : 133
  169. 2023-03-17 12:14:15.814752 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_domain_info] Query :SELECT * FROM domains WHERE accountid = 133 limit 1
  170. 2023-03-17 12:14:15.814752 91.20% [WARNING] switch_cpp.cpp:1465 [ASTPP] [user_domain] User Domain : alpha4.astppbilling.org
  171. 2023-03-17 12:14:15.814752 91.20% [INFO] switch_cpp.cpp:1465 [ASTPP]  Maxlength : 36.416666666667
  172. 2023-03-17 12:14:15.814752 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  173. 2023-03-17 12:14:15.834733 91.20% [INFO] switch_cpp.cpp:1465 [ASTPP] [XML] Customer Recording Flag : 1
  174. 2023-03-17 12:14:15.834733 91.20% [INFO] switch_cpp.cpp:1465 [ASTPP] [PBX] Call Direction : inbound
  175. 2023-03-17 12:14:15.834733 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET get_record_info] Query :SELECT sip_device_routing.is_recording FROM sip_devices AS sip_devices, accounts AS accounts ,sip_device_routing AS sip_device_routing  WHERE sip_devices.accountid = accounts.id AND sip_devices.id = sip_device_routing.sip_device_id AND sip_devices.username = "372397" AND accounts.status = 0
  176. 2023-03-17 12:14:15.834733 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_domain_info] Query :SELECT * FROM domains WHERE accountid = 133 limit 1
  177. 2023-03-17 12:14:15.834733 91.20% [WARNING] switch_cpp.cpp:1465 [ASTPP] [XML] User Domain : alpha4.astppbilling.org
  178. 2023-03-17 12:14:15.834733 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_accounts_info] Query :SELECT * FROM accounts WHERE id = 133  and status = 0 limit 1
  179. 2023-03-17 12:14:15.834733 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [XML] Custom Function Name :: custom_inbound_0
  180. 2023-03-17 12:14:15.834733 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET MOH] Query :SELECT music_on_hold_type FROM sip_devices WHERE username = '372397' and accountid = '133'LIMIT 1
  181. 2023-03-17 12:14:15.834733 91.20% [INFO] switch_cpp.cpp:1465 [ASTPP] DESTINATION : 372397
  182. 2023-03-17 12:14:15.834733 91.20% [INFO] switch_cpp.cpp:1465 [ASTPP] moh_name : 0
  183. 2023-03-17 12:14:15.834733 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET MOH] Query :SELECT music_on_hold,music_on_hold_type FROM sip_devices WHERE username = '372397' and accountid = '133'LIMIT 1
  184. 2023-03-17 12:14:15.834733 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET MOH] Query :0
  185. 2023-03-17 12:14:15.834733 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET MOH] Query :0
  186. 2023-03-17 12:14:15.834733 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET MOH for global Query :SELECT name FROM pbx_music_on_hold WHERE id = '0' LIMIT 1
  187. 2023-03-17 12:14:15.834733 91.20% [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="372397"  AND domains.domain="alpha4.astppbilling.org" limit 1
  188. 2023-03-17 12:14:15.834733 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [PBX_SIP_ROUTING] [GET_ROUTING_INFO] Query :SELECT * from sip_device_routing WHERE sip_device_id = 171 limit 1
  189. 2023-03-17 12:14:15.834733 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer_attended' limit 1
  190. 2023-03-17 12:14:15.834733 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer' limit 1
  191. 2023-03-17 12:14:15.834733 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [NOTIFY] START:
  192. 2023-03-17 12:14:15.834733 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [NOTIFY] Query :SELECT apns_token,callkit_token,mobile_type FROM dialer_device_info WHERE username='372397'
  193. 2023-03-17 12:14:15.834733 91.20% [INFO] switch_cpp.cpp:1465 [ASTPP] [SIP_CODEC10]
  194. 2023-03-17 12:14:15.834733 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [sip_codec_for_outbound] Query :SELECT 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="372397"  AND domains.domain="alpha4.astppbilling.org" limit 1
  195. 2023-03-17 12:14:15.834733 91.20% [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="372397"  AND domains.domain="alpha4.astppbilling.org" limit 1
  196. 2023-03-17 12:14:15.834733 91.20% [INFO] switch_cpp.cpp:1465 [ASTPP] [PBX_SIP_ROUTING] SIP ID : 171
  197. 2023-03-17 12:14:15.834733 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [PBX_SIP_ROUTING] [GET_ROUTING_INFO] Query :SELECT * from sip_device_routing WHERE sip_device_id = 171 limit 1
  198. 2023-03-17 12:14:15.834733 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer_attended' limit 1
  199. 2023-03-17 12:14:15.834733 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_action = 'call_transfer' limit 1
  200. 2023-03-17 12:14:15.834733 91.20% [INFO] switch_cpp.cpp:1465 [ASTPP] [PBX_SIP_ROUTING] Call Forwarding Flag : 1
  201. 2023-03-17 12:14:15.834733 91.20% [INFO] switch_cpp.cpp:1465 [ASTPP] [PBX_SIP_ROUTING] SIP Call Forwarding Disable
  202. 2023-03-17 12:14:15.834733 91.20% [INFO] switch_cpp.cpp:1465 [ASTPP] [SIP_CODEC8]
  203. 2023-03-17 12:14:15.834733 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [sip_codec_for_outbound] Query :SELECT 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="372397"  AND domains.domain="alpha4.astppbilling.org" limit 1
  204. 2023-03-17 12:14:15.834733 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [NOTIFY] START:
  205. 2023-03-17 12:14:15.834733 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [NOTIFY] Query :SELECT apns_token,callkit_token,mobile_type FROM dialer_device_info WHERE username='372397'
  206. 2023-03-17 12:14:15.834733 91.20% [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="372397"  AND domains.domain="alpha4.astppbilling.org" limit 1
  207. 2023-03-17 12:14:15.834733 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [PBX_SIP_ROUTING] [GET_ROUTING_INFO] Query :SELECT * from sip_device_routing WHERE sip_device_id = 171 limit 1
  208. 2023-03-17 12:14:15.834733 91.20% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Generated XML:<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  209. <document type="freeswitch/xml">
  210. <section name="dialplan" description="ASTPP Dialplan">
  211. <context name="default">
  212. <extension name="144">
  213. <condition field="destination_number" expression="144">
  214. <action application="set" data="effective_destination_number=144"/>
  215. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
  216. <action application="set" data="bridge_pre_execute_bleg_data=+2185 normal_clearing"/>
  217. <action application="set" data="type=0"/>
  218. <action application="set" data="nibble_account=133"/>
  219. <action application="set" data="nibble_rate=0.60000"/>
  220. <action application="set" data="nibble_minimum=0.00000"/>
  221. <action application="set" data="nibble_increment=5"/>
  222. <action application="nibblebill" data="heartbeat 5"/>
  223. <action application="set" data="callstart=2023-03-17 12:14:15"/>
  224. <action application="set" data="hangup_after_bridge=true"/>
  225. <action application="set" data="continue_on_fail=TRUE"/>
  226. <action application="set" data="account_id=133"/>
  227. <action application="set" data="parent_id=0"/>
  228. <action application="set" data="entity_id=0"/>
  229. <action application="set" data="call_processed=internal"/>
  230. <action application="set" data="call_direction=inbound"/>
  231. <action application="set" data="accountname=ASTPPQA"/>
  232. <action application="set" data="filename1=astpp.pbx.lua"/>
  233. <action application="set" data="origination_rates_did=ID:16|CODE:^144.*|DESTINATION:144|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:0|COST:0.60000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:88|ACCID:133"/>
  234. <action application="set" data="origination_rates=0"/>
  235. <action application="set" data="original_caller_id_name=990004"/>
  236. <action application="set" data="original_caller_id_number=990004"/>
  237. <action application="set" data="effective_caller_id_name=990004"/>
  238. <action application="set" data="effective_caller_id_number=990004"/>
  239. <action application="set" data="receiver_accid=133"/>
  240. <action application="set" data="did_id=16"/>
  241. <action application="set" data="transfer_call_type=4"/>
  242. <action application="set" data="transfer_extensions="/>
  243. <action application="set" data="busy_status=1"/>
  244. <action application="set" data="no_answer_status=1"/>
  245. <action application="set" data="always_status=1"/>
  246. <action application="set" data="transfer_status=1"/>
  247. <action application="set" data="variable_sip_to_host=${domain_name}"/>
  248. <action application="set" data="variable_sip_network_ip=142.132.184.134"/>
  249. <action application="set" data="variable_sip_network_port=5076"/>
  250. <action application="export" data="domain_name=alpha4.astppbilling.org"/>
  251. <action application="export" data="sip_to_host=alpha4.astppbilling.org"/>
  252. <action application="export" data="presence_data=x|||Niralidata(058762)|||||||||DID|||142.132.184.134"/>
  253. <action application="export" data="call_type=0"/>
  254. <action application="set" data="calltype=DID-LOCAL"/>
  255. <action application="set" data="daily_call_credit_limit=500.00000"/>
  256. <action application="set" data="monthly_call_credit_limit=700.00000"/>
  257. <action application="set" data="daily_call_used_limit=8.15000"/>
  258. <action application="set" data="monthly_call_used_limit=8.15000"/>
  259. <action application="db" data="insert/pickup_any_group_${callgroup}/372397/${uuid}"/>
  260. <action application="set" data="dialed_extension=transfer_call"/>
  261. <action application="export" data="dialed_extension=transfer_call"/>
  262. <action application="bind_meta_app" data="3 b s execute_extension::transfer_call_3 XML default"/>
  263. <action application="bind_meta_app" data="2 b s execute_extension::transfer_call_2 XML default"/>
  264. <action application="set" data="hangup_after_bridge=true"/>
  265. <action application="export" data="did_user_domain=alpha4.astppbilling.org"/>
  266. <action application="ring_ready"/>
  267. <action application="sleep" data="5000"/>
  268. <action application="db" data="insert/pickup_any_group_${callgroup}/372397/${uuid}"/>
  269. <action application="set" data="dialed_extension=transfer_call"/>
  270. <action application="export" data="dialed_extension=transfer_call"/>
  271. <action application="bind_meta_app" data="3 b s execute_extension::transfer_call_3 XML default"/>
  272. <action application="bind_meta_app" data="2 b s execute_extension::transfer_call_2 XML default"/>
  273. <action application="set" data="hangup_after_bridge=true"/>
  274. <action application="bridge" data="{sip_invite_params=user=LOCAL,ignore_early_media=true,sip_h_P-call_type='custom_forward',sip_h_P-Accountcode=133}[leg_timeout=0 ] user/372397@alpha4.astppbilling.org"/>
  275. <action application="ring_ready"/>
  276. <action application="sleep" data="5000"/>
  277. <action application="set" data="on_busy_flag=1"/>
  278. <action application="set" data="on_busy_destination="/>
  279. <action application="set" data="no_answer_flag=1"/>
  280. <action application="set" data="no_answer_destination="/>
  281. <action application="set" data="not_register_flag=1"/>
  282. <action application="set" data="not_register_destination="/>
  283. <action application="set" data="opensips_flag=1"/>
  284. <action application="set" data="variable_sip_to_host=alpha4.astppbilling.org"/>
  285. <action application="set" data="opensips_domain=27.0.0."/>
  286. <action application="set" data="leg_timeout=0"/>
  287. <action application="set" data="userinfo_id=133"/>
  288. <action application="set" data="sip_destination_number=372397"/>
  289. <action application="set" data="did_number=372397"/>
  290. <action application="set" data="user_domain=alpha4.astppbilling.org"/>
  291. <action application="lua" data="astpp/lib/pbx/astpp-sipdevice-routing.lua"/>
  292. <action application="set" data="on_busy_flag=1"/>
  293. <action application="set" data="on_busy_destination="/>
  294. <action application="set" data="no_answer_flag=1"/>
  295. <action application="set" data="no_answer_destination="/>
  296. <action application="set" data="not_register_flag=1"/>
  297. <action application="set" data="not_register_destination="/>
  298. <action application="set" data="opensips_flag=1"/>
  299. <action application="set" data="variable_sip_to_host=alpha4.astppbilling.org"/>
  300. <action application="set" data="opensips_domain=27.0.0."/>
  301. <action application="set" data="leg_timeout=0"/>
  302. <action application="set" data="userinfo_id=133"/>
  303. <action application="set" data="sip_destination_number=372397"/>
  304. <action application="set" data="destination_number=372397"/>
  305. <action application="set" data="did_number=144"/>
  306. <action application="set" data="user_domain=alpha4.astppbilling.org"/>
  307. <action application="lua" data="astpp/lib/pbx/astpp-sipdevice-routing.lua"/>
  308. <condition field="${cond(${user_data 372397@${domain_name} param vm-enabled} == true ? YES : NO)}" expression="^YES$">
  309. <action application="answer"/>
  310. <action application="export" data="voicemail_alternate_greet_id=372397"/>
  311. <action application="voicemail" data="default $${domain_name} 372397"/>
  312. <anti-action application="hangup" data="${originate_disposition}"/>
  313. </condition>
  314. </condition>
  315. </extension>
  316. </context>
  317. </section>
  318. </document>
  319. Dialplan: sofia/default/990004@142.132.184.134 parsing [default->144] continue=false
  320. Dialplan: sofia/default/990004@142.132.184.134 Regex (PASS) [144] destination_number(144) =~ /144/ break=on-false
  321. Dialplan: sofia/default/990004@142.132.184.134 Action set(effective_destination_number=144)
  322. Dialplan: sofia/default/990004@142.132.184.134 Action set(bridge_pre_execute_bleg_app=sched_hangup)
  323. Dialplan: sofia/default/990004@142.132.184.134 Action set(bridge_pre_execute_bleg_data=+2185 normal_clearing)
  324. Dialplan: sofia/default/990004@142.132.184.134 Action set(type=0)
  325. Dialplan: sofia/default/990004@142.132.184.134 Action set(nibble_account=133)
  326. Dialplan: sofia/default/990004@142.132.184.134 Action set(nibble_rate=0.60000)
  327. Dialplan: sofia/default/990004@142.132.184.134 Action set(nibble_minimum=0.00000)
  328. Dialplan: sofia/default/990004@142.132.184.134 Action set(nibble_increment=5)
  329. Dialplan: sofia/default/990004@142.132.184.134 Action nibblebill(heartbeat 5)
  330. Dialplan: sofia/default/990004@142.132.184.134 Action set(callstart=2023-03-17 12:14:15)
  331. Dialplan: sofia/default/990004@142.132.184.134 Action set(hangup_after_bridge=true)
  332. Dialplan: sofia/default/990004@142.132.184.134 Action set(continue_on_fail=TRUE)
  333. Dialplan: sofia/default/990004@142.132.184.134 Action set(account_id=133)
  334. Dialplan: sofia/default/990004@142.132.184.134 Action set(parent_id=0)
  335. Dialplan: sofia/default/990004@142.132.184.134 Action set(entity_id=0)
  336. Dialplan: sofia/default/990004@142.132.184.134 Action set(call_processed=internal)
  337. Dialplan: sofia/default/990004@142.132.184.134 Action set(call_direction=inbound)
  338. Dialplan: sofia/default/990004@142.132.184.134 Action set(accountname=ASTPPQA)
  339. Dialplan: sofia/default/990004@142.132.184.134 Action set(filename1=astpp.pbx.lua)
  340. Dialplan: sofia/default/990004@142.132.184.134 Action set(origination_rates_did=ID:16|CODE:^144.*|DESTINATION:144|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:0|COST:0.60000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:88|ACCID:133)
  341. Dialplan: sofia/default/990004@142.132.184.134 Action set(origination_rates=0)
  342. Dialplan: sofia/default/990004@142.132.184.134 Action set(original_caller_id_name=990004)
  343. Dialplan: sofia/default/990004@142.132.184.134 Action set(original_caller_id_number=990004)
  344. Dialplan: sofia/default/990004@142.132.184.134 Action set(effective_caller_id_name=990004)
  345. Dialplan: sofia/default/990004@142.132.184.134 Action set(effective_caller_id_number=990004)
  346. Dialplan: sofia/default/990004@142.132.184.134 Action set(receiver_accid=133)
  347. Dialplan: sofia/default/990004@142.132.184.134 Action set(did_id=16)
  348. Dialplan: sofia/default/990004@142.132.184.134 Action set(transfer_call_type=4)
  349. Dialplan: sofia/default/990004@142.132.184.134 Action set(transfer_extensions=)
  350. Dialplan: sofia/default/990004@142.132.184.134 Action set(busy_status=1)
  351. Dialplan: sofia/default/990004@142.132.184.134 Action set(no_answer_status=1)
  352. Dialplan: sofia/default/990004@142.132.184.134 Action set(always_status=1)
  353. Dialplan: sofia/default/990004@142.132.184.134 Action set(transfer_status=1)
  354. Dialplan: sofia/default/990004@142.132.184.134 Action set(variable_sip_to_host=${domain_name})
  355. Dialplan: sofia/default/990004@142.132.184.134 Action set(variable_sip_network_ip=142.132.184.134)
  356. Dialplan: sofia/default/990004@142.132.184.134 Action set(variable_sip_network_port=5076)
  357. Dialplan: sofia/default/990004@142.132.184.134 Action export(domain_name=alpha4.astppbilling.org)
  358. Dialplan: sofia/default/990004@142.132.184.134 Action export(sip_to_host=alpha4.astppbilling.org)
  359. Dialplan: sofia/default/990004@142.132.184.134 Action export(presence_data=x|||Niralidata(058762)|||||||||DID|||142.132.184.134)
  360. Dialplan: sofia/default/990004@142.132.184.134 Action export(call_type=0)
  361. Dialplan: sofia/default/990004@142.132.184.134 Action set(calltype=DID-LOCAL)
  362. Dialplan: sofia/default/990004@142.132.184.134 Action set(daily_call_credit_limit=500.00000)
  363. Dialplan: sofia/default/990004@142.132.184.134 Action set(monthly_call_credit_limit=700.00000)
  364. Dialplan: sofia/default/990004@142.132.184.134 Action set(daily_call_used_limit=8.15000)
  365. Dialplan: sofia/default/990004@142.132.184.134 Action set(monthly_call_used_limit=8.15000)
  366. Dialplan: sofia/default/990004@142.132.184.134 Action db(insert/pickup_any_group_${callgroup}/372397/${uuid})
  367. Dialplan: sofia/default/990004@142.132.184.134 Action set(dialed_extension=transfer_call)
  368. Dialplan: sofia/default/990004@142.132.184.134 Action export(dialed_extension=transfer_call)
  369. Dialplan: sofia/default/990004@142.132.184.134 Action bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  370. Dialplan: sofia/default/990004@142.132.184.134 Action bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  371. Dialplan: sofia/default/990004@142.132.184.134 Action set(hangup_after_bridge=true)
  372. Dialplan: sofia/default/990004@142.132.184.134 Action export(did_user_domain=alpha4.astppbilling.org)
  373. Dialplan: sofia/default/990004@142.132.184.134 Action ring_ready()
  374. Dialplan: sofia/default/990004@142.132.184.134 Action sleep(5000)
  375. Dialplan: sofia/default/990004@142.132.184.134 Action db(insert/pickup_any_group_${callgroup}/372397/${uuid})
  376. Dialplan: sofia/default/990004@142.132.184.134 Action set(dialed_extension=transfer_call)
  377. Dialplan: sofia/default/990004@142.132.184.134 Action export(dialed_extension=transfer_call)
  378. Dialplan: sofia/default/990004@142.132.184.134 Action bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  379. Dialplan: sofia/default/990004@142.132.184.134 Action bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  380. Dialplan: sofia/default/990004@142.132.184.134 Action set(hangup_after_bridge=true)
  381. Dialplan: sofia/default/990004@142.132.184.134 Action bridge({sip_invite_params=user=LOCAL,ignore_early_media=true,sip_h_P-call_type='custom_forward',sip_h_P-Accountcode=133}[leg_timeout=0 ] user/372397@alpha4.astppbilling.org)
  382. Dialplan: sofia/default/990004@142.132.184.134 Action ring_ready()
  383. Dialplan: sofia/default/990004@142.132.184.134 Action sleep(5000)
  384. Dialplan: sofia/default/990004@142.132.184.134 Action set(on_busy_flag=1)
  385. Dialplan: sofia/default/990004@142.132.184.134 Action set(on_busy_destination=)
  386. Dialplan: sofia/default/990004@142.132.184.134 Action set(no_answer_flag=1)
  387. Dialplan: sofia/default/990004@142.132.184.134 Action set(no_answer_destination=)
  388. Dialplan: sofia/default/990004@142.132.184.134 Action set(not_register_flag=1)
  389. Dialplan: sofia/default/990004@142.132.184.134 Action set(not_register_destination=)
  390. Dialplan: sofia/default/990004@142.132.184.134 Action set(opensips_flag=1)
  391. Dialplan: sofia/default/990004@142.132.184.134 Action set(variable_sip_to_host=alpha4.astppbilling.org)
  392. Dialplan: sofia/default/990004@142.132.184.134 Action set(opensips_domain=27.0.0.)
  393. Dialplan: sofia/default/990004@142.132.184.134 Action set(leg_timeout=0)
  394. Dialplan: sofia/default/990004@142.132.184.134 Action set(userinfo_id=133)
  395. Dialplan: sofia/default/990004@142.132.184.134 Action set(sip_destination_number=372397)
  396. Dialplan: sofia/default/990004@142.132.184.134 Action set(did_number=372397)
  397. Dialplan: sofia/default/990004@142.132.184.134 Action set(user_domain=alpha4.astppbilling.org)
  398. Dialplan: sofia/default/990004@142.132.184.134 Action lua(astpp/lib/pbx/astpp-sipdevice-routing.lua)
  399. Dialplan: sofia/default/990004@142.132.184.134 Action set(on_busy_flag=1)
  400. Dialplan: sofia/default/990004@142.132.184.134 Action set(on_busy_destination=)
  401. Dialplan: sofia/default/990004@142.132.184.134 Action set(no_answer_flag=1)
  402. Dialplan: sofia/default/990004@142.132.184.134 Action set(no_answer_destination=)
  403. Dialplan: sofia/default/990004@142.132.184.134 Action set(not_register_flag=1)
  404. Dialplan: sofia/default/990004@142.132.184.134 Action set(not_register_destination=)
  405. Dialplan: sofia/default/990004@142.132.184.134 Action set(opensips_flag=1)
  406. Dialplan: sofia/default/990004@142.132.184.134 Action set(variable_sip_to_host=alpha4.astppbilling.org)
  407. Dialplan: sofia/default/990004@142.132.184.134 Action set(opensips_domain=27.0.0.)
  408. Dialplan: sofia/default/990004@142.132.184.134 Action set(leg_timeout=0)
  409. Dialplan: sofia/default/990004@142.132.184.134 Action set(userinfo_id=133)
  410. Dialplan: sofia/default/990004@142.132.184.134 Action set(sip_destination_number=372397)
  411. Dialplan: sofia/default/990004@142.132.184.134 Action set(destination_number=372397)
  412. Dialplan: sofia/default/990004@142.132.184.134 Action set(did_number=144)
  413. Dialplan: sofia/default/990004@142.132.184.134 Action set(user_domain=alpha4.astppbilling.org)
  414. Dialplan: sofia/default/990004@142.132.184.134 Action lua(astpp/lib/pbx/astpp-sipdevice-routing.lua)
  415. |--- Dialplan: Processing recursive conditions level:1 [144_recur_1] require-nested=TRUE
  416. |--- Dialplan: sofia/default/990004@142.132.184.134 Regex (FAIL) [144_recur_1] ${cond(${user_data 372397@${domain_name} param vm-enabled} == true ? YES : NO)}(-ERR) =~ /^YES$/ break=on-false
  417. |--- Dialplan: sofia/default/990004@142.132.184.134 ANTI-Action hangup(${originate_disposition})
  418. 2023-03-17 12:14:15.854736 91.20% [DEBUG] switch_core_state_machine.c:281 (sofia/default/990004@142.132.184.134) State Change CS_ROUTING -> CS_EXECUTE
  419. 2023-03-17 12:14:15.854736 91.20% [DEBUG] switch_core_state_machine.c:640 (sofia/default/990004@142.132.184.134) State ROUTING going to sleep
  420. 2023-03-17 12:14:15.854736 91.20% [DEBUG] switch_core_state_machine.c:581 (sofia/default/990004@142.132.184.134) Running State Change CS_EXECUTE (Cur 1 Tot 41)
  421. 2023-03-17 12:14:15.854736 91.20% [DEBUG] switch_core_state_machine.c:647 (sofia/default/990004@142.132.184.134) State EXECUTE
  422. 2023-03-17 12:14:15.854736 91.20% [DEBUG] mod_sofia.c:213 sofia/default/990004@142.132.184.134 SOFIA EXECUTE
  423. 2023-03-17 12:14:15.854736 91.20% [DEBUG] switch_core_state_machine.c:323 sofia/default/990004@142.132.184.134 Standard EXECUTE
  424. EXECUTE [depth=0] sofia/default/990004@142.132.184.134 set(effective_destination_number=144)
  425. 2023-03-17 12:14:15.854736 91.20% [DEBUG] mod_dptools.c:1685 SET sofia/default/990004@142.132.184.134 [effective_destination_number]=[144]
  426. EXECUTE [depth=0] sofia/default/990004@142.132.184.134 set(bridge_pre_execute_bleg_app=sched_hangup)
  427. 2023-03-17 12:14:15.854736 91.20% [DEBUG] mod_dptools.c:1685 SET sofia/default/990004@142.132.184.134 [bridge_pre_execute_bleg_app]=[sched_hangup]
  428. EXECUTE [depth=0] sofia/default/990004@142.132.184.134 set(bridge_pre_execute_bleg_data=+2185 normal_clearing)
  429. 2023-03-17 12:14:15.854736 91.20% [DEBUG] mod_dptools.c:1685 SET sofia/default/990004@142.132.184.134 [bridge_pre_execute_bleg_data]=[+2185 normal_clearing]
  430. EXECUTE [depth=0] sofia/default/990004@142.132.184.134 set(type=0)
  431. 2023-03-17 12:14:15.854736 91.20% [DEBUG] mod_dptools.c:1685 SET sofia/default/990004@142.132.184.134 [type]=[0]
  432. EXECUTE [depth=0] sofia/default/990004@142.132.184.134 set(nibble_account=133)
  433. 2023-03-17 12:14:15.854736 91.20% [DEBUG] mod_dptools.c:1685 SET sofia/default/990004@142.132.184.134 [nibble_account]=[133]
  434. EXECUTE [depth=0] sofia/default/990004@142.132.184.134 set(nibble_rate=0.60000)
  435. 2023-03-17 12:14:15.854736 91.20% [DEBUG] mod_dptools.c:1685 SET sofia/default/990004@142.132.184.134 [nibble_rate]=[0.60000]
  436. EXECUTE [depth=0] sofia/default/990004@142.132.184.134 set(nibble_minimum=0.00000)
  437. 2023-03-17 12:14:15.854736 91.20% [DEBUG] mod_dptools.c:1685 SET sofia/default/990004@142.132.184.134 [nibble_minimum]=[0.00000]
  438. EXECUTE [depth=0] sofia/default/990004@142.132.184.134 set(nibble_increment=5)
  439. 2023-03-17 12:14:15.854736 91.20% [DEBUG] mod_dptools.c:1685 SET sofia/default/990004@142.132.184.134 [nibble_increment]=[5]
  440. EXECUTE [depth=0] sofia/default/990004@142.132.184.134 nibblebill(heartbeat 5)
  441. 2023-03-17 12:14:15.854736 91.20% [WARNING] switch_core_session.c:1693 sofia/default/990004@142.132.184.134 using scheduler due to bypass media or media is not established.
  442. 2023-03-17 12:14:15.854736 91.20% [DEBUG] switch_scheduler.c:263 Added task 28 switch_core_session_sched_heartbeat (03d333e6-a67f-494f-8cb1-29db0959dc23) to run at 1679055260
  443. EXECUTE [depth=0] sofia/default/990004@142.132.184.134 set(callstart=2023-03-17 12:14:15)
  444. 2023-03-17 12:14:15.854736 91.20% [DEBUG] mod_dptools.c:1685 SET sofia/default/990004@142.132.184.134 [callstart]=[2023-03-17 12:14:15]
  445. EXECUTE [depth=0] sofia/default/990004@142.132.184.134 set(hangup_after_bridge=true)
  446. 2023-03-17 12:14:15.854736 91.20% [DEBUG] mod_dptools.c:1685 SET sofia/default/990004@142.132.184.134 [hangup_after_bridge]=[true]
  447. EXECUTE [depth=0] sofia/default/990004@142.132.184.134 set(continue_on_fail=TRUE)
  448. 2023-03-17 12:14:15.854736 91.20% [DEBUG] mod_dptools.c:1685 SET sofia/default/990004@142.132.184.134 [continue_on_fail]=[TRUE]
  449. EXECUTE [depth=0] sofia/default/990004@142.132.184.134 set(account_id=133)
  450. 2023-03-17 12:14:15.854736 91.20% [DEBUG] mod_dptools.c:1685 SET sofia/default/990004@142.132.184.134 [account_id]=[133]
  451. EXECUTE [depth=0] sofia/default/990004@142.132.184.134 set(parent_id=0)
  452. 2023-03-17 12:14:15.854736 91.20% [DEBUG] mod_dptools.c:1685 SET sofia/default/990004@142.132.184.134 [parent_id]=[0]
  453. EXECUTE [depth=0] sofia/default/990004@142.132.184.134 set(entity_id=0)
  454. 2023-03-17 12:14:15.854736 91.20% [DEBUG] mod_dptools.c:1685 SET sofia/default/990004@142.132.184.134 [entity_id]=[0]
  455. EXECUTE [depth=0] sofia/default/990004@142.132.184.134 set(call_processed=internal)
  456. 2023-03-17 12:14:15.854736 91.20% [DEBUG] mod_dptools.c:1685 SET sofia/default/990004@142.132.184.134 [call_processed]=[internal]
  457. EXECUTE [depth=0] sofia/default/990004@142.132.184.134 set(call_direction=inbound)
  458. 2023-03-17 12:14:15.854736 91.20% [DEBUG] mod_dptools.c:1685 SET sofia/default/990004@142.132.184.134 [call_direction]=[inbound]
  459. EXECUTE [depth=0] sofia/default/990004@142.132.184.134 set(accountname=ASTPPQA)
  460. 2023-03-17 12:14:15.854736 91.20% [DEBUG] mod_dptools.c:1685 SET sofia/default/990004@142.132.184.134 [accountname]=[ASTPPQA]
  461. EXECUTE [depth=0] sofia/default/990004@142.132.184.134 set(filename1=astpp.pbx.lua)
  462. 2023-03-17 12:14:15.874738 91.20% [DEBUG] mod_dptools.c:1685 SET sofia/default/990004@142.132.184.134 [filename1]=[astpp.pbx.lua]
  463. EXECUTE [depth=0] sofia/default/990004@142.132.184.134 set(origination_rates_did=ID:16|CODE:^144.*|DESTINATION:144|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:0|COST:0.60000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:88|ACCID:133)
  464. 2023-03-17 12:14:15.874738 91.20% [DEBUG] mod_dptools.c:1685 SET sofia/default/990004@142.132.184.134 [origination_rates_did]=[ID:16|CODE:^144.*|DESTINATION:144|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:0|COST:0.60000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:88|ACCID:133]
  465. EXECUTE [depth=0] sofia/default/990004@142.132.184.134 set(origination_rates=0)
  466. 2023-03-17 12:14:15.874738 91.20% [DEBUG] mod_dptools.c:1685 SET sofia/default/990004@142.132.184.134 [origination_rates]=[0]
  467. EXECUTE [depth=0] sofia/default/990004@142.132.184.134 set(original_caller_id_name=990004)
  468. 2023-03-17 12:14:15.874738 91.20% [DEBUG] mod_dptools.c:1685 SET sofia/default/990004@142.132.184.134 [original_caller_id_name]=[990004]
  469. EXECUTE [depth=0] sofia/default/990004@142.132.184.134 set(original_caller_id_number=990004)
  470. 2023-03-17 12:14:15.874738 91.20% [DEBUG] mod_dptools.c:1685 SET sofia/default/990004@142.132.184.134 [original_caller_id_number]=[990004]
  471. EXECUTE [depth=0] sofia/default/990004@142.132.184.134 set(effective_caller_id_name=990004)
  472. 2023-03-17 12:14:15.874738 91.20% [DEBUG] mod_dptools.c:1685 SET sofia/default/990004@142.132.184.134 [effective_caller_id_name]=[990004]
  473. EXECUTE [depth=0] sofia/default/990004@142.132.184.134 set(effective_caller_id_number=990004)
  474. 2023-03-17 12:14:15.874738 91.20% [DEBUG] mod_dptools.c:1685 SET sofia/default/990004@142.132.184.134 [effective_caller_id_number]=[990004]
  475. EXECUTE [depth=0] sofia/default/990004@142.132.184.134 set(receiver_accid=133)
  476. 2023-03-17 12:14:15.874738 91.20% [DEBUG] mod_dptools.c:1685 SET sofia/default/990004@142.132.184.134 [receiver_accid]=[133]
  477. EXECUTE [depth=0] sofia/default/990004@142.132.184.134 set(did_id=16)
  478. 2023-03-17 12:14:15.874738 91.20% [DEBUG] mod_dptools.c:1685 SET sofia/default/990004@142.132.184.134 [did_id]=[16]
  479. EXECUTE [depth=0] sofia/default/990004@142.132.184.134 set(transfer_call_type=4)
  480. 2023-03-17 12:14:15.874738 91.20% [DEBUG] mod_dptools.c:1685 SET sofia/default/990004@142.132.184.134 [transfer_call_type]=[4]
  481. EXECUTE [depth=0] sofia/default/990004@142.132.184.134 set(transfer_extensions=)
  482. 2023-03-17 12:14:15.874738 91.20% [DEBUG] mod_dptools.c:1685 SET sofia/default/990004@142.132.184.134 [transfer_extensions]=[UNDEF]
  483. EXECUTE [depth=0] sofia/default/990004@142.132.184.134 set(busy_status=1)
  484. 2023-03-17 12:14:15.874738 91.20% [DEBUG] mod_dptools.c:1685 SET sofia/default/990004@142.132.184.134 [busy_status]=[1]
  485. EXECUTE [depth=0] sofia/default/990004@142.132.184.134 set(no_answer_status=1)
  486. 2023-03-17 12:14:15.874738 91.20% [DEBUG] mod_dptools.c:1685 SET sofia/default/990004@142.132.184.134 [no_answer_status]=[1]
  487. EXECUTE [depth=0] sofia/default/990004@142.132.184.134 set(always_status=1)
  488. 2023-03-17 12:14:15.874738 91.20% [DEBUG] mod_dptools.c:1685 SET sofia/default/990004@142.132.184.134 [always_status]=[1]
  489. EXECUTE [depth=0] sofia/default/990004@142.132.184.134 set(transfer_status=1)
  490. 2023-03-17 12:14:15.874738 91.20% [DEBUG] mod_dptools.c:1685 SET sofia/default/990004@142.132.184.134 [transfer_status]=[1]
  491. EXECUTE [depth=0] sofia/default/990004@142.132.184.134 set(variable_sip_to_host=95.217.238.195)
  492. 2023-03-17 12:14:15.874738 91.20% [DEBUG] mod_dptools.c:1685 SET sofia/default/990004@142.132.184.134 [variable_sip_to_host]=[95.217.238.195]
  493. EXECUTE [depth=0] sofia/default/990004@142.132.184.134 set(variable_sip_network_ip=142.132.184.134)
  494. 2023-03-17 12:14:15.874738 91.20% [DEBUG] mod_dptools.c:1685 SET sofia/default/990004@142.132.184.134 [variable_sip_network_ip]=[142.132.184.134]
  495. EXECUTE [depth=0] sofia/default/990004@142.132.184.134 set(variable_sip_network_port=5076)
  496. 2023-03-17 12:14:15.874738 91.20% [DEBUG] mod_dptools.c:1685 SET sofia/default/990004@142.132.184.134 [variable_sip_network_port]=[5076]
  497. EXECUTE [depth=0] sofia/default/990004@142.132.184.134 export(domain_name=alpha4.astppbilling.org)
  498. 2023-03-17 12:14:15.874738 91.20% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [domain_name]=[alpha4.astppbilling.org]
  499. EXECUTE [depth=0] sofia/default/990004@142.132.184.134 export(sip_to_host=alpha4.astppbilling.org)
  500. 2023-03-17 12:14:15.874738 91.20% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [sip_to_host]=[alpha4.astppbilling.org]
  501. EXECUTE [depth=0] sofia/default/990004@142.132.184.134 export(presence_data=x|||Niralidata(058762)|||||||||DID|||142.132.184.134)
  502. 2023-03-17 12:14:15.874738 91.20% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [presence_data]=[x|||Niralidata(058762)|||||||||DID|||142.132.184.134]
  503. EXECUTE [depth=0] sofia/default/990004@142.132.184.134 export(call_type=0)
  504. 2023-03-17 12:14:15.874738 91.20% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [call_type]=[0]
  505. EXECUTE [depth=0] sofia/default/990004@142.132.184.134 set(calltype=DID-LOCAL)
  506. 2023-03-17 12:14:15.874738 91.20% [DEBUG] mod_dptools.c:1685 SET sofia/default/990004@142.132.184.134 [calltype]=[DID-LOCAL]
  507. EXECUTE [depth=0] sofia/default/990004@142.132.184.134 set(daily_call_credit_limit=500.00000)
  508. 2023-03-17 12:14:15.874738 91.20% [DEBUG] mod_dptools.c:1685 SET sofia/default/990004@142.132.184.134 [daily_call_credit_limit]=[500.00000]
  509. EXECUTE [depth=0] sofia/default/990004@142.132.184.134 set(monthly_call_credit_limit=700.00000)
  510. 2023-03-17 12:14:15.874738 91.20% [DEBUG] mod_dptools.c:1685 SET sofia/default/990004@142.132.184.134 [monthly_call_credit_limit]=[700.00000]
  511. EXECUTE [depth=0] sofia/default/990004@142.132.184.134 set(daily_call_used_limit=8.15000)
  512. 2023-03-17 12:14:15.874738 91.20% [DEBUG] mod_dptools.c:1685 SET sofia/default/990004@142.132.184.134 [daily_call_used_limit]=[8.15000]
  513. EXECUTE [depth=0] sofia/default/990004@142.132.184.134 set(monthly_call_used_limit=8.15000)
  514. 2023-03-17 12:14:15.874738 91.20% [DEBUG] mod_dptools.c:1685 SET sofia/default/990004@142.132.184.134 [monthly_call_used_limit]=[8.15000]
  515. EXECUTE [depth=0] sofia/default/990004@142.132.184.134 db(insert/pickup_any_group_/372397/03d333e6-a67f-494f-8cb1-29db0959dc23)
  516. EXECUTE [depth=0] sofia/default/990004@142.132.184.134 set(dialed_extension=transfer_call)
  517. 2023-03-17 12:14:15.874738 91.20% [DEBUG] mod_dptools.c:1685 SET sofia/default/990004@142.132.184.134 [dialed_extension]=[transfer_call]
  518. EXECUTE [depth=0] sofia/default/990004@142.132.184.134 export(dialed_extension=transfer_call)
  519. 2023-03-17 12:14:15.874738 91.20% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [dialed_extension]=[transfer_call]
  520. EXECUTE [depth=0] sofia/default/990004@142.132.184.134 bind_meta_app(3 b s execute_extension::transfer_call_3 XML default)
  521. 2023-03-17 12:14:15.874738 91.20% [INFO] switch_ivr_async.c:4774 Bound B-Leg: *3 execute_extension::transfer_call_3 XML default
  522. EXECUTE [depth=0] sofia/default/990004@142.132.184.134 bind_meta_app(2 b s execute_extension::transfer_call_2 XML default)
  523. 2023-03-17 12:14:15.874738 91.20% [INFO] switch_ivr_async.c:4774 Bound B-Leg: *2 execute_extension::transfer_call_2 XML default
  524. EXECUTE [depth=0] sofia/default/990004@142.132.184.134 set(hangup_after_bridge=true)
  525. 2023-03-17 12:14:15.874738 91.20% [DEBUG] mod_dptools.c:1685 SET sofia/default/990004@142.132.184.134 [hangup_after_bridge]=[true]
  526. EXECUTE [depth=0] sofia/default/990004@142.132.184.134 export(did_user_domain=alpha4.astppbilling.org)
  527. 2023-03-17 12:14:15.874738 91.20% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [did_user_domain]=[alpha4.astppbilling.org]
  528. EXECUTE [depth=0] sofia/default/990004@142.132.184.134 ring_ready()
  529. 2023-03-17 12:14:15.874738 91.20% [NOTICE] mod_sofia.c:2515 Ring-Ready sofia/default/990004@142.132.184.134!
  530. 2023-03-17 12:14:15.874738 91.20% [DEBUG] sofia.c:7499 Channel sofia/default/990004@142.132.184.134 entering state [early][180]
  531. 2023-03-17 12:14:15.874738 91.20% [NOTICE] mod_dptools.c:1122 Ring Ready sofia/default/990004@142.132.184.134!
  532. EXECUTE [depth=0] sofia/default/990004@142.132.184.134 sleep(5000)
  533. 2023-03-17 12:14:20.354736 91.07% [DEBUG] mod_nibblebill.c:695 Received request via SESSION_HEARTBEAT!
  534. 2023-03-17 12:14:20.354736 91.07% [DEBUG] mod_nibblebill.c:506 Attempting to bill at $0.60000 per minute to account 133
  535. 2023-03-17 12:14:20.354736 91.07% [DEBUG] mod_nibblebill.c:518 Not billing 133 - call is not in answered state
  536. 2023-03-17 12:14:20.354736 91.07% [DEBUG] mod_nibblebill.c:422 Doing lookup query
  537. [SELECT if(posttoexternal=,credit_limit+(balance*-),balance) AS nibble_balance FROM accounts WHERE id='133']
  538. 2023-03-17 12:14:20.374730 91.07% [ERR] switch_core_sqldb.c:1310 ERR: [SELECT if(posttoexternal=,credit_limit+(balance*-),balance) AS nibble_balance FROM accounts WHERE id='133']
  539. [STATE: 42000 CODE 1064 ERROR: [MySQL][ODBC 8.0(a) Driver][mysqld-8.0.32]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ',credit_limit+(balance*-),balance) AS nibble_balance FROM accounts WHERE id='133' at line 1
  540. ]
  541. 2023-03-17 12:14:20.374730 91.07% [ERR] mod_nibblebill.c:424 Error running this query: [SELECT if(posttoexternal=,credit_limit+(balance*-),balance) AS nibble_balance FROM accounts WHERE id='133']
  542. 2023-03-17 12:14:20.374730 91.07% [DEBUG] mod_nibblebill.c:523 Comparing -1.000000 to hangup balance of 0.000000, taking into account minimum charge of 0.000000
  543. 2023-03-17 12:14:20.374730 91.07% [DEBUG] mod_nibblebill.c:526 Balance of -1.000000 fell below allowed amount of 0.000000! (Account 133)
  544. 2023-03-17 12:14:20.374730 91.07% [INFO] mod_dialplan_xml.c:639 Processing 990004 <990004>->hangup in context default
  545. 2023-03-17 12:14:20.374730 91.07% [INFO] switch_cpp.cpp:1465 [ASTPP] USING CACHE
  546. 2023-03-17 12:14:20.374730 91.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_SYSTEM]1.0
  547. 2023-03-17 12:14:20.374730 91.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_SYSTEM]1.0
  548. 2023-03-17 12:14:20.374730 91.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  549. 2023-03-17 12:14:20.394752 91.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Generated XML:
  550. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  551. <document type="freeswitch/xml">
  552. <section name="dialplan" description="ASTPP Dialplan">
  553. <context name="default">
  554. <extension name="hangup">
  555. <condition field="destination_number" expression="hangup">
  556. <action application="log" data="INFO REALTIME BILLING - Account out of credit!!"/>
  557. <action application="hangup"/>
  558. </condition>
  559. </extension>
  560. </context>
  561. </section>
  562. </document>
  563. Dialplan: sofia/default/990004@142.132.184.134 parsing [default->hangup] continue=false
  564. Dialplan: sofia/default/990004@142.132.184.134 Regex (PASS) [hangup] destination_number(hangup) =~ /hangup/ break=on-false
  565. Dialplan: sofia/default/990004@142.132.184.134 Action log(INFO REALTIME BILLING - Account out of credit!!)
  566. Dialplan: sofia/default/990004@142.132.184.134 Action hangup()
  567. 2023-03-17 12:14:20.394752 91.07% [NOTICE] switch_core_session.c:3095 Execute [depth=1] log(INFO REALTIME BILLING - Account out of credit!!)
  568. EXECUTE [depth=1] sofia/default/990004@142.132.184.134 log(INFO REALTIME BILLING - Account out of credit!!)
  569. 2023-03-17 12:14:20.394752 91.07% [INFO] mod_dptools.c:1879 REALTIME BILLING - Account out of credit!!
  570. 2023-03-17 12:14:20.394752 91.07% [NOTICE] switch_core_session.c:3095 Execute [depth=1] hangup()
  571. EXECUTE [depth=1] sofia/default/990004@142.132.184.134 hangup()
  572. 2023-03-17 12:14:20.394752 91.07% [NOTICE] mod_dptools.c:1387 Hangup sofia/default/990004@142.132.184.134 [CS_EXECUTE] [NORMAL_CLEARING]
  573. 2023-03-17 12:14:20.394752 91.07% [DEBUG] switch_core_session.c:2983 sofia/default/990004@142.132.184.134 skip receive message [PHONE_EVENT] (channel is hungup already)
  574. 2023-03-17 12:14:20.394752 91.07% [WARNING] sofia_reg.c:1861 SIP auth challenge (REGISTER) on sofia profile 'default' for [086860@alpha3.astppbilling.org] from ip 103.240.35.46
  575. 2023-03-17 12:14:20.394752 91.07% [DEBUG] switch_core_session.c:2983 sofia/default/990004@142.132.184.134 skip receive message [PHONE_EVENT] (channel is hungup already)
  576. 2023-03-17 12:14:20.394752 91.07% [DEBUG] switch_core_state_machine.c:647 (sofia/default/990004@142.132.184.134) State EXECUTE going to sleep
  577. 2023-03-17 12:14:20.394752 91.07% [DEBUG] switch_core_state_machine.c:581 (sofia/default/990004@142.132.184.134) Running State Change CS_HANGUP (Cur 1 Tot 41)
  578. 2023-03-17 12:14:20.394752 91.07% [DEBUG] switch_core_state_machine.c:844 (sofia/default/990004@142.132.184.134) Callstate Change RINGING -> HANGUP
  579. 2023-03-17 12:14:20.394752 91.07% [DEBUG] switch_core_state_machine.c:846 (sofia/default/990004@142.132.184.134) State HANGUP
  580. 2023-03-17 12:14:20.394752 91.07% [DEBUG] mod_sofia.c:468 Channel sofia/default/990004@142.132.184.134 hanging up, cause: NORMAL_CLEARING
  581. 2023-03-17 12:14:20.394752 91.07% [DEBUG] mod_sofia.c:613 Responding to INVITE with: 480
  582. 2023-03-17 12:14:20.394752 91.07% [DEBUG] mod_nibblebill.c:506 Attempting to bill at $0.60000 per minute to account 133
  583. 2023-03-17 12:14:20.394752 91.07% [DEBUG] mod_nibblebill.c:518 Not billing 133 - call is not in answered state
  584. 2023-03-17 12:14:20.394752 91.07% [DEBUG] mod_nibblebill.c:422 Doing lookup query
  585. [SELECT if(posttoexternal=,credit_limit+(balance*-),balance) AS nibble_balance FROM accounts WHERE id='133']
  586. 2023-03-17 12:14:20.394752 91.07% [ERR] switch_core_sqldb.c:1310 ERR: [SELECT if(posttoexternal=,credit_limit+(balance*-),balance) AS nibble_balance FROM accounts WHERE id='133']
  587. [STATE: 42000 CODE 1064 ERROR: [MySQL][ODBC 8.0(a) Driver][mysqld-8.0.32]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ',credit_limit+(balance*-),balance) AS nibble_balance FROM accounts WHERE id='133' at line 1
  588. ]
  589. 2023-03-17 12:14:20.394752 91.07% [ERR] mod_nibblebill.c:424 Error running this query: [SELECT if(posttoexternal=,credit_limit+(balance*-),balance) AS nibble_balance FROM accounts WHERE id='133']
  590. 2023-03-17 12:14:20.394752 91.07% [DEBUG] mod_nibblebill.c:523 Comparing -1.000000 to hangup balance of 0.000000, taking into account minimum charge of 0.000000
  591. 2023-03-17 12:14:20.394752 91.07% [DEBUG] mod_nibblebill.c:526 Balance of -1.000000 fell below allowed amount of 0.000000! (Account 133)
  592. 2023-03-17 12:14:20.394752 91.07% [INFO] mod_dialplan_xml.c:639 Processing 990004 <990004>->hangup in context default
  593. 2023-03-17 12:14:20.414777 91.07% [INFO] switch_cpp.cpp:1465 [ASTPP] USING CACHE
  594. 2023-03-17 12:14:20.414777 91.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_SYSTEM]1.0
  595. 2023-03-17 12:14:20.414777 91.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_SYSTEM]1.0
  596. 2023-03-17 12:14:20.414777 91.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  597. 2023-03-17 12:14:20.414777 91.07% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Generated XML:
  598. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  599. <document type="freeswitch/xml">
  600. <section name="dialplan" description="ASTPP Dialplan">
  601. <context name="default">
  602. <extension name="hangup">
  603. <condition field="destination_number" expression="hangup">
  604. <action application="log" data="INFO REALTIME BILLING - Account out of credit!!"/>
  605. <action application="hangup"/>
  606. </condition>
  607. </extension>
  608. </context>
  609. </section>
  610. </document>
  611. Dialplan: sofia/default/990004@142.132.184.134 parsing [default->hangup] continue=false
  612. Dialplan: sofia/default/990004@142.132.184.134 Regex (PASS) [hangup] destination_number(hangup) =~ /hangup/ break=on-false
  613. Dialplan: sofia/default/990004@142.132.184.134 Action log(INFO REALTIME BILLING - Account out of credit!!)
  614. Dialplan: sofia/default/990004@142.132.184.134 Action hangup()
  615. 2023-03-17 12:14:20.414777 91.07% [DEBUG] mod_nibblebill.c:422 Doing lookup query
  616. [SELECT if(posttoexternal=,credit_limit+(balance*-),balance) AS nibble_balance FROM accounts WHERE id='133']
  617. 2023-03-17 12:14:20.414777 91.07% [ERR] switch_core_sqldb.c:1310 ERR: [SELECT if(posttoexternal=,credit_limit+(balance*-),balance) AS nibble_balance FROM accounts WHERE id='133']
  618. [STATE: 42000 CODE 1064 ERROR: [MySQL][ODBC 8.0(a) Driver][mysqld-8.0.32]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ',credit_limit+(balance*-),balance) AS nibble_balance FROM accounts WHERE id='133' at line 1
  619. ]
  620. 2023-03-17 12:14:20.414777 91.07% [ERR] mod_nibblebill.c:424 Error running this query: [SELECT if(posttoexternal=,credit_limit+(balance*-),balance) AS nibble_balance FROM accounts WHERE id='133']
  621. 2023-03-17 12:14:20.414777 91.07% [DEBUG] switch_core_state_machine.c:59 sofia/default/990004@142.132.184.134 Standard HANGUP, cause: NORMAL_CLEARING
  622. 2023-03-17 12:14:20.414777 91.07% [DEBUG] switch_core_state_machine.c:846 (sofia/default/990004@142.132.184.134) State HANGUP going to sleep
  623. 2023-03-17 12:14:20.414777 91.07% [DEBUG] switch_core_state_machine.c:616 (sofia/default/990004@142.132.184.134) State Change CS_HANGUP -> CS_REPORTING
  624. 2023-03-17 12:14:20.414777 91.07% [DEBUG] switch_core_state_machine.c:581 (sofia/default/990004@142.132.184.134) Running State Change CS_REPORTING (Cur 1 Tot 41)
  625. 2023-03-17 12:14:20.414777 91.07% [DEBUG] switch_core_state_machine.c:932 (sofia/default/990004@142.132.184.134) State REPORTING
  626. 2023-03-17 12:14:20.414777 91.07% [INFO] mod_json_cdr.c:271 Process [03d333e6-a67f-494f-8cb1-29db0959dc23.cdr.json]
  627. 2023-03-17 12:14:20.474743 91.07% [DEBUG] switch_core_state_machine.c:168 sofia/default/990004@142.132.184.134 Standard REPORTING, cause: NORMAL_CLEARING
  628. 2023-03-17 12:14:20.474743 91.07% [DEBUG] switch_core_state_machine.c:932 (sofia/default/990004@142.132.184.134) State REPORTING going to sleep
  629. 2023-03-17 12:14:20.474743 91.07% [DEBUG] switch_core_state_machine.c:607 (sofia/default/990004@142.132.184.134) State Change CS_REPORTING -> CS_DESTROY
  630. 2023-03-17 12:14:20.474743 91.07% [DEBUG] switch_core_session.c:1753 Session 41 (sofia/default/990004@142.132.184.134) Locked, Waiting on external entities
  631. 2023-03-17 12:14:20.474743 91.07% [NOTICE] switch_core_session.c:1771 Session 41 (sofia/default/990004@142.132.184.134) Ended
  632. 2023-03-17 12:14:20.474743 91.07% [NOTICE] switch_core_session.c:1775 Close Channel sofia/default/990004@142.132.184.134 [CS_DESTROY]
  633. 2023-03-17 12:14:20.474743 91.07% [DEBUG] switch_core_state_machine.c:735 (sofia/default/990004@142.132.184.134) Running State Change CS_DESTROY (Cur 0 Tot 41)
  634. 2023-03-17 12:14:20.474743 91.07% [DEBUG] switch_core_state_machine.c:745 (sofia/default/990004@142.132.184.134) State DESTROY
  635. 2023-03-17 12:14:20.474743 91.07% [DEBUG] mod_sofia.c:379 sofia/default/990004@142.132.184.134 SOFIA DESTROY
  636. 2023-03-17 12:14:20.474743 91.07% [DEBUG] switch_core_state_machine.c:175 sofia/default/990004@142.132.184.134 Standard DESTROY
  637. 2023-03-17 12:14:20.474743 91.07% [DEBUG] switch_core_state_machine.c:745 (sofia/default/990004@142.132.184.134) State DESTROY going to sleep
  638. 2023-03-17 12:14:20.854750 90.93% [DEBUG] switch_scheduler.c:147 Deleting task 28 switch_core_session_sched_heartbeat (03d333e6-a67f-494f-8cb1-29db0959dc23)
  639. 2023-03-17 12:14:21.034760 90.93% [WARNING] sofia_reg.c:3223 Can't find user [086860@alpha3.astppbilling.org] from 103.240.35.46
  640. You must define a domain called 'alpha3.astppbilling.org' in your directory and add a user with the id="086860" attribute
  641. and you must configure your device to use the proper domain in its authentication credentials.