Outbound routes

Status
Not open for further replies.

Win

Member
Feb 12, 2024
49
2
8
Hi,

I create a Dialplan by following the manual doc and the Youtube tutorials for the Outbound routes with 3 expressions (9, 10, and 11 digits)
^(\d{9})$
^(\d{10})$
^\+?(\d{11})$

when it saved, it generates 2 outbound routes named:

call_direction-outbound with order 022
the xml is empty

cs-622131180035.11d with order 100
<extension name="cs-622131180035.11d" continue="false" uuid="4420efd3-702e-4aee-bd04-5ae872bf6a18">
<condition field="${user_exists}" expression="false"/>
<condition field="destination_number" expression="^\+?(\d{11})$">
<action application="export" data="call_direction=outbound" inline="true"/>
<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=${outbound_caller_id_number}"/>
<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=1,2,3,6,18,21,27,28,31,34,38,41,42,44,58,88,111,403,501,602,607,809"/>
<action application="bridge" data="sofia/gateway/f6459421-00c3-492a-ad7d-65d6a161ba1d/$1"/>
</condition>
</extension>

both of outbound routes are enabled.

questions:
- why it generates 2 outbound routes?
- why it only generates the 11 digits?, do I need to create the 9, and 10 digits or it's automatically include the 9 and 10 digits if I generate the 11 digits?
- do I need to manually delete or disable one of them to make it work?

anybody can give me advice?

Thank you and Good day!
 

Win

Member
Feb 12, 2024
49
2
8
resolved, by disabling the call_direction-outbound (xml empty), still curious why this outbound routes was created automatically.. made me confusing!
 

voipBull

Member
Dec 3, 2023
96
21
8
That outbound route "call_direction-outbound" is automatically created so that your call attempt gets a proper direction tag of "outbound", which later gets used in the dialplan and when displaying CDRs.
 
Status
Not open for further replies.