Issue with destination number in CDRs for unsuccessful outbound calls

Status
Not open for further replies.

s.rusmigo

New Member
Oct 31, 2019
1
0
1
34
Hello,

I noticed that the destination_number field in FusionPBX for the outbound routes is not always the number that we bridge to when we don't have a successful call.

For example the outbound route below, when I call 123456 and the callee does not answer the call in the CDR we have a caller_destination equal to 123456 and a destination_number also equal to 123456 instead of 0044123456. However when the callee answers the call the destination number is correct, i.e. 0044123456.

<extension name="example" continue="false" uuid="1g565f20-9d51-48e3-8778-ba5aa2437908">
<condition field="${user_exists}" expression="false"/>
<condition field="destination_number" expression="^(\d{6,8})$">
<action application="set" data="sip_h_X-accountcode=${accountcode}"/>
<action application="export" data="call_direction=outbound"/>
<action application="unset" data="call_timeout"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/>
<action application="set" data="effective_caller_id_number=+11111111111"/>
<action application="set" data="inherit_codec=true"/>
<action application="set" data="ignore_display_updates=true"/>
<action application="set" data="callee_id_number=$1"/>
<action application="set" data="continue_on_fail=true"/>
<action application="set" data="execute_on_answer=sched_hangup +1200 alloted_timeout"/>
<action application="export" data="sip_h_Call-ID=${uuid}@${domain_name}"/>
<action application="bridge" data="sofia/gateway/cg057855-6998-4efe-ad9c-0c9f1b95800e/0044$1"/>
</condition>
</extension>

Is this correct or shall I consider it as a bug?
 
Status
Not open for further replies.