|
Dear Team,
We are facing an issue to bill inbound call. inbound call cost is showing : 0.00.
Issue is balance not deducting either from provider account or Resellers account, however retails account billing is proper.
Below is the log
2019-01-23 12:23:22.395294 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
2019-01-23 12:23:22.395294 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
2019-01-23 12:23:22.395294 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
2019-01-23 12:23:22.395294 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:20:8000:1]
2019-01-23 12:23:22.395294 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMA:8:8000:20:64000:1]
2019-01-23 12:23:22.395294 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMU:0:8000:20:64000:1]
2019-01-23 12:23:22.395294 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [GSM:3:8000:20:13200:1]/[G729:18:8000:20:8000:1]
2019-01-23 12:23:22.395294 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
2019-01-23 12:23:22.395294 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
2019-01-23 12:23:22.395294 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
2019-01-23 12:23:22.395294 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
2019-01-23 12:23:22.395294 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
2019-01-23 12:23:22.395294 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/10001@192.168.2.240 PCMU/8000 20 ms 160 samples 64000 bits 1 channels
2019-01-23 12:23:22.395294 [DEBUG] switch_core_codec.c:111 sofia/default/10001@192.168.2.240 Original read codec set to PCMU:0
2019-01-23 12:23:22.395294 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
2019-01-23 12:23:22.395294 [DEBUG] switch_core_media.c:4767 sofia/default/10001@192.168.2.240 Set 2833 dtmf send payload to 101 recv payload to 101
2019-01-23 12:23:22.395294 [DEBUG] sofia.c:7507 (sofia/default/10001@192.168.2.240) State Change CS_NEW -> CS_INIT
2019-01-23 12:23:22.395294 [DEBUG] switch_core_state_machine.c:603 (sofia/default/10001@192.168.2.240) State NEW
2019-01-23 12:23:22.395294 [DEBUG] switch_core_state_machine.c:584 (sofia/default/10001@192.168.2.240) Running State Change CS_INIT (Cur 1 Tot 1)
2019-01-23 12:23:22.395294 [DEBUG] switch_core_state_machine.c:627 (sofia/default/10001@192.168.2.240) State INIT
2019-01-23 12:23:22.395294 [DEBUG] mod_sofia.c:90 sofia/default/10001@192.168.2.240 SOFIA INIT
2019-01-23 12:23:22.395294 [DEBUG] switch_core_state_machine.c:40 sofia/default/10001@192.168.2.240 Standard INIT
2019-01-23 12:23:22.395294 [DEBUG] switch_core_state_machine.c:48 (sofia/default/10001@192.168.2.240) State Change CS_INIT -> CS_ROUTING
2019-01-23 12:23:22.395294 [DEBUG] switch_core_state_machine.c:627 (sofia/default/10001@192.168.2.240) State INIT going to sleep
2019-01-23 12:23:22.395294 [DEBUG] switch_core_state_machine.c:584 (sofia/default/10001@192.168.2.240) Running State Change CS_ROUTING (Cur 1 Tot 1)
2019-01-23 12:23:22.395294 [DEBUG] switch_channel.c:2249 (sofia/default/10001@192.168.2.240) Callstate Change DOWN -> RINGING
2019-01-23 12:23:22.395294 [DEBUG] switch_core_state_machine.c:643 (sofia/default/10001@192.168.2.240) State ROUTING
2019-01-23 12:23:22.395294 [DEBUG] mod_sofia.c:143 sofia/default/10001@192.168.2.240 SOFIA ROUTING
2019-01-23 12:23:22.395294 [DEBUG] switch_core_state_machine.c:236 sofia/default/10001@192.168.2.240 Standard ROUTING
2019-01-23 12:23:22.395294 [INFO] mod_dialplan_xml.c:637 Processing 10001 <10001>->18001234567 in context default
2019-01-23 12:23:22.435223 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fefbc070930 Connected.
2019-01-23 12:23:22.456367 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM system WHERE group_title IN ('global','opensips','callingcard')
2019-01-23 12:23:22.456367 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : 18001234567
2019-01-23 12:23:22.456367 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number : 10001 / 10001
2019-01-23 12:23:22.456367 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,B.id as accountid,B.number as account_code,B.did_cid_translation as did_cid_translation,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout FROM dids AS A,accounts AS B WHERE A.status=0 AND B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="18001234567" LIMIT 1
2019-01-23 12:23:22.456367 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : inbound
2019-01-23 12:23:22.456367 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [IPAUTHENTICATION] Query :SELECT ip_map.*, (SELECT number FROM accounts where id=accountid AND status=0 AND deleted=0) AS account_code FROM ip_map WHERE INET_ATON("192.168.2.240") BETWEEN(INET_ATON(SUBSTRING_INDEX(ip, '/', 1)) & 0xffffffff ^((0x1 <<(32 - SUBSTRING_INDEX(ip, '/', -1))) -1 )) AND(INET_ATON(SUBSTRING_INDEX(ip, '/', 1)) |((0x100000000 >> SUBSTRING_INDEX(ip,'/', -1)) -1)) AND "18001234567" LIKE CONCAT(prefix,'%') ORDER BY LENGTH(prefix) DESC LIMIT 1
2019-01-23 12:23:22.456367 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 4577488047]
2019-01-23 12:23:22.456367 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE (number = "4577488047" OR id="4577488047") AND status=0 AND deleted=0 AND (expiry >= '2019-01-23 06:53:22' OR expiry = '0000-00-00 00:00:00') limit 1
2019-01-23 12:23:22.536228 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PACKAGE_INFO] Query :SELECT * FROM packages as P inner join package_patterns as PKGPTR on P.id = PKGPTR.package_id WHERE (patterns ='^18001234567.' OR patterns ='^1800123456.' OR patterns ='^180012345.' OR patterns ='^18001234.' OR patterns ='^1800123.' OR patterns ='^180012.' OR patterns ='^18001.' OR patterns ='^1800.' OR patterns ='^180.' OR patterns ='^18.' OR patterns ='^1.*' OR patterns ='--') AND status = 0 AND pricelist_id = 5 ORDER BY LENGTH(PKGPTR.patterns) DESC LIMIT 1
2019-01-23 12:23:22.536228 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
2019-01-23 12:23:22.536228 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 7
2019-01-23 12:23:22.536228 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 4577488047
2019-01-23 12:23:22.536228 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 10000
2019-01-23 12:23:22.536228 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
2019-01-23 12:23:22.536228 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 5
2019-01-23 12:23:22.536228 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
2019-01-23 12:23:22.536228 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 5 AND status = 0
2019-01-23 12:23:22.556057 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,B.id as accountid,B.number as account_code,B.did_cid_translation as did_cid_translation,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout FROM dids AS A,accounts AS B WHERE A.status=0 AND B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="18001234567" LIMIT 1
2019-01-23 12:23:22.556057 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] LIMITING CALL TO CONFIG MAX LENGTH 24!!!
2019-01-23 12:23:22.556057 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
2019-01-23 12:23:22.556057 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 1
2019-01-23 12:23:22.556057 [INFO] switch_cpp.cpp:1365 [ASTPP] Code : ^.18001234567.*
2019-01-23 12:23:22.556057 [INFO] switch_cpp.cpp:1365 [ASTPP] Destination : 18001234567
2019-01-23 12:23:22.556057 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00180
2019-01-23 12:23:22.556057 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
2019-01-23 12:23:22.556057 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.01800
2019-01-23 12:23:22.556057 [INFO] switch_cpp.cpp:1365 [ASTPP] Initial Increment : 6
2019-01-23 12:23:22.556057 [INFO] switch_cpp.cpp:1365 [ASTPP] Increment : 6
2019-01-23 12:23:22.556057 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 7
2019-01-23 12:23:22.556057 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
2019-01-23 12:23:22.556057 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max length duration : 24 minutes
2019-01-23 12:23:22.556057 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE (number = "9" OR id="9") AND status=0 AND deleted=0 AND (expiry >= '2019-01-23 06:53:22' OR expiry = '0000-00-00 00:00:00') limit 1
2019-01-23 12:23:22.576851 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 5 AND status = 0
2019-01-23 12:23:22.576851 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Call is free - assigning max length!!! :: 0
2019-01-23 12:23:22.576851 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
2019-01-23 12:23:22.576851 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 0
2019-01-23 12:23:22.576851 [INFO] switch_cpp.cpp:1365 [ASTPP] Code : 18001234567
2019-01-23 12:23:22.576851 [INFO] switch_cpp.cpp:1365 [ASTPP] Destination : Local
2019-01-23 12:23:22.576851 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0
2019-01-23 12:23:22.576851 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
2019-01-23 12:23:22.576851 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0
2019-01-23 12:23:22.576851 [INFO] switch_cpp.cpp:1365 [ASTPP] Initial Increment : 60
2019-01-23 12:23:22.576851 [INFO] switch_cpp.cpp:1365 [ASTPP] Increment : 60
2019-01-23 12:23:22.576851 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 7
2019-01-23 12:23:22.576851 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
2019-01-23 12:23:22.576851 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML:7
2019-01-23 12:23:22.576851 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Userinfo XML:7
2019-01-23 12:23:22.576851 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML : 7
2019-01-23 12:23:22.576851 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FSXMLINBOUND] Caller ID Translation Starts
2019-01-23 12:23:22.576851 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FSXMLINBOUND] Caller ID Translation Ends
2019-01-23 12:23:22.576851 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Generated XML:<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="freeswitch/xml">
<section name="dialplan" description="ASTPP Dialplan">
<context name="default">
<extension name="18001234567">
<condition field="destination_number" expression="18001234567">
<action application="set" data="effective_destination_number=18001234567"/>
<action application="sched_hangup" data="+1440 normal_clearing"/>
<action application="set" data="callstart=2019-01-23 06:53:23"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="continue_on_fail=!USER_BUSY"/>
<action application="set" data="account_id=7"/>
<action application="set" data="parent_id=0"/>
<action application="set" data="entity_id=3"/>
<action application="set" data="call_processed=internal"/>
<action application="set" data="call_direction=inbound"/>
<action application="set" data="accountname=LOCAL PBX"/>
<action application="export" data="t38_passthru=true"/>
<action application="set" data="fax_enable_t38=true"/>
<action application="set" data="fax_enable_t38_request=true"/>
<action application="set" data="origination_rates_did=ID:1|CODE:^.18001234567.*|DESTINATION:18001234567|CONNECTIONCOST:0.00180|INCLUDEDSECONDS:0|COST:0.01800|INC:6|INITIALBLOCK:6|RATEGROUP:0|MARKUP:0|ACCID:9"/>
<action application="set" data="origination_rates=ID:0|CODE:18001234567|DESTINATION:Local|CONNECTIONCOST:0|INCLUDEDSECONDS:0|COST:0|INC:60|INITIALBLOCK:60|RATEGROUP:5|MARKUP:0|ACCID:7"/>
<action application="set" data="original_caller_id_name=10001"/>
<action application="set" data="original_caller_id_number=10001"/>
<action application="set" data="effective_caller_id_name=10001"/>
<action application="set" data="effective_caller_id_number=10001"/>
<action application="set" data="receiver_accid=9"/>
<action application="limit" data="db 18001234567 did_18001234567 2 !SWITCH_CONGESTION"/>
<action application="set" data="calltype=SIP-DID"/>
<action application="bridge" data="
{sip_contact_user=18001234567}[leg_timeout=60]sofia/${sofia_profile_name}/18001234567${regex(${sofia_contact(6780180392@${domain_name})}|^[^@]+(.*)|%1)}"/>
<condition field="${cond(${user_data 6780180392@${domain_name} param vm-enabled} == true ? YES : NO)}" expression="^YES$">
<action application="answer"/>
<action application="export" data="voicemail_alternate_greet_id=18001234567"/>
<action application="voicemail" data="default $${domain_name} 6780180392"/>
<anti-action application="hangup" data="${originate_disposition}"/>
</condition>
</condition>
</extension>
</context>
</section>
</document>
2019-01-23 12:23:22.576851 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fefbc070930 released.
Dialplan: sofia/default/10001@192.168.2.240 parsing [default->18001234567] continue=false
Dialplan: sofia/default/10001@192.168.2.240 Regex (PASS) [18001234567] destination_number(18001234567) =~ /18001234567/ break=on-false
Dialplan: sofia/default/10001@192.168.2.240 Action set(effective_destination_number=18001234567)
Dialplan: sofia/default/10001@192.168.2.240 Action sched_hangup(+1440 normal_clearing)
Dialplan: sofia/default/10001@192.168.2.240 Action set(callstart=2019-01-23 06:53:23)
Dialplan: sofia/default/10001@192.168.2.240 Action set(hangup_after_bridge=true)
Dialplan: sofia/default/10001@192.168.2.240 Action set(continue_on_fail=!USER_BUSY)
Dialplan: sofia/default/10001@192.168.2.240 Action set(account_id=7)
Dialplan: sofia/default/10001@192.168.2.240 Action set(parent_id=0)
Dialplan: sofia/default/10001@192.168.2.240 Action set(entity_id=3)
Dialplan: sofia/default/10001@192.168.2.240 Action set(call_processed=internal)
Dialplan: sofia/default/10001@192.168.2.240 Action set(call_direction=inbound)
Dialplan: sofia/default/10001@192.168.2.240 Action set(accountname=LOCAL PBX)
Dialplan: sofia/default/10001@192.168.2.240 Action export(t38_passthru=true)
Dialplan: sofia/default/10001@192.168.2.240 Action set(fax_enable_t38=true)
Dialplan: sofia/default/10001@192.168.2.240 Action set(fax_enable_t38_request=true)
Dialplan: sofia/default/10001@192.168.2.240 Action set(origination_rates_did=ID:1|CODE:^.18001234567.*|DESTINATION:18001234567|CONNECTIONCOST:0.00180|INCLUDEDSECONDS:0|COST:0.01800|INC:6|INITIALBLOCK:6|RATEGROUP:0|MARKUP:0|ACCID:9)
Dialplan: sofia/default/10001@192.168.2.240 Action set(origination_rates=ID:0|CODE:18001234567|DESTINATION:Local|CONNECTIONCOST:0|INCLUDEDSECONDS:0|COST:0|INC:60|INITIALBLOCK:60|RATEGROUP:5|MARKUP:0|ACCID:7)
Dialplan: sofia/default/10001@192.168.2.240 Action set(original_caller_id_name=10001)
Dialplan: sofia/default/10001@192.168.2.240 Action set(original_caller_id_number=10001)
Dialplan: sofia/default/10001@192.168.2.240 Action set(effective_caller_id_name=10001)
Dialplan: sofia/default/10001@192.168.2.240 Action set(effective_caller_id_number=10001)
Dialplan: sofia/default/10001@192.168.2.240 Action set(receiver_accid=9)
Dialplan: sofia/default/10001@192.168.2.240 Action limit(db 18001234567 did_18001234567 2 !SWITCH_CONGESTION)
Dialplan: sofia/default/10001@192.168.2.240 Action set(calltype=SIP-DID)
Dialplan: sofia/default/10001@192.168.2.240 Action bridge({sip_contact_user=18001234567}
[leg_timeout=60]sofia/${sofia_profile_name}/18001234567${regex(${sofia_contact(6780180392@${domain_name})}|^[^@]+(.*)|%1)})
| — Dialplan: Processing recursive conditions level:1 [18001234567_recur_1] require-nested=TRUE |
| — Dialplan: sofia/default/10001@192.168.2.240 Regex (PASS) [18001234567_recur_1] ${cond(${user_data 6780180392@${domain_name} param vm-enabled} == true ? YES : NO)}(YES) =~ /^YES$/ break=on-false |
| — Dialplan: sofia/default/10001@192.168.2.240 Action answer() |
| — Dialplan: sofia/default/10001@192.168.2.240 Action export(voicemail_alternate_greet_id=18001234567) |
— Dialplan: sofia/default/10001@192.168.2.240 Action voicemail(default $${domain_name} 6780180392)
2019-01-23 12:23:22.596388 [DEBUG] switch_core_state_machine.c:286 (sofia/default/10001@192.168.2.240) State Change CS_ROUTING -> CS_EXECUTE
2019-01-23 12:23:22.596388 [DEBUG] switch_core_state_machine.c:643 (sofia/default/10001@192.168.2.240) State ROUTING going to sleep
2019-01-23 12:23:22.596388 [DEBUG] switch_core_state_machine.c:584 (sofia/default/10001@192.168.2.240) Running State Change CS_EXECUTE (Cur 1 Tot 1)
2019-01-23 12:23:22.596388 [DEBUG] switch_core_state_machine.c:650 (sofia/default/10001@192.168.2.240) State EXECUTE
2019-01-23 12:23:22.596388 [DEBUG] mod_sofia.c:198 sofia/default/10001@192.168.2.240 SOFIA EXECUTE
2019-01-23 12:23:22.596388 [DEBUG] switch_core_state_machine.c:328 sofia/default/10001@192.168.2.240 Standard EXECUTE
EXECUTE sofia/default/10001@192.168.2.240 set(effective_destination_number=18001234567)
2019-01-23 12:23:22.596388 [DEBUG] mod_dptools.c:1548 SET sofia/default/10001@192.168.2.240 [effective_destination_number]=[18001234567]
EXECUTE sofia/default/10001@192.168.2.240 sched_hangup(+1440 normal_clearing)
2019-01-23 12:23:22.596388 [DEBUG] switch_scheduler.c:249 Added task 5 switch_ivr_schedule_hangup (93385946-1edb-11e9-abbb-0f5b2c9643e0) to run at 1548227842
EXECUTE sofia/default/10001@192.168.2.240 set(callstart=2019-01-23 06:53:23)
2019-01-23 12:23:22.596388 [DEBUG] mod_dptools.c:1548 SET sofia/default/10001@192.168.2.240 [callstart]=[2019-01-23 06:53:23]
EXECUTE sofia/default/10001@192.168.2.240 set(hangup_after_bridge=true)
2019-01-23 12:23:22.596388 [DEBUG] mod_dptools.c:1548 SET sofia/default/10001@192.168.2.240 [hangup_after_bridge]=[true]
EXECUTE sofia/default/10001@192.168.2.240 set(continue_on_fail=!USER_BUSY)
2019-01-23 12:23:22.596388 [DEBUG] mod_dptools.c:1548 SET sofia/default/10001@192.168.2.240 [continue_on_fail]=[!USER_BUSY]
EXECUTE sofia/default/10001@192.168.2.240 set(account_id=7)
2019-01-23 12:23:22.615200 [DEBUG] mod_dptools.c:1548 SET sofia/default/10001@192.168.2.240 [account_id]=[7]
EXECUTE sofia/default/10001@192.168.2.240 set(parent_id=0)
2019-01-23 12:23:22.615200 [DEBUG] mod_dptools.c:1548 SET sofia/default/10001@192.168.2.240 [parent_id]=[0]
EXECUTE sofia/default/10001@192.168.2.240 set(entity_id=3)
2019-01-23 12:23:22.615200 [DEBUG] mod_dptools.c:1548 SET sofia/default/10001@192.168.2.240 [entity_id]=[3]
EXECUTE sofia/default/10001@192.168.2.240 set(call_processed=internal)
2019-01-23 12:23:22.615200 [DEBUG] mod_dptools.c:1548 SET sofia/default/10001@192.168.2.240 [call_processed]=[internal]
EXECUTE sofia/default/10001@192.168.2.240 set(call_direction=inbound)
2019-01-23 12:23:22.615200 [DEBUG] mod_dptools.c:1548 SET sofia/default/10001@192.168.2.240 [call_direction]=[inbound]
EXECUTE sofia/default/10001@192.168.2.240 set(accountname=LOCAL PBX)
2019-01-23 12:23:22.615200 [DEBUG] mod_dptools.c:1548 SET sofia/default/10001@192.168.2.240 [accountname]=[LOCAL PBX]
EXECUTE sofia/default/10001@192.168.2.240 export(t38_passthru=true)
2019-01-23 12:23:22.615200 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [t38_passthru]=[true]
EXECUTE sofia/default/10001@192.168.2.240 set(fax_enable_t38=true)
2019-01-23 12:23:22.615200 [DEBUG] mod_dptools.c:1548 SET sofia/default/10001@192.168.2.240 [fax_enable_t38]=[true]
EXECUTE sofia/default/10001@192.168.2.240 set(fax_enable_t38_request=true)
2019-01-23 12:23:22.615200 [DEBUG] mod_dptools.c:1548 SET sofia/default/10001@192.168.2.240 [fax_enable_t38_request]=[true]
EXECUTE sofia/default/10001@192.168.2.240 set(origination_rates_did=ID:1 |
CODE:^.18001234567.* |
DESTINATION:18001234567 |
CONNECTIONCOST:0.00180 |
INCLUDEDSECONDS:0 |
COST:0.01800 |
INC:6 |
INITIALBLOCK:6 |
RATEGROUP:0 |
MARKUP:0 |
ACCID:9)
2019-01-23 12:23:22.615200 [DEBUG] mod_dptools.c:1548 SET sofia/default/10001@192.168.2.240 [origination_rates_did]=[ID:1|CODE:^.18001234567.*|DESTINATION:18001234567|CONNECTIONCOST:0.00180|INCLUDEDSECONDS:0|COST:0.01800|INC:6|INITIALBLOCK:6|RATEGROUP:0|MARKUP:0|ACCID:9]
EXECUTE sofia/default/10001@192.168.2.240 set(origination_rates=ID:0 |
CODE:18001234567 |
DESTINATION:Local |
CONNECTIONCOST:0 |
INCLUDEDSECONDS:0 |
COST:0 |
INC:60 |
INITIALBLOCK:60 |
RATEGROUP:5 |
MARKUP:0 |
ACCID:7)
2019-01-23 12:23:22.615200 [DEBUG] mod_dptools.c:1548 SET sofia/default/10001@192.168.2.240 [origination_rates]=[ID:0|CODE:18001234567|DESTINATION:Local|CONNECTIONCOST:0|INCLUDEDSECONDS:0|COST:0|INC:60|INITIALBLOCK:60|RATEGROUP:5|MARKUP:0|ACCID:7]
EXECUTE sofia/default/10001@192.168.2.240 set(original_caller_id_name=10001)
2019-01-23 12:23:22.615200 [DEBUG] mod_dptools.c:1548 SET sofia/default/10001@192.168.2.240 [original_caller_id_name]=[10001]
EXECUTE sofia/default/10001@192.168.2.240 set(original_caller_id_number=10001)
2019-01-23 12:23:22.615200 [DEBUG] mod_dptools.c:1548 SET sofia/default/10001@192.168.2.240 [original_caller_id_number]=[10001]
EXECUTE sofia/default/10001@192.168.2.240 set(effective_caller_id_name=10001)
2019-01-23 12:23:22.615200 [DEBUG] mod_dptools.c:1548 SET sofia/default/10001@192.168.2.240 [effective_caller_id_name]=[10001]
EXECUTE sofia/default/10001@192.168.2.240 set(effective_caller_id_number=10001)
2019-01-23 12:23:22.615200 [DEBUG] mod_dptools.c:1548 SET sofia/default/10001@192.168.2.240 [effective_caller_id_number]=[10001]
EXECUTE sofia/default/10001@192.168.2.240 set(receiver_accid=9)
2019-01-23 12:23:22.615200 [DEBUG] mod_dptools.c:1548 SET sofia/default/10001@192.168.2.240 [receiver_accid]=[9]
EXECUTE sofia/default/10001@192.168.2.240 limit(db 18001234567 did_18001234567 2 !SWITCH_CONGESTION)
2019-01-23 12:23:22.615200 [DEBUG] switch_limit.c:126 incr called: 18001234567_did_18001234567 max:2, interval:0
2019-01-23 12:23:22.615200 [DEBUG] mod_db.c:194 Usage for 18001234567_did_18001234567 is now 1/2
EXECUTE sofia/default/10001@192.168.2.240 set(calltype=SIP-DID)
2019-01-23 12:23:22.615200 [DEBUG] mod_dptools.c:1548 SET sofia/default/10001@192.168.2.240 [calltype]=[SIP-DID]
EXECUTE sofia/default/10001@192.168.2.240 bridge(
{sip_contact_user=18001234567}
[leg_timeout=60]sofia/default/18001234567@192.168.2.65:58986;rinstance=26e4cff8a0ec521b)
2019-01-23 12:23:22.615200 [DEBUG] switch_channel.c:1250 sofia/default/10001@192.168.2.240 EXPORTING[export_vars] [t38_passthru]=[true] to event
2019-01-23 12:23:22.615200 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
2019-01-23 12:23:22.615200 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
2019-01-23 12:23:22.615200 [NOTICE] switch_channel.c:1104 New Channel sofia/default/18001234567@192.168.2.65:58986 [935c35a0-1edb-11e9-abd9-0f5b2c9643e0]
2019-01-23 12:23:22.615200 [DEBUG] mod_sofia.c:4819 (sofia/default/18001234567@192.168.2.65:58986) State Change CS_NEW -> CS_INIT
2019-01-23 12:23:22.615200 [DEBUG] switch_ivr_originate.c:2963 sofia/default/18001234567@192.168.2.65:58986 Setting leg timeout to 60
2019-01-23 12:23:22.615200 [DEBUG] switch_core_state_machine.c:584 (sofia/default/18001234567@192.168.2.65:58986) Running State Change CS_INIT (Cur 2 Tot 2)
2019-01-23 12:23:22.615200 [DEBUG] switch_core_state_machine.c:627 (sofia/default/18001234567@192.168.2.65:58986) State INIT
2019-01-23 12:23:22.615200 [DEBUG] mod_sofia.c:90 sofia/default/18001234567@192.168.2.65:58986 SOFIA INIT
2019-01-23 12:23:22.615200 [DEBUG] sofia_glue.c:1295 sofia/default/18001234567@192.168.2.65:58986 sending invite version: 1.6.19 git 7a77e0b 2017-07-13 12:01:45Z 64bit
Local SDP:
v=0
o=FreeSWITCH 1548205042 1548205043 IN IP4 192.168.2.80
s=FreeSWITCH
c=IN IP4 192.168.2.80
t=0 0
m=audio 21360 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv |
2019-01-23 12:23:22.615200 [DEBUG] switch_core_state_machine.c:40 sofia/default/18001234567@192.168.2.65:58986 Standard INIT
2019-01-23 12:23:22.615200 [DEBUG] switch_core_state_machine.c:48 (sofia/default/18001234567@192.168.2.65:58986) State Change CS_INIT -> CS_ROUTING
2019-01-23 12:23:22.615200 [DEBUG] switch_core_state_machine.c:627 (sofia/default/18001234567@192.168.2.65:58986) State INIT going to sleep
2019-01-23 12:23:22.615200 [DEBUG] switch_core_state_machine.c:584 (sofia/default/18001234567@192.168.2.65:58986) Running State Change CS_ROUTING (Cur 2 Tot 2)
2019-01-23 12:23:22.615200 [DEBUG] sofia.c:7084 Channel sofia/default/18001234567@192.168.2.65:58986 entering state [calling][0]
2019-01-23 12:23:22.615200 [DEBUG] switch_core_state_machine.c:643 (sofia/default/18001234567@192.168.2.65:58986) State ROUTING
2019-01-23 12:23:22.615200 [DEBUG] mod_sofia.c:143 sofia/default/18001234567@192.168.2.65:58986 SOFIA ROUTING
2019-01-23 12:23:22.615200 [DEBUG] switch_ivr_originate.c:67 (sofia/default/18001234567@192.168.2.65:58986) State Change CS_ROUTING -> CS_CONSUME_MEDIA
2019-01-23 12:23:22.615200 [DEBUG] switch_core_state_machine.c:643 (sofia/default/18001234567@192.168.2.65:58986) State ROUTING going to sleep
2019-01-23 12:23:22.615200 [DEBUG] switch_core_state_machine.c:584 (sofia/default/18001234567@192.168.2.65:58986) Running State Change CS_CONSUME_MEDIA (Cur 2 Tot 2)
2019-01-23 12:23:22.615200 [DEBUG] switch_core_state_machine.c:662 (sofia/default/18001234567@192.168.2.65:58986) State CONSUME_MEDIA
2019-01-23 12:23:22.615200 [DEBUG] switch_core_state_machine.c:662 (sofia/default/18001234567@192.168.2.65:58986) State CONSUME_MEDIA going to sleep
2019-01-23 12:23:22.835317 [DEBUG] sofia.c:7084 Channel sofia/default/18001234567@192.168.2.65:58986 entering state [proceeding][180]
2019-01-23 12:23:22.835317 [NOTICE] sofia.c:7192 Ring-Ready sofia/default/18001234567@192.168.2.65:58986!
2019-01-23 12:23:22.835317 [DEBUG] switch_channel.c:3346 (sofia/default/18001234567@192.168.2.65:58986) Callstate Change DOWN -> RINGING
2019-01-23 12:23:22.835317 [NOTICE] mod_sofia.c:2273 Ring-Ready sofia/default/10001@192.168.2.240!
2019-01-23 12:23:22.835317 [DEBUG] sofia.c:7084 Channel sofia/default/10001@192.168.2.240 entering state [early][180]
2019-01-23 12:23:22.835317 [NOTICE] switch_ivr_originate.c:525 Ring Ready sofia/default/10001@192.168.2.240!
2019-01-23 12:23:28.297053 [DEBUG] sofia.c:7084 Channel sofia/default/18001234567@192.168.2.65:58986 entering state [completing][200]
2019-01-23 12:23:28.297053 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=- 1 2 IN IP4 192.168.2.65
s=CounterPath X-Lite 3.0
c=IN IP4 192.168.2.65
t=0 0
m=audio 3144 RTP/AVP 0 101
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
2019-01-23 12:23:28.297053 [DEBUG] sofia.c:7084 Channel sofia/default/18001234567@192.168.2.65:58986 entering state [ready][200]
2019-01-23 12:23:28.297053 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
2019-01-23 12:23:28.297053 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
2019-01-23 12:23:28.297053 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
2019-01-23 12:23:28.297053 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/18001234567@192.168.2.65:58986 PCMU/8000 20 ms 160 samples 64000 bits 1 channels
2019-01-23 12:23:28.297053 [DEBUG] switch_core_codec.c:111 sofia/default/18001234567@192.168.2.65:58986 Original read codec set to PCMU:0
2019-01-23 12:23:28.297053 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
2019-01-23 12:23:28.297053 [DEBUG] switch_core_media.c:4767 sofia/default/18001234567@192.168.2.65:58986 Set 2833 dtmf send payload to 101 recv payload to 101
2019-01-23 12:23:28.297053 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/18001234567@192.168.2.65:58986] 192.168.2.80 port 21360 -> 192.168.2.65 port 3144 codec: 0 ms: 20
2019-01-23 12:23:28.297053 [DEBUG] switch_rtp.c:4111 Starting timer [soft] 160 bytes per 20ms
2019-01-23 12:23:28.297053 [DEBUG] switch_core_media.c:7179 sofia/default/18001234567@192.168.2.65:58986 Set 2833 dtmf send payload to 101
2019-01-23 12:23:28.297053 [DEBUG] switch_core_media.c:7186 sofia/default/18001234567@192.168.2.65:58986 Set 2833 dtmf receive payload to 101
2019-01-23 12:23:28.297053 [DEBUG] switch_core_media.c:7209 sofia/default/18001234567@192.168.2.65:58986 Set rtp dtmf delay to 40
2019-01-23 12:23:28.297053 [NOTICE] sofia.c:8218 Channel [sofia/default/18001234567@192.168.2.65:58986] has been answered
2019-01-23 12:23:28.297053 [DEBUG] switch_channel.c:3773 (sofia/default/18001234567@192.168.2.65:58986) Callstate Change RINGING -> ACTIVE
2019-01-23 12:23:28.316303 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/10001@192.168.2.240] 192.168.2.80 port 20000 -> 192.168.2.240 port 14850 codec: 0 ms: 20
2019-01-23 12:23:28.316303 [DEBUG] switch_rtp.c:4111 Starting timer [soft] 160 bytes per 20ms
2019-01-23 12:23:28.316303 [DEBUG] switch_core_media.c:7179 sofia/default/10001@192.168.2.240 Set 2833 dtmf send payload to 101
2019-01-23 12:23:28.316303 [DEBUG] switch_core_media.c:7186 sofia/default/10001@192.168.2.240 Set 2833 dtmf receive payload to 101
2019-01-23 12:23:28.316303 [DEBUG] switch_core_media.c:7209 sofia/default/10001@192.168.2.240 Set rtp dtmf delay to 40
2019-01-23 12:23:28.316303 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/10001@192.168.2.240:
v=0
o=FreeSWITCH 1548206408 1548206409 IN IP4 192.168.2.80
s=FreeSWITCH
c=IN IP4 192.168.2.80
t=0 0
m=audio 20000 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
2019-01-23 12:23:28.316303 [NOTICE] switch_ivr_originate.c:3647 Channel [sofia/default/10001@192.168.2.240] has been answered
2019-01-23 12:23:28.316303 [DEBUG] switch_channel.c:3773 (sofia/default/10001@192.168.2.240) Callstate Change RINGING -> ACTIVE
2019-01-23 12:23:28.335571 [DEBUG] sofia.c:7084 Channel sofia/default/10001@192.168.2.240 entering state [completed][200]
2019-01-23 12:23:28.335571 [DEBUG] switch_ivr_originate.c:3705 Originate Resulted in Success: [sofia/default/18001234567@192.168.2.65:58986]
2019-01-23 12:23:28.335571 [DEBUG] sofia.c:7084 Channel sofia/default/10001@192.168.2.240 entering state [ready][200]
2019-01-23 12:23:28.335571 [DEBUG] sofia.c:7084 Channel sofia/default/10001@192.168.2.240 entering state [received][100]
2019-01-23 12:23:28.335571 [DEBUG] sofia.c:7094 Remote SDP:
v=0
o=root 1521618246 1521618247 IN IP4 192.168.2.240
s=Asterisk PBX 11.22.0
c=IN IP4 192.168.2.240
t=0 0
m=audio 14850 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
2019-01-23 12:23:28.335571 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
2019-01-23 12:23:28.335571 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
2019-01-23 12:23:28.335571 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
2019-01-23 12:23:28.335571 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:20:8000:1]
2019-01-23 12:23:28.335571 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
2019-01-23 12:23:28.335571 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
2019-01-23 12:23:28.335571 [DEBUG] switch_core_media.c:4767 sofia/default/10001@192.168.2.240 Set 2833 dtmf send payload to 101 recv payload to 101
2019-01-23 12:23:28.335571 [DEBUG] switch_core_media.c:6861 Audio params are unchanged for sofia/default/10001@192.168.2.240.
2019-01-23 12:23:28.335571 [DEBUG] sofia.c:7999 Processing updated SDP
2019-01-23 12:23:28.335571 [DEBUG] sofia.c:7084 Channel sofia/default/10001@192.168.2.240 entering state [completed][200]
2019-01-23 12:23:28.335571 [DEBUG] switch_ivr_bridge.c:1614 (sofia/default/18001234567@192.168.2.65:58986) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA
2019-01-23 12:23:28.335571 [DEBUG] switch_core_state_machine.c:584 (sofia/default/18001234567@192.168.2.65:58986) Running State Change CS_EXCHANGE_MEDIA (Cur 2 Tot 2)
2019-01-23 12:23:28.335571 [DEBUG] switch_core_state_machine.c:653 (sofia/default/18001234567@192.168...
|