span style="color: cornflowerblue; font-weight: bold;"> 2018-10-30 14:12:19.046978 [NOTICE] switch_channel.c:1104 New Channel sofia/internal/27104760604@sbc.brightnetworks.co.za [122d8ce4-d465-47b3-aa00-6a77cd84a0d7]
2018-10-30 14:12:19.046978 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/27104760604@sbc.brightnetworks.co.za) Running State Change CS_NEW (Cur 1 Tot 6)
2018-10-30 14:12:19.046978 [DEBUG] sofia.c:10080 sofia/internal/27104760604@sbc.brightnetworks.co.za receiving invite from 10.192.0.82:59138 version: 1.8.2 -3-a98a958ac3 64bit
2018-10-30 14:12:19.046978 [DEBUG] sofia.c:10206 1 acls to check for proxy
2018-10-30 14:12:19.046978 [DEBUG] sofia.c:10211 checking 10.192.0.82 against acl proxies
2018-10-30 14:12:19.046978 [DEBUG] sofia.c:10251 IP 10.192.0.82 Rejected by acl "proxies". Falling back to Digest auth.
2018-10-30 14:12:19.046978 [WARNING] sofia_reg.c:1793 SIP auth challenge (INVITE) on sofia profile 'internal' for [0112340142@sbc.brightnetworks.co.za] from ip 10.192.0.82
2018-10-30 14:12:19.046978 [DEBUG] switch_core_state_machine.c:603 (sofia/internal/27104760604@sbc.brightnetworks.co.za) State NEW
2018-10-30 14:12:19.046978 [DEBUG] sofia.c:2413 detaching session 122d8ce4-d465-47b3-aa00-6a77cd84a0d7
2018-10-30 14:12:19.186978 [DEBUG] sofia.c:2522 Re-attaching to session 122d8ce4-d465-47b3-aa00-6a77cd84a0d7
2018-10-30 14:12:19.186978 [DEBUG] sofia.c:10080 sofia/internal/27104760604@sbc.brightnetworks.co.za receiving invite from 10.192.0.82:59138 version: 1.8.2 -3-a98a958ac3 64bit
2018-10-30 14:12:19.186978 [DEBUG] sofia.c:10206 1 acls to check for proxy
2018-10-30 14:12:19.186978 [DEBUG] sofia.c:10211 checking 10.192.0.82 against acl proxies
2018-10-30 14:12:19.186978 [DEBUG] sofia.c:10251 IP 10.192.0.82 Rejected by acl "proxies". Falling back to Digest auth.
2018-10-30 14:12:19.186978 [DEBUG] sofia.c:11388 Setting NAT mode based on via received
2018-10-30 14:12:19.186978 [DEBUG] sofia.c:7291 Channel sofia/internal/27104760604@sbc.brightnetworks.co.za entering state [received][100]
2018-10-30 14:12:19.186978 [DEBUG] sofia.c:7301 Remote SDP:
v=0
o=- 1 2 IN IP4 192.168.16.55
s=CounterPath eyeBeam 1.5
c=IN IP4 192.168.16.55
t=0 0
m=audio 35140 RTP/AVP 18 101
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=alt:1 1 : o1ILEpNa eXMn2R4/ 192.168.16.55 35140
a=x-rtp-session-id:4A8532B61C1F4ADC934D59760B14A10B
m=video 48068 RTP/AVP 125 115 34
a=rtpmap:125 H264/90000
a=fmtp:125 profile-level-id=42e015; max-br=4000; max-mbps=19800
a=rtpmap:115 H263-1998/90000
a=fmtp:115 QCIF=1 MAXBR=10485
a=rtpmap:34 H263/90000
a=fmtp:34 QCIF=1 MAXBR=10485
a=alt:1 1 : 03rz/Rlv 0BWxB52R 192.168.16.55 48068
a=x-rtp-session-id:0690740DF0294703B4B878CBC2CB6B2B
2018-10-30 14:12:19.186978 [DEBUG] sofia.c:7695 (sofia/internal/27104760604@sbc.brightnetworks.co.za) State Change CS_NEW -> CS_INIT
2018-10-30 14:12:19.186978 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/27104760604@sbc.brightnetworks.co.za) Running State Change CS_INIT (Cur 1 Tot 6)
2018-10-30 14:12:19.186978 [DEBUG] switch_core_state_machine.c:627 (sofia/internal/27104760604@sbc.brightnetworks.co.za) State INIT
2018-10-30 14:12:19.186978 [DEBUG] mod_sofia.c:93 sofia/internal/27104760604@sbc.brightnetworks.co.za SOFIA INIT
2018-10-30 14:12:19.186978 [DEBUG] switch_core_state_machine.c:40 sofia/internal/27104760604@sbc.brightnetworks.co.za Standard INIT
2018-10-30 14:12:19.186978 [DEBUG] switch_core_state_machine.c:48 (sofia/internal/27104760604@sbc.brightnetworks.co.za) State Change CS_INIT -> CS_ROUTING
2018-10-30 14:12:19.186978 [DEBUG] switch_core_state_machine.c:627 (sofia/internal/27104760604@sbc.brightnetworks.co.za) State INIT going to sleep
2018-10-30 14:12:19.186978 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/27104760604@sbc.brightnetworks.co.za) Running State Change CS_ROUTING (Cur 1 Tot 6)
2018-10-30 14:12:19.186978 [DEBUG] switch_channel.c:2249 (sofia/internal/27104760604@sbc.brightnetworks.co.za) Callstate Change DOWN -> RINGING
2018-10-30 14:12:19.186978 [DEBUG] switch_core_state_machine.c:643 (sofia/internal/27104760604@sbc.brightnetworks.co.za) State ROUTING
2018-10-30 14:12:19.186978 [DEBUG] mod_sofia.c:154 sofia/internal/27104760604@sbc.brightnetworks.co.za SOFIA ROUTING
2018-10-30 14:12:19.186978 [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-30 14:12:19.186978 [DEBUG] mod_nibblebill.c:430 Retrieved current balance for account a6e32d84-0d4c-476a-a0a8-1f4b229027f6 (balance = -968.139016)
2018-10-30 14:12:19.186978 [DEBUG] switch_core_state_machine.c:236 sofia/internal/27104760604@sbc.brightnetworks.co.za Standard ROUTING
2018-10-30 14:12:19.186978 [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-30 14:12:19.186978 [DEBUG] switch_core_state_machine.c:286 (sofia/internal/27104760604@sbc.brightnetworks.co.za) State Change CS_ROUTING -> CS_EXECUTE
2018-10-30 14:12:19.186978 [DEBUG] switch_core_state_machine.c:643 (sofia/internal/27104760604@sbc.brightnetworks.co.za) State ROUTING going to sleep
2018-10-30 14:12:19.186978 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/27104760604@sbc.brightnetworks.co.za) Running State Change CS_EXECUTE (Cur 1 Tot 6)
2018-10-30 14:12:19.186978 [DEBUG] switch_core_state_machine.c:650 (sofia/internal/27104760604@sbc.brightnetworks.co.za) State EXECUTE
2018-10-30 14:12:19.186978 [DEBUG] mod_sofia.c:209 sofia/internal/27104760604@sbc.brightnetworks.co.za SOFIA EXECUTE
2018-10-30 14:12:19.186978 [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-30 14:12:19.186978 [DEBUG] mod_translate.c:128 translating [0112340142] against [sbc.convergedgroup.co.za-za] profile
2018-10-30 14:12:19.186978 [DEBUG] mod_translate.c:137 0112340142 =~ /^\+(\d+)$/
2018-10-30 14:12:19.186978 [DEBUG] mod_translate.c:137 0112340142 =~ /^00(\d{9,17})$/
2018-10-30 14:12:19.186978 [DEBUG] mod_translate.c:137 0112340142 =~ /^0(\d+)$/
2018-10-30 14:12:19.186978 [NOTICE] mod_translate.c:249 Translated: 27112340142
EXECUTE sofia/internal/27104760604@sbc.brightnetworks.co.za set(destination_number=27112340142)
2018-10-30 14:12:19.186978 [DEBUG] mod_dptools.c:1598 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-30 14:12:19.186978 [DEBUG] mod_dptools.c:1598 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-30 14:12:19.186978 [INFO] switch_cpp.cpp:1442 Destination_number: 27112340142<-----------
2018-10-30 14:12:19.186978 [NOTICE] switch_cpp.cpp:1442 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-30 14:12:19.226953 [NOTICE] switch_cpp.cpp:1442 <-------> Enable calls: 1 -----
2018-10-30 14:12:19.226953 [WARNING] switch_cpp.cpp:1442 <------- Getting Account Info for Client: Bright Office with account_code: 0823913044 ------->
2018-10-30 14:12:19.226953 [NOTICE] switch_cpp.cpp:1442 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-30 14:12:19.246992 [WARNING] switch_cpp.cpp:1442 elapsed time: 0.002857
2018-10-30 14:12:19.246992 [WARNING] switch_cpp.cpp:1442 -------------> Geting Client Tariff Plan info ------------->
2018-10-30 14:12:19.246992 [NOTICE] switch_cpp.cpp:1442 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-30 14:12:19.246992 [INFO] switch_cpp.cpp:1442 <----------------------------------------------------->
2018-10-30 14:12:19.246992 [INFO] switch_cpp.cpp:1442 Trying without tech prefix
2018-10-30 14:12:19.246992 [INFO] switch_cpp.cpp:1442 Dialed number : 27112340142
2018-10-30 14:12:19.246992 [INFO] switch_cpp.cpp:1442 Tariff Plan Name : BRONZE
2018-10-30 14:12:19.246992 [INFO] switch_cpp.cpp:1442 <----------------------------------------------------->
2018-10-30 14:12:19.246992 [WARNING] switch_cpp.cpp:1442 ------------ Getting Call cost for client ------------
2018-10-30 14:12:19.246992 [NOTICE] switch_cpp.cpp:1442 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-30 14:12:19.266971 [NOTICE] switch_cpp.cpp:1442 Code: 2711
EXECUTE sofia/internal/27104760604@sbc.brightnetworks.co.za export(execute_on_answer=nibblebill adjust -0)
2018-10-30 14:12:19.266971 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [execute_on_answer]=[nibblebill adjust -0]
2018-10-30 14:12:19.266971 [DEBUG] switch_cpp.cpp:755 CoreSession::setVariable('connect_fee', '0')
2018-10-30 14:12:19.266971 [DEBUG] switch_cpp.cpp:755 CoreSession::setVariable('nibble_rate', '0.4')
2018-10-30 14:12:19.266971 [DEBUG] switch_cpp.cpp:755 CoreSession::setVariable('nibble_minimum', '0.0066666666666667')
2018-10-30 14:12:19.266971 [DEBUG] switch_cpp.cpp:755 CoreSession::setVariable('nibble_increment', '1')
2018-10-30 14:12:19.266971 [DEBUG] switch_cpp.cpp:755 CoreSession::setVariable('nibble_account', 'A6E32D84-0D4C-476A-A0A8-1F4B229027F6')
2018-10-30 14:12:19.266971 [DEBUG] switch_cpp.cpp:755 CoreSession::setVariable('o_account', '0823913044')
2018-10-30 14:12:19.266971 [DEBUG] switch_cpp.cpp:755 CoreSession::setVariable('client_id', '5473851498396115')
2018-10-30 14:12:19.266971 [DEBUG] switch_cpp.cpp:755 CoreSession::setVariable('o_tenant', 'sbc.brightnetworks.co.za')
2018-10-30 14:12:19.266971 [DEBUG] switch_cpp.cpp:755 CoreSession::setVariable('nobal_amt', '-5000')
EXECUTE sofia/internal/27104760604@sbc.brightnetworks.co.za nibblebill(heartbeat 60)
2018-10-30 14:12:19.266971 [WARNING] switch_core_session.c:1654 sofia/internal/27104760604@sbc.brightnetworks.co.za using scheduler due to bypass media or media is not established.
2018-10-30 14:12:19.266971 [DEBUG] switch_scheduler.c:249 Added task 10 switch_core_session_sched_heartbeat (122d8ce4-d465-47b3-aa00-6a77cd84a0d7) to run at 1540901599
2018-10-30 14:12:19.266971 [DEBUG] switch_cpp.cpp:755 CoreSession::setVariable('o_dept', ' ')
2018-10-30 14:12:19.266971 [DEBUG] switch_cpp.cpp:755 CoreSession::setVariable('o_site', ' ')
2018-10-30 14:12:19.266971 [DEBUG] switch_cpp.cpp:755 CoreSession::setVariable('o_extension', ' ')
2018-10-30 14:12:19.266971 [DEBUG] switch_cpp.cpp:755 CoreSession::setVariable('o_custom', ' ')
2018-10-30 14:12:19.266971 [DEBUG] switch_cpp.cpp:755 CoreSession::setVariable('o_subject', ' ')
2018-10-30 14:12:19.266971 [DEBUG] switch_cpp.cpp:755 CoreSession::setVariable('o_supplier', ' ')
2018-10-30 14:12:19.266971 [DEBUG] switch_cpp.cpp:755 CoreSession::setVariable('o_reqtype', 'POSTPAID')
2018-10-30 14:12:19.266971 [DEBUG] switch_cpp.cpp:755 CoreSession::setVariable('o_category', 'BRONZE')
2018-10-30 14:12:19.266971 [DEBUG] switch_cpp.cpp:755 CoreSession::setVariable('prefix', '2711')
2018-10-30 14:12:19.266971 [DEBUG] switch_cpp.cpp:755 CoreSession::setVariable('destination_name', 'SA National_2711')
2018-10-30 14:12:19.266971 [DEBUG] switch_cpp.cpp:755 CoreSession::setVariable('destination_number', '27112340142')
2018-10-30 14:12:19.266971 [DEBUG] switch_cpp.cpp:755 CoreSession::setVariable('tor', '*voice')
2018-10-30 14:12:19.266971 [WARNING] switch_cpp.cpp:1442 -------------> Removing unwanted SIP Headers ------------->
EXECUTE sofia/internal/27104760604@sbc.brightnetworks.co.za unset(sip_h_X-accountcode)
2018-10-30 14:12:19.266971 [DEBUG] mod_dptools.c:1743 UNSET [sip_h_X-accountcode]
EXECUTE sofia/internal/27104760604@sbc.brightnetworks.co.za unset(sip_h_X-username)
2018-10-30 14:12:19.266971 [DEBUG] mod_dptools.c:1743 UNSET [sip_h_X-username]
EXECUTE sofia/internal/27104760604@sbc.brightnetworks.co.za unset(sip_h_X-extension)
2018-10-30 14:12:19.266971 [DEBUG] mod_dptools.c:1743 UNSET [sip_h_X-extension]
EXECUTE sofia/internal/27104760604@sbc.brightnetworks.co.za unset(sip_h_X-dept)
2018-10-30 14:12:19.266971 [DEBUG] mod_dptools.c:1743 UNSET [sip_h_X-dept]
EXECUTE sofia/internal/27104760604@sbc.brightnetworks.co.za unset(sip_h_X-site)
2018-10-30 14:12:19.266971 [DEBUG] mod_dptools.c:1743 UNSET [sip_h_X-site]
EXECUTE sofia/internal/27104760604@sbc.brightnetworks.co.za unset(sip_h_X-custom)
2018-10-30 14:12:19.266971 [DEBUG] mod_dptools.c:1743 UNSET [sip_h_X-custom]
2018-10-30 14:12:19.266971 [NOTICE] switch_cpp.cpp:1442 Checking if 27112340142 is a DID <-------------
2018-10-30 14:12:19.266971 [NOTICE] switch_cpp.cpp:1442 SELECT status from management_did where did_number = '27112340142' and status != 'ported_out'
2018-10-30 14:12:19.266971 [WARNING] switch_cpp.cpp:1442 ------------ Getting LCR info ------------
2018-10-30 14:12:19.266971 [NOTICE] switch_cpp.cpp:1442 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-30 14:12:19.266971 [INFO] switch_cpp.cpp:1442 ------------------ No of routes found: 1 ------------------
2018-10-30 14:12:19.266971 [INFO] switch_cpp.cpp:1442 -------> lcr_profile: lc
2018-10-30 14:12:19.266971 [INFO] switch_cpp.cpp:1442 -------> lcr_allow_negative_profit: 1.00
2018-10-30 14:12:19.266971 [INFO] switch_cpp.cpp:1442 ----------------------- Route [ 1 of 1 ] -----------------------
2018-10-30 14:12:19.266971 [NOTICE] switch_cpp.cpp:1442 -------> lcr_code[1]: 2711
2018-10-30 14:12:19.266971 [NOTICE] switch_cpp.cpp:1442 -------> lcr_destination_name[1]: SA National_2711
2018-10-30 14:12:19.266971 [NOTICE] switch_cpp.cpp:1442 -------> lcr_connect_fee[1]: 0.00000
2018-10-30 14:12:19.266971 [NOTICE] switch_cpp.cpp:1442 -------> lcr_rate[1]: 0.16000
2018-10-30 14:12:19.266971 [NOTICE] switch_cpp.cpp:1442 -------> lcr_rate_minimum[1]: 1
2018-10-30 14:12:19.266971 [NOTICE] switch_cpp.cpp:1442 -------> lcr_rate_increment[1]: 1
2018-10-30 14:12:19.266971 [NOTICE] switch_cpp.cpp:1442 -------> lcr_prefix[1]:
2018-10-30 14:12:19.266971 [NOTICE] switch_cpp.cpp:1442 -------> lcr_tariff_plan[1]: PROVIDER_CONVERGED
2018-10-30 14:12:19.266971 [NOTICE] switch_cpp.cpp:1442 -------> lcr_carrier_id[1]: 5465400089730286
2018-10-30 14:12:19.266971 [NOTICE] switch_cpp.cpp:1442 -------> lcr_effective_date[1]: 2018-10-19 02:03:38
2018-10-30 14:12:19.266971 [NOTICE] switch_cpp.cpp:1442 -------> lcr_expiry_date[1]: 2028-10-19 02:03:38
2018-10-30 14:12:19.266971 [NOTICE] switch_cpp.cpp:1442 -------> lcr_enabled[1]: 1
2018-10-30 14:12:19.266971 [INFO] switch_cpp.cpp:1442 ------------------------------------------------------------------
2018-10-30 14:12:19.266971 [DEBUG] switch_cpp.cpp:755 CoreSession::setVariable('sip_h_X-cid', '6532fb1e7b72f826ZDljYjFhNzA3YTM3YWRhZmExODVhZGRhYTdlMTMwNDI.')
2018-10-30 14:12:19.266971 [WARNING] switch_cpp.cpp:1442 ------->122d8ce4-d465-47b3-aa00-6a77cd84a0d7 - WS CALL Set value :.....: sip_h_X-cid 6532fb1e7b72f826ZDljYjFhNzA3YTM3YWRhZmExODVhZGRhYTdlMTMwNDI.<-------------
2018-10-30 14:12:19.266971 [INFO] switch_cpp.cpp:1442 ----------> Call progressing through the diaplan <----------
2018-10-30 14:12:19.266971 [INFO] switch_cpp.cpp:1442 --------------------- Customer rate: 0.4
2018-10-30 14:12:19.266971 [INFO] switch_cpp.cpp:1442 ----------- Negative profit allowed: 1.00%
2018-10-30 14:12:19.266971 [INFO] switch_cpp.cpp:1442 ---- 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-30 14:12:19.266971 [DEBUG] switch_limit.c:126 incr called: sbc.brightnetworks.co.za_27104760604 max:20, interval:0
2018-10-30 14:12:19.266971 [DEBUG] mod_hash.c:196 Usage for sbc.brightnetworks.co.za_27104760604 is now 1/20
2018-10-30 14:12:19.266971 [INFO] switch_cpp.cpp:1442 Limit for this client: 27104760604 is 20 Concurrent and 5 CPS <-----------
2018-10-30 14:12:19.266971 [INFO] switch_cpp.cpp:1442 -------------> Provider_1 rate: 0.16000 <-----------
2018-10-30 14:12:19.266971 [INFO] switch_cpp.cpp:1442 <-------------------------------------------------->
2018-10-30 14:12:19.266971 [NOTICE] switch_cpp.cpp:1442 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-30 14:12:19.266971 [INFO] switch_cpp.cpp:1442 -----------------> Trying LCR Route = 1 of 1 <-----------------
EXECUTE sofia/internal/27104760604@sbc.brightnetworks.co.za export(execute_on_answer=nibblebill adjust -0)
2018-10-30 14:12:19.266971 [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-30 14:12:19.266971 [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-30 14:12:19.266971 [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-30 14:12:19.266971 [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-30 14:12:19.266971 [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-30 14:12:19.266971 [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-30 14:12:19.266971 [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-30 14:12:19.266971 [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-30 14:12:19.266971 [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-30 14:12:19.266971 [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-30 14:12:19.266971 [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-30 14:12:19.266971 [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-30 14:12:19.266971 [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-30 14:12:19.266971 [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-30 14:12:19.266971 [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-30 14:12:19.266971 [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-30 14:12:19.266971 [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-30 14:12:19.266971 [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-30 14:12:19.266971 [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-30 14:12:19.266971 [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-30 14:12:19.266971 [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-30 14:12:19.266971 [WARNING] switch_core_session.c:1654 sofia/internal/27104760604@sbc.brightnetworks.co.za using scheduler due to bypass media or media is not established.
2018-10-30 14:12:19.266971 [DEBUG] switch_scheduler.c:249 Added task 11 switch_core_session_sched_heartbeat (122d8ce4-d465-47b3-aa00-6a77cd84a0d7) to run at 1540901599
2018-10-30 14:12:19.266971 [DEBUG] switch_scheduler.c:144 Deleting task 10 switch_core_session_sched_heartbeat (122d8ce4-d465-47b3-aa00-6a77cd84a0d7)
2018-10-30 14:12:19.266971 [DEBUG] switch_cpp.cpp:755 CoreSession::setVariable('execute_on_answer', 'sched_hangup +7200 allotted_timeout')
2018-10-30 14:12:19.266971 [WARNING] switch_cpp.cpp:1442 ------->122d8ce4-d465-47b3-aa00-6a77cd84a0d7 - WS CALL Set value :.....: execute_on_answer sched_hangup +7200 allotted_timeout<-------------
2018-10-30 14:12:19.266971 [NOTICE] switch_cpp.cpp:1442 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-30 14:12:19.266971 [NOTICE] switch_cpp.cpp:1442 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'
EXECUTE sofia/internal/27104760604@sbc.brightnetworks.co.za limit(hash sbc.brightnetworks.co.za Bright-Converged 100!BEARERCAPABILITY_NOTAVAIL)
2018-10-30 14:12:19.266971 [DEBUG] switch_limit.c:126 incr called: sbc.brightnetworks.co.za_Bright-Converged max:100, interval:0
2018-10-30 14:12:19.266971 [DEBUG] mod_hash.c:196 Usage for sbc.brightnetworks.co.za_Bright-Converged is now 1/100
2018-10-30 14:12:19.266971 [INFO] switch_cpp.cpp:1442 Maximum concurrent calls for Gateway 1: Bright-Converged = 100 <-----------
2018-10-30 14:12:19.266971 [INFO] switch_cpp.cpp:1442 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-30 14:12:19.306937 [DEBUG] switch_cpp.cpp:755 CoreSession::setVariable('effective_caller_id_name', '27104760604')
2018-10-30 14:12:19.306937 [WARNING] switch_cpp.cpp:1442 ------->122d8ce4-d465-47b3-aa00-6a77cd84a0d7 - WS CALL Set value :.....: effective_caller_id_name 27104760604<-------------
2018-10-30 14:12:19.306937 [DEBUG] switch_cpp.cpp:755 CoreSession::setVariable('effective_caller_id_number', '27104760604')
2018-10-30 14:12:19.306937 [DEBUG] switch_cpp.cpp:755 CoreSession::setVariable('call_direction', 'outbound')
2018-10-30 14:12:19.306937 [WARNING] switch_cpp.cpp:1442 ------->122d8ce4-d465-47b3-aa00-6a77cd84a0d7 - WS CALL Set value :.....: call_direction outbound<-------------
2018-10-30 14:12:19.306937 [DEBUG] switch_cpp.cpp:755 CoreSession::setVariable('continue_on_fail', 'true')
2018-10-30 14:12:19.306937 [WARNING] switch_cpp.cpp:1442 ------->122d8ce4-d465-47b3-aa00-6a77cd84a0d7 - WS CALL Set value :.....: continue_on_fail true<-------------
2018-10-30 14:12:19.306937 [DEBUG] switch_cpp.cpp:755 CoreSession::setVariable('hangup_after_bridge', 'true')
2018-10-30 14:12:19.306937 [WARNING] switch_cpp.cpp:1442 ------->122d8ce4-d465-47b3-aa00-6a77cd84a0d7 - WS CALL Set value :.....: hangup_after_bridge true<-------------
2018-10-30 14:12:19.306937 [DEBUG] switch_cpp.cpp:755 CoreSession::setVariable('ignore_display_updates', 'true')
2018-10-30 14:12:19.306937 [WARNING] switch_cpp.cpp:1442 ------->122d8ce4-d465-47b3-aa00-6a77cd84a0d7 - WS CALL Set value :.....: ignore_display_updates true<-------------
EXECUTE sofia/internal/27104760604@sbc.brightnetworks.co.za export(codec_string=G729)
2018-10-30 14:12:19.306937 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [codec_string]=[G729]
EXECUTE sofia/internal/27104760604@sbc.brightnetworks.co.za export(nolocal:absolute_codec_string=G729)
2018-10-30 14:12:19.306937 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) (REMOTE ONLY) [absolute_codec_string]=[G729]
EXECUTE sofia/internal/27104760604@sbc.brightnetworks.co.za export(fax_enable_t38_request=true)
2018-10-30 14:12:19.306937 [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-30 14:12:19.306937 [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-30 14:12:19.306937 [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-30 14:12:19.306937 [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-30 14:12:19.306937 [DEBUG] switch_channel.c:1250 sofia/internal/27104760604@sbc.brightnetworks.co.za EXPORTING[export_vars] [connect_fee]=[0.00000] to event
2018-10-30 14:12:19.306937 [DEBUG] switch_channel.c:1250 sofia/internal/27104760604@sbc.brightnetworks.co.za EXPORTING[export_vars] [nibble_rate]=[0.16000] to event
2018-10-30 14:12:19.306937 [DEBUG] switch_channel.c:1250 sofia/internal/27104760604@sbc.brightnetworks.co.za EXPORTING[export_vars] [nibble_minimum]=[0.0026666666666667] to event
2018-10-30 14:12:19.306937 [DEBUG] switch_channel.c:1250 sofia/internal/27104760604@sbc.brightnetworks.co.za EXPORTING[export_vars] [nibble_increment]=[1] to event
2018-10-30 14:12:19.306937 [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-30 14:12:19.306937 [DEBUG] switch_channel.c:1250 sofia/internal/27104760604@sbc.brightnetworks.co.za EXPORTING[export_vars] [o_account]=[5428397474] to event
2018-10-30 14:12:19.306937 [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-30 14:12:19.306937 [DEBUG] switch_channel.c:1250 sofia/internal/27104760604@sbc.brightnetworks.co.za EXPORTING[export_vars] [o_dept]=[ ] to event
2018-10-30 14:12:19.306937 [DEBUG] switch_channel.c:1250 sofia/internal/27104760604@sbc.brightnetworks.co.za EXPORTING[export_vars] [o_site]=[ ] to event
2018-10-30 14:12:19.306937 [DEBUG] switch_channel.c:1250 sofia/internal/27104760604@sbc.brightnetworks.co.za EXPORTING[export_vars] [o_extension]=[ ] to event
2018-10-30 14:12:19.306937 [DEBUG] switch_channel.c:1250 sofia/internal/27104760604@sbc.brightnetworks.co.za EXPORTING[export_vars] [o_custom]=[ ] to event
2018-10-30 14:12:19.306937 [DEBUG] switch_channel.c:1250 sofia/internal/27104760604@sbc.brightnetworks.co.za EXPORTING[export_vars] [o_subject]=[ ] to event
2018-10-30 14:12:19.306937 [DEBUG] switch_channel.c:1250 sofia/internal/27104760604@sbc.brightnetworks.co.za EXPORTING[export_vars] [o_supplier]=[ ] to event
2018-10-30 14:12:19.306937 [DEBUG] switch_channel.c:1250 sofia/internal/27104760604@sbc.brightnetworks.co.za EXPORTING[export_vars] [o_reqtype]=[POSTPAID] to event
2018-10-30 14:12:19.306937 [DEBUG] switch_channel.c:1250 sofia/internal/27104760604@sbc.brightnetworks.co.za EXPORTING[export_vars] [o_category]=[PROVIDER_CONVERGED] to event
2018-10-30 14:12:19.306937 [DEBUG] switch_channel.c:1250 sofia/internal/27104760604@sbc.brightnetworks.co.za EXPORTING[export_vars] [prefix]=[2711] to event
2018-10-30 14:12:19.306937 [DEBUG] switch_channel.c:1250 sofia/internal/27104760604@sbc.brightnetworks.co.za EXPORTING[export_vars] [destination_name]=[SA National_2711] to event
2018-10-30 14:12:19.306937 [DEBUG] switch_channel.c:1250 sofia/internal/27104760604@sbc.brightnetworks.co.za EXPORTING[export_vars] [destination_number]=[27112340142] to event
2018-10-30 14:12:19.306937 [DEBUG] switch_channel.c:1250 sofia/internal/27104760604@sbc.brightnetworks.co.za EXPORTING[export_vars] [tor]=[*voice] to event
2018-10-30 14:12:19.306937 [DEBUG] switch_channel.c:1250 sofia/internal/27104760604@sbc.brightnetworks.co.za EXPORTING[export_vars] [nobal_amt]=[-30000] to event
2018-10-30 14:12:19.306937 [DEBUG] switch_channel.c:1250 sofia/internal/27104760604@sbc.brightnetworks.co.za EXPORTING[export_vars] [codec_string]=[G729] to event
2018-10-30 14:12:19.306937 [DEBUG] switch_channel.c:1250 sofia/internal/27104760604@sbc.brightnetworks.co.za EXPORTING[export_vars] [absolute_codec_string]=[G729] to event
2018-10-30 14:12:19.306937 [DEBUG] switch_channel.c:1250 sofia/internal/27104760604@sbc.brightnetworks.co.za EXPORTING[export_vars] [fax_enable_t38_request]=[true] to event
2018-10-30 14:12:19.306937 [DEBUG] switch_channel.c:1250 sofia/internal/27104760604@sbc.brightnetworks.co.za EXPORTING[export_vars] [fax_enable_t38]=[true] to event
2018-10-30 14:12:19.306937 [DEBUG] switch_ivr_originate.c:2204 Parsing global variables
2018-10-30 14:12:19.306937 [DEBUG] switch_ivr_originate.c:2749 Parsing session specific variables
2018-10-30 14:12:19.306937 [NOTICE] switch_channel.c:1104 New Channel sofia/external/27112340142 [c57d428f-7703-4c48-afe1-ba215b216b3e]
2018-10-30 14:12:19.306937 [DEBUG] mod_sofia.c:5028 (sofia/external/27112340142) State Change CS_NEW -> CS_INIT
2018-10-30 14:12:19.306937 [DEBUG] switch_ivr_originate.c:3065 sofia/external/27112340142 Setting leg progress timeout to 20
2018-10-30 14:12:19.306937 [DEBUG] switch_core_state_machine.c:584 (sofia/external/27112340142) Running State Change CS_INIT (Cur 2 Tot 7)
2018-10-30 14:12:19.306937 [DEBUG] switch_core_state_machine.c:627 (sofia/external/27112340142) State INIT
2018-10-30 14:12:19.306937 [DEBUG] mod_sofia.c:93 sofia/external/27112340142 SOFIA INIT
2018-10-30 14:12:19.306937 [DEBUG] sofia_glue.c:1299 sofia/external/27112340142 sending invite version: 1.8.2 -3-a98a958ac3 64bit
Local SDP:
v=0
o=cgrtbilling 1540872245 1540872246 IN IP4 154.118.252.37
s=cgrtbilling
c=IN IP4 154.118.252.37
t=0 0
m=audio 29294 RTP/AVP 18 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv
2018-10-30 14:12:19.306937 [DEBUG] switch_core_state_machine.c:40 sofia/external/27112340142 Standard INIT
2018-10-30 14:12:19.306937 [DEBUG] switch_core_state_machine.c:48 (sofia/external/27112340142) State Change CS_INIT -> CS_ROUTING
2018-10-30 14:12:19.306937 [DEBUG] switch_core_state_machine.c:627 (sofia/external/27112340142) State INIT going to sleep
2018-10-30 14:12:19.306937 [DEBUG] switch_core_state_machine.c:584 (sofia/external/27112340142) Running State Change CS_ROUTING (Cur 2 Tot 7)
2018-10-30 14:12:19.306937 [DEBUG] sofia.c:7291 Channel sofia/external/27112340142 entering state [calling][0]
2018-10-30 14:12:19.306937 [DEBUG] switch_core_state_machine.c:643 (sofia/external/27112340142) State ROUTING
2018-10-30 14:12:19.306937 [DEBUG] mod_sofia.c:154 sofia/external/27112340142 SOFIA ROUTING
2018-10-30 14:12:19.306937 [DEBUG] switch_ivr_originate.c:67 (sofia/external/27112340142) State Change CS_ROUTING -> CS_CONSUME_MEDIA
2018-10-30 14:12:19.306937 [DEBUG] mod_nibblebill.c:506 Attempting to bill at $0.16000 per minute to account CCE9A0C3-B568-424A-A254-90474CED1E60
2018-10-30 14:12:19.306937 [DEBUG] mod_nibblebill.c:518 Not billing CCE9A0C3-B568-424A-A254-90474CED1E60 - call is not in answered state
2018-10-30 14:12:19.306937 [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-30 14:12:19.306937 [DEBUG] mod_nibblebill.c:430 Retrieved current balance for account CCE9A0C3-B568-424A-A254-90474CED1E60 (balance = -670.539500)
2018-10-30 14:12:19.306937 [DEBUG] mod_nibblebill.c:523 Comparing -670.539500 to hangup balance of -30000.000000, taking into account minimum charge of 0.002667
2018-10-30 14:12:19.306937 [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-30 14:12:19.306937 [DEBUG] mod_nibblebill.c:430 Retrieved current balance for account CCE9A0C3-B568-424A-A254-90474CED1E60 (balance = -670.539500)
2018-10-30 14:12:19.306937 [DEBUG] switch_core_state_machine.c:643 (sofia/external/27112340142) State ROUTING going to sleep
2018-10-30 14:12:19.306937 [DEBUG] switch_core_state_machine.c:584 (sofia/external/27112340142) Running State Change CS_CONSUME_MEDIA (Cur 2 Tot 7)
2018-10-30 14:12:19.306937 [DEBUG] switch_core_state_machine.c:662 (sofia/external/27112340142) State CONSUME_MEDIA
2018-10-30 14:12:19.306937 [DEBUG] mod_nibblebill.c:506 Attempting to bill at $0.16000 per minute to account CCE9A0C3-B568-424A-A254-90474CED1E60
2018-10-30 14:12:19.306937 [DEBUG] mod_nibblebill.c:518 Not billing CCE9A0C3-B568-424A-A254-90474CED1E60 - call is not in answered state
2018-10-30 14:12:19.306937 [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-30 14:12:19.306937 [DEBUG] mod_nibblebill.c:430 Retrieved current balance for account CCE9A0C3-B568-424A-A254-90474CED1E60 (balance = -670.539500)
2018-10-30 14:12:19.306937 [DEBUG] mod_nibblebill.c:523 Comparing -670.539500 to hangup balance of -30000.000000, taking into account minimum charge of 0.002667
2018-10-30 14:12:19.306937 [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-30 14:12:19.306937 [DEBUG] mod_nibblebill.c:430 Retrieved current balance for account CCE9A0C3-B568-424A-A254-90474CED1E60 (balance = -670.539500)
2018-10-30 14:12:19.306937 [DEBUG] sofia.c:7291 Channel sofia/external/27112340142 entering state [calling][0]
2018-10-30 14:12:19.306937 [WARNING] switch_core_session.c:1654 sofia/external/27112340142 using scheduler due to bypass media or media is not established.
2018-10-30 14:12:19.306937 [DEBUG] switch_scheduler.c:249 Added task 12 switch_core_session_sched_heartbeat (c57d428f-7703-4c48-afe1-ba215b216b3e) to run at 1540901569
2018-10-30 14:12:19.306937 [DEBUG] switch_core_state_machine.c:662 (sofia/external/27112340142) State CONSUME_MEDIA going to sleep
2018-10-30 14:12:19.366940 [DEBUG] sofia.c:7291 Channel sofia/external/27112340142 entering state [terminated][500]
2018-10-30 14:12:19.366940 [NOTICE] sofia.c:8484 Hangup sofia/external/27112340142 [CS_CONSUME_MEDIA] [NORMAL_TEMPORARY_FAILURE]
2018-10-30 14:12:19.366940 [DEBUG] switch_core_state_machine.c:584 (sofia/external/27112340142) Running State Change CS_HANGUP (Cur 2 Tot 7)
2018-10-30 14:12:19.366940 [DEBUG] switch_core_state_machine.c:847 (sofia/external/27112340142) Callstate Change DOWN -> HANGUP
2018-10-30 14:12:19.366940 [DEBUG] switch_core_state_machine.c:849 (sofia/external/27112340142) State HANGUP
2018-10-30 14:12:19.366940 [DEBUG] mod_sofia.c:449 Channel sofia/external/27112340142 hanging up, cause: NORMAL_TEMPORARY_FAILURE
2018-10-30 14:12:19.366940 [DEBUG] mod_nibblebill.c:506 Attempting to bill at $0.16000 per minute to account CCE9A0C3-B568-424A-A254-90474CED1E60
2018-10-30 14:12:19.366940 [DEBUG] mod_nibblebill.c:518 Not billing CCE9A0C3-B568-424A-A254-90474CED1E60 - call is not in answered state
2018-10-30 14:12:19.366940 [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-30 14:12:19.366940 [DEBUG] mod_nibblebill.c:430 Retrieved current balance for account CCE9A0C3-B568-424A-A254-90474CED1E60 (balance = -670.539500)
2018-10-30 14:12:19.366940 [DEBUG] mod_nibblebill.c:523 Comparing -670.539500 to hangup balance of -30000.000000, taking into account minimum charge of 0.002667
2018-10-30 14:12:19.366940 [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-30 14:12:19.366940 [DEBUG] mod_nibblebill.c:430 Retrieved current balance for account CCE9A0C3-B568-424A-A254-90474CED1E60 (balance = -670.539500)
2018-10-30 14:12:19.366940 [DEBUG] switch_core_state_machine.c:60 sofia/external/27112340142 Standard HANGUP, cause: NORMAL_TEMPORARY_FAILURE
2018-10-30 14:12:19.366940 [DEBUG] switch_core_state_machine.c:849 (sofia/external/27112340142) State HANGUP going to sleep
2018-10-30 14:12:19.366940 [DEBUG] switch_core_state_machine.c:619 (sofia/external/27112340142) State Change CS_HANGUP -> CS_REPORTING
2018-10-30 14:12:19.366940 [DEBUG] switch_core_state_machine.c:584 (sofia/external/27112340142) Running State Change CS_REPORTING (Cur 2 Tot 7)
2018-10-30 14:12:19.366940 [DEBUG] switch_core_state_machine.c:935 (sofia/external/27112340142) State REPORTING
2018-10-30 14:12:19.366940 [INFO] mod_json_cdr.c:271 Process [c57d428f-7703-4c48-afe1-ba215b216b3e.cdr.json]
2018-10-30 14:12:19.366940 [INFO] mod_json_cdr.c:275 Log to disk [/var/log/freeswitch/json_cdr/c57d428f-7703-4c48-afe1-ba215b216b3e.cdr.json]
2018-10-30 14:12:19.366940 [DEBUG] switch_core_state_machine.c:174 sofia/external/27112340142 Standard REPORTING, cause: NORMAL_TEMPORARY_FAILURE
2018-10-30 14:12:19.366940 [DEBUG] switch_core_state_machine.c:935 (sofia/external/27112340142) State REPORTING going to sleep
2018-10-30 14:12:19.366940 [DEBUG] switch_core_state_machine.c:610 (sofia/external/27112340142) State Change CS_REPORTING -> CS_DESTROY
2018-10-30 14:12:19.366940 [DEBUG] switch_core_session.c:1714 Session 7 (sofia/external/27112340142) Locked, Waiting on external entities
2018-10-30 14:12:19.366940 [DEBUG] switch_ivr_originate.c:3941 Originate Resulted in Error Cause: 41 [NORMAL_TEMPORARY_FAILURE]
2018-10-30 14:12:19.366940 [NOTICE] switch_core_session.c:1732 Session 7 (sofia/external/27112340142) Ended
2018-10-30 14:12:19.366940 [NOTICE] switch_core_session.c:1736 Close Channel sofia/external/27112340142 [CS_DESTROY]
2018-10-30 14:12:19.366940 [DEBUG] switch_core_state_machine.c:738 (sofia/external/27112340142) Running State Change CS_DESTROY (Cur 1 Tot 7)
2018-10-30 14:12:19.366940 [DEBUG] switch_core_state_machine.c:748 (sofia/external/27112340142) State DESTROY
2018-10-30 14:12:19.366940 [DEBUG] mod_sofia.c:354 sofia/external/27112340142 SOFIA DESTROY
2018-10-30 14:12:19.366940 [DEBUG] switch_core_state_machine.c:181 sofia/external/27112340142 Standard DESTROY
2018-10-30 14:12:19.366940 [DEBUG] switch_core_state_machine.c:748 (sofia/external/27112340142) State DESTROY going to sleep
2018-10-30 14:12:19.366940 [INFO] mod_dptools.c:3518 Originate Failed. Cause: NORMAL_TEMPORARY_FAILURE
2018-10-30 14:12:19.366940 [WARNING] switch_cpp.cpp:1442 The call failed with NORMAL_TEMPORARY_FAILURE <-----------
2018-10-30 14:12:19.366940 [DEBUG] switch_cpp.cpp:1187 sofia/internal/27104760604@sbc.brightnetworks.co.za destroy/unlink session from object
2018-10-30 14:12:19.366940 [NOTICE] switch_core_state_machine.c:385 sofia/internal/27104760604@sbc.brightnetworks.co.za has executed the last dialplan instruction, hanging up.
2018-10-30 14:12:19.366940 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/internal/27104760604@sbc.brightnetworks.co.za [CS_EXECUTE] [NORMAL_CLEARING]
2018-10-30 14:12:19.366940 [DEBUG] mod_hash.c:297 Usage for sbc.brightnetworks.co.za_Bright-Converged is now 0
2018-10-30 14:12:19.366940 [DEBUG] mod_hash.c:297 Usage for sbc.brightnetworks.co.za_27104760604 is now 0
2018-10-30 14:12:19.366940 [DEBUG] switch_core_state_machine.c:650 (sofia/internal/27104760604@sbc.brightnetworks.co.za) State EXECUTE going to sleep
2018-10-30 14:12:19.366940 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/27104760604@sbc.brightnetworks.co.za) Running State Change CS_HANGUP (Cur 1 Tot 7)
2018-10-30 14:12:19.366940 [DEBUG] switch_core_state_machine.c:847 (sofia/internal/27104760604@sbc.brightnetworks.co.za) Callstate Change RINGING -> HANGUP
2018-10-30 14:12:19.366940 [DEBUG] switch_core_state_machine.c:849 (sofia/internal/27104760604@sbc.brightnetworks.co.za) State HANGUP
2018-10-30 14:12:19.366940 [DEBUG] mod_sofia.c:443 sofia/internal/27104760604@sbc.brightnetworks.co.za Overriding SIP cause 480 with 500 from the other leg
2018-10-30 14:12:19.366940 [DEBUG] mod_sofia.c:449 Channel sofia/internal/27104760604@sbc.brightnetworks.co.za hanging up, cause: NORMAL_CLEARING
2018-10-30 14:12:19.366940 [DEBUG] mod_sofia.c:588 Responding to INVITE with: 500
2018-10-30 14:12:19.366940 [DEBUG] mod_nibblebill.c:506 Attempting to bill at $0.4 per minute to account A6E32D84-0D4C-476A-A0A8-1F4B229027F6
2018-10-30 14:12:19.366940 [DEBUG] mod_nibblebill.c:518 Not billing A6E32D84-0D4C-476A-A0A8-1F4B229027F6 - call is not in answered state
2018-10-30 14:12:19.366940 [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-30 14:12:19.366940 [DEBUG] mod_nibblebill.c:430 Retrieved current balance for account A6E32D84-0D4C-476A-A0A8-1F4B229027F6 (balance = -968.139016)
2018-10-30 14:12:19.366940 [DEBUG] mod_nibblebill.c:523 Comparing -968.139016 to hangup balance of -5000.000000, taking into account minimum charge of 0.006667
2018-10-30 14:12:19.366940 [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-30 14:12:19.366940 [DEBUG] mod_nibblebill.c:430 Retrieved current balance for account A6E32D84-0D4C-476A-A0A8-1F4B229027F6 (balance = -968.139016)
2018-10-30 14:12:19.366940 [DEBUG] switch_core_state_machine.c:60 sofia/internal/27104760604@sbc.brightnetworks.co.za Standard HANGUP, cause: NORMAL_CLEARING
2018-10-30 14:12:19.366940 [DEBUG] switch_core_state_machine.c:849 (sofia/internal/27104760604@sbc.brightnetworks.co.za) State HANGUP going to sleep
2018-10-30 14:12:19.366940 [DEBUG] switch_core_state_machine.c:619 (sofia/internal/27104760604@sbc.brightnetworks.co.za) State Change CS_HANGUP -> CS_REPORTING
2018-10-30 14:12:19.366940 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/27104760604@sbc.brightnetworks.co.za) Running State Change CS_REPORTING (Cur 1 Tot 7)
2018-10-30 14:12:19.366940 [DEBUG] switch_core_state_machine.c:935 (sofia/internal/27104760604@sbc.brightnetworks.co.za) State REPORTING
2018-10-30 14:12:19.366940 [INFO] mod_json_cdr.c:271 Process [122d8ce4-d465-47b3-aa00-6a77cd84a0d7.cdr.json]
2018-10-30 14:12:19.366940 [INFO] mod_json_cdr.c:275 Log to disk [/var/log/freeswitch/json_cdr/122d8ce4-d465-47b3-aa00-6a77cd84a0d7.cdr.json]
2018-10-30 14:12:19.366940 [DEBUG] switch_core_state_machine.c:174 sofia/internal/27104760604@sbc.brightnetworks.co.za Standard REPORTING, cause: NORMAL_CLEARING
2018-10-30 14:12:19.366940 [DEBUG] switch_core_state_machine.c:935 (sofia/internal/27104760604@sbc.brightnetworks.co.za) State REPORTING going to sleep
2018-10-30 14:12:19.366940 [DEBUG] switch_core_state_machine.c:610 (sofia/internal/27104760604@sbc.brightnetworks.co.za) State Change CS_REPORTING -> CS_DESTROY
2018-10-30 14:12:19.366940 [DEBUG] switch_core_session.c:1714 Session 6 (sofia/internal/27104760604@sbc.brightnetworks.co.za) Locked, Waiting on external entities
2018-10-30 14:12:19.366940 [NOTICE] switch_core_session.c:1732 Session 6 (sofia/internal/27104760604@sbc.brightnetworks.co.za) Ended
2018-10-30 14:12:19.366940 [NOTICE] switch_core_session.c:1736 Close Channel sofia/internal/27104760604@sbc.brightnetworks.co.za [CS_DESTROY]
2018-10-30 14:12:19.366940 [DEBUG] switch_core_state_machine.c:738 (sofia/internal/27104760604@sbc.brightnetworks.co.za) Running State Change CS_DESTROY (Cur 0 Tot 7)
2018-10-30 14:12:19.366940 [DEBUG] switch_core_state_machine.c:748 (sofia/internal/27104760604@sbc.brightnetworks.co.za) State DESTROY
2018-10-30 14:12:19.366940 [DEBUG] mod_sofia.c:354 sofia/internal/27104760604@sbc.brightnetworks.co.za SOFIA DESTROY
2018-10-30 14:12:19.366940 [DEBUG] switch_core_state_machine.c:181 sofia/internal/27104760604@sbc.brightnetworks.co.za Standard DESTROY
2018-10-30 14:12:19.366940 [DEBUG] switch_core_state_machine.c:748 (sofia/internal/27104760604@sbc.brightnetworks.co.za) State DESTROY going to sleep
2018-10-30 14:12:19.786983 [DEBUG] switch_scheduler.c:144 Deleting task 11 switch_core_session_sched_heartbeat (122d8ce4-d465-47b3-aa00-6a77cd84a0d7)
2018-10-30 14:12:19.786983 [DEBUG] switch_scheduler.c:144 Deleting task 12 switch_core_session_sched_heartbeat (c57d428f-7703-4c48-afe1-ba215b216b3e)
freeswitch@freeswitch>