Teletronics Enterprise SIP Server User Manual
Page 28

TELETRONICS INTERNATIONAL, INC.
27
Enterprise SIP Server Tutorial – Dial Plan
s-tut-dp1.51-041228
7.4. Load Balancing based on the Session ID
The Session ID is stored in the server and a unique number is created each time a new
session is started. The Session ID can be found in the conditional variable $sid.
7.4.1.
Load Balancing based on whether the Session ID is odd or even
Matching Patterns
Deploy Patterns
$request=^INVITE
$sid=[13579]$
to=sip:(.+)@
to=sip:%1@gw1
$request=^INVITE
$sid=[24680]$
to=sip:(.+)@
to=sip:%1@gw2
7.5. Load Balancing based on the Caller’s Port Number
7.5.1.
Load Balancing based on whether the caller’s Port Number is odd or even
Matching Patterns
Deploy Patterns
$request=^INVITE
$port=[13579]$
$target=pbx1
$request=^INVITE
$port=[24680]$
$target=pbx2