2018-10-31 23:05:56.414881 [WARNING] sofia_reg.c:1792 SIP auth challenge (REGISTER) on sofia profile 'internal' for [PHU001@nec.convergedgroup.co.za] from ip 154.118.252.35 2018-10-31 23:05:59.094892 [NOTICE] switch_channel.c:1104 New Channel sofia/internal/27104760604@sbc.brightnetworks.co.za [145c3b64-b3d5-4d4d-acc9-9edffa54b8aa] 2018-10-31 23:05:59.094892 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/27104760604@sbc.brightnetworks.co.za) Running State Change CS_NEW (Cur 9 Tot 3729050) 2018-10-31 23:05:59.094892 [DEBUG] sofia.c:9873 sofia/internal/27104760604@sbc.brightnetworks.co.za receiving invite from 154.118.252.35:5060 version: 1.6.20 -37-987c9b9 64bit 2018-10-31 23:05:59.094892 [DEBUG] sofia.c:9999 1 acls to check for proxy 2018-10-31 23:05:59.094892 [DEBUG] sofia.c:10004 checking 154.118.252.35 against acl proxies 2018-10-31 23:05:59.094892 [INFO] sofia.c:10006 154.118.252.35 is a proxy according to the proxies acl 2018-10-31 23:05:59.094892 [DEBUG] sofia.c:10016 network ip is a proxy 2018-10-31 23:05:59.094892 [DEBUG] sofia.c:10020 found auth ip [X-Auth-IP] header of [154.118.252.248] 2018-10-31 23:05:59.094892 [DEBUG] sofia.c:10044 IP 154.118.252.35 Rejected by acl "domains". Falling back to Digest auth. 2018-10-31 23:05:59.094892 [WARNING] sofia_reg.c:1792 SIP auth challenge (INVITE) on sofia profile 'internal' for [0112340142@sbc.brightnetworks.co.za] from ip 154.118.252.35 2018-10-31 23:05:59.094892 [DEBUG] switch_core_state_machine.c:603 (sofia/internal/27104760604@sbc.brightnetworks.co.za) State NEW 2018-10-31 23:05:59.094892 [DEBUG] sofia.c:2334 detaching session 145c3b64-b3d5-4d4d-acc9-9edffa54b8aa 2018-10-31 23:05:59.094892 [DEBUG] sofia.c:2442 Re-attaching to session 145c3b64-b3d5-4d4d-acc9-9edffa54b8aa 2018-10-31 23:05:59.114878 [DEBUG] sofia.c:9873 sofia/internal/27104760604@sbc.brightnetworks.co.za receiving invite from 154.118.252.35:5060 version: 1.6.20 -37-987c9b9 64bit 2018-10-31 23:05:59.114878 [DEBUG] sofia.c:9999 1 acls to check for proxy 2018-10-31 23:05:59.114878 [DEBUG] sofia.c:10004 checking 154.118.252.35 against acl proxies 2018-10-31 23:05:59.114878 [INFO] sofia.c:10006 154.118.252.35 is a proxy according to the proxies acl 2018-10-31 23:05:59.114878 [DEBUG] sofia.c:10016 network ip is a proxy 2018-10-31 23:05:59.114878 [DEBUG] sofia.c:10020 found auth ip [X-Auth-IP] header of [154.118.252.248] 2018-10-31 23:05:59.114878 [DEBUG] sofia.c:10044 IP 154.118.252.35 Rejected by acl "domains". Falling back to Digest auth. 2018-10-31 23:05:59.114878 [DEBUG] sofia.c:7084 Channel sofia/internal/27104760604@sbc.brightnetworks.co.za entering state [received][100] 2018-10-31 23:05:59.114878 [DEBUG] sofia.c:7094 Remote SDP: v=0 o=Z 0 0 IN IP4 154.118.252.248 s=Z c=IN IP4 154.118.252.248 t=0 0 m=audio 8000 RTP/AVP 8 101 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 2018-10-31 23:05:59.114878 [DEBUG] sofia.c:7486 (sofia/internal/27104760604@sbc.brightnetworks.co.za) State Change CS_NEW -> CS_INIT 2018-10-31 23:05:59.114878 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/27104760604@sbc.brightnetworks.co.za) Running State Change CS_INIT (Cur 9 Tot 3729050) 2018-10-31 23:05:59.114878 [DEBUG] switch_core_state_machine.c:627 (sofia/internal/27104760604@sbc.brightnetworks.co.za) State INIT 2018-10-31 23:05:59.114878 [DEBUG] mod_sofia.c:90 sofia/internal/27104760604@sbc.brightnetworks.co.za SOFIA INIT 2018-10-31 23:05:59.114878 [DEBUG] switch_core_state_machine.c:40 sofia/internal/27104760604@sbc.brightnetworks.co.za Standard INIT 2018-10-31 23:05:59.114878 [DEBUG] switch_core_state_machine.c:48 (sofia/internal/27104760604@sbc.brightnetworks.co.za) State Change CS_INIT -> CS_ROUTING 2018-10-31 23:05:59.114878 [DEBUG] switch_core_state_machine.c:627 (sofia/internal/27104760604@sbc.brightnetworks.co.za) State INIT going to sleep 2018-10-31 23:05:59.114878 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/27104760604@sbc.brightnetworks.co.za) Running State Change CS_ROUTING (Cur 9 Tot 3729050) 2018-10-31 23:05:59.114878 [DEBUG] switch_channel.c:2249 (sofia/internal/27104760604@sbc.brightnetworks.co.za) Callstate Change DOWN -> RINGING 2018-10-31 23:05:59.114878 [DEBUG] switch_core_state_machine.c:643 (sofia/internal/27104760604@sbc.brightnetworks.co.za) State ROUTING 2018-10-31 23:05:59.114878 [DEBUG] mod_sofia.c:143 sofia/internal/27104760604@sbc.brightnetworks.co.za SOFIA ROUTING 2018-10-31 23:05:59.114878 [DEBUG] mod_nibblebill.c:422 Doing lookup query [SELECT value AS nibble_balance FROM management_clientbalances WHERE balance_uuid='a6e32d84-0d4c-476a-a0a8-1f4b229027f6'] 2018-10-31 23:05:59.114878 [DEBUG] mod_nibblebill.c:430 Retrieved current balance for account a6e32d84-0d4c-476a-a0a8-1f4b229027f6 (balance = -1098.533355) 2018-10-31 23:05:59.114878 [DEBUG] switch_core_state_machine.c:236 sofia/internal/27104760604@sbc.brightnetworks.co.za Standard ROUTING 2018-10-31 23:05:59.114878 [INFO] mod_dialplan_xml.c:637 Processing 27104760604 <27104760604>->0112340142 in context cgrtbilling Dialplan: sofia/internal/27104760604@sbc.brightnetworks.co.za parsing [cgrtbilling->unloop] continue=false Dialplan: sofia/internal/27104760604@sbc.brightnetworks.co.za Regex (PASS) [unloop] ${unroll_loops}(true) =~ /^true$/ break=on-false Dialplan: sofia/internal/27104760604@sbc.brightnetworks.co.za Regex (FAIL) [unloop] ${sip_looped_call}() =~ /^true$/ break=on-false Dialplan: sofia/internal/27104760604@sbc.brightnetworks.co.za parsing [cgrtbilling->call_debug] continue=true Dialplan: sofia/internal/27104760604@sbc.brightnetworks.co.za Regex (FAIL) [call_debug] ${call_debug}(false) =~ /^true$/ break=never Dialplan: sofia/internal/27104760604@sbc.brightnetworks.co.za parsing [cgrtbilling->block_account] continue=false Dialplan: sofia/internal/27104760604@sbc.brightnetworks.co.za Regex (FAIL) [block_account] destination_number(0112340142) =~ /^(block_account)$/ break=on-false Dialplan: sofia/internal/27104760604@sbc.brightnetworks.co.za parsing [cgrtbilling->check_auth] continue=true Dialplan: sofia/internal/27104760604@sbc.brightnetworks.co.za Regex (PASS) [check_auth] ${sip_authorized}(true) =~ /^true$/ break=never Dialplan: sofia/internal/27104760604@sbc.brightnetworks.co.za parsing [cgrtbilling->calls_from_converged] continue=true Dialplan: sofia/internal/27104760604@sbc.brightnetworks.co.za Regex (FAIL) [calls_from_converged] ${sip_req_host}(sbc.brightnetworks.co.za) =~ /^sbc.convergedgroup.co.za$/ break=on-false Dialplan: sofia/internal/27104760604@sbc.brightnetworks.co.za parsing [cgrtbilling->calls_from_tenants] continue=true Dialplan: sofia/internal/27104760604@sbc.brightnetworks.co.za Regex (PASS) [calls_from_tenants] destination_number(0112340142) =~ /^(.*)$/ break=on-false Dialplan: sofia/internal/27104760604@sbc.brightnetworks.co.za Action translate(${destination_number} sbc.convergedgroup.co.za-za) Dialplan: sofia/internal/27104760604@sbc.brightnetworks.co.za Action set(destination_number=${translated}) Dialplan: sofia/internal/27104760604@sbc.brightnetworks.co.za Action set(outside_call=true) Dialplan: sofia/internal/27104760604@sbc.brightnetworks.co.za Action lua(cgrtbilling/cgrtbilling_v2.luac) 2018-10-31 23:05:59.114878 [DEBUG] switch_core_state_machine.c:286 (sofia/internal/27104760604@sbc.brightnetworks.co.za) State Change CS_ROUTING -> CS_EXECUTE 2018-10-31 23:05:59.114878 [DEBUG] switch_core_state_machine.c:643 (sofia/internal/27104760604@sbc.brightnetworks.co.za) State ROUTING going to sleep 2018-10-31 23:05:59.114878 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/27104760604@sbc.brightnetworks.co.za) Running State Change CS_EXECUTE (Cur 9 Tot 3729050) 2018-10-31 23:05:59.114878 [DEBUG] switch_core_state_machine.c:650 (sofia/internal/27104760604@sbc.brightnetworks.co.za) State EXECUTE 2018-10-31 23:05:59.114878 [DEBUG] mod_sofia.c:198 sofia/internal/27104760604@sbc.brightnetworks.co.za SOFIA EXECUTE 2018-10-31 23:05:59.114878 [DEBUG] switch_core_state_machine.c:328 sofia/internal/27104760604@sbc.brightnetworks.co.za Standard EXECUTE EXECUTE sofia/internal/27104760604@sbc.brightnetworks.co.za translate(0112340142 sbc.convergedgroup.co.za-za) 2018-10-31 23:05:59.114878 [DEBUG] mod_translate.c:128 translating [0112340142] against [sbc.convergedgroup.co.za-za] profile 2018-10-31 23:05:59.114878 [DEBUG] mod_translate.c:137 0112340142 =~ /^\+(\d+)$/ 2018-10-31 23:05:59.114878 [DEBUG] mod_translate.c:137 0112340142 =~ /^(00\d{9,17})$/ 2018-10-31 23:05:59.114878 [DEBUG] mod_translate.c:137 0112340142 =~ /^0(\d+)$/ 2018-10-31 23:05:59.114878 [NOTICE] mod_translate.c:249 Translated: 27112340142 EXECUTE sofia/internal/27104760604@sbc.brightnetworks.co.za set(destination_number=27112340142) 2018-10-31 23:05:59.114878 [DEBUG] mod_dptools.c:1548 SET sofia/internal/27104760604@sbc.brightnetworks.co.za [destination_number]=[27112340142] EXECUTE sofia/internal/27104760604@sbc.brightnetworks.co.za set(outside_call=true) 2018-10-31 23:05:59.114878 [DEBUG] mod_dptools.c:1548 SET sofia/internal/27104760604@sbc.brightnetworks.co.za [outside_call]=[true] EXECUTE sofia/internal/27104760604@sbc.brightnetworks.co.za lua(cgrtbilling/cgrtbilling_v2.luac) 2018-10-31 23:05:59.114878 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7f47adec6430 Connected. 2018-10-31 23:05:59.114878 [INFO] switch_cpp.cpp:1365 Destination_number: 27112340142<----------- 2018-10-31 23:05:59.114878 [NOTICE] switch_cpp.cpp:1365 SELECT mc.id, mc.name, mc.account_type, mc.account_code, b.balance_uuid, b.value as balance, t.name as tenant, mc.origination, mc.orig_credit_limit, mc.max_per_minute_rate as max_rate, mc.max_daily_spend, mc.play_audio_messages as play_msgs, mc.orig_max_channels as max_channels, mc.orig_max_cps as max_cps, tc.max_call_length as max_duration, mc.enable_calls, mc.enabled FROM management_client mc INNER JOIN management_tenant t ON t.id = mc.tenant_id INNER JOIN management_tenantconfiguration tc ON ( t.id = tc.tenant_id ) INNER JOIN management_clientbalances b ON mc.id = b.client_id WHERE mc.account_code = '0823913044' AND b.balance_type = '*monetary' AND weight = '10' 2018-10-31 23:05:59.114878 [WARNING] switch_cpp.cpp:1365 <------- Getting Account Info for Client: Bright Office with account_code: 0823913044 -------> 2018-10-31 23:05:59.114878 [NOTICE] switch_cpp.cpp:1365 SELECT mc.account_code, s.username, s.password, s.ip_address, s.caller_id_name as cid_name, s.caller_id_number as cid_number, s.bypass_media as bymedia, s.pass_thru_caller_id, s.custom_sip_headers, c1.description as c1, c2.description as c2, c3.description as c3, c4.description as c4, s.enabled FROM management_sipaccount s INNER JOIN management_client mc ON s.client_id = mc.id LEFT OUTER JOIN configuration_codecpreference c1 ON s.codec1_id = c1.id LEFT OUTER JOIN configuration_codecpreference c2 ON s.codec2_id = c2.id LEFT OUTER JOIN configuration_codecpreference c3 ON s.codec3_id = c3.id LEFT OUTER JOIN configuration_codecpreference c4 ON s.codec4_id = c4.id WHERE mc.id = '5473851498396115' AND s.username = '27104760604'AND s.enabled = 't' 2018-10-31 23:05:59.134860 [WARNING] switch_cpp.cpp:1365 elapsed time: 0.003138 2018-10-31 23:05:59.134860 [WARNING] switch_cpp.cpp:1365 -------------> Geting Client Tariff Plan info -------------> 2018-10-31 23:05:59.134860 [NOTICE] switch_cpp.cpp:1365 SELECT mt.tech_prefix, mt.tpb_id, t.name as tpb_name, mt.routing_plan_id, r.routing_type, r.allow_negative_profit FROM management_tpballocation mt INNER JOIN management_client mc ON mt.client_id = mc.id INNER JOIN routing_routingplan r ON mt.routing_plan_id = r.id INNER JOIN tariff_plans_tpb t ON t.id = mt.tpb_id WHERE mc.account_code = '0823913044' 2018-10-31 23:05:59.134860 [INFO] switch_cpp.cpp:1365 <-----------------------------------------------------> 2018-10-31 23:05:59.134860 [INFO] switch_cpp.cpp:1365 Trying without tech prefix 2018-10-31 23:05:59.134860 [INFO] switch_cpp.cpp:1365 Dialed number : 27112340142 2018-10-31 23:05:59.134860 [INFO] switch_cpp.cpp:1365 Tariff Plan Name : BRONZE 2018-10-31 23:05:59.134860 [INFO] switch_cpp.cpp:1365 <-----------------------------------------------------> 2018-10-31 23:05:59.134860 [WARNING] switch_cpp.cpp:1365 ------------ Getting Call cost for client ------------ 2018-10-31 23:05:59.134860 [NOTICE] switch_cpp.cpp:1365 SELECT tp.code, tp.destination_name, tp.connect_fee, tp.rate, tp.rate_minimum, tp.rate_increment, tp.effective_date, tp.expiry_date, tp.enabled FROM tariff_plans_rates tp WHERE code @> '27112340142' AND tpb_id = '5465386174008112' AND tp.effective_date <= tp.expiry_date AND tp.expiry_date >= now() ORDER BY CODE ASC LIMIT 1 2018-10-31 23:05:59.134860 [NOTICE] switch_cpp.cpp:1365 Code: 2711 EXECUTE sofia/internal/27104760604@sbc.brightnetworks.co.za export(execute_on_answer=nibblebill adjust -0) 2018-10-31 23:05:59.134860 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [execute_on_answer]=[nibblebill adjust -0] 2018-10-31 23:05:59.134860 [DEBUG] switch_cpp.cpp:745 CoreSession::setVariable('connect_fee', '0') 2018-10-31 23:05:59.134860 [DEBUG] switch_cpp.cpp:745 CoreSession::setVariable('nibble_rate', '0.4') 2018-10-31 23:05:59.134860 [DEBUG] switch_cpp.cpp:745 CoreSession::setVariable('nibble_minimum', '0.0066666666666667') 2018-10-31 23:05:59.134860 [DEBUG] switch_cpp.cpp:745 CoreSession::setVariable('nibble_increment', '1') 2018-10-31 23:05:59.134860 [DEBUG] switch_cpp.cpp:745 CoreSession::setVariable('nibble_account', 'A6E32D84-0D4C-476A-A0A8-1F4B229027F6') 2018-10-31 23:05:59.134860 [DEBUG] switch_cpp.cpp:745 CoreSession::setVariable('o_account', '0823913044') 2018-10-31 23:05:59.134860 [DEBUG] switch_cpp.cpp:745 CoreSession::setVariable('client_id', '5473851498396115') 2018-10-31 23:05:59.134860 [DEBUG] switch_cpp.cpp:745 CoreSession::setVariable('o_tenant', 'sbc.brightnetworks.co.za') 2018-10-31 23:05:59.134860 [DEBUG] switch_cpp.cpp:745 CoreSession::setVariable('nobal_amt', '-5000') EXECUTE sofia/internal/27104760604@sbc.brightnetworks.co.za nibblebill(heartbeat 60) 2018-10-31 23:05:59.134860 [WARNING] switch_core_session.c:1605 sofia/internal/27104760604@sbc.brightnetworks.co.za using scheduler due to bypass media or media is not established. 2018-10-31 23:05:59.134860 [DEBUG] switch_scheduler.c:249 Added task 8876726 switch_core_session_sched_heartbeat (145c3b64-b3d5-4d4d-acc9-9edffa54b8aa) to run at 1541020019 2018-10-31 23:05:59.134860 [DEBUG] switch_cpp.cpp:745 CoreSession::setVariable('o_dept', ' ') 2018-10-31 23:05:59.134860 [DEBUG] switch_cpp.cpp:745 CoreSession::setVariable('o_site', ' ') 2018-10-31 23:05:59.134860 [DEBUG] switch_cpp.cpp:745 CoreSession::setVariable('o_extension', ' ') 2018-10-31 23:05:59.134860 [DEBUG] switch_cpp.cpp:745 CoreSession::setVariable('o_custom', ' ') 2018-10-31 23:05:59.134860 [DEBUG] switch_cpp.cpp:745 CoreSession::setVariable('o_subject', ' ') 2018-10-31 23:05:59.134860 [DEBUG] switch_cpp.cpp:745 CoreSession::setVariable('o_supplier', ' ') 2018-10-31 23:05:59.134860 [DEBUG] switch_cpp.cpp:745 CoreSession::setVariable('o_reqtype', 'POSTPAID') 2018-10-31 23:05:59.134860 [DEBUG] switch_cpp.cpp:745 CoreSession::setVariable('o_category', 'BRONZE') 2018-10-31 23:05:59.134860 [DEBUG] switch_cpp.cpp:745 CoreSession::setVariable('prefix', '2711') 2018-10-31 23:05:59.134860 [DEBUG] switch_cpp.cpp:745 CoreSession::setVariable('destination_name', 'SA National_2711') 2018-10-31 23:05:59.134860 [DEBUG] switch_cpp.cpp:745 CoreSession::setVariable('destination_number', '27112340142') 2018-10-31 23:05:59.134860 [DEBUG] switch_cpp.cpp:745 CoreSession::setVariable('tor', '*voice') 2018-10-31 23:05:59.134860 [WARNING] switch_cpp.cpp:1365 -------------> Removing unwanted SIP Headers -------------> EXECUTE sofia/internal/27104760604@sbc.brightnetworks.co.za unset(sip_h_X-accountcode) 2018-10-31 23:05:59.134860 [DEBUG] mod_dptools.c:1693 UNSET [sip_h_X-accountcode] EXECUTE sofia/internal/27104760604@sbc.brightnetworks.co.za unset(sip_h_X-username) 2018-10-31 23:05:59.134860 [DEBUG] mod_dptools.c:1693 UNSET [sip_h_X-username] EXECUTE sofia/internal/27104760604@sbc.brightnetworks.co.za unset(sip_h_X-extension) 2018-10-31 23:05:59.134860 [DEBUG] mod_dptools.c:1693 UNSET [sip_h_X-extension] EXECUTE sofia/internal/27104760604@sbc.brightnetworks.co.za unset(sip_h_X-dept) 2018-10-31 23:05:59.134860 [DEBUG] mod_dptools.c:1693 UNSET [sip_h_X-dept] EXECUTE sofia/internal/27104760604@sbc.brightnetworks.co.za unset(sip_h_X-site) 2018-10-31 23:05:59.134860 [DEBUG] mod_dptools.c:1693 UNSET [sip_h_X-site] EXECUTE sofia/internal/27104760604@sbc.brightnetworks.co.za unset(sip_h_X-custom) 2018-10-31 23:05:59.134860 [DEBUG] mod_dptools.c:1693 UNSET [sip_h_X-custom] 2018-10-31 23:05:59.134860 [NOTICE] switch_cpp.cpp:1365 Checking if 27112340142 is a DID <------------- 2018-10-31 23:05:59.134860 [NOTICE] switch_cpp.cpp:1365 SELECT status from management_did where did_number = '27112340142' and status != 'ported_out' 2018-10-31 23:05:59.134860 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7f47adec6430 released. 2018-10-31 23:05:59.134860 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7f47adec6430 Connected. 2018-10-31 23:05:59.134860 [WARNING] switch_cpp.cpp:1365 ------------ Getting LCR info ------------ 2018-10-31 23:05:59.134860 [NOTICE] switch_cpp.cpp:1365 SELECT * FROM (SELECT DISTINCT ON (t.name) t.name as tariff_plan, rt.id AS rt_id, r.code, r.destination_name, r.connect_fee, r.rate, r.rate_minimum, r.rate_increment, t.prefix, t.suffix, t.quality, t.reliability, t.client_id AS carrier_id, r.effective_date, r.expiry_date, t.gw1_id, t.gw2_id, t.gw3_id, r.enabled FROM tariff_plans_rates r INNER JOIN tariff_plans_tpb t ON r.tpb_id = t.id INNER JOIN routing_routingplantariff rt ON rt.tariff_plan_id = t.id WHERE rt.routing_plan_id = '5465431039104489' AND code @> '27112340142' AND enabled = 't' AND (CURRENT_TIMESTAMP BETWEEN r.effective_date AND r.expiry_date) ORDER BY t.name, code ASC, "effective_date" DESC) n ORDER BY rate ASC, quality DESC, reliability DESC 2018-10-31 23:05:59.154864 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7f47adec6430 released. 2018-10-31 23:05:59.154864 [INFO] switch_cpp.cpp:1365 ------------------ No of routes found: 1 ------------------ 2018-10-31 23:05:59.154864 [INFO] switch_cpp.cpp:1365 -------> lcr_profile: lc 2018-10-31 23:05:59.154864 [INFO] switch_cpp.cpp:1365 -------> lcr_allow_negative_profit: 1.00 2018-10-31 23:05:59.154864 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7f47adec6430 Connected. 2018-10-31 23:05:59.154864 [NOTICE] switch_cpp.cpp:1365 SELECT lead_strip, tail_strip, add_prefix, add_suffix, terminator_id FROM routing_providernumbertranslation WHERE routing_providernumbertranslation.terminator_id = '5465400089730286' AND substring('27112340142',1,length(lead_strip)) = lead_strip 2018-10-31 23:05:59.154864 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7f47adec6430 released. 2018-10-31 23:05:59.154864 [INFO] switch_cpp.cpp:1365 ----------------------- Route [1 of 1 ] ----------------------- 2018-10-31 23:05:59.154864 [NOTICE] switch_cpp.cpp:1365 -------> lcr_code[1]: 2711 2018-10-31 23:05:59.154864 [NOTICE] switch_cpp.cpp:1365 -------> lcr_destination_name[1]: SA National_2711 2018-10-31 23:05:59.154864 [NOTICE] switch_cpp.cpp:1365 -------> lcr_connect_fee[1]: 0.00000 2018-10-31 23:05:59.154864 [NOTICE] switch_cpp.cpp:1365 -------> lcr_rate[1]: 0.16000 2018-10-31 23:05:59.154864 [NOTICE] switch_cpp.cpp:1365 -------> lcr_rate_minimum[1]: 1 2018-10-31 23:05:59.154864 [NOTICE] switch_cpp.cpp:1365 -------> lcr_rate_increment[1]: 1 2018-10-31 23:05:59.154864 [NOTICE] switch_cpp.cpp:1365 -------> lcr_prefix[1]: 2018-10-31 23:05:59.154864 [NOTICE] switch_cpp.cpp:1365 -------> lcr_tariff_plan[1]: PROVIDER_CONVERGED 2018-10-31 23:05:59.154864 [NOTICE] switch_cpp.cpp:1365 -------> lcr_carrier_id[1]: 5465400089730286 2018-10-31 23:05:59.154864 [NOTICE] switch_cpp.cpp:1365 -------> lcr_effective_date[1]: 2018-10-19 02:03:38 2018-10-31 23:05:59.154864 [NOTICE] switch_cpp.cpp:1365 -------> lcr_expiry_date[1]: 2028-10-19 02:03:38 2018-10-31 23:05:59.154864 [NOTICE] switch_cpp.cpp:1365 -------> lcr_enabled[1]: 1 2018-10-31 23:05:59.154864 [INFO] switch_cpp.cpp:1365 ------------------------------------------------------------------ 2018-10-31 23:05:59.154864 [DEBUG] switch_cpp.cpp:745 CoreSession::setVariable('sip_h_X-cid', 'VKIb38GZLc1WMqeQtT0RwA..') 2018-10-31 23:05:59.154864 [WARNING] switch_cpp.cpp:1365 ------->145c3b64-b3d5-4d4d-acc9-9edffa54b8aa - WS CALL Set value :.....: sip_h_X-cid VKIb38GZLc1WMqeQtT0RwA..<------------- 2018-10-31 23:05:59.154864 [INFO] switch_cpp.cpp:1365 ----------> Call progressing through the diaplan <---------- 2018-10-31 23:05:59.154864 [INFO] switch_cpp.cpp:1365 --------------------- Customer rate: 0.4 2018-10-31 23:05:59.154864 [INFO] switch_cpp.cpp:1365 ----------- Negative profit allowed: 1.00% 2018-10-31 23:05:59.154864 [INFO] switch_cpp.cpp:1365 ---- Maximum provider rate for call: 0.404 EXECUTE sofia/internal/27104760604@sbc.brightnetworks.co.za limit(hash sbc.brightnetworks.co.za 27104760604 20 5/1 !CLIENT_LIMIT_EXCEEDED) 2018-10-31 23:05:59.154864 [DEBUG] switch_limit.c:126 incr called: sbc.brightnetworks.co.za_27104760604 max:20, interval:0 2018-10-31 23:05:59.154864 [DEBUG] mod_hash.c:196 Usage for sbc.brightnetworks.co.za_27104760604 is now 1/20 2018-10-31 23:05:59.154864 [INFO] switch_cpp.cpp:1365 Limit for this client: 27104760604 is 20 Concurrent and 5 CPS <----------- 2018-10-31 23:05:59.154864 [INFO] switch_cpp.cpp:1365 -------------> Provider_1 rate: 0.16000 <----------- 2018-10-31 23:05:59.154864 [INFO] switch_cpp.cpp:1365 <--------------------------------------------------> 2018-10-31 23:05:59.154864 [NOTICE] switch_cpp.cpp:1365 SELECT mc.account_code, mc.account_type, mc.orig_credit_limit, mb.balance_uuid FROM management_client mc INNER JOIN management_clientbalances mb ON mc.id = mb.client_id WHERE mb.client_id = '5465400089730286' AND mb.balance_type = '*monetary' AND mb.weight=10 AND mb.enabled = 't' 2018-10-31 23:05:59.154864 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7f47adec6430 Connected. 2018-10-31 23:05:59.154864 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7f47adec6430 released. 2018-10-31 23:05:59.154864 [INFO] switch_cpp.cpp:1365 -----------------> Trying LCR Route = 1 of 1 <----------------- EXECUTE sofia/internal/27104760604@sbc.brightnetworks.co.za export(execute_on_answer=nibblebill adjust -0) 2018-10-31 23:05:59.154864 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [execute_on_answer]=[nibblebill adjust -0] EXECUTE sofia/internal/27104760604@sbc.brightnetworks.co.za export(nolocal:connect_fee=0.00000) 2018-10-31 23:05:59.154864 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) (REMOTE ONLY) [connect_fee]=[0.00000] EXECUTE sofia/internal/27104760604@sbc.brightnetworks.co.za export(nolocal:nibble_rate=0.16000) 2018-10-31 23:05:59.154864 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) (REMOTE ONLY) [nibble_rate]=[0.16000] EXECUTE sofia/internal/27104760604@sbc.brightnetworks.co.za export(nolocal:nibble_minimum=0.0026666666666667) 2018-10-31 23:05:59.154864 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) (REMOTE ONLY) [nibble_minimum]=[0.0026666666666667] EXECUTE sofia/internal/27104760604@sbc.brightnetworks.co.za export(nolocal:nibble_increment=1) 2018-10-31 23:05:59.154864 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) (REMOTE ONLY) [nibble_increment]=[1] EXECUTE sofia/internal/27104760604@sbc.brightnetworks.co.za export(nolocal:nibble_account=CCE9A0C3-B568-424A-A254-90474CED1E60) 2018-10-31 23:05:59.154864 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) (REMOTE ONLY) [nibble_account]=[CCE9A0C3-B568-424A-A254-90474CED1E60] EXECUTE sofia/internal/27104760604@sbc.brightnetworks.co.za export(nolocal:o_account=5428397474) 2018-10-31 23:05:59.154864 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) (REMOTE ONLY) [o_account]=[5428397474] EXECUTE sofia/internal/27104760604@sbc.brightnetworks.co.za export(nolocal:o_tenant=sbc.brightnetworks.co.za) 2018-10-31 23:05:59.154864 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) (REMOTE ONLY) [o_tenant]=[sbc.brightnetworks.co.za] EXECUTE sofia/internal/27104760604@sbc.brightnetworks.co.za export(nolocal:o_dept= ) 2018-10-31 23:05:59.154864 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) (REMOTE ONLY) [o_dept]=[ ] EXECUTE sofia/internal/27104760604@sbc.brightnetworks.co.za export(nolocal:o_site= ) 2018-10-31 23:05:59.154864 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) (REMOTE ONLY) [o_site]=[ ] EXECUTE sofia/internal/27104760604@sbc.brightnetworks.co.za export(nolocal:o_extension= ) 2018-10-31 23:05:59.154864 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) (REMOTE ONLY) [o_extension]=[ ] EXECUTE sofia/internal/27104760604@sbc.brightnetworks.co.za export(nolocal:o_custom= ) 2018-10-31 23:05:59.154864 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) (REMOTE ONLY) [o_custom]=[ ] EXECUTE sofia/internal/27104760604@sbc.brightnetworks.co.za export(nolocal:o_subject= ) 2018-10-31 23:05:59.154864 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) (REMOTE ONLY) [o_subject]=[ ] EXECUTE sofia/internal/27104760604@sbc.brightnetworks.co.za export(nolocal:o_supplier= ) 2018-10-31 23:05:59.154864 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) (REMOTE ONLY) [o_supplier]=[ ] EXECUTE sofia/internal/27104760604@sbc.brightnetworks.co.za export(nolocal:o_reqtype=POSTPAID) 2018-10-31 23:05:59.154864 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) (REMOTE ONLY) [o_reqtype]=[POSTPAID] EXECUTE sofia/internal/27104760604@sbc.brightnetworks.co.za export(nolocal:o_category=PROVIDER_CONVERGED) 2018-10-31 23:05:59.154864 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) (REMOTE ONLY) [o_category]=[PROVIDER_CONVERGED] EXECUTE sofia/internal/27104760604@sbc.brightnetworks.co.za export(nolocal:prefix=2711) 2018-10-31 23:05:59.154864 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) (REMOTE ONLY) [prefix]=[2711] EXECUTE sofia/internal/27104760604@sbc.brightnetworks.co.za export(nolocal:destination_name=SA National_2711) 2018-10-31 23:05:59.154864 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) (REMOTE ONLY) [destination_name]=[SA National_2711] EXECUTE sofia/internal/27104760604@sbc.brightnetworks.co.za export(nolocal:destination_number=27112340142) 2018-10-31 23:05:59.174861 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) (REMOTE ONLY) [destination_number]=[27112340142] EXECUTE sofia/internal/27104760604@sbc.brightnetworks.co.za export(nolocal:tor=*voice) 2018-10-31 23:05:59.174861 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) (REMOTE ONLY) [tor]=[*voice] EXECUTE sofia/internal/27104760604@sbc.brightnetworks.co.za export(nolocal:nobal_amt=-30000) 2018-10-31 23:05:59.174861 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) (REMOTE ONLY) [nobal_amt]=[-30000] EXECUTE sofia/internal/27104760604@sbc.brightnetworks.co.za nibblebill(heartbeat 60) 2018-10-31 23:05:59.174861 [WARNING] switch_core_session.c:1605 sofia/internal/27104760604@sbc.brightnetworks.co.za using scheduler due to bypass media or media is not established. 2018-10-31 23:05:59.174861 [DEBUG] switch_scheduler.c:249 Added task 8876727 switch_core_session_sched_heartbeat (145c3b64-b3d5-4d4d-acc9-9edffa54b8aa) to run at 1541020019 2018-10-31 23:05:59.174861 [DEBUG] switch_scheduler.c:144 Deleting task 8876726 switch_core_session_sched_heartbeat (145c3b64-b3d5-4d4d-acc9-9edffa54b8aa) 2018-10-31 23:05:59.174861 [DEBUG] switch_cpp.cpp:745 CoreSession::setVariable('execute_on_answer', 'sched_hangup +7200 allotted_timeout') 2018-10-31 23:05:59.174861 [WARNING] switch_cpp.cpp:1365 ------->145c3b64-b3d5-4d4d-acc9-9edffa54b8aa - WS CALL Set value :.....: execute_on_answer sched_hangup +7200 allotted_timeout<------------- 2018-10-31 23:05:59.174861 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7f47adec6430 Connected. 2018-10-31 23:05:59.174861 [NOTICE] switch_cpp.cpp:1365 SELECT name AS g_name, proxy, sip_cid_type, ignore_early_media, leg_timeout, channels, enabled FROM management_providergateway g WHERE id = '5465413257484362' AND enabled = 't' 2018-10-31 23:05:59.174861 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7f47adec6430 released. EXECUTE sofia/internal/27104760604@sbc.brightnetworks.co.za limit(hash sbc.brightnetworks.co.za Bright-Converged 100!BEARERCAPABILITY_NOTAVAIL) 2018-10-31 23:05:59.174861 [DEBUG] switch_limit.c:126 incr called: sbc.brightnetworks.co.za_Bright-Converged max:100, interval:0 2018-10-31 23:05:59.174861 [DEBUG] mod_hash.c:196 Usage for sbc.brightnetworks.co.za_Bright-Converged is now 1/100 2018-10-31 23:05:59.174861 [INFO] switch_cpp.cpp:1365 Maximum concurrent calls for Gateway 1: Bright-Converged = 100 <----------- 2018-10-31 23:05:59.174861 [INFO] switch_cpp.cpp:1365 Now Bridging the call to ...[originate_continue_on_timeout=true,sip_cid_type=pid,ignore_early_media=false][leg_progress_timeout=20]sofia/gateway/Bright-Converged/27112340142 <----------- 2018-10-31 23:05:59.174861 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7f47adec6430 Connected. 2018-10-31 23:05:59.174861 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7f47adec6430 released. 2018-10-31 23:05:59.174861 [DEBUG] switch_cpp.cpp:745 CoreSession::setVariable('effective_caller_id_name', '27104760604') 2018-10-31 23:05:59.174861 [WARNING] switch_cpp.cpp:1365 ------->145c3b64-b3d5-4d4d-acc9-9edffa54b8aa - WS CALL Set value :.....: effective_caller_id_name 27104760604<------------- 2018-10-31 23:05:59.174861 [DEBUG] switch_cpp.cpp:745 CoreSession::setVariable('effective_caller_id_number', '27104760604') 2018-10-31 23:05:59.174861 [DEBUG] switch_cpp.cpp:745 CoreSession::setVariable('call_direction', 'outbound') 2018-10-31 23:05:59.174861 [WARNING] switch_cpp.cpp:1365 ------->145c3b64-b3d5-4d4d-acc9-9edffa54b8aa - WS CALL Set value :.....: call_direction outbound<------------- 2018-10-31 23:05:59.174861 [DEBUG] switch_cpp.cpp:745 CoreSession::setVariable('continue_on_fail', 'true') 2018-10-31 23:05:59.174861 [WARNING] switch_cpp.cpp:1365 ------->145c3b64-b3d5-4d4d-acc9-9edffa54b8aa - WS CALL Set value :.....: continue_on_fail true<------------- 2018-10-31 23:05:59.174861 [DEBUG] switch_cpp.cpp:745 CoreSession::setVariable('hangup_after_bridge', 'true') 2018-10-31 23:05:59.174861 [WARNING] switch_cpp.cpp:1365 ------->145c3b64-b3d5-4d4d-acc9-9edffa54b8aa - WS CALL Set value :.....: hangup_after_bridge true<------------- 2018-10-31 23:05:59.174861 [DEBUG] switch_cpp.cpp:745 CoreSession::setVariable('ignore_display_updates', 'true') 2018-10-31 23:05:59.174861 [WARNING] switch_cpp.cpp:1365 ------->145c3b64-b3d5-4d4d-acc9-9edffa54b8aa - WS CALL Set value :.....: ignore_display_updates true<------------- EXECUTE sofia/internal/27104760604@sbc.brightnetworks.co.za export(codec_string=G729,PCMA) 2018-10-31 23:05:59.174861 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [codec_string]=[G729,PCMA] EXECUTE sofia/internal/27104760604@sbc.brightnetworks.co.za export(nolocal:absolute_codec_string=G729,PCMA) 2018-10-31 23:05:59.174861 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) (REMOTE ONLY) [absolute_codec_string]=[G729,PCMA] EXECUTE sofia/internal/27104760604@sbc.brightnetworks.co.za export(fax_enable_t38_request=true) 2018-10-31 23:05:59.174861 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [fax_enable_t38_request]=[true] EXECUTE sofia/internal/27104760604@sbc.brightnetworks.co.za export(fax_enable_t38=true) 2018-10-31 23:05:59.174861 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [fax_enable_t38]=[true] EXECUTE sofia/internal/27104760604@sbc.brightnetworks.co.za bridge([originate_continue_on_timeout=true,sip_cid_type=pid,ignore_early_media=false][leg_progress_timeout=20]sofia/gateway/Bright-Converged/27112340142) 2018-10-31 23:05:59.174861 [DEBUG] switch_channel.c:1250 sofia/internal/27104760604@sbc.brightnetworks.co.za EXPORTING[export_vars] [execute_on_answer]=[sched_hangup +7200 allotted_timeout] to event 2018-10-31 23:05:59.174861 [DEBUG] switch_channel.c:1250 sofia/internal/27104760604@sbc.brightnetworks.co.za EXPORTING[export_vars] [execute_on_answer]=[sched_hangup +7200 allotted_timeout] to event 2018-10-31 23:05:59.174861 [DEBUG] switch_channel.c:1250 sofia/internal/27104760604@sbc.brightnetworks.co.za EXPORTING[export_vars] [connect_fee]=[0.00000] to event 2018-10-31 23:05:59.174861 [DEBUG] switch_channel.c:1250 sofia/internal/27104760604@sbc.brightnetworks.co.za EXPORTING[export_vars] [nibble_rate]=[0.16000] to event 2018-10-31 23:05:59.174861 [DEBUG] switch_channel.c:1250 sofia/internal/27104760604@sbc.brightnetworks.co.za EXPORTING[export_vars] [nibble_minimum]=[0.0026666666666667] to event 2018-10-31 23:05:59.174861 [DEBUG] switch_channel.c:1250 sofia/internal/27104760604@sbc.brightnetworks.co.za EXPORTING[export_vars] [nibble_increment]=[1] to event 2018-10-31 23:05:59.174861 [DEBUG] switch_channel.c:1250 sofia/internal/27104760604@sbc.brightnetworks.co.za EXPORTING[export_vars] [nibble_account]=[CCE9A0C3-B568-424A-A254-90474CED1E60] to event 2018-10-31 23:05:59.174861 [DEBUG] switch_channel.c:1250 sofia/internal/27104760604@sbc.brightnetworks.co.za EXPORTING[export_vars] [o_account]=[5428397474] to event 2018-10-31 23:05:59.174861 [DEBUG] switch_channel.c:1250 sofia/internal/27104760604@sbc.brightnetworks.co.za EXPORTING[export_vars] [o_tenant]=[sbc.brightnetworks.co.za] to event 2018-10-31 23:05:59.174861 [DEBUG] switch_channel.c:1250 sofia/internal/27104760604@sbc.brightnetworks.co.za EXPORTING[export_vars] [o_dept]=[ ] to event 2018-10-31 23:05:59.174861 [DEBUG] switch_channel.c:1250 sofia/internal/27104760604@sbc.brightnetworks.co.za EXPORTING[export_vars] [o_site]=[ ] to event 2018-10-31 23:05:59.174861 [DEBUG] switch_channel.c:1250 sofia/internal/27104760604@sbc.brightnetworks.co.za EXPORTING[export_vars] [o_extension]=[ ] to event 2018-10-31 23:05:59.174861 [DEBUG] switch_channel.c:1250 sofia/internal/27104760604@sbc.brightnetworks.co.za EXPORTING[export_vars] [o_custom]=[ ] to event 2018-10-31 23:05:59.174861 [DEBUG] switch_channel.c:1250 sofia/internal/27104760604@sbc.brightnetworks.co.za EXPORTING[export_vars] [o_subject]=[ ] to event 2018-10-31 23:05:59.174861 [DEBUG] switch_channel.c:1250 sofia/internal/27104760604@sbc.brightnetworks.co.za EXPORTING[export_vars] [o_supplier]=[ ] to event 2018-10-31 23:05:59.174861 [DEBUG] switch_channel.c:1250 sofia/internal/27104760604@sbc.brightnetworks.co.za EXPORTING[export_vars] [o_reqtype]=[POSTPAID] to event 2018-10-31 23:05:59.174861 [DEBUG] switch_channel.c:1250 sofia/internal/27104760604@sbc.brightnetworks.co.za EXPORTING[export_vars] [o_category]=[PROVIDER_CONVERGED] to event 2018-10-31 23:05:59.174861 [DEBUG] switch_channel.c:1250 sofia/internal/27104760604@sbc.brightnetworks.co.za EXPORTING[export_vars] [prefix]=[2711] to event 2018-10-31 23:05:59.174861 [DEBUG] switch_channel.c:1250 sofia/internal/27104760604@sbc.brightnetworks.co.za EXPORTING[export_vars] [destination_name]=[SA National_2711] to event 2018-10-31 23:05:59.174861 [DEBUG] switch_channel.c:1250 sofia/internal/27104760604@sbc.brightnetworks.co.za EXPORTING[export_vars] [destination_number]=[27112340142] to event 2018-10-31 23:05:59.174861 [DEBUG] switch_channel.c:1250 sofia/internal/27104760604@sbc.brightnetworks.co.za EXPORTING[export_vars] [tor]=[*voice] to event 2018-10-31 23:05:59.174861 [DEBUG] switch_channel.c:1250 sofia/internal/27104760604@sbc.brightnetworks.co.za EXPORTING[export_vars] [nobal_amt]=[-30000] to event 2018-10-31 23:05:59.174861 [DEBUG] switch_channel.c:1250 sofia/internal/27104760604@sbc.brightnetworks.co.za EXPORTING[export_vars] [codec_string]=[G729,PCMA] to event 2018-10-31 23:05:59.174861 [DEBUG] switch_channel.c:1250 sofia/internal/27104760604@sbc.brightnetworks.co.za EXPORTING[export_vars] [absolute_codec_string]=[G729,PCMA] to event 2018-10-31 23:05:59.174861 [DEBUG] switch_channel.c:1250 sofia/internal/27104760604@sbc.brightnetworks.co.za EXPORTING[export_vars] [fax_enable_t38_request]=[true] to event 2018-10-31 23:05:59.174861 [DEBUG] switch_channel.c:1250 sofia/internal/27104760604@sbc.brightnetworks.co.za EXPORTING[export_vars] [fax_enable_t38]=[true] to event 2018-10-31 23:05:59.174861 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables 2018-10-31 23:05:59.174861 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables 2018-10-31 23:05:59.174861 [NOTICE] switch_channel.c:1104 New Channel sofia/external/27112340142 [7734e05b-cb41-4986-bb14-15db1f8f000b] 2018-10-31 23:05:59.174861 [DEBUG] mod_sofia.c:4819 (sofia/external/27112340142) State Change CS_NEW -> CS_INIT 2018-10-31 23:05:59.174861 [DEBUG] switch_ivr_originate.c:2972 sofia/external/27112340142 Setting leg progress timeout to 20 2018-10-31 23:05:59.174861 [DEBUG] switch_core_state_machine.c:584 (sofia/external/27112340142) Running State Change CS_INIT (Cur 10 Tot 3729051) 2018-10-31 23:05:59.174861 [DEBUG] switch_core_state_machine.c:627 (sofia/external/27112340142) State INIT 2018-10-31 23:05:59.174861 [DEBUG] mod_sofia.c:90 sofia/external/27112340142 SOFIA INIT 2018-10-31 23:05:59.174861 [DEBUG] sofia_glue.c:1295 sofia/external/27112340142 sending invite version: 1.6.20 -37-987c9b9 64bit Local SDP: v=0 o=cgrtbilling 1540999701 1540999702 IN IP4 154.118.252.36 s=cgrtbilling c=IN IP4 154.118.252.36 t=0 0 m=audio 20258 RTP/AVP 18 8 101 a=rtpmap:18 G729/8000 a=fmtp:18 annexb=no a=rtpmap:8 PCMA/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=silenceSupp:off - - - - a=ptime:20 a=sendrecv 2018-10-31 23:05:59.174861 [DEBUG] switch_core_state_machine.c:40 sofia/external/27112340142 Standard INIT 2018-10-31 23:05:59.174861 [DEBUG] switch_core_state_machine.c:48 (sofia/external/27112340142) State Change CS_INIT -> CS_ROUTING 2018-10-31 23:05:59.174861 [DEBUG] switch_core_state_machine.c:627 (sofia/external/27112340142) State INIT going to sleep 2018-10-31 23:05:59.174861 [DEBUG] switch_core_state_machine.c:584 (sofia/external/27112340142) Running State Change CS_ROUTING (Cur 10 Tot 3729051) 2018-10-31 23:05:59.174861 [DEBUG] sofia.c:7084 Channel sofia/external/27112340142 entering state [calling][0] 2018-10-31 23:05:59.174861 [DEBUG] switch_core_state_machine.c:643 (sofia/external/27112340142) State ROUTING 2018-10-31 23:05:59.174861 [DEBUG] mod_sofia.c:143 sofia/external/27112340142 SOFIA ROUTING 2018-10-31 23:05:59.174861 [DEBUG] switch_ivr_originate.c:67 (sofia/external/27112340142) State Change CS_ROUTING -> CS_CONSUME_MEDIA 2018-10-31 23:05:59.174861 [DEBUG] mod_nibblebill.c:506 Attempting to bill at $0.16000 per minute to account CCE9A0C3-B568-424A-A254-90474CED1E60 2018-10-31 23:05:59.174861 [DEBUG] mod_nibblebill.c:518 Not billing CCE9A0C3-B568-424A-A254-90474CED1E60 - call is not in answered state 2018-10-31 23:05:59.174861 [DEBUG] mod_nibblebill.c:422 Doing lookup query [SELECT value AS nibble_balance FROM management_clientbalances WHERE balance_uuid='CCE9A0C3-B568-424A-A254-90474CED1E60'] 2018-10-31 23:05:59.174861 [DEBUG] mod_nibblebill.c:430 Retrieved current balance for account CCE9A0C3-B568-424A-A254-90474CED1E60 (balance = -774.072176) 2018-10-31 23:05:59.174861 [DEBUG] mod_nibblebill.c:523 Comparing -774.072176 to hangup balance of -30000.000000, taking into account minimum charge of 0.002667 2018-10-31 23:05:59.174861 [DEBUG] mod_nibblebill.c:422 Doing lookup query [SELECT value AS nibble_balance FROM management_clientbalances WHERE balance_uuid='CCE9A0C3-B568-424A-A254-90474CED1E60'] 2018-10-31 23:05:59.174861 [NOTICE] switch_channel.c:1104 New Channel sofia/internal/27104760604@sbc.convergedgroup.co.za [f892355f-e010-46db-a054-dee5a15cf95f] 2018-10-31 23:05:59.174861 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/27104760604@sbc.convergedgroup.co.za) Running State Change CS_NEW (Cur 11 Tot 3729052) 2018-10-31 23:05:59.174861 [DEBUG] sofia.c:9873 sofia/internal/27104760604@sbc.convergedgroup.co.za receiving invite from 154.118.252.35:5060 version: 1.6.20 -37-987c9b9 64bit 2018-10-31 23:05:59.174861 [DEBUG] sofia.c:9999 1 acls to check for proxy 2018-10-31 23:05:59.174861 [DEBUG] sofia.c:10004 checking 154.118.252.35 against acl proxies 2018-10-31 23:05:59.174861 [INFO] sofia.c:10006 154.118.252.35 is a proxy according to the proxies acl 2018-10-31 23:05:59.174861 [DEBUG] sofia.c:10016 network ip is a proxy 2018-10-31 23:05:59.174861 [DEBUG] sofia.c:10020 found auth ip [X-Auth-IP] header of [154.118.252.248] 2018-10-31 23:05:59.174861 [DEBUG] sofia.c:10020 found auth ip [X-Auth-IP] header of [154.118.252.35] 2018-10-31 23:05:59.174861 [DEBUG] sofia.c:10044 IP 154.118.252.35 Rejected by acl "domains". Falling back to Digest auth. 2018-10-31 23:05:59.174861 [WARNING] sofia_reg.c:1792 SIP auth challenge (INVITE) on sofia profile 'internal' for [27112340142@sbc.convergedgroup.co.za] from ip 154.118.252.35 2018-10-31 23:05:59.174861 [DEBUG] switch_core_state_machine.c:603 (sofia/internal/27104760604@sbc.convergedgroup.co.za) State NEW 2018-10-31 23:05:59.174861 [DEBUG] mod_nibblebill.c:430 Retrieved current balance for account CCE9A0C3-B568-424A-A254-90474CED1E60 (balance = -774.072176) 2018-10-31 23:05:59.174861 [DEBUG] switch_core_state_machine.c:643 (sofia/external/27112340142) State ROUTING going to sleep 2018-10-31 23:05:59.174861 [DEBUG] sofia.c:2334 detaching session f892355f-e010-46db-a054-dee5a15cf95f 2018-10-31 23:05:59.174861 [DEBUG] switch_core_state_machine.c:584 (sofia/external/27112340142) Running State Change CS_CONSUME_MEDIA (Cur 11 Tot 3729052) 2018-10-31 23:05:59.174861 [DEBUG] switch_core_state_machine.c:662 (sofia/external/27112340142) State CONSUME_MEDIA 2018-10-31 23:05:59.174861 [DEBUG] mod_nibblebill.c:506 Attempting to bill at $0.16000 per minute to account CCE9A0C3-B568-424A-A254-90474CED1E60 2018-10-31 23:05:59.174861 [DEBUG] mod_nibblebill.c:518 Not billing CCE9A0C3-B568-424A-A254-90474CED1E60 - call is not in answered state 2018-10-31 23:05:59.174861 [DEBUG] mod_nibblebill.c:422 Doing lookup query [SELECT value AS nibble_balance FROM management_clientbalances WHERE balance_uuid='CCE9A0C3-B568-424A-A254-90474CED1E60'] 2018-10-31 23:05:59.174861 [DEBUG] mod_nibblebill.c:430 Retrieved current balance for account CCE9A0C3-B568-424A-A254-90474CED1E60 (balance = -774.072176) 2018-10-31 23:05:59.174861 [DEBUG] mod_nibblebill.c:523 Comparing -774.072176 to hangup balance of -30000.000000, taking into account minimum charge of 0.002667 2018-10-31 23:05:59.174861 [DEBUG] mod_nibblebill.c:422 Doing lookup query [SELECT value AS nibble_balance FROM management_clientbalances WHERE balance_uuid='CCE9A0C3-B568-424A-A254-90474CED1E60'] 2018-10-31 23:05:59.174861 [DEBUG] mod_nibblebill.c:430 Retrieved current balance for account CCE9A0C3-B568-424A-A254-90474CED1E60 (balance = -774.072176) 2018-10-31 23:05:59.174861 [WARNING] switch_core_session.c:1605 sofia/external/27112340142 using scheduler due to bypass media or media is not established. 2018-10-31 23:05:59.174861 [DEBUG] switch_scheduler.c:249 Added task 8876728 switch_core_session_sched_heartbeat (7734e05b-cb41-4986-bb14-15db1f8f000b) to run at 1541019989 2018-10-31 23:05:59.174861 [DEBUG] switch_core_state_machine.c:662 (sofia/external/27112340142) State CONSUME_MEDIA going to sleep 2018-10-31 23:05:59.174861 [DEBUG] sofia.c:7084 Channel sofia/external/27112340142 entering state [calling][0] 2018-10-31 23:05:59.194860 [DEBUG] sofia.c:2442 Re-attaching to session f892355f-e010-46db-a054-dee5a15cf95f 2018-10-31 23:05:59.194860 [DEBUG] sofia.c:9873 sofia/internal/27104760604@sbc.convergedgroup.co.za receiving invite from 154.118.252.35:5060 version: 1.6.20 -37-987c9b9 64bit 2018-10-31 23:05:59.194860 [DEBUG] sofia.c:9999 1 acls to check for proxy 2018-10-31 23:05:59.194860 [DEBUG] sofia.c:10004 checking 154.118.252.35 against acl proxies 2018-10-31 23:05:59.194860 [INFO] sofia.c:10006 154.118.252.35 is a proxy according to the proxies acl 2018-10-31 23:05:59.194860 [DEBUG] sofia.c:10016 network ip is a proxy 2018-10-31 23:05:59.194860 [DEBUG] sofia.c:10020 found auth ip [X-Auth-IP] header of [154.118.252.248] 2018-10-31 23:05:59.194860 [DEBUG] sofia.c:10020 found auth ip [X-Auth-IP] header of [154.118.252.35] 2018-10-31 23:05:59.194860 [DEBUG] sofia.c:10044 IP 154.118.252.35 Rejected by acl "domains". Falling back to Digest auth. 2018-10-31 23:05:59.194860 [DEBUG] sofia.c:7084 Channel sofia/internal/27104760604@sbc.convergedgroup.co.za entering state [received][100] 2018-10-31 23:05:59.194860 [DEBUG] sofia.c:7094 Remote SDP: v=0 o=cgrtbilling 1540999701 1540999702 IN IP4 154.118.252.36 s=cgrtbilling c=IN IP4 154.118.252.36 t=0 0 m=audio 20258 RTP/AVP 18 8 101 a=rtpmap:18 G729/8000 a=fmtp:18 annexb=no a=rtpmap:8 PCMA/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=silenceSupp:off - - - - a=ptime:20 2018-10-31 23:05:59.194860 [DEBUG] sofia.c:7486 (sofia/internal/27104760604@sbc.convergedgroup.co.za) State Change CS_NEW -> CS_INIT 2018-10-31 23:05:59.194860 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/27104760604@sbc.convergedgroup.co.za) Running State Change CS_INIT (Cur 11 Tot 3729052) 2018-10-31 23:05:59.194860 [DEBUG] switch_core_state_machine.c:627 (sofia/internal/27104760604@sbc.convergedgroup.co.za) State INIT 2018-10-31 23:05:59.194860 [DEBUG] mod_sofia.c:90 sofia/internal/27104760604@sbc.convergedgroup.co.za SOFIA INIT 2018-10-31 23:05:59.194860 [DEBUG] switch_core_state_machine.c:40 sofia/internal/27104760604@sbc.convergedgroup.co.za Standard INIT 2018-10-31 23:05:59.194860 [DEBUG] switch_core_state_machine.c:48 (sofia/internal/27104760604@sbc.convergedgroup.co.za) State Change CS_INIT -> CS_ROUTING 2018-10-31 23:05:59.194860 [DEBUG] switch_core_state_machine.c:627 (sofia/internal/27104760604@sbc.convergedgroup.co.za) State INIT going to sleep 2018-10-31 23:05:59.194860 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/27104760604@sbc.convergedgroup.co.za) Running State Change CS_ROUTING (Cur 11 Tot 3729052) 2018-10-31 23:05:59.194860 [DEBUG] switch_channel.c:2249 (sofia/internal/27104760604@sbc.convergedgroup.co.za) Callstate Change DOWN -> RINGING 2018-10-31 23:05:59.194860 [DEBUG] switch_core_state_machine.c:643 (sofia/internal/27104760604@sbc.convergedgroup.co.za) State ROUTING 2018-10-31 23:05:59.194860 [DEBUG] mod_sofia.c:143 sofia/internal/27104760604@sbc.convergedgroup.co.za SOFIA ROUTING 2018-10-31 23:05:59.194860 [DEBUG] mod_nibblebill.c:422 Doing lookup query [SELECT value AS nibble_balance FROM management_clientbalances WHERE balance_uuid='8c261155-c5ff-449f-8b4d-382c0c916647'] 2018-10-31 23:05:59.194860 [DEBUG] mod_nibblebill.c:430 Retrieved current balance for account 8c261155-c5ff-449f-8b4d-382c0c916647 (balance = -196.236180) 2018-10-31 23:05:59.194860 [DEBUG] switch_core_state_machine.c:236 sofia/internal/27104760604@sbc.convergedgroup.co.za Standard ROUTING 2018-10-31 23:05:59.194860 [INFO] mod_dialplan_xml.c:637 Processing 27104760604 <27104760604>->27112340142 in context cgrtbilling Dialplan: sofia/internal/27104760604@sbc.convergedgroup.co.za parsing [cgrtbilling->unloop] continue=false Dialplan: sofia/internal/27104760604@sbc.convergedgroup.co.za Regex (PASS) [unloop] ${unroll_loops}(true) =~ /^true$/ break=on-false Dialplan: sofia/internal/27104760604@sbc.convergedgroup.co.za Regex (FAIL) [unloop] ${sip_looped_call}() =~ /^true$/ break=on-false Dialplan: sofia/internal/27104760604@sbc.convergedgroup.co.za parsing [cgrtbilling->call_debug] continue=true Dialplan: sofia/internal/27104760604@sbc.convergedgroup.co.za Regex (FAIL) [call_debug] ${call_debug}(false) =~ /^true$/ break=never Dialplan: sofia/internal/27104760604@sbc.convergedgroup.co.za parsing [cgrtbilling->block_account] continue=false Dialplan: sofia/internal/27104760604@sbc.convergedgroup.co.za Regex (FAIL) [block_account] destination_number(27112340142) =~ /^(block_account)$/ break=on-false Dialplan: sofia/internal/27104760604@sbc.convergedgroup.co.za parsing [cgrtbilling->check_auth] continue=true Dialplan: sofia/internal/27104760604@sbc.convergedgroup.co.za Regex (PASS) [check_auth] ${sip_authorized}(true) =~ /^true$/ break=never Dialplan: sofia/internal/27104760604@sbc.convergedgroup.co.za parsing [cgrtbilling->calls_from_converged] continue=true Dialplan: sofia/internal/27104760604@sbc.convergedgroup.co.za Regex (PASS) [calls_from_converged] ${sip_req_host}(sbc.convergedgroup.co.za) =~ /^sbc.convergedgroup.co.za$/ break=on-false |--- Dialplan: Processing recursive conditions level:1 [calls_from_converged_recur_1] require-nested=TRUE |--- Dialplan: sofia/internal/27104760604@sbc.convergedgroup.co.za Regex (PASS) [calls_from_converged_recur_1] destination_number(27112340142) =~ /^(.*)$/ break=on-false |--- Dialplan: sofia/internal/27104760604@sbc.convergedgroup.co.za Action translate(${destination_number} sbc.convergedgroup.co.za-za) |--- Dialplan: sofia/internal/27104760604@sbc.convergedgroup.co.za Action set(destination_number=${translated}) |--- Dialplan: sofia/internal/27104760604@sbc.convergedgroup.co.za Action set(outside_call=true) |--- Dialplan: sofia/internal/27104760604@sbc.convergedgroup.co.za Action set(lnp_dest_num=${lua(cgrtbilling/sa_lnp_lookup.lua ${destination_number})}) |--- Dialplan: sofia/internal/27104760604@sbc.convergedgroup.co.za Action lua(cgrtbilling/cgrtbilling_v2.luac) Dialplan: sofia/internal/27104760604@sbc.convergedgroup.co.za parsing [cgrtbilling->calls_from_tenants] continue=true Dialplan: sofia/internal/27104760604@sbc.convergedgroup.co.za Regex (PASS) [calls_from_tenants] destination_number(27112340142) =~ /^(.*)$/ break=on-false Dialplan: sofia/internal/27104760604@sbc.convergedgroup.co.za Action translate(${destination_number} sbc.convergedgroup.co.za-za) Dialplan: sofia/internal/27104760604@sbc.convergedgroup.co.za Action set(destination_number=${translated}) Dialplan: sofia/internal/27104760604@sbc.convergedgroup.co.za Action set(outside_call=true) Dialplan: sofia/internal/27104760604@sbc.convergedgroup.co.za Action lua(cgrtbilling/cgrtbilling_v2.luac) 2018-10-31 23:05:59.214860 [DEBUG] switch_core_state_machine.c:286 (sofia/internal/27104760604@sbc.convergedgroup.co.za) State Change CS_ROUTING -> CS_EXECUTE 2018-10-31 23:05:59.214860 [DEBUG] switch_core_state_machine.c:643 (sofia/internal/27104760604@sbc.convergedgroup.co.za) State ROUTING going to sleep 2018-10-31 23:05:59.214860 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/27104760604@sbc.convergedgroup.co.za) Running State Change CS_EXECUTE (Cur 11 Tot 3729052) 2018-10-31 23:05:59.214860 [DEBUG] switch_core_state_machine.c:650 (sofia/internal/27104760604@sbc.convergedgroup.co.za) State EXECUTE 2018-10-31 23:05:59.214860 [DEBUG] mod_sofia.c:198 sofia/internal/27104760604@sbc.convergedgroup.co.za SOFIA EXECUTE 2018-10-31 23:05:59.214860 [DEBUG] switch_core_state_machine.c:328 sofia/internal/27104760604@sbc.convergedgroup.co.za Standard EXECUTE EXECUTE sofia/internal/27104760604@sbc.convergedgroup.co.za translate(27112340142 sbc.convergedgroup.co.za-za) 2018-10-31 23:05:59.214860 [DEBUG] mod_translate.c:128 translating [27112340142] against [sbc.convergedgroup.co.za-za] profile 2018-10-31 23:05:59.214860 [DEBUG] mod_translate.c:137 27112340142 =~ /^\+(\d+)$/ 2018-10-31 23:05:59.214860 [DEBUG] mod_translate.c:137 27112340142 =~ /^(00\d{9,17})$/ 2018-10-31 23:05:59.214860 [DEBUG] mod_translate.c:137 27112340142 =~ /^0(\d+)$/ 2018-10-31 23:05:59.214860 [DEBUG] mod_translate.c:137 27112340142 =~ /^(1\d{3,4})$/ 2018-10-31 23:05:59.214860 [DEBUG] mod_translate.c:137 27112340142 =~ /^(27\d{9})$/ 2018-10-31 23:05:59.214860 [NOTICE] mod_translate.c:249 Translated: 27112340142 EXECUTE sofia/internal/27104760604@sbc.convergedgroup.co.za set(destination_number=27112340142) 2018-10-31 23:05:59.214860 [DEBUG] mod_dptools.c:1548 SET sofia/internal/27104760604@sbc.convergedgroup.co.za [destination_number]=[27112340142] EXECUTE sofia/internal/27104760604@sbc.convergedgroup.co.za set(outside_call=true) 2018-10-31 23:05:59.214860 [DEBUG] mod_dptools.c:1548 SET sofia/internal/27104760604@sbc.convergedgroup.co.za [outside_call]=[true] 2018-10-31 23:05:59.214860 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7f4636e58500 Connected. 2018-10-31 23:05:59.234877 [NOTICE] switch_cpp.cpp:1365 The number was ported to CTEL with DCode D005 2018-10-31 23:05:59.234877 [DEBUG] switch_cpp.cpp:745 CoreSession::setVariable('lnp_enabled', 'true') 2018-10-31 23:05:59.234877 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7f4636e58500 released. 2018-10-31 23:05:59.234877 [DEBUG] switch_cpp.cpp:1112 sofia/internal/27104760604@sbc.convergedgroup.co.za destroy/unlink session from object EXECUTE sofia/internal/27104760604@sbc.convergedgroup.co.za set(lnp_dest_num=D00527112340142) 2018-10-31 23:05:59.234877 [DEBUG] mod_dptools.c:1548 SET sofia/internal/27104760604@sbc.convergedgroup.co.za [lnp_dest_num]=[D00527112340142] EXECUTE sofia/internal/27104760604@sbc.convergedgroup.co.za lua(cgrtbilling/cgrtbilling_v2.luac) 2018-10-31 23:05:59.234877 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7f47adec6430 Connected. 2018-10-31 23:05:59.234877 [INFO] switch_cpp.cpp:1365 Destination_number: 27112340142<----------- 2018-10-31 23:05:59.234877 [NOTICE] switch_cpp.cpp:1365 SELECT mc.id, mc.name, mc.account_type, mc.account_code, b.balance_uuid, b.value as balance, t.name as tenant, mc.origination, mc.orig_credit_limit, mc.max_per_minute_rate as max_rate, mc.max_daily_spend, mc.play_audio_messages as play_msgs, mc.orig_max_channels as max_channels, mc.orig_max_cps as max_cps, tc.max_call_length as max_duration, mc.enable_calls, mc.enabled FROM management_client mc INNER JOIN management_tenant t ON t.id = mc.tenant_id INNER JOIN management_tenantconfiguration tc ON ( t.id = tc.tenant_id ) INNER JOIN management_clientbalances b ON mc.id = b.client_id WHERE mc.account_code = '7915106451' AND b.balance_type = '*monetary' AND weight = '10' 2018-10-31 23:05:59.234877 [WARNING] switch_cpp.cpp:1365 <------- Getting Account Info for Client: Bright Networks with account_code: 7915106451 -------> 2018-10-31 23:05:59.234877 [NOTICE] switch_cpp.cpp:1365 SELECT mc.account_code, s.username, s.password, s.ip_address, s.caller_id_name as cid_name, s.caller_id_number as cid_number, s.bypass_media as bymedia, s.pass_thru_caller_id, s.custom_sip_headers, c1.description as c1, c2.description as c2, c3.description as c3, c4.description as c4, s.enabled FROM management_sipaccount s INNER JOIN management_client mc ON s.client_id = mc.id LEFT OUTER JOIN configuration_codecpreference c1 ON s.codec1_id = c1.id LEFT OUTER JOIN configuration_codecpreference c2 ON s.codec2_id = c2.id LEFT OUTER JOIN configuration_codecpreference c3 ON s.codec3_id = c3.id LEFT OUTER JOIN configuration_codecpreference c4 ON s.codec4_id = c4.id WHERE mc.id = '5458337077370540' AND s.username = 'brightnetworks'AND s.enabled = 't' 2018-10-31 23:05:59.234877 [WARNING] switch_cpp.cpp:1365 elapsed time: 0.000969 2018-10-31 23:05:59.234877 [WARNING] switch_cpp.cpp:1365 -------------> Geting Client Tariff Plan info -------------> 2018-10-31 23:05:59.234877 [NOTICE] switch_cpp.cpp:1365 SELECT mt.tech_prefix, mt.tpb_id, t.name as tpb_name, mt.routing_plan_id, r.routing_type, r.allow_negative_profit FROM management_tpballocation mt INNER JOIN management_client mc ON mt.client_id = mc.id INNER JOIN routing_routingplan r ON mt.routing_plan_id = r.id INNER JOIN tariff_plans_tpb t ON t.id = mt.tpb_id WHERE mc.account_code = '7915106451' 2018-10-31 23:05:59.234877 [INFO] switch_cpp.cpp:1365 <-----------------------------------------------------> 2018-10-31 23:05:59.234877 [INFO] switch_cpp.cpp:1365 Trying without tech prefix 2018-10-31 23:05:59.234877 [INFO] switch_cpp.cpp:1365 Dialed number : 27112340142 2018-10-31 23:05:59.234877 [INFO] switch_cpp.cpp:1365 Tariff Plan Name : RESELLER_PLUS7 2018-10-31 23:05:59.234877 [INFO] switch_cpp.cpp:1365 <-----------------------------------------------------> 2018-10-31 23:05:59.234877 [WARNING] switch_cpp.cpp:1365 ------------ Getting Call cost for client ------------ 2018-10-31 23:05:59.234877 [NOTICE] switch_cpp.cpp:1365 SELECT tp.code, tp.destination_name, tp.connect_fee, tp.rate, tp.rate_minimum, tp.rate_increment, tp.effective_date, tp.expiry_date, tp.enabled FROM tariff_plans_rates tp WHERE code @> '27112340142' AND tpb_id = '5458313715722524' AND tp.effective_date <= tp.expiry_date AND tp.expiry_date >= now() ORDER BY CODE ASC LIMIT 1 2018-10-31 23:05:59.234877 [NOTICE] switch_cpp.cpp:1365 Code: 2711 EXECUTE sofia/internal/27104760604@sbc.convergedgroup.co.za export(execute_on_answer=nibblebill adjust -0) 2018-10-31 23:05:59.234877 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [execute_on_answer]=[nibblebill adjust -0] 2018-10-31 23:05:59.234877 [DEBUG] switch_cpp.cpp:745 CoreSession::setVariable('connect_fee', '0') 2018-10-31 23:05:59.234877 [DEBUG] switch_cpp.cpp:745 CoreSession::setVariable('nibble_rate', '0.16') 2018-10-31 23:05:59.234877 [DEBUG] switch_cpp.cpp:745 CoreSession::setVariable('nibble_minimum', '0.0026666666666667') 2018-10-31 23:05:59.234877 [DEBUG] switch_cpp.cpp:745 CoreSession::setVariable('nibble_increment', '1') 2018-10-31 23:05:59.234877 [DEBUG] switch_cpp.cpp:745 CoreSession::setVariable('nibble_account', '8C261155-C5FF-449F-8B4D-382C0C916647') 2018-10-31 23:05:59.234877 [DEBUG] switch_cpp.cpp:745 CoreSession::setVariable('o_account', '7915106451') 2018-10-31 23:05:59.234877 [DEBUG] switch_cpp.cpp:745 CoreSession::setVariable('client_id', '5458337077370540') 2018-10-31 23:05:59.234877 [DEBUG] switch_cpp.cpp:745 CoreSession::setVariable('o_tenant', 'sbc.convergedgroup.co.za') 2018-10-31 23:05:59.234877 [DEBUG] switch_cpp.cpp:745 CoreSession::setVariable('nobal_amt', '-50000') EXECUTE sofia/internal/27104760604@sbc.convergedgroup.co.za nibblebill(heartbeat 60) 2018-10-31 23:05:59.254857 [WARNING] switch_core_session.c:1605 sofia/internal/27104760604@sbc.convergedgroup.co.za using scheduler due to bypass media or media is not established. 2018-10-31 23:05:59.254857 [DEBUG] switch_scheduler.c:249 Added task 8876729 switch_core_session_sched_heartbeat (f892355f-e010-46db-a054-dee5a15cf95f) to run at 1541020019 2018-10-31 23:05:59.254857 [DEBUG] switch_cpp.cpp:745 CoreSession::setVariable('o_dept', ' ') 2018-10-31 23:05:59.254857 [DEBUG] switch_cpp.cpp:745 CoreSession::setVariable('o_site', ' ') 2018-10-31 23:05:59.254857 [DEBUG] switch_cpp.cpp:745 CoreSession::setVariable('o_extension', ' ') 2018-10-31 23:05:59.254857 [DEBUG] switch_cpp.cpp:745 CoreSession::setVariable('o_custom', ' ') 2018-10-31 23:05:59.254857 [DEBUG] switch_cpp.cpp:745 CoreSession::setVariable('o_subject', ' ') 2018-10-31 23:05:59.254857 [DEBUG] switch_cpp.cpp:745 CoreSession::setVariable('o_supplier', ' ') 2018-10-31 23:05:59.254857 [DEBUG] switch_cpp.cpp:745 CoreSession::setVariable('o_reqtype', 'POSTPAID') 2018-10-31 23:05:59.254857 [DEBUG] switch_cpp.cpp:745 CoreSession::setVariable('o_category', 'RESELLER_PLUS7') 2018-10-31 23:05:59.254857 [DEBUG] switch_cpp.cpp:745 CoreSession::setVariable('prefix', '2711') 2018-10-31 23:05:59.254857 [DEBUG] switch_cpp.cpp:745 CoreSession::setVariable('destination_name', 'SA National_2711') 2018-10-31 23:05:59.254857 [DEBUG] switch_cpp.cpp:745 CoreSession::setVariable('destination_number', '27112340142') 2018-10-31 23:05:59.254857 [DEBUG] switch_cpp.cpp:745 CoreSession::setVariable('tor', '*voice') 2018-10-31 23:05:59.254857 [WARNING] switch_cpp.cpp:1365 -------------> Removing unwanted SIP Headers -------------> EXECUTE sofia/internal/27104760604@sbc.convergedgroup.co.za unset(sip_h_X-accountcode) 2018-10-31 23:05:59.254857 [DEBUG] mod_dptools.c:1693 UNSET [sip_h_X-accountcode] EXECUTE sofia/internal/27104760604@sbc.convergedgroup.co.za unset(sip_h_X-username) 2018-10-31 23:05:59.254857 [DEBUG] mod_dptools.c:1693 UNSET [sip_h_X-username] EXECUTE sofia/internal/27104760604@sbc.convergedgroup.co.za unset(sip_h_X-extension) 2018-10-31 23:05:59.254857 [DEBUG] mod_dptools.c:1693 UNSET [sip_h_X-extension] EXECUTE sofia/internal/27104760604@sbc.convergedgroup.co.za unset(sip_h_X-dept) 2018-10-31 23:05:59.254857 [DEBUG] mod_dptools.c:1693 UNSET [sip_h_X-dept] EXECUTE sofia/internal/27104760604@sbc.convergedgroup.co.za unset(sip_h_X-site) 2018-10-31 23:05:59.254857 [DEBUG] mod_dptools.c:1693 UNSET [sip_h_X-site] EXECUTE sofia/internal/27104760604@sbc.convergedgroup.co.za unset(sip_h_X-custom) 2018-10-31 23:05:59.254857 [DEBUG] mod_dptools.c:1693 UNSET [sip_h_X-custom] 2018-10-31 23:05:59.254857 [NOTICE] switch_cpp.cpp:1365 Checking if 27112340142 is a DID <------------- 2018-10-31 23:05:59.254857 [NOTICE] switch_cpp.cpp:1365 SELECT status from management_did where did_number = '27112340142' and status != 'ported_out' 2018-10-31 23:05:59.254857 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7f47adec6430 released. 2018-10-31 23:05:59.254857 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7f47adec6430 Connected. 2018-10-31 23:05:59.254857 [WARNING] switch_cpp.cpp:1365 ------------ Getting LCR info ------------ 2018-10-31 23:05:59.254857 [NOTICE] switch_cpp.cpp:1365 SELECT * FROM (SELECT DISTINCT ON (t.name) t.name as tariff_plan, rt.id AS rt_id, r.code, r.destination_name, r.connect_fee, r.rate, r.rate_minimum, r.rate_increment, t.prefix, t.suffix, t.quality, t.reliability, t.client_id AS carrier_id, r.effective_date, r.expiry_date, t.gw1_id, t.gw2_id, t.gw3_id, r.enabled FROM tariff_plans_rates r INNER JOIN tariff_plans_tpb t ON r.tpb_id = t.id INNER JOIN routing_routingplantariff rt ON rt.tariff_plan_id = t.id WHERE rt.routing_plan_id = '5160625866222829' AND code @> 'D00527112340142' AND enabled = 't' AND (CURRENT_TIMESTAMP BETWEEN r.effective_date AND r.expiry_date) ORDER BY t.name, code ASC, "effective_date" DESC) n ORDER BY rate ASC, quality DESC, reliability DESC 2018-10-31 23:05:59.254857 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7f47adec6430 released. 2018-10-31 23:05:59.254857 [INFO] switch_cpp.cpp:1365 ------------------ No of routes found: 2 ------------------ 2018-10-31 23:05:59.254857 [INFO] switch_cpp.cpp:1365 -------> lcr_profile: lc 2018-10-31 23:05:59.254857 [INFO] switch_cpp.cpp:1365 -------> lcr_allow_negative_profit: 0.00 2018-10-31 23:05:59.254857 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7f47adec6430 Connected. 2018-10-31 23:05:59.254857 [NOTICE] switch_cpp.cpp:1365 SELECT lead_strip, tail_strip, add_prefix, add_suffix, terminator_id FROM routing_providernumbertranslation WHERE routing_providernumbertranslation.terminator_id = '946479979601305' AND substring('D00527112340142',1,length(lead_strip)) = lead_strip 2018-10-31 23:05:59.254857 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7f47adec6430 released. 2018-10-31 23:05:59.254857 [NOTICE] switch_cpp.cpp:1365 <-------------- OK! There is a match --------------> 2018-10-31 23:05:59.254857 [NOTICE] switch_cpp.cpp:1365 Dialed Number: [D00527112340142] <----------- 2018-10-31 23:05:59.254857 [NOTICE] switch_cpp.cpp:1365 Lead Strip: [D00527] <----------- 2018-10-31 23:05:59.254857 [NOTICE] switch_cpp.cpp:1365 Add Prefix: [D0050] <----------- 2018-10-31 23:05:59.254857 [NOTICE] switch_cpp.cpp:1365 <--------------------------------------------------> 2018-10-31 23:05:59.254857 [INFO] switch_cpp.cpp:1365 Number Translated to: [D0050112340142] <----------- 2018-10-31 23:05:59.254857 [INFO] switch_cpp.cpp:1365 ----------------------- Route [1 of 2 ] ----------------------- 2018-10-31 23:05:59.254857 [NOTICE] switch_cpp.cpp:1365 -------> lcr_code[1]: D005 2018-10-31 23:05:59.254857 [NOTICE] switch_cpp.cpp:1365 -------> lcr_destination_name[1]: CTEL 2018-10-31 23:05:59.254857 [NOTICE] switch_cpp.cpp:1365 -------> lcr_connect_fee[1]: 0.00000 2018-10-31 23:05:59.254857 [NOTICE] switch_cpp.cpp:1365 -------> lcr_rate[1]: 0.18000 2018-10-31 23:05:59.254857 [NOTICE] switch_cpp.cpp:1365 -------> lcr_rate_minimum[1]: 1 2018-10-31 23:05:59.254857 [NOTICE] switch_cpp.cpp:1365 -------> lcr_rate_increment[1]: 1 2018-10-31 23:05:59.254857 [NOTICE] switch_cpp.cpp:1365 -------> lcr_prefix[1]: 2018-10-31 23:05:59.254857 [NOTICE] switch_cpp.cpp:1365 -------> lcr_tariff_plan[1]: TELKOM_NAT 2018-10-31 23:05:59.254857 [NOTICE] switch_cpp.cpp:1365 -------> lcr_carrier_id[1]: 946479979601305 2018-10-31 23:05:59.254857 [NOTICE] switch_cpp.cpp:1365 -------> lcr_effective_date[1]: 2017-09-24 21:50:00 2018-10-31 23:05:59.254857 [NOTICE] switch_cpp.cpp:1365 -------> lcr_expiry_date[1]: 2027-09-24 21:50:00 2018-10-31 23:05:59.254857 [NOTICE] switch_cpp.cpp:1365 -------> lcr_enabled[1]: 1 2018-10-31 23:05:59.254857 [INFO] switch_cpp.cpp:1365 ------------------------------------------------------------------ 2018-10-31 23:05:59.254857 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7f47adec6430 Connected. 2018-10-31 23:05:59.254857 [NOTICE] switch_cpp.cpp:1365 SELECT lead_strip, tail_strip, add_prefix, add_suffix, terminator_id FROM routing_providernumbertranslation WHERE routing_providernumbertranslation.terminator_id = '937975527397526' AND substring('D00527112340142',1,length(lead_strip)) = lead_strip 2018-10-31 23:05:59.254857 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7f47adec6430 released. 2018-10-31 23:05:59.254857 [NOTICE] switch_cpp.cpp:1365 <-------------- OK! There is a match --------------> 2018-10-31 23:05:59.254857 [NOTICE] switch_cpp.cpp:1365 Dialed Number: [D00527112340142] <----------- 2018-10-31 23:05:59.254857 [NOTICE] switch_cpp.cpp:1365 Lead Strip: [D00527] <----------- 2018-10-31 23:05:59.254857 [NOTICE] switch_cpp.cpp:1365 Add Prefix: [27] <----------- 2018-10-31 23:05:59.254857 [NOTICE] switch_cpp.cpp:1365 <--------------------------------------------------> 2018-10-31 23:05:59.254857 [INFO] switch_cpp.cpp:1365 Number Translated to: [27112340142] <----------- 2018-10-31 23:05:59.254857 [INFO] switch_cpp.cpp:1365 ----------------------- Route [2 of 2 ] ----------------------- 2018-10-31 23:05:59.254857 [NOTICE] switch_cpp.cpp:1365 -------> lcr_code[2]: D005 2018-10-31 23:05:59.254857 [NOTICE] switch_cpp.cpp:1365 -------> lcr_destination_name[2]: CTEL 2018-10-31 23:05:59.254857 [NOTICE] switch_cpp.cpp:1365 -------> lcr_connect_fee[2]: 0.00000 2018-10-31 23:05:59.254857 [NOTICE] switch_cpp.cpp:1365 -------> lcr_rate[2]: 0.28000 2018-10-31 23:05:59.254857 [NOTICE] switch_cpp.cpp:1365 -------> lcr_rate_minimum[2]: 1 2018-10-31 23:05:59.254857 [NOTICE] switch_cpp.cpp:1365 -------> lcr_rate_increment[2]: 1 2018-10-31 23:05:59.254857 [NOTICE] switch_cpp.cpp:1365 -------> lcr_prefix[2]: 2018-10-31 23:05:59.254857 [NOTICE] switch_cpp.cpp:1365 -------> lcr_tariff_plan[2]: LIQUIDTEL_NAT 2018-10-31 23:05:59.254857 [NOTICE] switch_cpp.cpp:1365 -------> lcr_carrier_id[2]: 937975527397526 2018-10-31 23:05:59.254857 [NOTICE] switch_cpp.cpp:1365 -------> lcr_effective_date[2]: 2017-09-24 21:50:39.307041 2018-10-31 23:05:59.254857 [NOTICE] switch_cpp.cpp:1365 -------> lcr_expiry_date[2]: 2027-09-24 21:50:40.264676 2018-10-31 23:05:59.254857 [NOTICE] switch_cpp.cpp:1365 -------> lcr_enabled[2]: 1 2018-10-31 23:05:59.254857 [INFO] switch_cpp.cpp:1365 ------------------------------------------------------------------ 2018-10-31 23:05:59.254857 [DEBUG] switch_cpp.cpp:745 CoreSession::setVariable('sip_h_X-cid', '9b7708e8-57f3-1237-8b97-002590ebc304') 2018-10-31 23:05:59.254857 [WARNING] switch_cpp.cpp:1365 ------->f892355f-e010-46db-a054-dee5a15cf95f - WS CALL Set value :.....: sip_h_X-cid 9b7708e8-57f3-1237-8b97-002590ebc304<------------- 2018-10-31 23:05:59.254857 [INFO] switch_cpp.cpp:1365 ----------> Call progressing through the diaplan <---------- 2018-10-31 23:05:59.254857 [INFO] switch_cpp.cpp:1365 --------------------- Customer rate: 0.16 2018-10-31 23:05:59.254857 [INFO] switch_cpp.cpp:1365 ----------- Negative profit allowed: 0.00% 2018-10-31 23:05:59.254857 [INFO] switch_cpp.cpp:1365 ---- Maximum provider rate for call: 0.16 EXECUTE sofia/internal/27104760604@sbc.convergedgroup.co.za limit(hash sbc.convergedgroup.co.za brightnetworks 30 5/1 !CLIENT_LIMIT_EXCEEDED) 2018-10-31 23:05:59.254857 [DEBUG] switch_limit.c:126 incr called: sbc.convergedgroup.co.za_brightnetworks max:30, interval:0 2018-10-31 23:05:59.254857 [DEBUG] mod_hash.c:196 Usage for sbc.convergedgroup.co.za_brightnetworks is now 1/30 2018-10-31 23:05:59.254857 [INFO] switch_cpp.cpp:1365 Limit for this client: brightnetworks is 30 Concurrent and 5 CPS <----------- 2018-10-31 23:05:59.254857 [INFO] switch_cpp.cpp:1365 -------------> Provider_1 rate: 0.18000 <----------- 2018-10-31 23:05:59.254857 [INFO] switch_cpp.cpp:1365 <--------------------------------------------------> 2018-10-31 23:05:59.254857 [ALERT] switch_cpp.cpp:1365 ------ Rate is more than maximum allowed rate of: 0.16 ------ 2018-10-31 23:05:59.254857 [INFO] switch_cpp.cpp:1365 -------------> Provider_2 rate: 0.28000 <----------- 2018-10-31 23:05:59.254857 [INFO] switch_cpp.cpp:1365 <--------------------------------------------------> 2018-10-31 23:05:59.254857 [ALERT] switch_cpp.cpp:1365 ------ Rate is more than maximum allowed rate of: 0.16 ------ 2018-10-31 23:05:59.254857 [WARNING] switch_cpp.cpp:1365 ------ Looks like we ran out of routes to try ------ 2018-10-31 23:05:59.254857 [DEBUG] switch_cpp.cpp:745 CoreSession::setVariable('proto_specific_hangup_cause', 'sip:503') 2018-10-31 23:05:59.254857 [WARNING] switch_cpp.cpp:1365 ------->f892355f-e010-46db-a054-dee5a15cf95f - WS CALL Set value :.....: proto_specific_hangup_cause sip:503<------------- 2018-10-31 23:05:59.254857 [DEBUG] switch_cpp.cpp:721 CoreSession::hangup 2018-10-31 23:05:59.254857 [NOTICE] switch_cpp.cpp:723 Hangup sofia/internal/27104760604@sbc.convergedgroup.co.za [CS_EXECUTE] [BEARERCAPABILITY_NOTAVAIL] 2018-10-31 23:05:59.254857 [DEBUG] mod_hash.c:297 Usage for sbc.convergedgroup.co.za_brightnetworks is now 0 2018-10-31 23:05:59.254857 [DEBUG] switch_cpp.cpp:1112 sofia/internal/27104760604@sbc.convergedgroup.co.za destroy/unlink session from object 2018-10-31 23:05:59.254857 [DEBUG] switch_core_session.c:2815 sofia/internal/27104760604@sbc.convergedgroup.co.za skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already) 2018-10-31 23:05:59.254857 [DEBUG] switch_core_state_machine.c:650 (sofia/internal/27104760604@sbc.convergedgroup.co.za) State EXECUTE going to sleep 2018-10-31 23:05:59.254857 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/27104760604@sbc.convergedgroup.co.za) Running State Change CS_HANGUP (Cur 11 Tot 3729052) 2018-10-31 23:05:59.254857 [DEBUG] switch_core_state_machine.c:850 (sofia/internal/27104760604@sbc.convergedgroup.co.za) Callstate Change RINGING -> HANGUP 2018-10-31 23:05:59.254857 [DEBUG] switch_core_state_machine.c:852 (sofia/internal/27104760604@sbc.convergedgroup.co.za) State HANGUP 2018-10-31 23:05:59.254857 [DEBUG] mod_sofia.c:438 Channel sofia/internal/27104760604@sbc.convergedgroup.co.za hanging up, cause: BEARERCAPABILITY_NOTAVAIL 2018-10-31 23:05:59.254857 [DEBUG] mod_sofia.c:577 Responding to INVITE with: 503 2018-10-31 23:05:59.254857 [DEBUG] mod_nibblebill.c:506 Attempting to bill at $0.16 per minute to account 8C261155-C5FF-449F-8B4D-382C0C916647 2018-10-31 23:05:59.254857 [DEBUG] mod_nibblebill.c:518 Not billing 8C261155-C5FF-449F-8B4D-382C0C916647 - call is not in answered state 2018-10-31 23:05:59.254857 [DEBUG] mod_nibblebill.c:422 Doing lookup query [SELECT value AS nibble_balance FROM management_clientbalances WHERE balance_uuid='8C261155-C5FF-449F-8B4D-382C0C916647'] 2018-10-31 23:05:59.254857 [DEBUG] mod_nibblebill.c:430 Retrieved current balance for account 8C261155-C5FF-449F-8B4D-382C0C916647 (balance = -196.236180) 2018-10-31 23:05:59.254857 [DEBUG] mod_nibblebill.c:523 Comparing -196.236180 to hangup balance of -50000.000000, taking into account minimum charge of 0.002667 2018-10-31 23:05:59.254857 [DEBUG] mod_nibblebill.c:422 Doing lookup query [SELECT value AS nibble_balance FROM management_clientbalances WHERE balance_uuid='8C261155-C5FF-449F-8B4D-382C0C916647'] 2018-10-31 23:05:59.254857 [DEBUG] sofia.c:7084 Channel sofia/external/27112340142 entering state [terminated][500] 2018-10-31 23:05:59.254857 [NOTICE] sofia.c:8273 Hangup sofia/external/27112340142 [CS_CONSUME_MEDIA] [NORMAL_TEMPORARY_FAILURE] 2018-10-31 23:05:59.254857 [DEBUG] switch_core_state_machine.c:584 (sofia/external/27112340142) Running State Change CS_HANGUP (Cur 11 Tot 3729052) 2018-10-31 23:05:59.254857 [DEBUG] switch_core_state_machine.c:850 (sofia/external/27112340142) Callstate Change DOWN -> HANGUP 2018-10-31 23:05:59.254857 [DEBUG] mod_nibblebill.c:430 Retrieved current balance for account 8C261155-C5FF-449F-8B4D-382C0C916647 (balance = -196.236180) 2018-10-31 23:05:59.254857 [DEBUG] switch_core_state_machine.c:852 (sofia/external/27112340142) State HANGUP 2018-10-31 23:05:59.254857 [DEBUG] switch_core_state_machine.c:60 sofia/internal/27104760604@sbc.convergedgroup.co.za Standard HANGUP, cause: BEARERCAPABILITY_NOTAVAIL 2018-10-31 23:05:59.254857 [DEBUG] mod_sofia.c:438 Channel sofia/external/27112340142 hanging up, cause: NORMAL_TEMPORARY_FAILURE 2018-10-31 23:05:59.254857 [DEBUG] switch_core_state_machine.c:852 (sofia/internal/27104760604@sbc.convergedgroup.co.za) State HANGUP going to sleep 2018-10-31 23:05:59.254857 [DEBUG] switch_core_state_machine.c:619 (sofia/internal/27104760604@sbc.convergedgroup.co.za) State Change CS_HANGUP -> CS_REPORTING 2018-10-31 23:05:59.254857 [DEBUG] mod_nibblebill.c:506 Attempting to bill at $0.16000 per minute to account CCE9A0C3-B568-424A-A254-90474CED1E60 2018-10-31 23:05:59.254857 [DEBUG] mod_nibblebill.c:518 Not billing CCE9A0C3-B568-424A-A254-90474CED1E60 - call is not in answered state 2018-10-31 23:05:59.254857 [DEBUG] mod_nibblebill.c:422 Doing lookup query [SELECT value AS nibble_balance FROM management_clientbalances WHERE balance_uuid='CCE9A0C3-B568-424A-A254-90474CED1E60'] 2018-10-31 23:05:59.254857 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/27104760604@sbc.convergedgroup.co.za) Running State Change CS_REPORTING (Cur 11 Tot 3729052) 2018-10-31 23:05:59.274854 [DEBUG] switch_core_state_machine.c:938 (sofia/internal/27104760604@sbc.convergedgroup.co.za) State REPORTING 2018-10-31 23:05:59.274854 [INFO] mod_json_cdr.c:271 Process [f892355f-e010-46db-a054-dee5a15cf95f.cdr.json] 2018-10-31 23:05:59.274854 [INFO] mod_json_cdr.c:275 Log to disk [/var/log/freeswitch/json_cdr/f892355f-e010-46db-a054-dee5a15cf95f.cdr.json] 2018-10-31 23:05:59.274854 [DEBUG] switch_core_state_machine.c:174 sofia/internal/27104760604@sbc.convergedgroup.co.za Standard REPORTING, cause: BEARERCAPABILITY_NOTAVAIL 2018-10-31 23:05:59.274854 [DEBUG] switch_core_state_machine.c:938 (sofia/internal/27104760604@sbc.convergedgroup.co.za) State REPORTING going to sleep 2018-10-31 23:05:59.274854 [DEBUG] mod_nibblebill.c:430 Retrieved current balance for account CCE9A0C3-B568-424A-A254-90474CED1E60 (balance = -774.072176) 2018-10-31 23:05:59.274854 [DEBUG] mod_nibblebill.c:523 Comparing -774.072176 to hangup balance of -30000.000000, taking into account minimum charge of 0.002667 2018-10-31 23:05:59.274854 [DEBUG] mod_nibblebill.c:422 Doing lookup query [SELECT value AS nibble_balance FROM management_clientbalances WHERE balance_uuid='CCE9A0C3-B568-424A-A254-90474CED1E60'] 2018-10-31 23:05:59.274854 [DEBUG] switch_core_state_machine.c:610 (sofia/internal/27104760604@sbc.convergedgroup.co.za) State Change CS_REPORTING -> CS_DESTROY 2018-10-31 23:05:59.274854 [DEBUG] switch_core_session.c:1665 Session 3729052 (sofia/internal/27104760604@sbc.convergedgroup.co.za) Locked, Waiting on external entities 2018-10-31 23:05:59.274854 [NOTICE] switch_core_session.c:1683 Session 3729052 (sofia/internal/27104760604@sbc.convergedgroup.co.za) Ended 2018-10-31 23:05:59.274854 [NOTICE] switch_core_session.c:1687 Close Channel sofia/internal/27104760604@sbc.convergedgroup.co.za [CS_DESTROY] 2018-10-31 23:05:59.274854 [DEBUG] switch_core_state_machine.c:741 (sofia/internal/27104760604@sbc.convergedgroup.co.za) Running State Change CS_DESTROY (Cur 10 Tot 3729052) 2018-10-31 23:05:59.274854 [DEBUG] switch_core_state_machine.c:751 (sofia/internal/27104760604@sbc.convergedgroup.co.za) State DESTROY 2018-10-31 23:05:59.274854 [DEBUG] mod_sofia.c:343 sofia/internal/27104760604@sbc.convergedgroup.co.za SOFIA DESTROY 2018-10-31 23:05:59.274854 [DEBUG] switch_core_state_machine.c:181 sofia/internal/27104760604@sbc.convergedgroup.co.za Standard DESTROY 2018-10-31 23:05:59.274854 [DEBUG] switch_core_state_machine.c:751 (sofia/internal/27104760604@sbc.convergedgroup.co.za) State DESTROY going to sleep 2018-10-31 23:05:59.274854 [DEBUG] mod_nibblebill.c:430 Retrieved current balance for account CCE9A0C3-B568-424A-A254-90474CED1E60 (balance = -774.072176) 2018-10-31 23:05:59.274854 [DEBUG] switch_core_state_machine.c:60 sofia/external/27112340142 Standard HANGUP, cause: NORMAL_TEMPORARY_FAILURE 2018-10-31 23:05:59.274854 [DEBUG] switch_core_state_machine.c:852 (sofia/external/27112340142) State HANGUP going to sleep 2018-10-31 23:05:59.274854 [DEBUG] switch_core_state_machine.c:619 (sofia/external/27112340142) State Change CS_HANGUP -> CS_REPORTING 2018-10-31 23:05:59.274854 [DEBUG] switch_core_state_machine.c:584 (sofia/external/27112340142) Running State Change CS_REPORTING (Cur 10 Tot 3729052) 2018-10-31 23:05:59.274854 [DEBUG] switch_core_state_machine.c:938 (sofia/external/27112340142) State REPORTING 2018-10-31 23:05:59.274854 [INFO] mod_json_cdr.c:271 Process [7734e05b-cb41-4986-bb14-15db1f8f000b.cdr.json] 2018-10-31 23:05:59.274854 [INFO] mod_json_cdr.c:275 Log to disk [/var/log/freeswitch/json_cdr/7734e05b-cb41-4986-bb14-15db1f8f000b.cdr.json] 2018-10-31 23:05:59.274854 [DEBUG] switch_core_state_machine.c:174 sofia/external/27112340142 Standard REPORTING, cause: NORMAL_TEMPORARY_FAILURE 2018-10-31 23:05:59.274854 [DEBUG] switch_core_state_machine.c:938 (sofia/external/27112340142) State REPORTING going to sleep 2018-10-31 23:05:59.274854 [DEBUG] switch_core_state_machine.c:610 (sofia/external/27112340142) State Change CS_REPORTING -> CS_DESTROY 2018-10-31 23:05:59.274854 [DEBUG] switch_core_session.c:1665 Session 3729051 (sofia/external/27112340142) Locked, Waiting on external entities 2018-10-31 23:05:59.274854 [DEBUG] switch_ivr_originate.c:3848 Originate Resulted in Error Cause: 41 [NORMAL_TEMPORARY_FAILURE] 2018-10-31 23:05:59.274854 [NOTICE] switch_core_session.c:1683 Session 3729051 (sofia/external/27112340142) Ended 2018-10-31 23:05:59.274854 [NOTICE] switch_core_session.c:1687 Close Channel sofia/external/27112340142 [CS_DESTROY] 2018-10-31 23:05:59.274854 [DEBUG] switch_core_state_machine.c:741 (sofia/external/27112340142) Running State Change CS_DESTROY (Cur 9 Tot 3729052) 2018-10-31 23:05:59.274854 [DEBUG] switch_core_state_machine.c:751 (sofia/external/27112340142) State DESTROY 2018-10-31 23:05:59.274854 [DEBUG] mod_sofia.c:343 sofia/external/27112340142 SOFIA DESTROY 2018-10-31 23:05:59.274854 [DEBUG] switch_core_state_machine.c:181 sofia/external/27112340142 Standard DESTROY 2018-10-31 23:05:59.274854 [DEBUG] switch_core_state_machine.c:751 (sofia/external/27112340142) State DESTROY going to sleep 2018-10-31 23:05:59.274854 [INFO] mod_dptools.c:3436 Originate Failed. Cause: NORMAL_TEMPORARY_FAILURE 2018-10-31 23:05:59.274854 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7f47adec6430 Connected. 2018-10-31 23:05:59.274854 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7f47adec6430 released. 2018-10-31 23:05:59.274854 [WARNING] switch_cpp.cpp:1365 The call failed with NORMAL_TEMPORARY_FAILURE <----------- 2018-10-31 23:05:59.274854 [DEBUG] switch_cpp.cpp:1112 sofia/internal/27104760604@sbc.brightnetworks.co.za destroy/unlink session from object 2018-10-31 23:05:59.274854 [NOTICE] switch_core_state_machine.c:385 sofia/internal/27104760604@sbc.brightnetworks.co.za has executed the last dialplan instruction, hanging up. 2018-10-31 23:05:59.274854 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/internal/27104760604@sbc.brightnetworks.co.za [CS_EXECUTE] [NORMAL_CLEARING] 2018-10-31 23:05:59.274854 [DEBUG] mod_hash.c:297 Usage for sbc.brightnetworks.co.za_Bright-Converged is now 0 2018-10-31 23:05:59.274854 [DEBUG] mod_hash.c:297 Usage for sbc.brightnetworks.co.za_27104760604 is now 0 2018-10-31 23:05:59.274854 [DEBUG] switch_core_state_machine.c:650 (sofia/internal/27104760604@sbc.brightnetworks.co.za) State EXECUTE going to sleep 2018-10-31 23:05:59.274854 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/27104760604@sbc.brightnetworks.co.za) Running State Change CS_HANGUP (Cur 9 Tot 3729052) 2018-10-31 23:05:59.274854 [DEBUG] switch_core_state_machine.c:850 (sofia/internal/27104760604@sbc.brightnetworks.co.za) Callstate Change RINGING -> HANGUP 2018-10-31 23:05:59.274854 [DEBUG] switch_core_state_machine.c:852 (sofia/internal/27104760604@sbc.brightnetworks.co.za) State HANGUP 2018-10-31 23:05:59.274854 [DEBUG] mod_sofia.c:432 sofia/internal/27104760604@sbc.brightnetworks.co.za Overriding SIP cause 480 with 500 from the other leg 2018-10-31 23:05:59.274854 [DEBUG] mod_sofia.c:438 Channel sofia/internal/27104760604@sbc.brightnetworks.co.za hanging up, cause: NORMAL_CLEARING 2018-10-31 23:05:59.274854 [DEBUG] mod_sofia.c:577 Responding to INVITE with: 500 2018-10-31 23:05:59.274854 [DEBUG] mod_nibblebill.c:506 Attempting to bill at $0.4 per minute to account A6E32D84-0D4C-476A-A0A8-1F4B229027F6 2018-10-31 23:05:59.274854 [DEBUG] mod_nibblebill.c:518 Not billing A6E32D84-0D4C-476A-A0A8-1F4B229027F6 - call is not in answered state 2018-10-31 23:05:59.274854 [DEBUG] mod_nibblebill.c:422 Doing lookup query [SELECT value AS nibble_balance FROM management_clientbalances WHERE balance_uuid='A6E32D84-0D4C-476A-A0A8-1F4B229027F6'] 2018-10-31 23:05:59.274854 [DEBUG] mod_nibblebill.c:430 Retrieved current balance for account A6E32D84-0D4C-476A-A0A8-1F4B229027F6 (balance = -1098.533355) 2018-10-31 23:05:59.274854 [DEBUG] mod_nibblebill.c:523 Comparing -1098.533355 to hangup balance of -5000.000000, taking into account minimum charge of 0.006667 2018-10-31 23:05:59.274854 [DEBUG] mod_nibblebill.c:422 Doing lookup query [SELECT value AS nibble_balance FROM management_clientbalances WHERE balance_uuid='A6E32D84-0D4C-476A-A0A8-1F4B229027F6'] 2018-10-31 23:05:59.294857 [DEBUG] mod_nibblebill.c:430 Retrieved current balance for account A6E32D84-0D4C-476A-A0A8-1F4B229027F6 (balance = -1098.533355) 2018-10-31 23:05:59.294857 [DEBUG] switch_core_state_machine.c:60 sofia/internal/27104760604@sbc.brightnetworks.co.za Standard HANGUP, cause: NORMAL_CLEARING 2018-10-31 23:05:59.294857 [DEBUG] switch_core_state_machine.c:852 (sofia/internal/27104760604@sbc.brightnetworks.co.za) State HANGUP going to sleep 2018-10-31 23:05:59.294857 [DEBUG] switch_core_state_machine.c:619 (sofia/internal/27104760604@sbc.brightnetworks.co.za) State Change CS_HANGUP -> CS_REPORTING 2018-10-31 23:05:59.294857 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/27104760604@sbc.brightnetworks.co.za) Running State Change CS_REPORTING (Cur 9 Tot 3729052) 2018-10-31 23:05:59.294857 [DEBUG] switch_core_state_machine.c:938 (sofia/internal/27104760604@sbc.brightnetworks.co.za) State REPORTING 2018-10-31 23:05:59.294857 [INFO] mod_json_cdr.c:271 Process [145c3b64-b3d5-4d4d-acc9-9edffa54b8aa.cdr.json] 2018-10-31 23:05:59.294857 [INFO] mod_json_cdr.c:275 Log to disk [/var/log/freeswitch/json_cdr/145c3b64-b3d5-4d4d-acc9-9edffa54b8aa.cdr.json] 2018-10-31 23:05:59.294857 [DEBUG] switch_core_state_machine.c:174 sofia/internal/27104760604@sbc.brightnetworks.co.za Standard REPORTING, cause: NORMAL_CLEARING 2018-10-31 23:05:59.294857 [DEBUG] switch_core_state_machine.c:938 (sofia/internal/27104760604@sbc.brightnetworks.co.za) State REPORTING going to sleep 2018-10-31 23:05:59.294857 [DEBUG] switch_core_state_machine.c:610 (sofia/internal/27104760604@sbc.brightnetworks.co.za) State Change CS_REPORTING -> CS_DESTROY 2018-10-31 23:05:59.294857 [DEBUG] switch_core_session.c:1665 Session 3729050 (sofia/internal/27104760604@sbc.brightnetworks.co.za) Locked, Waiting on external entities 2018-10-31 23:05:59.294857 [NOTICE] switch_core_session.c:1683 Session 3729050 (sofia/internal/27104760604@sbc.brightnetworks.co.za) Ended 2018-10-31 23:05:59.294857 [NOTICE] switch_core_session.c:1687 Close Channel sofia/internal/27104760604@sbc.brightnetworks.co.za [CS_DESTROY] 2018-10-31 23:05:59.294857 [DEBUG] switch_core_state_machine.c:741 (sofia/internal/27104760604@sbc.brightnetworks.co.za) Running State Change CS_DESTROY (Cur 8 Tot 3729052) 2018-10-31 23:05:59.294857 [DEBUG] switch_core_state_machine.c:751 (sofia/internal/27104760604@sbc.brightnetworks.co.za) State DESTROY 2018-10-31 23:05:59.294857 [DEBUG] mod_sofia.c:343 sofia/internal/27104760604@sbc.brightnetworks.co.za SOFIA DESTROY 2018-10-31 23:05:59.294857 [DEBUG] switch_core_state_machine.c:181 sofia/internal/27104760604@sbc.brightnetworks.co.za Standard DESTROY 2018-10-31 23:05:59.294857 [DEBUG] switch_core_state_machine.c:751 (sofia/internal/27104760604@sbc.brightnetworks.co.za) State DESTROY going to sleep 2018-10-31 23:05:59.754890 [DEBUG] switch_scheduler.c:144 Deleting task 8876727 switch_core_session_sched_heartbeat (145c3b64-b3d5-4d4d-acc9-9edffa54b8aa) 2018-10-31 23:05:59.754890 [DEBUG] switch_scheduler.c:144 Deleting task 8876728 switch_core_session_sched_heartbeat (7734e05b-cb41-4986-bb14-15db1f8f000b) 2018-10-31 23:05:59.754890 [DEBUG] switch_scheduler.c:144 Deleting task 8876729 switch_core_session_sched_heartbeat (f892355f-e010-46db-a054-dee5a15cf95f) freeswitch@freeswitch> /exit root@fs01:~#