Thank you, I just checked that and it is quite a nice tool.
Inbound I just placed the number and here is my XML
Outbound I used this regex pattern: ^(\+27|27|0)[0-9]{2}( |-)?[0-9] and here is the XML created by the following the create outbound route
Honestly right now I am not worrying about leaking anything
Inbound I just placed the number and here is my XML
XML:
<extension name="0800172793" continue="false" uuid="4500420d-841a-4960-ac30-93a2f93d776b">
<condition field="destination_number" expression="^\0800172793$">
<action application="export" data="call_direction=inbound" inline="true"/>
<action application="set" data="domain_uuid=61365f16-6eb1-4e86-bf79-7ad27e6ed716" inline="true"/>
<action application="set" data="domain_name=voice.unlayer.network" inline="true"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="continue_on_fail=true"/>
<action application="transfer" data="201 XML voice.unlayer.network"/>
</condition>
</extension>
Outbound I used this regex pattern: ^(\+27|27|0)[0-9]{2}( |-)?[0-9] and here is the XML created by the following the create outbound route
XML:
<extension name="0800172793 Outbound" continue="false" uuid="4aa3cd61-2453-4525-ba32-80cdb73d7d03">
<condition field="${user_exists}" expression="false"/>
<condition field="destination_number" expression="^(\+27|27|0)[0-9]{2}( |-)?[0-9]{3}( |-)?[0-9]{4}( |-)?(x[0-9]+)?(ext[0-9]+)?">
<action application="export" data="call_direction=outbound" inline="true"/>
<action application="unset" data="call_timeout"/>
<action application="set" data="sip_h_X-accountcode=${accountcode}"/>
<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=true"/>
<action application="sleep" data="${sleep}"/>
<action application="bridge" data="sofia/gateway/6a976d35-e442-4010-a541-a7bc0c6eb7fa/$1"/>
</condition>
</extension>
Honestly right now I am not worrying about leaking anything