From PrashantKumar, 2 Years ago, written in FreeSWITCH.
- view diff
Embed
  1. span style="color: cornflowerblue; font-weight: bold;"> 2021-12-23 07:20:12.146714 95.83% [NOTICE] switch_channel.c:1123 New Channel sofia/default/9693017122@pkcall.astppbilling.org:5044 [4bf8539c-a5a4-4416-8e80-ce780834a638]
  2. 2021-12-23 07:20:12.146714 95.83% [DEBUG] switch_core_state_machine.c:581 (sofia/default/9693017122@pkcall.astppbilling.org:5044) Running State Change CS_NEW (Cur 1 Tot 41)
  3. 2021-12-23 07:20:12.146714 95.83% [INFO] sofia.c:10462 sofia/default/9693017122@pkcall.astppbilling.org:5044 receiving invite from 117.247.91.162:52524 version: 1.10.7 -release-19-883d2cb662 64bit call-id: MDkzMzUyYWY2Y2RjNWZmZWNkNDAzM2VhZmNiNWY2ZTE.
  4. 2021-12-23 07:20:12.146714 95.83% [DEBUG] sofia.c:10556 verifying acl "default" for ip/port 117.247.91.162:0.
  5. 2021-12-23 07:20:12.146714 95.83% [DEBUG] sofia.c:2419 detaching session 4bf8539c-a5a4-4416-8e80-ce780834a638
  6. 2021-12-23 07:20:12.146714 95.83% [WARNING] sofia_reg.c:1861 SIP auth challenge (INVITE) on sofia profile 'default' for [330444@pkcall.astppbilling.org] from ip 117.247.91.162
  7. 2021-12-23 07:20:12.146714 95.83% [DEBUG] switch_core_state_machine.c:600 (sofia/default/9693017122@pkcall.astppbilling.org:5044) State NEW
  8. 2021-12-23 07:20:12.726728 95.80% [DEBUG] sofia.c:2532 Re-attaching to session 4bf8539c-a5a4-4416-8e80-ce780834a638
  9. 2021-12-23 07:20:12.746730 95.80% [INFO] sofia.c:10462 sofia/default/9693017122@pkcall.astppbilling.org:5044 receiving invite from 117.247.91.162:52524 version: 1.10.7 -release-19-883d2cb662 64bit call-id: MDkzMzUyYWY2Y2RjNWZmZWNkNDAzM2VhZmNiNWY2ZTE.
  10. 2021-12-23 07:20:12.746730 95.80% [DEBUG] sofia.c:10556 verifying acl "default" for ip/port 117.247.91.162:0.
  11. 2021-12-23 07:20:12.746730 95.80% [DEBUG] sofia.c:11672 Setting NAT mode based on via received
  12. 2021-12-23 07:20:12.746730 95.80% [DEBUG] sofia.c:7499 Channel sofia/default/9693017122@pkcall.astppbilling.org:5044 entering state [received][100]
  13. 2021-12-23 07:20:12.746730 95.80% [DEBUG] sofia.c:7509 Remote SDP:
  14. v=0
  15. o=Z 0 0 IN IP4 117.247.91.162
  16. s=Z
  17. c=IN IP4 117.247.91.162
  18. t=0 0
  19. m=audio 8000 RTP/AVP 3 110 8 0 98 101
  20. a=rtpmap:110 speex/8000
  21. a=rtpmap:98 iLBC/8000
  22. a=fmtp:98 mode=20
  23. a=rtpmap:101 telephone-event/8000
  24. a=fmtp:101 0-15
  25.  
  26. 2021-12-23 07:20:12.746730 95.80% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMA:8:8000:20:64000:1]
  27. 2021-12-23 07:20:12.746730 95.80% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMU:0:8000:20:64000:1]
  28. 2021-12-23 07:20:12.746730 95.80% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [speex:110:8000:20:0:1]/[PCMA:8:8000:20:64000:1]
  29. 2021-12-23 07:20:12.746730 95.80% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [speex:110:8000:20:0:1]/[PCMU:0:8000:20:64000:1]
  30. 2021-12-23 07:20:12.746730 95.80% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  31. 2021-12-23 07:20:12.746730 95.80% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  32. 2021-12-23 07:20:12.746730 95.80% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  33. 2021-12-23 07:20:12.746730 95.80% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  34. 2021-12-23 07:20:12.746730 95.80% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  35. 2021-12-23 07:20:12.746730 95.80% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  36. 2021-12-23 07:20:12.746730 95.80% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [iLBC:98:8000:30:0:1]/[PCMA:8:8000:20:64000:1]
  37. 2021-12-23 07:20:12.746730 95.80% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [iLBC:98:8000:30:0:1]/[PCMU:0:8000:20:64000:1]
  38. 2021-12-23 07:20:12.746730 95.80% [DEBUG] switch_core_media.c:5566 Set telephone-event payload to 101@8000
  39. 2021-12-23 07:20:12.746730 95.80% [DEBUG] switch_core_media.c:3870 Set Codec sofia/default/9693017122@pkcall.astppbilling.org:5044 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  40. 2021-12-23 07:20:12.746730 95.80% [DEBUG] switch_core_codec.c:111 sofia/default/9693017122@pkcall.astppbilling.org:5044 Original read codec set to PCMA:8
  41. 2021-12-23 07:20:12.746730 95.80% [DEBUG] switch_core_media.c:5915 Set telephone-event payload to 101@8000
  42. 2021-12-23 07:20:12.746730 95.80% [DEBUG] switch_core_media.c:5973 sofia/default/9693017122@pkcall.astppbilling.org:5044 Set 2833 dtmf send payload to 101 recv payload to 101
  43. 2021-12-23 07:20:12.746730 95.80% [DEBUG] sofia.c:7933 (sofia/default/9693017122@pkcall.astppbilling.org:5044) State Change CS_NEW -> CS_INIT
  44. 2021-12-23 07:20:12.746730 95.80% [DEBUG] switch_core_state_machine.c:581 (sofia/default/9693017122@pkcall.astppbilling.org:5044) Running State Change CS_INIT (Cur 1 Tot 41)
  45. 2021-12-23 07:20:12.746730 95.80% [DEBUG] switch_core_state_machine.c:624 (sofia/default/9693017122@pkcall.astppbilling.org:5044) State INIT
  46. 2021-12-23 07:20:12.746730 95.80% [DEBUG] mod_sofia.c:97 sofia/default/9693017122@pkcall.astppbilling.org:5044 SOFIA INIT
  47. 2021-12-23 07:20:12.746730 95.80% [DEBUG] switch_core_state_machine.c:40 sofia/default/9693017122@pkcall.astppbilling.org:5044 Standard INIT
  48. 2021-12-23 07:20:12.746730 95.80% [DEBUG] switch_core_state_machine.c:48 (sofia/default/9693017122@pkcall.astppbilling.org:5044) State Change CS_INIT -> CS_ROUTING
  49. 2021-12-23 07:20:12.746730 95.80% [DEBUG] switch_core_state_machine.c:624 (sofia/default/9693017122@pkcall.astppbilling.org:5044) State INIT going to sleep
  50. 2021-12-23 07:20:12.746730 95.80% [DEBUG] switch_core_state_machine.c:581 (sofia/default/9693017122@pkcall.astppbilling.org:5044) Running State Change CS_ROUTING (Cur 1 Tot 41)
  51. 2021-12-23 07:20:12.746730 95.80% [DEBUG] switch_channel.c:2380 (sofia/default/9693017122@pkcall.astppbilling.org:5044) Callstate Change DOWN -> RINGING
  52. 2021-12-23 07:20:12.746730 95.80% [DEBUG] switch_core_state_machine.c:640 (sofia/default/9693017122@pkcall.astppbilling.org:5044) State ROUTING
  53. 2021-12-23 07:20:12.746730 95.80% [DEBUG] mod_sofia.c:158 sofia/default/9693017122@pkcall.astppbilling.org:5044 SOFIA ROUTING
  54. 2021-12-23 07:20:12.746730 95.80% [DEBUG] switch_core_state_machine.c:230 sofia/default/9693017122@pkcall.astppbilling.org:5044 Standard ROUTING
  55. 2021-12-23 07:20:12.746730 95.80% [INFO] mod_dialplan_xml.c:639 Processing 9693017122 <9693017122>->330444 in context default
  56. 2021-12-23 07:20:12.746730 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  57. 2021-12-23 07:20:12.746730 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  58. 2021-12-23 07:20:12.766708 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [feature_code_call_transfer] Blind Call Flag: 0
  59. 2021-12-23 07:20:12.766708 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 330444
  60. 2021-12-23 07:20:12.766708 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '330444' limit 1
  61. 2021-12-23 07:20:12.766708 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '330444' AND status=0 limit 1
  62. 2021-12-23 07:20:12.766708 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [Fifo Condition Check] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '330444' and status=0 LIMIT 1
  63. 2021-12-23 07:20:12.766708 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] SOURCE NUMBER9693017122
  64. 2021-12-23 07:20:12.766708 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  65. 2021-12-23 07:20:12.766708 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL SOURCE] Query :SELECT domain,accountid FROM domains WHERE domain = 'pkcall.astppbilling.org' limit 1
  66. 2021-12-23 07:20:12.766708 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL DOMAIN] Query :SELECT accountid from sip_devices where accountid = '4' and username = '330444' limit 1
  67. 2021-12-23 07:20:12.766708 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number  : 9693017122 / 9693017122
  68. 2021-12-23 07:20:12.766708 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="330444" LIMIT 1
  69. 2021-12-23 07:20:12.766708 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID_CALL_TRANSFER] 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.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 ="330444" LIMIT 1
  70. 2021-12-23 07:20:12.766708 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  71. 2021-12-23 07:20:12.766708 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : inbound
  72. 2021-12-23 07:20:12.766708 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [Accountcode : 9693017122]
  73. 2021-12-23 07:20:12.766708 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "9693017122" AND deleted = 0 limit 1
  74. 2021-12-23 07:20:12.786714 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="330444" AND (accountid = 0 OR status = 1) LIMIT 1
  75. 2021-12-23 07:20:12.786714 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] Call Direction : inbound
  76. 2021-12-23 07:20:12.786714 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] DID ACCOUNT ID : 7
  77. 2021-12-23 07:20:12.786714 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] Query :SELECT *,P.id as package_id,P.product_id as product_id FROM packages_view as P inner join package_patterns as PKGPTR on P.product_id = PKGPTR.product_id WHERE (patterns = '^330444.*' OR patterns = '^33044.*' OR patterns = '^3304.*' OR patterns = '^330.*' OR patterns = '^33.*' OR patterns = '^3.*' OR patterns ='--') AND accountid = 7 ORDER BY LENGTH(PKGPTR.patterns) DESC
  78. 2021-12-23 07:20:12.786714 95.80% [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 ="330444" AND A.accountid = '4' limit 1
  79. 2021-12-23 07:20:12.806710 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 330444
  80. 2021-12-23 07:20:12.806710 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="330444" LIMIT 1
  81. 2021-12-23 07:20:12.806710 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID_CALL_TRANSFER] 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.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 ="330444" LIMIT 1
  82. 2021-12-23 07:20:12.806710 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  83. 2021-12-23 07:20:12.806710 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] New Call Direction : inbound
  84. 2021-12-23 07:20:12.806710 95.80% [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 = '330444' OR number = '33044' OR number = '3304' OR number = '330' OR number = '33' OR number = '3' OR number ='--') OR (number = '330444*' OR number = '33044*' OR number = '3304*' OR number = '330*' OR number = '33*' OR number = '3*' OR number ='--') OR (number = '9693017122' OR number = '969301712' OR number = '96930171' OR number = '9693017' OR number = '969301' OR number = '96930' OR number = '9693' OR number = '969' OR number = '96' OR number = '9' OR number ='--') OR (number = '9693017122*' OR number = '969301712*' OR number = '96930171*' OR number = '9693017*' OR number = '969301*' OR number = '96930*' OR number = '9693*' OR number = '969*' OR number = '96*' OR number = '9*' OR number ='--')) AND status=0 AND accountid = 0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC
  85. 2021-12-23 07:20:12.806710 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Call Barring Status : -1
  86. 2021-12-23 07:20:12.806710 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '330444' OR routing_prefix = '33044' OR routing_prefix = '3304' OR routing_prefix = '330' OR routing_prefix = '33' OR routing_prefix = '3' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1
  87. 2021-12-23 07:20:12.806710 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Account Information ===================
  88. 2021-12-23 07:20:12.806710 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] User id : 4
  89. 2021-12-23 07:20:12.806710 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Account code : 9693017122
  90. 2021-12-23 07:20:12.806710 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Balance : 394.7
  91. 2021-12-23 07:20:12.806710 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  92. 2021-12-23 07:20:12.806710 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Ratecard id : 1
  93. 2021-12-23 07:20:12.806710 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] CID Pool : 0
  94. 2021-12-23 07:20:12.806710 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================================================
  95. 2021-12-23 07:20:12.806710 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0
  96. 2021-12-23 07:20:12.806710 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :inbound
  97. 2021-12-23 07:20:12.806710 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="330444" LIMIT 1
  98. 2021-12-23 07:20:12.826709 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID_CALL_TRANSFER] 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.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 ="330444" LIMIT 1
  99. 2021-12-23 07:20:12.826709 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  100. 2021-12-23 07:20:12.826709 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP]  Call Direction : inbound
  101. 2021-12-23 07:20:12.826709 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information ===================
  102. 2021-12-23 07:20:12.826709 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 2
  103. 2021-12-23 07:20:12.826709 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
  104. 2021-12-23 07:20:12.826709 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0
  105. 2021-12-23 07:20:12.826709 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 0.00000
  106. 2021-12-23 07:20:12.826709 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Comment : 330444
  107. 2021-12-23 07:20:12.826709 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 88
  108. 2021-12-23 07:20:12.826709 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 4
  109. 2021-12-23 07:20:12.826709 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================
  110. 2021-12-23 07:20:12.826709 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your394.7 balance Accountid 4 !!!
  111. 2021-12-23 07:20:12.826709 95.80% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length  :: 100
  112. 2021-12-23 07:20:12.826709 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Call Max Length Duration : 100 minutes
  113. 2021-12-23 07:20:12.826709 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] INB_FREE:TRUE
  114. 2021-12-23 07:20:12.826709 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] free_inbound:1
  115. 2021-12-23 07:20:12.826709 95.80% [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 = 4 AND status=0 LIMIT 1
  116. 2021-12-23 07:20:12.826709 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "7" AND deleted = 0 limit 1
  117. 2021-12-23 07:20:12.826709 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Actual CustomerInfo XML:4
  118. 2021-12-23 07:20:12.826709 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Userinfo XML:4
  119. 2021-12-23 07:20:12.826709 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Actual CustomerInfo XML : 4
  120. 2021-12-23 07:20:12.826709 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_domain_info] Query :SELECT * FROM domains WHERE accountid = 7 limit 1
  121. 2021-12-23 07:20:12.826709 95.80% [WARNING] switch_cpp.cpp:1465 [ASTPP] [user_domain] User Domain : payfast.astppbilling.org
  122. 2021-12-23 07:20:12.826709 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP]  Maxlength : 100
  123. 2021-12-23 07:20:12.826709 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  124. 2021-12-23 07:20:12.826709 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [XML] Customer Recording Flag : 1
  125. 2021-12-23 07:20:12.826709 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [PBX] Call Direction : inbound
  126. 2021-12-23 07:20:12.826709 95.80% [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 = "1" AND accounts.status = 0
  127. 2021-12-23 07:20:12.826709 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_domain_info] Query :SELECT * FROM domains WHERE accountid = 7 limit 1
  128. 2021-12-23 07:20:12.826709 95.80% [WARNING] switch_cpp.cpp:1465 [ASTPP] [XML] User Domain : payfast.astppbilling.org
  129. 2021-12-23 07:20:12.826709 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_accounts_info] Query :SELECT * FROM accounts WHERE id = 7  and status = 0 limit 1
  130. 2021-12-23 07:20:12.826709 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [XML] Custom Function Name :: custom_inbound_13
  131. 2021-12-23 07:20:12.826709 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] custom_function_name::::::::::1343:::::::::::::::2
  132. 2021-12-23 07:20:12.826709 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] custom_call_id 1
  133. 2021-12-23 07:20:12.826709 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [GET_call_flow_QUERY] Query :SELECT * from call_flow WHERE id = '1' and status =0 LIMIT 1
  134. 2021-12-23 07:20:12.846709 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [custom_call] priority : 3
  135. 2021-12-23 07:20:12.846709 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [custom_call] priority : 2
  136. 2021-12-23 07:20:12.846709 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [custom_call] priority : 1
  137. 2021-12-23 07:20:12.846709 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [custom_call] priority_array : 1
  138. 2021-12-23 07:20:12.846709 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [custom_call] priority : 1
  139. 2021-12-23 07:20:12.846709 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [custom_call] no_answer_call_type : 0
  140. 2021-12-23 07:20:12.846709 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [custom_call] extensions : 3476897547
  141. 2021-12-23 07:20:12.846709 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [custom_call] bridge : user/3476897547@payfast.astppbilling.org
  142. 2021-12-23 07:20:12.846709 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Generated XML:<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  143. <document type="freeswitch/xml">
  144. <section name="dialplan" description="ASTPP Dialplan">
  145. <context name="default">
  146. <extension name="330444">
  147. <condition field="destination_number" expression="330444">
  148. <action application="set" data="effective_destination_number=330444"/>
  149. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
  150. <action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>
  151. <action application="set" data="callstart=2021-12-23 07:20:12"/>
  152. <action application="set" data="hangup_after_bridge=true"/>
  153. <action application="set" data="continue_on_fail=TRUE"/>
  154. <action application="set" data="account_id=4"/>
  155. <action application="set" data="parent_id=0"/>
  156. <action application="set" data="entity_id=0"/>
  157. <action application="set" data="call_processed=internal"/>
  158. <action application="set" data="call_direction=inbound"/>
  159. <action application="set" data="accountname=default"/>
  160. <action application="set" data="origination_rates_did=ID:2|CODE:^330444.*|DESTINATION:330444|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:13|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:88|ACCID:7"/>
  161. <action application="set" data="origination_rates=0"/>
  162. <action application="set" data="original_caller_id_name=9693017122"/>
  163. <action application="set" data="original_caller_id_number=9693017122"/>
  164. <action application="set" data="effective_caller_id_name=9693017122"/>
  165. <action application="set" data="effective_caller_id_number=9693017122"/>
  166. <action application="set" data="receiver_accid=7"/>
  167. <action application="set" data="did_id=2"/>
  168. <action application="set" data="transfer_call_type=4"/>
  169. <action application="set" data="transfer_extensions="/>
  170. <action application="set" data="busy_status=1"/>
  171. <action application="set" data="no_answer_status=1"/>
  172. <action application="set" data="always_status=1"/>
  173. <action application="set" data="transfer_status=1"/>
  174. <action application="set" data="variable_sip_to_host=${domain_name}"/>
  175. <action application="export" data="domain_name=payfast.astppbilling.org"/>
  176. <action application="export" data="sip_to_host=payfast.astppbilling.org"/>
  177. <action application="export" data="presence_data=x|||Customer Of(7135873514)|||||||||DID|||117.247.91.162"/>
  178. <action application="export" data="call_type=13"/>
  179. <action application="set" data="custom_priority=1"/>
  180. <action application="set" data="custom_call_id=1"/>
  181. <action application="set" data="original_did_number=330444"/>
  182. <action application="bridge" data="user/3476897547@payfast.astppbilling.org"/>
  183. <action application="lua" data="astpp/lib/pbx/astpp-custom_call_flow.lua"/>
  184. </condition>
  185. </extension>
  186. </context>
  187. </section>
  188. </document>
  189. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 parsing [default->330444] continue=false
  190. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Regex (PASS) [330444] destination_number(330444) =~ /330444/ break=on-false
  191. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(effective_destination_number=330444)
  192. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(bridge_pre_execute_bleg_app=sched_hangup)
  193. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  194. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(callstart=2021-12-23 07:20:12)
  195. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(hangup_after_bridge=true)
  196. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(continue_on_fail=TRUE)
  197. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(account_id=4)
  198. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(parent_id=0)
  199. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(entity_id=0)
  200. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(call_processed=internal)
  201. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(call_direction=inbound)
  202. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(accountname=default)
  203. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(origination_rates_did=ID:2|CODE:^330444.*|DESTINATION:330444|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:13|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:88|ACCID:7)
  204. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(origination_rates=0)
  205. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(original_caller_id_name=9693017122)
  206. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(original_caller_id_number=9693017122)
  207. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(effective_caller_id_name=9693017122)
  208. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(effective_caller_id_number=9693017122)
  209. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(receiver_accid=7)
  210. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(did_id=2)
  211. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(transfer_call_type=4)
  212. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(transfer_extensions=)
  213. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(busy_status=1)
  214. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(no_answer_status=1)
  215. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(always_status=1)
  216. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(transfer_status=1)
  217. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(variable_sip_to_host=${domain_name})
  218. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action export(domain_name=payfast.astppbilling.org)
  219. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action export(sip_to_host=payfast.astppbilling.org)
  220. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action export(presence_data=x|||Customer Of(7135873514)|||||||||DID|||117.247.91.162)
  221. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action export(call_type=13)
  222. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(custom_priority=1)
  223. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(custom_call_id=1)
  224. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(original_did_number=330444)
  225. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action bridge(user/3476897547@payfast.astppbilling.org)
  226. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action lua(astpp/lib/pbx/astpp-custom_call_flow.lua)
  227. 2021-12-23 07:20:12.846709 95.80% [DEBUG] switch_core_state_machine.c:281 (sofia/default/9693017122@pkcall.astppbilling.org:5044) State Change CS_ROUTING -> CS_EXECUTE
  228. 2021-12-23 07:20:12.846709 95.80% [DEBUG] switch_core_state_machine.c:640 (sofia/default/9693017122@pkcall.astppbilling.org:5044) State ROUTING going to sleep
  229. 2021-12-23 07:20:12.846709 95.80% [DEBUG] switch_core_state_machine.c:581 (sofia/default/9693017122@pkcall.astppbilling.org:5044) Running State Change CS_EXECUTE (Cur 1 Tot 41)
  230. 2021-12-23 07:20:12.846709 95.80% [DEBUG] switch_core_state_machine.c:647 (sofia/default/9693017122@pkcall.astppbilling.org:5044) State EXECUTE
  231. 2021-12-23 07:20:12.846709 95.80% [DEBUG] mod_sofia.c:213 sofia/default/9693017122@pkcall.astppbilling.org:5044 SOFIA EXECUTE
  232. 2021-12-23 07:20:12.846709 95.80% [DEBUG] switch_core_state_machine.c:323 sofia/default/9693017122@pkcall.astppbilling.org:5044 Standard EXECUTE
  233. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(effective_destination_number=330444)
  234. 2021-12-23 07:20:12.846709 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [effective_destination_number]=[330444]
  235. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(bridge_pre_execute_bleg_app=sched_hangup)
  236. 2021-12-23 07:20:12.846709 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [bridge_pre_execute_bleg_app]=[sched_hangup]
  237. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  238. 2021-12-23 07:20:12.846709 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [bridge_pre_execute_bleg_data]=[+6000 normal_clearing]
  239. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(callstart=2021-12-23 07:20:12)
  240. 2021-12-23 07:20:12.846709 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [callstart]=[2021-12-23 07:20:12]
  241. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(hangup_after_bridge=true)
  242. 2021-12-23 07:20:12.846709 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [hangup_after_bridge]=[true]
  243. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(continue_on_fail=TRUE)
  244. 2021-12-23 07:20:12.846709 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [continue_on_fail]=[TRUE]
  245. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(account_id=4)
  246. 2021-12-23 07:20:12.846709 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [account_id]=[4]
  247. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(parent_id=0)
  248. 2021-12-23 07:20:12.846709 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [parent_id]=[0]
  249. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(entity_id=0)
  250. 2021-12-23 07:20:12.846709 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [entity_id]=[0]
  251. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(call_processed=internal)
  252. 2021-12-23 07:20:12.846709 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [call_processed]=[internal]
  253. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(call_direction=inbound)
  254. 2021-12-23 07:20:12.846709 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [call_direction]=[inbound]
  255. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(accountname=default)
  256. 2021-12-23 07:20:12.846709 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [accountname]=[default]
  257. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(origination_rates_did=ID:2|CODE:^330444.*|DESTINATION:330444|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:13|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:88|ACCID:7)
  258. 2021-12-23 07:20:12.846709 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [origination_rates_did]=[ID:2|CODE:^330444.*|DESTINATION:330444|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:13|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:88|ACCID:7]
  259. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(origination_rates=0)
  260. 2021-12-23 07:20:12.846709 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [origination_rates]=[0]
  261. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(original_caller_id_name=9693017122)
  262. 2021-12-23 07:20:12.846709 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [original_caller_id_name]=[9693017122]
  263. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(original_caller_id_number=9693017122)
  264. 2021-12-23 07:20:12.846709 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [original_caller_id_number]=[9693017122]
  265. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(effective_caller_id_name=9693017122)
  266. 2021-12-23 07:20:12.846709 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [effective_caller_id_name]=[9693017122]
  267. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(effective_caller_id_number=9693017122)
  268. 2021-12-23 07:20:12.846709 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [effective_caller_id_number]=[9693017122]
  269. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(receiver_accid=7)
  270. 2021-12-23 07:20:12.846709 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [receiver_accid]=[7]
  271. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(did_id=2)
  272. 2021-12-23 07:20:12.846709 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [did_id]=[2]
  273. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(transfer_call_type=4)
  274. 2021-12-23 07:20:12.846709 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [transfer_call_type]=[4]
  275. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(transfer_extensions=)
  276. 2021-12-23 07:20:12.846709 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [transfer_extensions]=[UNDEF]
  277. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(busy_status=1)
  278. 2021-12-23 07:20:12.846709 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [busy_status]=[1]
  279. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(no_answer_status=1)
  280. 2021-12-23 07:20:12.846709 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [no_answer_status]=[1]
  281. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(always_status=1)
  282. 2021-12-23 07:20:12.846709 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [always_status]=[1]
  283. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(transfer_status=1)
  284. 2021-12-23 07:20:12.846709 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [transfer_status]=[1]
  285. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(variable_sip_to_host=pkcall.astppbilling.org)
  286. 2021-12-23 07:20:12.846709 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [variable_sip_to_host]=[pkcall.astppbilling.org]
  287. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 export(domain_name=payfast.astppbilling.org)
  288. 2021-12-23 07:20:12.846709 95.80% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [domain_name]=[payfast.astppbilling.org]
  289. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 export(sip_to_host=payfast.astppbilling.org)
  290. 2021-12-23 07:20:12.846709 95.80% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [sip_to_host]=[payfast.astppbilling.org]
  291. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 export(presence_data=x|||Customer Of(7135873514)|||||||||DID|||117.247.91.162)
  292. 2021-12-23 07:20:12.846709 95.80% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [presence_data]=[x|||Customer Of(7135873514)|||||||||DID|||117.247.91.162]
  293. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 export(call_type=13)
  294. 2021-12-23 07:20:12.846709 95.80% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [call_type]=[13]
  295. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(custom_priority=1)
  296. 2021-12-23 07:20:12.846709 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [custom_priority]=[1]
  297. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(custom_call_id=1)
  298. 2021-12-23 07:20:12.846709 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [custom_call_id]=[1]
  299. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(original_did_number=330444)
  300. 2021-12-23 07:20:12.846709 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [original_did_number]=[330444]
  301. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 bridge(user/3476897547@payfast.astppbilling.org)
  302. 2021-12-23 07:20:12.846709 95.80% [DEBUG] switch_channel.c:1269 sofia/default/9693017122@pkcall.astppbilling.org:5044 EXPORTING[export_vars] [domain_name]=[payfast.astppbilling.org] to event
  303. 2021-12-23 07:20:12.846709 95.80% [DEBUG] switch_channel.c:1269 sofia/default/9693017122@pkcall.astppbilling.org:5044 EXPORTING[export_vars] [sip_to_host]=[payfast.astppbilling.org] to event
  304. 2021-12-23 07:20:12.846709 95.80% [DEBUG] switch_channel.c:1269 sofia/default/9693017122@pkcall.astppbilling.org:5044 EXPORTING[export_vars] [presence_data]=[x|||Customer Of(7135873514)|||||||||DID|||117.247.91.162] to event
  305. 2021-12-23 07:20:12.846709 95.80% [DEBUG] switch_channel.c:1269 sofia/default/9693017122@pkcall.astppbilling.org:5044 EXPORTING[export_vars] [call_type]=[13] to event
  306. 2021-12-23 07:20:12.846709 95.80% [DEBUG] switch_ivr_originate.c:2281 Parsing global variables
  307. 2021-12-23 07:20:12.846709 95.80% [DEBUG] switch_channel.c:1269 sofia/default/9693017122@pkcall.astppbilling.org:5044 EXPORTING[export_vars] [domain_name]=[payfast.astppbilling.org] to event
  308. 2021-12-23 07:20:12.846709 95.80% [DEBUG] switch_channel.c:1269 sofia/default/9693017122@pkcall.astppbilling.org:5044 EXPORTING[export_vars] [sip_to_host]=[payfast.astppbilling.org] to event
  309. 2021-12-23 07:20:12.846709 95.80% [DEBUG] switch_channel.c:1269 sofia/default/9693017122@pkcall.astppbilling.org:5044 EXPORTING[export_vars] [presence_data]=[x|||Customer Of(7135873514)|||||||||DID|||117.247.91.162] to event
  310. 2021-12-23 07:20:12.846709 95.80% [DEBUG] switch_channel.c:1269 sofia/default/9693017122@pkcall.astppbilling.org:5044 EXPORTING[export_vars] [call_type]=[13] to event
  311. 2021-12-23 07:20:12.846709 95.80% [DEBUG] switch_ivr_originate.c:2281 Parsing global variables
  312. 2021-12-23 07:20:12.846709 95.80% [NOTICE] switch_ivr_originate.c:3039 Cannot create outgoing channel of type [error] cause: [USER_NOT_REGISTERED]
  313. 2021-12-23 07:20:12.846709 95.80% [DEBUG] switch_ivr_originate.c:4035 Originate Resulted in Error Cause: 606 [USER_NOT_REGISTERED]
  314. 2021-12-23 07:20:12.846709 95.80% [NOTICE] switch_ivr_originate.c:3039 Cannot create outgoing channel of type [user] cause: [USER_NOT_REGISTERED]
  315. 2021-12-23 07:20:12.846709 95.80% [DEBUG] switch_ivr_originate.c:4035 Originate Resulted in Error Cause: 606 [USER_NOT_REGISTERED]
  316. 2021-12-23 07:20:12.846709 95.80% [INFO] mod_dptools.c:3653 Originate Failed.  Cause: USER_NOT_REGISTERED
  317. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 lua(astpp/lib/pbx/astpp-custom_call_flow.lua)
  318. 2021-12-23 07:20:12.866745 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  319. 2021-12-23 07:20:12.866745 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [GET_call_flow_QUERY] Query :SELECT * from call_flow WHERE id = '1' and status =0 LIMIT 1
  320. 2021-12-23 07:20:12.866745 95.80% [DEBUG] switch_cpp.cpp:773 CoreSession::setVariable('custom_priority', '1')
  321. 2021-12-23 07:20:12.866745 95.80% [DEBUG] switch_cpp.cpp:773 CoreSession::setVariable('no_answer_number', '(null)')
  322. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 transfer(330444 XML default)
  323. 2021-12-23 07:20:12.866745 95.80% [DEBUG] switch_ivr.c:2289 (sofia/default/9693017122@pkcall.astppbilling.org:5044) State Change CS_EXECUTE -> CS_ROUTING
  324. 2021-12-23 07:20:12.866745 95.80% [NOTICE] switch_ivr.c:2296 Transfer sofia/default/9693017122@pkcall.astppbilling.org:5044 to XML[330444@default]
  325. 2021-12-23 07:20:12.866745 95.80% [DEBUG] switch_cpp.cpp:1209 sofia/default/9693017122@pkcall.astppbilling.org:5044 destroy/unlink session from object
  326. 2021-12-23 07:20:12.866745 95.80% [DEBUG] switch_core_state_machine.c:647 (sofia/default/9693017122@pkcall.astppbilling.org:5044) State EXECUTE going to sleep
  327. 2021-12-23 07:20:12.866745 95.80% [DEBUG] switch_core_state_machine.c:581 (sofia/default/9693017122@pkcall.astppbilling.org:5044) Running State Change CS_ROUTING (Cur 1 Tot 41)
  328. 2021-12-23 07:20:12.866745 95.80% [DEBUG] switch_core_state_machine.c:640 (sofia/default/9693017122@pkcall.astppbilling.org:5044) State ROUTING
  329. 2021-12-23 07:20:12.866745 95.80% [DEBUG] mod_sofia.c:149 Call appears to be already acknowledged
  330. 2021-12-23 07:20:12.866745 95.80% [DEBUG] mod_sofia.c:158 sofia/default/9693017122@pkcall.astppbilling.org:5044 SOFIA ROUTING
  331. 2021-12-23 07:20:12.866745 95.80% [DEBUG] switch_core_state_machine.c:230 sofia/default/9693017122@pkcall.astppbilling.org:5044 Standard ROUTING
  332. 2021-12-23 07:20:12.866745 95.80% [INFO] mod_dialplan_xml.c:639 Processing 9693017122 <9693017122>->330444 in context default
  333. 2021-12-23 07:20:12.866745 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  334. 2021-12-23 07:20:12.866745 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  335. 2021-12-23 07:20:12.906705 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [feature_code_call_transfer] Blind Call Flag: 0
  336. 2021-12-23 07:20:12.906705 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 330444
  337. 2021-12-23 07:20:12.906705 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '330444' limit 1
  338. 2021-12-23 07:20:12.906705 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '330444' AND status=0 limit 1
  339. 2021-12-23 07:20:12.906705 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [Fifo Condition Check] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '330444' and status=0 LIMIT 1
  340. 2021-12-23 07:20:12.906705 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] SOURCE NUMBER9693017122
  341. 2021-12-23 07:20:12.906705 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  342. 2021-12-23 07:20:12.906705 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL SOURCE] Query :SELECT domain,accountid FROM domains WHERE domain = 'payfast.astppbilling.org' limit 1
  343. 2021-12-23 07:20:12.906705 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL DOMAIN] Query :SELECT accountid from sip_devices where accountid = '7' and username = '330444' limit 1
  344. 2021-12-23 07:20:12.906705 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number  : 9693017122 / 9693017122
  345. 2021-12-23 07:20:12.906705 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="330444" LIMIT 1
  346. 2021-12-23 07:20:12.906705 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID_CALL_TRANSFER] 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.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 ="330444" LIMIT 1
  347. 2021-12-23 07:20:12.906705 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  348. 2021-12-23 07:20:12.906705 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : inbound
  349. 2021-12-23 07:20:12.906705 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [Accountcode : 9693017122]
  350. 2021-12-23 07:20:12.906705 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "9693017122" AND deleted = 0 limit 1
  351. 2021-12-23 07:20:12.926704 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="330444" AND (accountid = 0 OR status = 1) LIMIT 1
  352. 2021-12-23 07:20:12.926704 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] Call Direction : inbound
  353. 2021-12-23 07:20:12.926704 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] DID ACCOUNT ID : 7
  354. 2021-12-23 07:20:12.926704 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] Query :SELECT *,P.id as package_id,P.product_id as product_id FROM packages_view as P inner join package_patterns as PKGPTR on P.product_id = PKGPTR.product_id WHERE (patterns = '^330444.*' OR patterns = '^33044.*' OR patterns = '^3304.*' OR patterns = '^330.*' OR patterns = '^33.*' OR patterns = '^3.*' OR patterns ='--') AND accountid = 7 ORDER BY LENGTH(PKGPTR.patterns) DESC
  355. 2021-12-23 07:20:12.926704 95.80% [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 ="330444" AND A.accountid = '4' limit 1
  356. 2021-12-23 07:20:12.926704 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 330444
  357. 2021-12-23 07:20:12.926704 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="330444" LIMIT 1
  358. 2021-12-23 07:20:12.926704 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID_CALL_TRANSFER] 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.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 ="330444" LIMIT 1
  359. 2021-12-23 07:20:12.926704 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  360. 2021-12-23 07:20:12.926704 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] New Call Direction : inbound
  361. 2021-12-23 07:20:12.946707 95.80% [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 = '330444' OR number = '33044' OR number = '3304' OR number = '330' OR number = '33' OR number = '3' OR number ='--') OR (number = '330444*' OR number = '33044*' OR number = '3304*' OR number = '330*' OR number = '33*' OR number = '3*' OR number ='--') OR (number = '9693017122' OR number = '969301712' OR number = '96930171' OR number = '9693017' OR number = '969301' OR number = '96930' OR number = '9693' OR number = '969' OR number = '96' OR number = '9' OR number ='--') OR (number = '9693017122*' OR number = '969301712*' OR number = '96930171*' OR number = '9693017*' OR number = '969301*' OR number = '96930*' OR number = '9693*' OR number = '969*' OR number = '96*' OR number = '9*' OR number ='--')) AND status=0 AND accountid = 0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC
  362. 2021-12-23 07:20:12.946707 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Call Barring Status : -1
  363. 2021-12-23 07:20:12.946707 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '330444' OR routing_prefix = '33044' OR routing_prefix = '3304' OR routing_prefix = '330' OR routing_prefix = '33' OR routing_prefix = '3' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1
  364. 2021-12-23 07:20:12.946707 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Account Information ===================
  365. 2021-12-23 07:20:12.946707 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] User id : 4
  366. 2021-12-23 07:20:12.946707 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Account code : 9693017122
  367. 2021-12-23 07:20:12.946707 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Balance : 394.7
  368. 2021-12-23 07:20:12.946707 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  369. 2021-12-23 07:20:12.946707 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Ratecard id : 1
  370. 2021-12-23 07:20:12.946707 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] CID Pool : 0
  371. 2021-12-23 07:20:12.946707 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================================================
  372. 2021-12-23 07:20:12.946707 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0
  373. 2021-12-23 07:20:12.946707 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :inbound
  374. 2021-12-23 07:20:12.946707 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="330444" LIMIT 1
  375. 2021-12-23 07:20:12.946707 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID_CALL_TRANSFER] 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.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 ="330444" LIMIT 1
  376. 2021-12-23 07:20:12.946707 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  377. 2021-12-23 07:20:12.946707 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP]  Call Direction : inbound
  378. 2021-12-23 07:20:12.946707 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information ===================
  379. 2021-12-23 07:20:12.946707 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 2
  380. 2021-12-23 07:20:12.946707 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
  381. 2021-12-23 07:20:12.946707 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0
  382. 2021-12-23 07:20:12.946707 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 0.00000
  383. 2021-12-23 07:20:12.946707 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Comment : 330444
  384. 2021-12-23 07:20:12.946707 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 88
  385. 2021-12-23 07:20:12.946707 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 4
  386. 2021-12-23 07:20:12.946707 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================
  387. 2021-12-23 07:20:12.946707 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your394.7 balance Accountid 4 !!!
  388. 2021-12-23 07:20:12.946707 95.80% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length  :: 100
  389. 2021-12-23 07:20:12.946707 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] Call Max Length Duration : 100 minutes
  390. 2021-12-23 07:20:12.946707 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] INB_FREE:TRUE
  391. 2021-12-23 07:20:12.946707 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] free_inbound:1
  392. 2021-12-23 07:20:12.946707 95.80% [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 = 4 AND status=0 LIMIT 1
  393. 2021-12-23 07:20:12.946707 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "7" AND deleted = 0 limit 1
  394. 2021-12-23 07:20:12.946707 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Actual CustomerInfo XML:4
  395. 2021-12-23 07:20:12.946707 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Userinfo XML:4
  396. 2021-12-23 07:20:12.946707 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Actual CustomerInfo XML : 4
  397. 2021-12-23 07:20:12.946707 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_domain_info] Query :SELECT * FROM domains WHERE accountid = 7 limit 1
  398. 2021-12-23 07:20:12.946707 95.80% [WARNING] switch_cpp.cpp:1465 [ASTPP] [user_domain] User Domain : payfast.astppbilling.org
  399. 2021-12-23 07:20:12.946707 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP]  Maxlength : 100
  400. 2021-12-23 07:20:12.946707 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  401. 2021-12-23 07:20:12.946707 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [XML] Customer Recording Flag : 1
  402. 2021-12-23 07:20:12.946707 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [PBX] Call Direction : inbound
  403. 2021-12-23 07:20:12.946707 95.80% [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 = "1" AND accounts.status = 0
  404. 2021-12-23 07:20:12.966707 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_domain_info] Query :SELECT * FROM domains WHERE accountid = 7 limit 1
  405. 2021-12-23 07:20:12.966707 95.80% [WARNING] switch_cpp.cpp:1465 [ASTPP] [XML] User Domain : payfast.astppbilling.org
  406. 2021-12-23 07:20:12.966707 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_accounts_info] Query :SELECT * FROM accounts WHERE id = 7  and status = 0 limit 1
  407. 2021-12-23 07:20:12.966707 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [XML] Custom Function Name :: custom_inbound_13
  408. 2021-12-23 07:20:12.966707 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] custom_function_name::::::::::1343:::::::::::::::2
  409. 2021-12-23 07:20:12.966707 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] custom_call_id 1
  410. 2021-12-23 07:20:12.966707 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [GET_call_flow_QUERY] Query :SELECT * from call_flow WHERE id = '1' and status =0 LIMIT 1
  411. 2021-12-23 07:20:12.966707 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [custom_call] priority_array : 2
  412. 2021-12-23 07:20:12.966707 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [custom_call] priority : 2
  413. 2021-12-23 07:20:12.966707 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [custom_call] no_answer_call_type : 14
  414. 2021-12-23 07:20:12.966707 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [custom_call] extensions : 12
  415. 2021-12-23 07:20:12.966707 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] [PBX]  condition_value['extensions']::12
  416. 2021-12-23 07:20:12.966707 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [GET_RING_GROUP_INFO] Query :SELECT file_name from pbx_recording WHERE id = '12' LIMIT 1
  417. 2021-12-23 07:20:12.966707 95.80% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== music_file_name=File name==================file_examp_.wav
  418. 2021-12-23 07:20:12.966707 95.80% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Generated XML:<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  419. <document type="freeswitch/xml">
  420. <section name="dialplan" description="ASTPP Dialplan">
  421. <context name="default">
  422. <extension name="330444">
  423. <condition field="destination_number" expression="330444">
  424. <action application="set" data="effective_destination_number=330444"/>
  425. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
  426. <action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>
  427. <action application="set" data="callstart=2021-12-23 07:20:12"/>
  428. <action application="set" data="hangup_after_bridge=true"/>
  429. <action application="set" data="continue_on_fail=TRUE"/>
  430. <action application="set" data="account_id=4"/>
  431. <action application="set" data="parent_id=0"/>
  432. <action application="set" data="entity_id=0"/>
  433. <action application="set" data="call_processed=internal"/>
  434. <action application="set" data="call_direction=inbound"/>
  435. <action application="set" data="accountname=default"/>
  436. <action application="set" data="origination_rates_did=ID:2|CODE:^330444.*|DESTINATION:330444|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:13|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:88|ACCID:7"/>
  437. <action application="set" data="origination_rates=0"/>
  438. <action application="set" data="original_caller_id_name=9693017122"/>
  439. <action application="set" data="original_caller_id_number=9693017122"/>
  440. <action application="set" data="effective_caller_id_name=9693017122"/>
  441. <action application="set" data="effective_caller_id_number=9693017122"/>
  442. <action application="set" data="receiver_accid=7"/>
  443. <action application="set" data="did_id=2"/>
  444. <action application="set" data="transfer_call_type=4"/>
  445. <action application="set" data="transfer_extensions="/>
  446. <action application="set" data="busy_status=1"/>
  447. <action application="set" data="no_answer_status=1"/>
  448. <action application="set" data="always_status=1"/>
  449. <action application="set" data="transfer_status=1"/>
  450. <action application="set" data="variable_sip_to_host=${domain_name}"/>
  451. <action application="export" data="domain_name=payfast.astppbilling.org"/>
  452. <action application="export" data="sip_to_host=payfast.astppbilling.org"/>
  453. <action application="export" data="presence_data=x|||Customer Of(7135873514)|||||||||DID|||117.247.91.162"/>
  454. <action application="export" data="call_type=13"/>
  455. <action application="set" data="custom_priority=2"/>
  456. <action application="set" data="custom_call_id=1"/>
  457. <action application="set" data="original_did_number=330444"/>
  458.     <action application="answer"/>
  459. <action application="playback" data="/var/www/html/astpp//upload/pbx/file_examp_.wav"/>
  460. <action application="lua" data="astpp/lib/pbx/astpp-custom_call_flow.lua"/>
  461. </condition>
  462. </extension>
  463. </context>
  464. </section>
  465. </document>
  466. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 parsing [default->330444] continue=false
  467. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Regex (PASS) [330444] destination_number(330444) =~ /330444/ break=on-false
  468. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(effective_destination_number=330444)
  469. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(bridge_pre_execute_bleg_app=sched_hangup)
  470. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  471. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(callstart=2021-12-23 07:20:12)
  472. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(hangup_after_bridge=true)
  473. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(continue_on_fail=TRUE)
  474. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(account_id=4)
  475. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(parent_id=0)
  476. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(entity_id=0)
  477. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(call_processed=internal)
  478. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(call_direction=inbound)
  479. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(accountname=default)
  480. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(origination_rates_did=ID:2|CODE:^330444.*|DESTINATION:330444|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:13|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:88|ACCID:7)
  481. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(origination_rates=0)
  482. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(original_caller_id_name=9693017122)
  483. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(original_caller_id_number=9693017122)
  484. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(effective_caller_id_name=9693017122)
  485. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(effective_caller_id_number=9693017122)
  486. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(receiver_accid=7)
  487. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(did_id=2)
  488. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(transfer_call_type=4)
  489. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(transfer_extensions=)
  490. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(busy_status=1)
  491. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(no_answer_status=1)
  492. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(always_status=1)
  493. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(transfer_status=1)
  494. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(variable_sip_to_host=${domain_name})
  495. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action export(domain_name=payfast.astppbilling.org)
  496. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action export(sip_to_host=payfast.astppbilling.org)
  497. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action export(presence_data=x|||Customer Of(7135873514)|||||||||DID|||117.247.91.162)
  498. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action export(call_type=13)
  499. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(custom_priority=2)
  500. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(custom_call_id=1)
  501. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(original_did_number=330444)
  502. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action answer()
  503. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action playback(/var/www/html/astpp//upload/pbx/file_examp_.wav)
  504. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action lua(astpp/lib/pbx/astpp-custom_call_flow.lua)
  505. 2021-12-23 07:20:12.966707 95.80% [DEBUG] switch_core_state_machine.c:281 (sofia/default/9693017122@pkcall.astppbilling.org:5044) State Change CS_ROUTING -> CS_EXECUTE
  506. 2021-12-23 07:20:12.966707 95.80% [DEBUG] switch_core_state_machine.c:640 (sofia/default/9693017122@pkcall.astppbilling.org:5044) State ROUTING going to sleep
  507. 2021-12-23 07:20:12.966707 95.80% [DEBUG] switch_core_state_machine.c:581 (sofia/default/9693017122@pkcall.astppbilling.org:5044) Running State Change CS_EXECUTE (Cur 1 Tot 41)
  508. 2021-12-23 07:20:12.966707 95.80% [DEBUG] switch_core_state_machine.c:647 (sofia/default/9693017122@pkcall.astppbilling.org:5044) State EXECUTE
  509. 2021-12-23 07:20:12.966707 95.80% [DEBUG] mod_sofia.c:213 sofia/default/9693017122@pkcall.astppbilling.org:5044 SOFIA EXECUTE
  510. 2021-12-23 07:20:12.966707 95.80% [DEBUG] switch_core_state_machine.c:323 sofia/default/9693017122@pkcall.astppbilling.org:5044 Standard EXECUTE
  511. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(effective_destination_number=330444)
  512. 2021-12-23 07:20:12.966707 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [effective_destination_number]=[330444]
  513. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(bridge_pre_execute_bleg_app=sched_hangup)
  514. 2021-12-23 07:20:12.966707 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [bridge_pre_execute_bleg_app]=[sched_hangup]
  515. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  516. 2021-12-23 07:20:12.966707 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [bridge_pre_execute_bleg_data]=[+6000 normal_clearing]
  517. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(callstart=2021-12-23 07:20:12)
  518. 2021-12-23 07:20:12.966707 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [callstart]=[2021-12-23 07:20:12]
  519. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(hangup_after_bridge=true)
  520. 2021-12-23 07:20:12.966707 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [hangup_after_bridge]=[true]
  521. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(continue_on_fail=TRUE)
  522. 2021-12-23 07:20:12.966707 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [continue_on_fail]=[TRUE]
  523. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(account_id=4)
  524. 2021-12-23 07:20:12.966707 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [account_id]=[4]
  525. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(parent_id=0)
  526. 2021-12-23 07:20:12.966707 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [parent_id]=[0]
  527. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(entity_id=0)
  528. 2021-12-23 07:20:12.966707 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [entity_id]=[0]
  529. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(call_processed=internal)
  530. 2021-12-23 07:20:12.966707 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [call_processed]=[internal]
  531. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(call_direction=inbound)
  532. 2021-12-23 07:20:12.966707 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [call_direction]=[inbound]
  533. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(accountname=default)
  534. 2021-12-23 07:20:12.966707 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [accountname]=[default]
  535. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(origination_rates_did=ID:2|CODE:^330444.*|DESTINATION:330444|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:13|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:88|ACCID:7)
  536. 2021-12-23 07:20:12.966707 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [origination_rates_did]=[ID:2|CODE:^330444.*|DESTINATION:330444|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:13|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:88|ACCID:7]
  537. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(origination_rates=0)
  538. 2021-12-23 07:20:12.966707 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [origination_rates]=[0]
  539. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(original_caller_id_name=9693017122)
  540. 2021-12-23 07:20:12.986707 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [original_caller_id_name]=[9693017122]
  541. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(original_caller_id_number=9693017122)
  542. 2021-12-23 07:20:12.986707 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [original_caller_id_number]=[9693017122]
  543. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(effective_caller_id_name=9693017122)
  544. 2021-12-23 07:20:12.986707 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [effective_caller_id_name]=[9693017122]
  545. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(effective_caller_id_number=9693017122)
  546. 2021-12-23 07:20:12.986707 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [effective_caller_id_number]=[9693017122]
  547. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(receiver_accid=7)
  548. 2021-12-23 07:20:12.986707 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [receiver_accid]=[7]
  549. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(did_id=2)
  550. 2021-12-23 07:20:12.986707 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [did_id]=[2]
  551. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(transfer_call_type=4)
  552. 2021-12-23 07:20:12.986707 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [transfer_call_type]=[4]
  553. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(transfer_extensions=)
  554. 2021-12-23 07:20:12.986707 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [transfer_extensions]=[UNDEF]
  555. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(busy_status=1)
  556. 2021-12-23 07:20:12.986707 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [busy_status]=[1]
  557. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(no_answer_status=1)
  558. 2021-12-23 07:20:12.986707 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [no_answer_status]=[1]
  559. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(always_status=1)
  560. 2021-12-23 07:20:12.986707 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [always_status]=[1]
  561. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(transfer_status=1)
  562. 2021-12-23 07:20:12.986707 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [transfer_status]=[1]
  563. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(variable_sip_to_host=payfast.astppbilling.org)
  564. 2021-12-23 07:20:12.986707 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [variable_sip_to_host]=[payfast.astppbilling.org]
  565. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 export(domain_name=payfast.astppbilling.org)
  566. 2021-12-23 07:20:12.986707 95.80% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [domain_name]=[payfast.astppbilling.org]
  567. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 export(sip_to_host=payfast.astppbilling.org)
  568. 2021-12-23 07:20:12.986707 95.80% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [sip_to_host]=[payfast.astppbilling.org]
  569. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 export(presence_data=x|||Customer Of(7135873514)|||||||||DID|||117.247.91.162)
  570. 2021-12-23 07:20:12.986707 95.80% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [presence_data]=[x|||Customer Of(7135873514)|||||||||DID|||117.247.91.162]
  571. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 export(call_type=13)
  572. 2021-12-23 07:20:12.986707 95.80% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [call_type]=[13]
  573. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(custom_priority=2)
  574. 2021-12-23 07:20:12.986707 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [custom_priority]=[2]
  575. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(custom_call_id=1)
  576. 2021-12-23 07:20:12.986707 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [custom_call_id]=[1]
  577. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(original_did_number=330444)
  578. 2021-12-23 07:20:12.986707 95.80% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [original_did_number]=[330444]
  579. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 answer()
  580. 2021-12-23 07:20:12.986707 95.80% [DEBUG] switch_core_media.c:8777 AUDIO RTP [sofia/default/9693017122@pkcall.astppbilling.org:5044] 172.31.43.241 port 19780 -> 117.247.91.162 port 8000 codec: 8 ms: 20
  581. 2021-12-23 07:20:12.986707 95.80% [DEBUG] switch_rtp.c:4619 Starting timer [soft] 160 bytes per 20ms
  582. 2021-12-23 07:20:12.986707 95.80% [DEBUG] switch_core_media.c:9089 sofia/default/9693017122@pkcall.astppbilling.org:5044 Set 2833 dtmf send payload to 101
  583. 2021-12-23 07:20:12.986707 95.80% [DEBUG] switch_core_media.c:9096 sofia/default/9693017122@pkcall.astppbilling.org:5044 Set 2833 dtmf receive payload to 101
  584. 2021-12-23 07:20:12.986707 95.80% [DEBUG] switch_core_media.c:9119 sofia/default/9693017122@pkcall.astppbilling.org:5044 Set rtp dtmf delay to 40
  585. 2021-12-23 07:20:12.986707 95.80% [DEBUG] mod_sofia.c:913 Local SDP sofia/default/9693017122@pkcall.astppbilling.org:5044:
  586. v=0
  587. o=FreeSWITCH 1640224232 1640224233 IN IP4 3.23.127.90
  588. s=FreeSWITCH
  589. c=IN IP4 3.23.127.90
  590. t=0 0
  591. m=audio 19780 RTP/AVP 8 101
  592. a=rtpmap:8 PCMA/8000
  593. a=rtpmap:101 telephone-event/8000
  594. a=fmtp:101 0-15
  595. a=ptime:20
  596. a=sendrecv
  597.  
  598. 2021-12-23 07:20:12.986707 95.80% [DEBUG] sofia.c:7499 Channel sofia/default/9693017122@pkcall.astppbilling.org:5044 entering state [completed][200]
  599. 2021-12-23 07:20:12.986707 95.80% [NOTICE] mod_dptools.c:1419 Channel [sofia/default/9693017122@pkcall.astppbilling.org:5044] has been answered
  600. 2021-12-23 07:20:12.986707 95.80% [DEBUG] switch_channel.c:3950 (sofia/default/9693017122@pkcall.astppbilling.org:5044) Callstate Change RINGING -> ACTIVE
  601. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 playback(/var/www/html/astpp//upload/pbx/file_examp_.wav)
  602. 2021-12-23 07:20:12.986707 95.80% [WARNING] switch_core_file.c:463 File has 2 channels, muxing to 1 channel will occur.
  603. 2021-12-23 07:20:12.986707 95.80% [DEBUG] switch_ivr_play_say.c:1556 Codec Activated L16@8000hz 1 channels 20ms
  604. 2021-12-23 07:20:13.266731 95.80% [DEBUG] sofia.c:7499 Channel sofia/default/9693017122@pkcall.astppbilling.org:5044 entering state [ready][200]
  605. 2021-12-23 07:20:13.306782 94.33% [DEBUG] switch_rtp.c:7934 Correct audio ip/port confirmed.
  606. 2021-12-23 07:20:46.526763 99.37% [DEBUG] switch_ivr_play_say.c:2001 done playing file /var/www/html/astpp//upload/pbx/file_examp_.wav
  607. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 lua(astpp/lib/pbx/astpp-custom_call_flow.lua)
  608. 2021-12-23 07:20:46.526763 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  609. 2021-12-23 07:20:46.526763 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [GET_call_flow_QUERY] Query :SELECT * from call_flow WHERE id = '1' and status =0 LIMIT 1
  610. 2021-12-23 07:20:46.526763 99.37% [DEBUG] switch_cpp.cpp:773 CoreSession::setVariable('custom_priority', '2')
  611. 2021-12-23 07:20:46.526763 99.37% [DEBUG] switch_cpp.cpp:773 CoreSession::setVariable('no_answer_number', '(null)')
  612. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 transfer(330444 XML default)
  613. 2021-12-23 07:20:46.526763 99.37% [DEBUG] switch_ivr.c:2289 (sofia/default/9693017122@pkcall.astppbilling.org:5044) State Change CS_EXECUTE -> CS_ROUTING
  614. 2021-12-23 07:20:46.526763 99.37% [NOTICE] switch_ivr.c:2296 Transfer sofia/default/9693017122@pkcall.astppbilling.org:5044 to XML[330444@default]
  615. 2021-12-23 07:20:46.526763 99.37% [DEBUG] switch_cpp.cpp:1209 sofia/default/9693017122@pkcall.astppbilling.org:5044 destroy/unlink session from object
  616. 2021-12-23 07:20:46.526763 99.37% [DEBUG] switch_core_state_machine.c:647 (sofia/default/9693017122@pkcall.astppbilling.org:5044) State EXECUTE going to sleep
  617. 2021-12-23 07:20:46.526763 99.37% [DEBUG] switch_core_state_machine.c:581 (sofia/default/9693017122@pkcall.astppbilling.org:5044) Running State Change CS_ROUTING (Cur 1 Tot 41)
  618. 2021-12-23 07:20:46.526763 99.37% [DEBUG] switch_channel.c:2380 (sofia/default/9693017122@pkcall.astppbilling.org:5044) Callstate Change ACTIVE -> RINGING
  619. 2021-12-23 07:20:46.526763 99.37% [DEBUG] switch_core_state_machine.c:640 (sofia/default/9693017122@pkcall.astppbilling.org:5044) State ROUTING
  620. 2021-12-23 07:20:46.526763 99.37% [DEBUG] mod_sofia.c:158 sofia/default/9693017122@pkcall.astppbilling.org:5044 SOFIA ROUTING
  621. 2021-12-23 07:20:46.526763 99.37% [DEBUG] switch_core_state_machine.c:230 sofia/default/9693017122@pkcall.astppbilling.org:5044 Standard ROUTING
  622. 2021-12-23 07:20:46.526763 99.37% [INFO] mod_dialplan_xml.c:639 Processing 9693017122 <9693017122>->330444 in context default
  623. 2021-12-23 07:20:46.526763 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  624. 2021-12-23 07:20:46.526763 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  625. 2021-12-23 07:20:46.566707 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] [feature_code_call_transfer] Blind Call Flag: 0
  626. 2021-12-23 07:20:46.566707 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 330444
  627. 2021-12-23 07:20:46.566707 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '330444' limit 1
  628. 2021-12-23 07:20:46.566707 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '330444' AND status=0 limit 1
  629. 2021-12-23 07:20:46.566707 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [Fifo Condition Check] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '330444' and status=0 LIMIT 1
  630. 2021-12-23 07:20:46.566707 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] SOURCE NUMBER9693017122
  631. 2021-12-23 07:20:46.566707 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  632. 2021-12-23 07:20:46.566707 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL SOURCE] Query :SELECT domain,accountid FROM domains WHERE domain = 'payfast.astppbilling.org' limit 1
  633. 2021-12-23 07:20:46.566707 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL DOMAIN] Query :SELECT accountid from sip_devices where accountid = '7' and username = '330444' limit 1
  634. 2021-12-23 07:20:46.566707 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number  : 9693017122 / 9693017122
  635. 2021-12-23 07:20:46.566707 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="330444" LIMIT 1
  636. 2021-12-23 07:20:46.586708 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID_CALL_TRANSFER] 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.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 ="330444" LIMIT 1
  637. 2021-12-23 07:20:46.586708 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  638. 2021-12-23 07:20:46.586708 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : inbound
  639. 2021-12-23 07:20:46.586708 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] [Accountcode : 9693017122]
  640. 2021-12-23 07:20:46.586708 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "9693017122" AND deleted = 0 limit 1
  641. 2021-12-23 07:20:46.586708 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="330444" AND (accountid = 0 OR status = 1) LIMIT 1
  642. 2021-12-23 07:20:46.586708 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] Call Direction : inbound
  643. 2021-12-23 07:20:46.586708 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] DID ACCOUNT ID : 7
  644. 2021-12-23 07:20:46.586708 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] Query :SELECT *,P.id as package_id,P.product_id as product_id FROM packages_view as P inner join package_patterns as PKGPTR on P.product_id = PKGPTR.product_id WHERE (patterns = '^330444.*' OR patterns = '^33044.*' OR patterns = '^3304.*' OR patterns = '^330.*' OR patterns = '^33.*' OR patterns = '^3.*' OR patterns ='--') AND accountid = 7 ORDER BY LENGTH(PKGPTR.patterns) DESC
  645. 2021-12-23 07:20:46.606711 99.37% [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 ="330444" AND A.accountid = '4' limit 1
  646. 2021-12-23 07:20:46.606711 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 330444
  647. 2021-12-23 07:20:46.606711 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="330444" LIMIT 1
  648. 2021-12-23 07:20:46.606711 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID_CALL_TRANSFER] 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.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 ="330444" LIMIT 1
  649. 2021-12-23 07:20:46.606711 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  650. 2021-12-23 07:20:46.606711 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] New Call Direction : inbound
  651. 2021-12-23 07:20:46.606711 99.37% [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 = '330444' OR number = '33044' OR number = '3304' OR number = '330' OR number = '33' OR number = '3' OR number ='--') OR (number = '330444*' OR number = '33044*' OR number = '3304*' OR number = '330*' OR number = '33*' OR number = '3*' OR number ='--') OR (number = '9693017122' OR number = '969301712' OR number = '96930171' OR number = '9693017' OR number = '969301' OR number = '96930' OR number = '9693' OR number = '969' OR number = '96' OR number = '9' OR number ='--') OR (number = '9693017122*' OR number = '969301712*' OR number = '96930171*' OR number = '9693017*' OR number = '969301*' OR number = '96930*' OR number = '9693*' OR number = '969*' OR number = '96*' OR number = '9*' OR number ='--')) AND status=0 AND accountid = 0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC
  652. 2021-12-23 07:20:46.606711 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Call Barring Status : -1
  653. 2021-12-23 07:20:46.606711 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '330444' OR routing_prefix = '33044' OR routing_prefix = '3304' OR routing_prefix = '330' OR routing_prefix = '33' OR routing_prefix = '3' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1
  654. 2021-12-23 07:20:46.606711 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Account Information ===================
  655. 2021-12-23 07:20:46.606711 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] User id : 4
  656. 2021-12-23 07:20:46.606711 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Account code : 9693017122
  657. 2021-12-23 07:20:46.606711 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Balance : 394.7
  658. 2021-12-23 07:20:46.606711 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  659. 2021-12-23 07:20:46.606711 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Ratecard id : 1
  660. 2021-12-23 07:20:46.606711 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] CID Pool : 0
  661. 2021-12-23 07:20:46.606711 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================================================
  662. 2021-12-23 07:20:46.606711 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0
  663. 2021-12-23 07:20:46.606711 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :inbound
  664. 2021-12-23 07:20:46.606711 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="330444" LIMIT 1
  665. 2021-12-23 07:20:46.606711 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID_CALL_TRANSFER] 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.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 ="330444" LIMIT 1
  666. 2021-12-23 07:20:46.626709 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  667. 2021-12-23 07:20:46.626709 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP]  Call Direction : inbound
  668. 2021-12-23 07:20:46.626709 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information ===================
  669. 2021-12-23 07:20:46.626709 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 2
  670. 2021-12-23 07:20:46.626709 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
  671. 2021-12-23 07:20:46.626709 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0
  672. 2021-12-23 07:20:46.626709 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 0.00000
  673. 2021-12-23 07:20:46.626709 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Comment : 330444
  674. 2021-12-23 07:20:46.626709 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 88
  675. 2021-12-23 07:20:46.626709 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 4
  676. 2021-12-23 07:20:46.626709 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================
  677. 2021-12-23 07:20:46.626709 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your394.7 balance Accountid 4 !!!
  678. 2021-12-23 07:20:46.626709 99.37% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length  :: 100
  679. 2021-12-23 07:20:46.626709 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] Call Max Length Duration : 100 minutes
  680. 2021-12-23 07:20:46.626709 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] INB_FREE:TRUE
  681. 2021-12-23 07:20:46.626709 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] free_inbound:1
  682. 2021-12-23 07:20:46.626709 99.37% [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 = 4 AND status=0 LIMIT 1
  683. 2021-12-23 07:20:46.626709 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "7" AND deleted = 0 limit 1
  684. 2021-12-23 07:20:46.626709 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Actual CustomerInfo XML:4
  685. 2021-12-23 07:20:46.626709 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Userinfo XML:4
  686. 2021-12-23 07:20:46.626709 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Actual CustomerInfo XML : 4
  687. 2021-12-23 07:20:46.626709 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_domain_info] Query :SELECT * FROM domains WHERE accountid = 7 limit 1
  688. 2021-12-23 07:20:46.626709 99.37% [WARNING] switch_cpp.cpp:1465 [ASTPP] [user_domain] User Domain : payfast.astppbilling.org
  689. 2021-12-23 07:20:46.626709 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP]  Maxlength : 100
  690. 2021-12-23 07:20:46.626709 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  691. 2021-12-23 07:20:46.626709 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] [XML] Customer Recording Flag : 1
  692. 2021-12-23 07:20:46.626709 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] [PBX] Call Direction : inbound
  693. 2021-12-23 07:20:46.626709 99.37% [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 = "1" AND accounts.status = 0
  694. 2021-12-23 07:20:46.626709 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_domain_info] Query :SELECT * FROM domains WHERE accountid = 7 limit 1
  695. 2021-12-23 07:20:46.626709 99.37% [WARNING] switch_cpp.cpp:1465 [ASTPP] [XML] User Domain : payfast.astppbilling.org
  696. 2021-12-23 07:20:46.626709 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_accounts_info] Query :SELECT * FROM accounts WHERE id = 7  and status = 0 limit 1
  697. 2021-12-23 07:20:46.626709 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [XML] Custom Function Name :: custom_inbound_13
  698. 2021-12-23 07:20:46.626709 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] custom_function_name::::::::::1343:::::::::::::::2
  699. 2021-12-23 07:20:46.626709 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] custom_call_id 1
  700. 2021-12-23 07:20:46.626709 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [GET_call_flow_QUERY] Query :SELECT * from call_flow WHERE id = '1' and status =0 LIMIT 1
  701. 2021-12-23 07:20:46.626709 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] [custom_call] priority_array : 3
  702. 2021-12-23 07:20:46.626709 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] [custom_call] priority : 3
  703. 2021-12-23 07:20:46.626709 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] [custom_call] no_answer_call_type : 10
  704. 2021-12-23 07:20:46.626709 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] [custom_call] extensions : 1
  705. 2021-12-23 07:20:46.626709 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] [PBX] call_type : IVR
  706. 2021-12-23 07:20:46.626709 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [GET_IVR_INFO] Query :SELECT * from pbx_ivr_specification WHERE id = 1 and status=0 LIMIT 1
  707. 2021-12-23 07:20:46.646709 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [GET_RING_GROUP_INFO] Query :SELECT file_name from pbx_recording WHERE id = '11' LIMIT 1
  708. 2021-12-23 07:20:46.646709 99.37% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== announcement=File name==================Ring_Back__.wav
  709. 2021-12-23 07:20:46.646709 99.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Generated XML:<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  710. <document type="freeswitch/xml">
  711. <section name="dialplan" description="ASTPP Dialplan">
  712. <context name="default">
  713. <extension name="330444">
  714. <condition field="destination_number" expression="330444">
  715. <action application="set" data="effective_destination_number=330444"/>
  716. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
  717. <action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>
  718. <action application="set" data="callstart=2021-12-23 07:20:46"/>
  719. <action application="set" data="hangup_after_bridge=true"/>
  720. <action application="set" data="continue_on_fail=TRUE"/>
  721. <action application="set" data="account_id=4"/>
  722. <action application="set" data="parent_id=0"/>
  723. <action application="set" data="entity_id=0"/>
  724. <action application="set" data="call_processed=internal"/>
  725. <action application="set" data="call_direction=inbound"/>
  726. <action application="set" data="accountname=default"/>
  727. <action application="set" data="origination_rates_did=ID:2|CODE:^330444.*|DESTINATION:330444|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:13|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:88|ACCID:7"/>
  728. <action application="set" data="origination_rates=0"/>
  729. <action application="set" data="original_caller_id_name=9693017122"/>
  730. <action application="set" data="original_caller_id_number=9693017122"/>
  731. <action application="set" data="effective_caller_id_name=9693017122"/>
  732. <action application="set" data="effective_caller_id_number=9693017122"/>
  733. <action application="set" data="receiver_accid=7"/>
  734. <action application="set" data="did_id=2"/>
  735. <action application="set" data="transfer_call_type=4"/>
  736. <action application="set" data="transfer_extensions="/>
  737. <action application="set" data="busy_status=1"/>
  738. <action application="set" data="no_answer_status=1"/>
  739. <action application="set" data="always_status=1"/>
  740. <action application="set" data="transfer_status=1"/>
  741. <action application="set" data="variable_sip_to_host=${domain_name}"/>
  742. <action application="export" data="domain_name=payfast.astppbilling.org"/>
  743. <action application="export" data="sip_to_host=payfast.astppbilling.org"/>
  744. <action application="export" data="presence_data=x|||Customer Of(7135873514)|||||||||DID|||117.247.91.162"/>
  745. <action application="export" data="call_type=13"/>
  746. <action application="set" data="custom_priority=3"/>
  747. <action application="set" data="custom_call_id=1"/>
  748. <action application="set" data="original_did_number=330444"/>
  749. <action application="set" data="ringback=/var/www/html/astpp//upload/pbx/Ring_Back__.wav"/>
  750. <action application="set" data="module_name=pbx"/>
  751. <action application="set" data="sip_h_P-call_type=custom_forward"/>
  752. <action application="set" data="sip_h_P-Accountcode=7"/>
  753. <action application="set" data="opensips_flag=1"/>
  754. <action application="set" data="originate_disposition=no_key_press"/>
  755. <action application="set" data="variable_sip_to_host=payfast.astppbilling.org"/>
  756. <action application="set" data="userinfo_id=4"/>
  757. <action application="set" data="variable_sip_to_host=payfast.astppbilling.org"/>
  758. <action application="set" data="original_did_number=330444"/>
  759.     <action application="answer"/>
  760. <action application="ivr" data="IVR_Reseller_PK_Cust6"/>
  761. <action application="lua" data="astpp/lib/pbx/astpp-custom_call_flow.lua"/>
  762. </condition>
  763. </extension>
  764. </context>
  765. </section>
  766. </document>
  767. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 parsing [default->330444] continue=false
  768. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Regex (PASS) [330444] destination_number(330444) =~ /330444/ break=on-false
  769. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(effective_destination_number=330444)
  770. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(bridge_pre_execute_bleg_app=sched_hangup)
  771. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  772. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(callstart=2021-12-23 07:20:46)
  773. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(hangup_after_bridge=true)
  774. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(continue_on_fail=TRUE)
  775. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(account_id=4)
  776. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(parent_id=0)
  777. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(entity_id=0)
  778. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(call_processed=internal)
  779. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(call_direction=inbound)
  780. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(accountname=default)
  781. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(origination_rates_did=ID:2|CODE:^330444.*|DESTINATION:330444|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:13|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:88|ACCID:7)
  782. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(origination_rates=0)
  783. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(original_caller_id_name=9693017122)
  784. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(original_caller_id_number=9693017122)
  785. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(effective_caller_id_name=9693017122)
  786. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(effective_caller_id_number=9693017122)
  787. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(receiver_accid=7)
  788. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(did_id=2)
  789. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(transfer_call_type=4)
  790. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(transfer_extensions=)
  791. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(busy_status=1)
  792. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(no_answer_status=1)
  793. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(always_status=1)
  794. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(transfer_status=1)
  795. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(variable_sip_to_host=${domain_name})
  796. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action export(domain_name=payfast.astppbilling.org)
  797. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action export(sip_to_host=payfast.astppbilling.org)
  798. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action export(presence_data=x|||Customer Of(7135873514)|||||||||DID|||117.247.91.162)
  799. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action export(call_type=13)
  800. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(custom_priority=3)
  801. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(custom_call_id=1)
  802. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(original_did_number=330444)
  803. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(ringback=/var/www/html/astpp//upload/pbx/Ring_Back__.wav)
  804. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(module_name=pbx)
  805. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(sip_h_P-call_type=custom_forward)
  806. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(sip_h_P-Accountcode=7)
  807. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(opensips_flag=1)
  808. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(originate_disposition=no_key_press)
  809. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(variable_sip_to_host=payfast.astppbilling.org)
  810. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(userinfo_id=4)
  811. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(variable_sip_to_host=payfast.astppbilling.org)
  812. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action set(original_did_number=330444)
  813. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action answer()
  814. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action ivr(IVR_Reseller_PK_Cust6)
  815. Dialplan: sofia/default/9693017122@pkcall.astppbilling.org:5044 Action lua(astpp/lib/pbx/astpp-custom_call_flow.lua)
  816. 2021-12-23 07:20:46.646709 99.37% [DEBUG] switch_core_state_machine.c:281 (sofia/default/9693017122@pkcall.astppbilling.org:5044) State Change CS_ROUTING -> CS_EXECUTE
  817. 2021-12-23 07:20:46.646709 99.37% [DEBUG] switch_core_state_machine.c:640 (sofia/default/9693017122@pkcall.astppbilling.org:5044) State ROUTING going to sleep
  818. 2021-12-23 07:20:46.646709 99.37% [DEBUG] switch_core_state_machine.c:581 (sofia/default/9693017122@pkcall.astppbilling.org:5044) Running State Change CS_EXECUTE (Cur 1 Tot 41)
  819. 2021-12-23 07:20:46.646709 99.37% [DEBUG] switch_channel.c:2382 (sofia/default/9693017122@pkcall.astppbilling.org:5044) Callstate Change RINGING -> ACTIVE
  820. 2021-12-23 07:20:46.646709 99.37% [DEBUG] switch_core_state_machine.c:647 (sofia/default/9693017122@pkcall.astppbilling.org:5044) State EXECUTE
  821. 2021-12-23 07:20:46.646709 99.37% [DEBUG] mod_sofia.c:213 sofia/default/9693017122@pkcall.astppbilling.org:5044 SOFIA EXECUTE
  822. 2021-12-23 07:20:46.646709 99.37% [DEBUG] switch_core_state_machine.c:323 sofia/default/9693017122@pkcall.astppbilling.org:5044 Standard EXECUTE
  823. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(effective_destination_number=330444)
  824. 2021-12-23 07:20:46.646709 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [effective_destination_number]=[330444]
  825. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(bridge_pre_execute_bleg_app=sched_hangup)
  826. 2021-12-23 07:20:46.646709 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [bridge_pre_execute_bleg_app]=[sched_hangup]
  827. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  828. 2021-12-23 07:20:46.646709 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [bridge_pre_execute_bleg_data]=[+6000 normal_clearing]
  829. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(callstart=2021-12-23 07:20:46)
  830. 2021-12-23 07:20:46.646709 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [callstart]=[2021-12-23 07:20:46]
  831. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(hangup_after_bridge=true)
  832. 2021-12-23 07:20:46.646709 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [hangup_after_bridge]=[true]
  833. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(continue_on_fail=TRUE)
  834. 2021-12-23 07:20:46.646709 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [continue_on_fail]=[TRUE]
  835. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(account_id=4)
  836. 2021-12-23 07:20:46.646709 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [account_id]=[4]
  837. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(parent_id=0)
  838. 2021-12-23 07:20:46.646709 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [parent_id]=[0]
  839. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(entity_id=0)
  840. 2021-12-23 07:20:46.646709 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [entity_id]=[0]
  841. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(call_processed=internal)
  842. 2021-12-23 07:20:46.646709 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [call_processed]=[internal]
  843. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(call_direction=inbound)
  844. 2021-12-23 07:20:46.646709 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [call_direction]=[inbound]
  845. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(accountname=default)
  846. 2021-12-23 07:20:46.646709 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [accountname]=[default]
  847. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(origination_rates_did=ID:2|CODE:^330444.*|DESTINATION:330444|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:13|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:88|ACCID:7)
  848. 2021-12-23 07:20:46.646709 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [origination_rates_did]=[ID:2|CODE:^330444.*|DESTINATION:330444|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:13|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:88|ACCID:7]
  849. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(origination_rates=0)
  850. 2021-12-23 07:20:46.646709 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [origination_rates]=[0]
  851. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(original_caller_id_name=9693017122)
  852. 2021-12-23 07:20:46.646709 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [original_caller_id_name]=[9693017122]
  853. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(original_caller_id_number=9693017122)
  854. 2021-12-23 07:20:46.646709 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [original_caller_id_number]=[9693017122]
  855. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(effective_caller_id_name=9693017122)
  856. 2021-12-23 07:20:46.646709 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [effective_caller_id_name]=[9693017122]
  857. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(effective_caller_id_number=9693017122)
  858. 2021-12-23 07:20:46.646709 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [effective_caller_id_number]=[9693017122]
  859. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(receiver_accid=7)
  860. 2021-12-23 07:20:46.646709 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [receiver_accid]=[7]
  861. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(did_id=2)
  862. 2021-12-23 07:20:46.646709 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [did_id]=[2]
  863. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(transfer_call_type=4)
  864. 2021-12-23 07:20:46.646709 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [transfer_call_type]=[4]
  865. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(transfer_extensions=)
  866. 2021-12-23 07:20:46.646709 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [transfer_extensions]=[UNDEF]
  867. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(busy_status=1)
  868. 2021-12-23 07:20:46.646709 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [busy_status]=[1]
  869. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(no_answer_status=1)
  870. 2021-12-23 07:20:46.646709 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [no_answer_status]=[1]
  871. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(always_status=1)
  872. 2021-12-23 07:20:46.646709 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [always_status]=[1]
  873. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(transfer_status=1)
  874. 2021-12-23 07:20:46.646709 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [transfer_status]=[1]
  875. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(variable_sip_to_host=payfast.astppbilling.org)
  876. 2021-12-23 07:20:46.646709 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [variable_sip_to_host]=[payfast.astppbilling.org]
  877. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 export(domain_name=payfast.astppbilling.org)
  878. 2021-12-23 07:20:46.646709 99.37% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [domain_name]=[payfast.astppbilling.org]
  879. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 export(sip_to_host=payfast.astppbilling.org)
  880. 2021-12-23 07:20:46.646709 99.37% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [sip_to_host]=[payfast.astppbilling.org]
  881. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 export(presence_data=x|||Customer Of(7135873514)|||||||||DID|||117.247.91.162)
  882. 2021-12-23 07:20:46.646709 99.37% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [presence_data]=[x|||Customer Of(7135873514)|||||||||DID|||117.247.91.162]
  883. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 export(call_type=13)
  884. 2021-12-23 07:20:46.646709 99.37% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [call_type]=[13]
  885. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(custom_priority=3)
  886. 2021-12-23 07:20:46.646709 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [custom_priority]=[3]
  887. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(custom_call_id=1)
  888. 2021-12-23 07:20:46.646709 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [custom_call_id]=[1]
  889. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(original_did_number=330444)
  890. 2021-12-23 07:20:46.646709 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [original_did_number]=[330444]
  891. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(ringback=/var/www/html/astpp//upload/pbx/Ring_Back__.wav)
  892. 2021-12-23 07:20:46.646709 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [ringback]=[/var/www/html/astpp//upload/pbx/Ring_Back__.wav]
  893. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(module_name=pbx)
  894. 2021-12-23 07:20:46.646709 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [module_name]=[pbx]
  895. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(sip_h_P-call_type=custom_forward)
  896. 2021-12-23 07:20:46.646709 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [sip_h_P-call_type]=[custom_forward]
  897. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(sip_h_P-Accountcode=7)
  898. 2021-12-23 07:20:46.666705 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [sip_h_P-Accountcode]=[7]
  899. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(opensips_flag=1)
  900. 2021-12-23 07:20:46.666705 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [opensips_flag]=[1]
  901. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(originate_disposition=no_key_press)
  902. 2021-12-23 07:20:46.666705 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [originate_disposition]=[no_key_press]
  903. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(variable_sip_to_host=payfast.astppbilling.org)
  904. 2021-12-23 07:20:46.666705 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [variable_sip_to_host]=[payfast.astppbilling.org]
  905. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(userinfo_id=4)
  906. 2021-12-23 07:20:46.666705 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [userinfo_id]=[4]
  907. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(variable_sip_to_host=payfast.astppbilling.org)
  908. 2021-12-23 07:20:46.666705 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [variable_sip_to_host]=[payfast.astppbilling.org]
  909. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 set(original_did_number=330444)
  910. 2021-12-23 07:20:46.666705 99.37% [DEBUG] mod_dptools.c:1685 SET sofia/default/9693017122@pkcall.astppbilling.org:5044 [original_did_number]=[330444]
  911. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 answer()
  912. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 ivr(IVR_Reseller_PK_Cust6)
  913. 2021-12-23 07:20:46.666705 99.37% [DEBUG] switch_ivr_menu.c:746 switch_ivr_menu_stack_xml_add binding 'menu-exit'
  914. 2021-12-23 07:20:46.666705 99.37% [DEBUG] switch_ivr_menu.c:746 switch_ivr_menu_stack_xml_add binding 'menu-sub'
  915. 2021-12-23 07:20:46.666705 99.37% [DEBUG] switch_ivr_menu.c:746 switch_ivr_menu_stack_xml_add binding 'menu-exec-app'
  916. 2021-12-23 07:20:46.666705 99.37% [DEBUG] switch_ivr_menu.c:746 switch_ivr_menu_stack_xml_add binding 'menu-play-sound'
  917. 2021-12-23 07:20:46.666705 99.37% [DEBUG] switch_ivr_menu.c:746 switch_ivr_menu_stack_xml_add binding 'menu-back'
  918. 2021-12-23 07:20:46.666705 99.37% [DEBUG] switch_ivr_menu.c:746 switch_ivr_menu_stack_xml_add binding 'menu-top'
  919. 2021-12-23 07:20:46.666705 99.37% [DEBUG] switch_ivr_menu.c:883 building menu 'IVR_Reseller_PK_Cust6'
  920. 2021-12-23 07:20:46.666705 99.37% [DEBUG] switch_ivr_menu.c:968 binding menu action 'menu-exec-app' to '8'
  921. 2021-12-23 07:20:46.666705 99.37% [DEBUG] switch_ivr_menu.c:968 binding menu action 'menu-exec-app' to '9'
  922. 2021-12-23 07:20:46.666705 99.37% [DEBUG] switch_ivr_menu.c:968 binding menu action 'menu-exec-app' to '7'
  923. 2021-12-23 07:20:46.666705 99.37% [DEBUG] switch_ivr_menu.c:968 binding menu action 'menu-exec-app' to '/^(\d{2,20})$/'
  924. 2021-12-23 07:20:46.666705 99.37% [DEBUG] switch_ivr_menu.c:486 Executing IVR menu IVR_Reseller_PK_Cust6
  925. 2021-12-23 07:20:46.666705 99.37% [WARNING] mod_sndfile.c:281 Error Opening File [/var/www/html/astpp/upload/pbx/welcome_v6_.wav] [File contains data in an unknown format.]
  926. 2021-12-23 07:20:46.666705 99.37% [DEBUG] switch_ivr_menu.c:378 waiting for 20/20 digits t/o 2000
  927. 2021-12-23 07:20:56.666730 98.40% [DEBUG] switch_ivr_menu.c:425 digits ''
  928. 2021-12-23 07:20:56.666730 98.40% [WARNING] mod_sndfile.c:281 Error Opening File [/var/www/html/astpp/upload/pbx/welcome_v6_.wav] [File contains data in an unknown format.]
  929. 2021-12-23 07:20:56.666730 98.40% [DEBUG] switch_ivr_menu.c:378 waiting for 20/20 digits t/o 2000
  930. 2021-12-23 07:21:06.686731 95.23% [DEBUG] switch_ivr_menu.c:425 digits ''
  931. 2021-12-23 07:21:06.686731 95.23% [WARNING] mod_sndfile.c:281 Error Opening File [/var/www/html/astpp/upload/pbx/welcome_v6_.wav] [File contains data in an unknown format.]
  932. 2021-12-23 07:21:06.686731 95.23% [DEBUG] switch_ivr_menu.c:378 waiting for 20/20 digits t/o 2000
  933. 2021-12-23 07:21:16.706735 95.13% [DEBUG] switch_ivr_menu.c:425 digits ''
  934. 2021-12-23 07:21:16.706735 95.13% [DEBUG] switch_ivr_menu.c:516 Maximum timeouts
  935. 2021-12-23 07:21:16.706735 95.13% [DEBUG] switch_ivr_menu.c:676 exit-sound '(null)'
  936. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 lua(astpp/lib/pbx/astpp-custom_call_flow.lua)
  937. 2021-12-23 07:21:16.706735 95.13% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  938. 2021-12-23 07:21:16.726712 95.13% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [GET_call_flow_QUERY] Query :SELECT * from call_flow WHERE id = '1' and status =0 LIMIT 1
  939. 2021-12-23 07:21:16.726712 95.13% [DEBUG] switch_cpp.cpp:773 CoreSession::setVariable('custom_priority', '3')
  940. 2021-12-23 07:21:16.726712 95.13% [DEBUG] switch_cpp.cpp:773 CoreSession::setVariable('no_answer_number', '(null)')
  941. EXECUTE [depth=0] sofia/default/9693017122@pkcall.astppbilling.org:5044 transfer(330444 XML default)
  942. 2021-12-23 07:21:16.726712 95.13% [DEBUG] switch_ivr.c:2289 (sofia/default/9693017122@pkcall.astppbilling.org:5044) State Change CS_EXECUTE -> CS_ROUTING
  943. 2021-12-23 07:21:16.726712 95.13% [NOTICE] switch_ivr.c:2296 Transfer sofia/default/9693017122@pkcall.astppbilling.org:5044 to XML[330444@default]
  944. 2021-12-23 07:21:16.726712 95.13% [DEBUG] switch_cpp.cpp:1209 sofia/default/9693017122@pkcall.astppbilling.org:5044 destroy/unlink session from object
  945. 2021-12-23 07:21:16.726712 95.13% [DEBUG] switch_core_state_machine.c:647 (sofia/default/9693017122@pkcall.astppbilling.org:5044) State EXECUTE going to sleep
  946. 2021-12-23 07:21:16.726712 95.13% [DEBUG] switch_core_state_machine.c:581 (sofia/default/9693017122@pkcall.astppbilling.org:5044) Running State Change CS_ROUTING (Cur 1 Tot 41)
  947. 2021-12-23 07:21:16.726712 95.13% [DEBUG] switch_channel.c:2380 (sofia/default/9693017122@pkcall.astppbilling.org:5044) Callstate Change ACTIVE -> RINGING
  948. 2021-12-23 07:21:16.726712 95.13% [DEBUG] switch_core_state_machine.c:640 (sofia/default/9693017122@pkcall.astppbilling.org:5044) State ROUTING
  949. 2021-12-23 07:21:16.726712 95.13% [DEBUG] mod_sofia.c:158 sofia/default/9693017122@pkcall.astppbilling.org:5044 SOFIA ROUTING
  950. 2021-12-23 07:21:16.726712 95.13% [DEBUG] switch_core_state_machine.c:230 sofia/default/9693017122@pkcall.astppbilling.org:5044 Standard ROUTING
  951. 2021-12-23 07:21:16.726712 95.13% [INFO] mod_dialplan_xml.c:639 Processing 9693017122 <9693017122>->330444 in context default
  952. 2021-12-23 07:21:16.726712 95.13% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  953. 2021-12-23 07:21:16.726712 95.13% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  954. 2021-12-23 07:21:16.746709 95.13% [INFO] switch_cpp.cpp:1465 [ASTPP] [feature_code_call_transfer] Blind Call Flag: 0
  955. 2021-12-23 07:21:16.746709 95.13% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 330444
  956. 2021-12-23 07:21:16.746709 95.13% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '330444' limit 1
  957. 2021-12-23 07:21:16.746709 95.13% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '330444' AND status=0 limit 1
  958. 2021-12-23 07:21:16.746709 95.13% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [Fifo Condition Check] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '330444' and status=0 LIMIT 1
  959. 2021-12-23 07:21:16.746709 95.13% [INFO] switch_cpp.cpp:1465 [ASTPP] SOURCE NUMBER9693017122
  960. 2021-12-23 07:21:16.746709 95.13% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  961. 2021-12-23 07:21:16.746709 95.13% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL SOURCE] Query :SELECT domain,accountid FROM domains WHERE domain = 'payfast.astppbilling.org' limit 1
  962. 2021-12-23 07:21:16.746709 95.13% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL DOMAIN] Query :SELECT accountid from sip_devices where accountid = '7' and username = '330444' limit 1
  963. 2021-12-23 07:21:16.746709 95.13% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number  : 9693017122 / 9693017122
  964. 2021-12-23 07:21:16.746709 95.13% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_domain_info] Query :SELECT * FROM domains WHERE accountid = 7 limit 1
  965. 2021-12-23 07:21:16.746709 95.13% [WARNING] switch_cpp.cpp:1465 [ASTPP] [user_domain] user_domainpayfast.astppbilling.org
  966. 2021-12-23 07:21:16.746709 95.13% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="330444" LIMIT 1
  967. 2021-12-23 07:21:16.766712 95.13% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID_CALL_TRANSFER] 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.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 ="330444" LIMIT 1
  968. 2021-12-23 07:21:16.766712 95.13% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  969. 2021-12-23 07:21:16.766712 95.13% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : inbound
  970. 2021-12-23 07:21:16.766712 95.13% [INFO] switch_cpp.cpp:1465 [ASTPP] [Accountcode : 7]
  971. 2021-12-23 07:21:16.766712 95.13% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "7" AND deleted = 0 limit 1
  972. 2021-12-23 07:21:16.766712 95.13% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="330444" AND (accountid = 0 OR status = 1) LIMIT 1
  973. 2021-12-23 07:21:16.766712 95.13% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] Call Direction : inbound
  974. 2021-12-23 07:21:16.766712 95.13% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] DID ACCOUNT ID : 7
  975. 2021-12-23 07:21:16.766712 95.13% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] Query :SELECT *,P.id as package_id,P.product_id as product_id FROM packages_view as P inner join package_patterns as PKGPTR on P.product_id = PKGPTR.product_id WHERE (patterns = '^330444.*' OR patterns = '^33044.*' OR patterns = '^3304.*' OR patterns = '^330.*' OR patterns = '^33.*' OR patterns = '^3.*' OR patterns ='--') AND accountid = 7 ORDER BY LENGTH(PKGPTR.patterns) DESC
  976. 2021-12-23 07:21:16.766712 95.13% [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 ="330444" AND A.accountid = '7' limit 1
  977. 2021-12-23 07:21:16.786712 95.13% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 330444
  978. 2021-12-23 07:21:16.786712 95.13% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="330444" LIMIT 1
  979. 2021-12-23 07:21:16.786712 95.13% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID_CALL_TRANSFER] 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.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 ="330444" LIMIT 1
  980. 2021-12-23 07:21:16.786712 95.13% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  981. 2021-12-23 07:21:16.786712 95.13% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] New Call Direction : inbound
  982. 2021-12-23 07:21:16.786712 95.13% [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 = '330444' OR number = '33044' OR number = '3304' OR number = '330' OR number = '33' OR number = '3' OR number ='--') OR (number = '330444*' OR number = '33044*' OR number = '3304*' OR number = '330*' OR number = '33*' OR number = '3*' OR number ='--') OR (number = '9693017122' OR number = '969301712' OR number = '96930171' OR number = '9693017' OR number = '969301' OR number = '96930' OR number = '9693' OR number = '969' OR number = '96' OR number = '9' OR number ='--') OR (number = '9693017122*' OR number = '969301712*' OR number = '96930171*' OR number = '9693017*' OR number = '969301*' OR number = '96930*' OR number = '9693*' OR number = '969*' OR number = '96*' OR number = '9*' OR number ='--')) AND status=0 AND accountid = 0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC
  983. 2021-12-23 07:21:16.786712 95.13% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Call Barring Status : -1
  984. 2021-12-23 07:21:16.786712 95.13% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '330444' OR routing_prefix = '33044' OR routing_prefix = '3304' OR routing_prefix = '330' OR routing_prefix = '33' OR routing_prefix = '3' OR routing_prefix ='--') AND status = 0 and reseller_id = 6 limit 1
  985. 2021-12-23 07:21:16.786712 95.13% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Account Information ===================
  986. 2021-12-23 07:21:16.786712 95.13% [INFO] switch_cpp.cpp:1465 [ASTPP] User id : 7
  987. 2021-12-23 07:21:16.786712 95.13% [INFO] switch_cpp.cpp:1465 [ASTPP] Account code : 7135873514
  988. 2021-12-23 07:21:16.786712 95.13% [INFO] switch_cpp.cpp:1465 [ASTPP] Balance : 395
  989. 2021-12-23 07:21:16.786712 95.13% [INFO] switch_cpp.cpp:1465 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  990. 2021-12-23 07:21:16.786712 95.13% [INFO] switch_cpp.cpp:1465 [ASTPP] Ratecard id : 2
  991. 2021-12-23 07:21:16.786712 95.13% [INFO] switch_cpp.cpp:1465 [ASTPP] CID Pool : 0
  992. 2021-12-23 07:21:16.786712 95.13% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================================================
  993. 2021-12-23 07:21:16.786712 95.13% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 2 AND status = 0
  994. 2021-12-23 07:21:16.786712 95.13% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :inbound
  995. 2021-12-23 07:21:16.786712 95.13% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="330444" LIMIT 1
  996. 2021-12-23 07:21:16.786712 95.13% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID_CALL_TRANSFER] 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.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 ="330444" LIMIT 1
  997. 2021-12-23 07:21:16.806711 95.13% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  998. 2021-12-23 07:21:16.806711 95.13% [INFO] switch_cpp.cpp:1465 [ASTPP]  Call Direction : inbound
  999. 2021-12-23 07:21:16.806711 95.13% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information ===================
  1000. 2021-12-23 07:21:16.806711 95.13% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 2
  1001. 2021-12-23 07:21:16.806711 95.13% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
  1002. 2021-12-23 07:21:16.806711 95.13% [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0
  1003. 2021-12-23 07:21:16.806711 95.13% [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 0.00000
  1004. 2021-12-23 07:21:16.806711 95.13% [INFO] switch_cpp.cpp:1465 [ASTPP] Comment : 330444
  1005. 2021-12-23 07:21:16.806711 95.13% [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 88
  1006. 2021-12-23 07:21:16.806711 95.13% [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 7
  1007. 2021-12-23 07:21:16.806711 95.13% [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================
  1008. 2021-12-23 07:21:16.806711 95.13% [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your395 balance Accountid 7 !!!
  1009. 2021-12-23 07:21:16.806711 95.13% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length  :: 100
  1010. 2021-12-23 07:21:16.806711 95.13% [NOTICE] switch_cpp.cpp:1465 [ASTPP] FINDING LIMIT FOR RESELLER: 6
  1011. 2021-12-23 07:21:16.806711 95.13% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "6" AND deleted = 0 limit 1
  1012. 2021-12-23 07:21:16.806711 95.13% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Reseller Information ===================
  1013. 2021-12-23 07:21:16.806711 95.13% [INFO] switch_cpp.cpp:1465 [ASTPP] User id : 6
  1014. 2021-12-23 07:21:16.806711 95.13% [INFO] switch_cpp.cpp:1465 [ASTPP] Account code : 4245350336
  1015. 2021-12-23 07:21:16.806711 95.13% [INFO] switch_cpp.cpp:1465 [ASTPP] Balance : 395
  1016. 2021-12-23 07:21:16.806711 95.13% [INFO] switch_cpp.cpp:1465 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  1017. 2021-12-23 07:21:16.806711 95.13% [INFO] switch_cpp.cpp:1465 [ASTPP] Ratecard id : 1
  1018. 2021-12-23 07:21:16.806711 95.13% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0
  1019. 2021-12-23 07:21:16.806711 95.13% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :inbound
  1020. 2021-12-23 07:21:16.806711 95.13% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="330444" LIMIT 1
  1021. 2021-12-23 07:21:16.806711 95.13% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID_CALL_TRANSFER] 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.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 ="330444" LIMIT 1
  1022. 2021-12-23 07:21:16.806711 95.13% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  1023. 2021-12-23 07:21:16.806711 95.13% [INFO] switch_cpp.cpp:1465 [ASTPP]  Call Direction : inbound
  1024. 2021-12-23 07:21:16.806711 95.13% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information ===================
  1025. 2021-12-23 07:21:16.806711 95.13% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 2
  1026. 2021-12-23 07:21:16.806711 95.13% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
  1027. 2021-12-23 07:21:16.806711 95.13% [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0
  1028. 2021-12-23 07:21:16.806711 95.13% [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 0.00000
  1029. 2021-12-23 07:21:16.806711 95.13% [INFO] switch_cpp.cpp:1465 [ASTPP] Comment : 330444
  1030. 2021-12-23 07:21:16.806711 95.13% [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 88
  1031. 2021-12-23 07:21:16.806711 95.13% [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 6
  1032. 2021-12-23 07:21:16.806711 95.13% [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================
  1033. 2021-12-23 07:21:16.806711 95.13% [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your395 balance Accountid 6 !!!
  1034. 2021-12-23 07:21:16.806711 95.13% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length  :: 100
  1035. 2021-12-23 07:21:16.806711 95.13% [INFO] switch_cpp.cpp:1465 [ASTPP] Reseller xml_user_rates : ID:2|CODE:^330444.*|DESTINATION:330444|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:13|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:88|ACCID:7||ID:2|CODE:^330444.*|DESTINATION:330444|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:13|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:88|ACCID:7
  1036. 2021-12-23 07:21:16.806711 95.13% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================================================
  1037. 2021-12-23 07:21:16.806711 95.13% [INFO] switch_cpp.cpp:1465 [ASTPP] Lossless Routing Status : 1
  1038. 2021-12-23 07:21:16.806711 95.13% [INFO] switch_cpp.cpp:1465 [ASTPP] Call Max Length Duration : 100 minutes
  1039. 2021-12-23 07:21:16.806711 95.13% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] INB_FREE:TRUE
  1040. 2021-12-23 07:21:16.806711 95.13% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] free_inbound:1
  1041. 2021-12-23 07:21:16.806711 95.13% [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 = 7 AND status=0 LIMIT 1
  1042. 2021-12-23 07:21:16.806711 95.13% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "7" AND deleted = 0 limit 1
  1043. 2021-12-23 07:21:16.806711 95.13% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Actual CustomerInfo XML:7
  1044. 2021-12-23 07:21:16.806711 95.13% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Userinfo XML:7
  1045. 2021-12-23 07:21:16.806711 95.13% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Actual CustomerInfo XML : 7
  1046. 2021-12-23 07:21:16.806711 95.13% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_domain_info] Query :SELECT * FROM domains WHERE accountid = 7 limit 1
  1047. 2021-12-23 07:21:16.806711 95.13% [WARNING] switch_cpp.cpp:1465 [ASTPP] [user_domain] User Domain : payfast.astppbilling.org
  1048. 2021-12-23 07:21:16.806711 95.13% [INFO] switch_cpp.cpp:1465 [ASTPP]  Maxlength : 100
  1049. 2021-12-23 07:21:16.806711 95.13% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  1050. 2021-12-23 07:21:16.826711 95.13% [INFO] switch_cpp.cpp:1465 [ASTPP] [XML] Customer Recording Flag : 1
  1051. 2021-12-23 07:21:16.826711 95.13% [INFO] switch_cpp.cpp:1465 [ASTPP] [PBX] Call Direction : inbound
  1052. 2021-12-23 07:21:16.826711 95.13% [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 = "1" AND accounts.status = 0
  1053. 2021-12-23 07:21:16.826711 95.13% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_domain_info] Query :SELECT * FROM domains WHERE accountid = 7 limit 1
  1054. 2021-12-23 07:21:16.826711 95.13% [WARNING] switch_cpp.cpp:1465 [ASTPP] [XML] User Domain : payfast.astppbilling.org
  1055. 2021-12-23 07:21:16.826711 95.13% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_accounts_info] Query :SELECT * FROM accounts WHERE id = 7  and status = 0 limit 1
  1056. 2021-12-23 07:21:16.826711 95.13% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [XML] Custom Function Name :: custom_inbound_13
  1057. 2021-12-23 07:21:16.826711 95.13% [DEBUG] switch_cpp.cpp:1465 [ASTPP] custom_function_name::::::::::1343:::::::::::::::2
  1058. 2021-12-23 07:21:16.826711 95.13% [DEBUG] switch_cpp.cpp:1465 [ASTPP] custom_call_id 1
  1059. 2021-12-23 07:21:16.826711 95.13% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [GET_call_flow_QUERY] Query :SELECT * from call_flow WHERE id = '1' and status =0 LIMIT 1
  1060. 2021-12-23 07:21:16.826711 95.13% [ERR] mod_lua.cpp:202 ...freeswitch/scripts/astpp/lib/addons/astpp.customcall.lua:25: bad argument #1 to 'min' (number expected, got no value)
  1061. stack traceback:
  1062.         [C]: in function 'min'
  1063.         ...freeswitch/scripts/astpp/lib/addons/astpp.customcall.lua:25: in function '?'
  1064.         /usr/share/freeswitch/scripts/astpp/scripts/astpp.xml.lua:412: in function 'freeswitch_xml_inbound'
  1065.         ...hare/freeswitch/scripts/astpp/scripts/astpp.dialplan.lua:762: in main chunk
  1066.         [C]: in function 'dofile'
  1067.         /usr/share/freeswitch/scripts/astpp/astpp.lua:94: in main chunk
  1068. 2021-12-23 07:21:16.826711 95.13% [ERR] mod_lua.cpp:270 LUA script parse/execute error!
  1069. 2021-12-23 07:21:16.826711 95.13% [WARNING] mod_dialplan_xml.c:669 Context default not found
  1070. 2021-12-23 07:21:16.826711 95.13% [INFO] switch_core_state_machine.c:306 No Route, Aborting
  1071. 2021-12-23 07:21:16.826711 95.13% [NOTICE] switch_core_state_machine.c:307 Hangup sofia/default/9693017122@pkcall.astppbilling.org:5044 [CS_ROUTING] [NO_ROUTE_DESTINATION]
  1072. 2021-12-23 07:21:16.826711 95.13% [DEBUG] switch_core_state_machine.c:640 (sofia/default/9693017122@pkcall.astppbilling.org:5044) State ROUTING going to sleep
  1073. 2021-12-23 07:21:16.826711 95.13% [DEBUG] switch_core_state_machine.c:581 (sofia/default/9693017122@pkcall.astppbilling.org:5044) Running State Change CS_HANGUP (Cur 1 Tot 41)
  1074. 2021-12-23 07:21:16.826711 95.13% [DEBUG] switch_core_state_machine.c:844 (sofia/default/9693017122@pkcall.astppbilling.org:5044) Callstate Change RINGING -> HANGUP
  1075. 2021-12-23 07:21:16.826711 95.13% [DEBUG] switch_core_state_machine.c:846 (sofia/default/9693017122@pkcall.astppbilling.org:5044) State HANGUP
  1076. 2021-12-23 07:21:16.826711 95.13% [DEBUG] mod_sofia.c:468 Channel sofia/default/9693017122@pkcall.astppbilling.org:5044 hanging up, cause: NO_ROUTE_DESTINATION
  1077. 2021-12-23 07:21:16.826711 95.13% [DEBUG] mod_sofia.c:522 Sending BYE to sofia/default/9693017122@pkcall.astppbilling.org:5044
  1078. 2021-12-23 07:21:16.826711 95.13% [DEBUG] switch_core_state_machine.c:59 sofia/default/9693017122@pkcall.astppbilling.org:5044 Standard HANGUP, cause: NO_ROUTE_DESTINATION
  1079. 2021-12-23 07:21:16.826711 95.13% [DEBUG] switch_core_state_machine.c:846 (sofia/default/9693017122@pkcall.astppbilling.org:5044) State HANGUP going to sleep
  1080. 2021-12-23 07:21:16.826711 95.13% [DEBUG] switch_core_state_machine.c:616 (sofia/default/9693017122@pkcall.astppbilling.org:5044) State Change CS_HANGUP -> CS_REPORTING
  1081. 2021-12-23 07:21:16.826711 95.13% [DEBUG] switch_core_state_machine.c:581 (sofia/default/9693017122@pkcall.astppbilling.org:5044) Running State Change CS_REPORTING (Cur 1 Tot 41)
  1082. 2021-12-23 07:21:16.826711 95.13% [DEBUG] switch_core_state_machine.c:932 (sofia/default/9693017122@pkcall.astppbilling.org:5044) State REPORTING
  1083. 2021-12-23 07:21:16.826711 95.13% [INFO] mod_json_cdr.c:271 Process [4bf8539c-a5a4-4416-8e80-ce780834a638.cdr.json]
  1084. 2021-12-23 07:21:16.866711 95.13% [DEBUG] switch_core_state_machine.c:168 sofia/default/9693017122@pkcall.astppbilling.org:5044 Standard REPORTING, cause: NO_ROUTE_DESTINATION
  1085. 2021-12-23 07:21:16.866711 95.13% [DEBUG] switch_core_state_machine.c:932 (sofia/default/9693017122@pkcall.astppbilling.org:5044) State REPORTING going to sleep
  1086. 2021-12-23 07:21:16.866711 95.13% [DEBUG] switch_core_state_machine.c:607 (sofia/default/9693017122@pkcall.astppbilling.org:5044) State Change CS_REPORTING -> CS_DESTROY
  1087. 2021-12-23 07:21:16.866711 95.13% [DEBUG] switch_core_session.c:1753 Session 41 (sofia/default/9693017122@pkcall.astppbilling.org:5044) Locked, Waiting on external entities
  1088. 2021-12-23 07:21:16.866711 95.13% [NOTICE] switch_core_session.c:1771 Session 41 (sofia/default/9693017122@pkcall.astppbilling.org:5044) Ended
  1089. 2021-12-23 07:21:16.866711 95.13% [NOTICE] switch_core_session.c:1775 Close Channel sofia/default/9693017122@pkcall.astppbilling.org:5044 [CS_DESTROY]
  1090. 2021-12-23 07:21:16.866711 95.13% [DEBUG] switch_core_state_machine.c:735 (sofia/default/9693017122@pkcall.astppbilling.org:5044) Running State Change CS_DESTROY (Cur 0 Tot 41)
  1091. 2021-12-23 07:21:16.866711 95.13% [DEBUG] switch_core_state_machine.c:745 (sofia/default/9693017122@pkcall.astppbilling.org:5044) State DESTROY
  1092. 2021-12-23 07:21:16.866711 95.13% [DEBUG] mod_sofia.c:379 sofia/default/9693017122@pkcall.astppbilling.org:5044 SOFIA DESTROY
  1093. 2021-12-23 07:21:16.866711 95.13% [DEBUG] switch_core_state_machine.c:175 sofia/default/9693017122@pkcall.astppbilling.org:5044 Standard DESTROY
  1094. 2021-12-23 07:21:16.866711 95.13% [DEBUG] switch_core_state_machine.c:745 (sofia/default/9693017122@pkcall.astppbilling.org:5044) State DESTROY going to sleep
  1095. freeswitch@ip-172-31-43-241>
  1096.