Teletronics Enterprise SIP Server User Manual
Page 15

TELETRONICS INTERNATIONAL, INC.
14
Enterprise SIP Server Tutorial – Dial Plan
s-tut-dp1.51-041228
3.4. Filtering based on whether the Caller is Calling from a localhost.
Whether the caller is calling from a localhost
or not can be found in the conditional variable
$localhost.
Call originating from a localhost
$localhost =true
Call originating from a non-localhost
$localhost =false
3.4.1.
A call originating from localhost is routed through sip:ivr@domain
Matching Patterns
Deploy Patterns
$localhost=true
$request=^INVITE
to=sip:ivr@domain
3.4.2.
Refusing a call that originated from a non- localhost
Matching Patterns
Deploy Patterns
$localhost=false
$request=^INVITE
$action=603
3.4.3.
Routing a call to sip:ivr@domain, when the call is from a localhost and it came
from Port Number 15060
Matching Patterns
Deploy Patterns
$localhost=true
$port=15060
to=sip:ivr@domain