beautypg.com

Load balancing – Teletronics Enterprise SIP Server User Manual

Page 26

background image

TELETRONICS INTERNATIONAL, INC.

25

Enterprise SIP Server Tutorial – Dial Plan

s-tut-dp1.51-041228

7. Load Balancing

With Enterprise SIP Server, Load Balancing is possible through various methods.

7.1. Load Balancing based on the Caller’s IP Address

7.1.1.

Load Balancing based on the last digit of the caller’s IP Address

Matching Patterns

Deploy Patterns

$request=^INVITE
$addr=[0-4]$
to=sip:(.+)@

to=sip:%1@gw1

$request=^INVITE
$addr=[5-9]$
to=sip:(.+)@

to=sip:%1@gw2

¸

If the last (rightmost) digit of the caller’s IP Address is between 0 and 4, the call will be

routed to “gw1”. If the last (rightmost) digit is between 5 and 9, the call will be routed to
“gw2”.

7.2. Load Balancing based on the Caller’s SIP-URI

7.2.1.

Load Balancing based on the caller’s Domain Name

Matching Patterns

Deploy Patterns

$request=^INVITE
from=sip:(.+)@domain1

to=sip:%1@gw1

$request=^INVITE
from=sip:(.+)@domain2

to=sip:%1@gw2

¸

If the caller’s SIP-URI Domain Name is “domain 1”, the call is routed to “gw1”. If the

Domain Name is “domain 2”, the call is routed to “gw2”.

7.2.2.

Load Balancing based on the caller’s User Name

Matching Patterns

Deploy Patterns

$request=^INVITE
from=sip:[0-4].+@

to=sip:%1@gw1

$request=^INVITE
from=sip:[5-9].+@

to=sip:%1@gw2