Teletronics Enterprise SIP Server User Manual
Page 16

TELETRONICS INTERNATIONAL, INC.
15
Enterprise SIP Server Tutorial – Dial Plan
s-tut-dp1.51-041228
3.5. Filtering based on whether the Call is an Outbound Connection
When the domain address in the destination URI is not the Enterprise SIP Server’s address,
Enterprise SIP Server will recognize it
as an outbound call. Whether the call is outbound or not,
can be found in the conditional variable $outbound.
The call is an outbound connection
$outbound =true
The call is not an outbound connection
$outbound =false
3.5.1.
If the call is outbound connection, route the call to sip:ivr@domain
Matching Patterns
Deploy Patterns
$outbound=true
$request=^INVITE
to=sip:ivr@domain
3.5.2.
If a call is not outbound, it will be treated as error 404 (not found)
Matching Patterns
Deploy Patterns
$outbound=false
$request=^INVITE
$action=404
3.5.3.
If the call is not outbound and callee SIP-URI’s prefix is “0”, the prefix will
be removed from the user name and the call will be routed through the
“domain” using the extracted user name
Matching Patterns
Deploy Patterns
$outbound=false
$request=^INVITE
to=sip:0(.+)@
to=sip:%1@domain