Load Balanced Dial Plan

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
eric9721
Posts: 7
Joined: Wed Dec 16, 2009 7:29 am
Location: Richardson, Tx

Load Balanced Dial Plan

Post by eric9721 »

1. Brekeke Product Name and version:2.3.8.4/286

2. Java version:1.5.0_22

3. OS type and the version:Windows 2003 s-ver 5.2


4. UA (phone), gateway or other hardware/software involved:TrixBox -->BSS -->Microsoft speech server

5. Select your network pattern from http://www.brekeke-sip.com/bbs/network/ ... terns.html :

6. Your problem: I have a dial plan working, but now I need to load balance the calls between 2 end points. My dialplan that is working is Matching Patterns:
$request=^INVITE
$registered=false
To=sip:(.+)@192.168.5.71

Deploy Patterns:
$transport=tcp
To=sip:%1@192.168.5.68

I need to everyother call to goto this server, and one other server.

Any help is greatly appreiciated.
hope
Posts: 862
Joined: Tue Jan 15, 2008 4:08 pm

Post by hope »

there are some dial plans for load balancing at dial plan tutorial
http://www.brekeke-sip.com/download/bss ... lan_en.pdf
james
Posts: 501
Joined: Mon Dec 10, 2007 12:56 pm

Post by james »

Note.. The $sid based load balancing requires Advanced Edition.
eric9721
Posts: 7
Joined: Wed Dec 16, 2009 7:29 am
Location: Richardson, Tx

Advanced Version worked for Load Balancing

Post by eric9721 »

Thanks for the info. I purchased the advanced version and it is working with Load Balancing. Now, I need to have failover if the destination is unreachable or if a 404 not found is returned. I tried the following Dial Plan and it does not work.

Matching Pattern: $request=^INVITE
$registered=false
To=sip:9722007710@
$sid-[13579]$
Deploy Pattern: $transport=tcp
$target=sip:9722007710@192.168.5.68, sip:9722007710@192.168.5.69

Matching Pattern:$request=^INVITE
$registered=false
To=sip:9722007710@
Deploy Pattern: $transport=tcp
$target=sip:9722007710@192.168.5.69, sip:9722007710@192.168.5.68

Is this possible? What have I done wrong.
james
Posts: 501
Joined: Mon Dec 10, 2007 12:56 pm

Post by james »

The $target variable accpets IP address and FQDN only..

So.. like this.
$target = 192.168.5.68, 192.168.5.69
eric9721
Posts: 7
Joined: Wed Dec 16, 2009 7:29 am
Location: Richardson, Tx

Is it possible to use To: in the same manor?

Post by eric9721 »

It does not work when I set $target = 192.168.5.68, 192.168.5.69...The only way I can make calls go through is to put To=sip:9722007710@192.168.5.68.........Will it accept a failover route? The Speech Server applications answer based on dialed number, so it has to get the 9722007710 in order for the correct application to answer. Thanks again for your assistance!
eric9721
Posts: 7
Joined: Wed Dec 16, 2009 7:29 am
Location: Richardson, Tx

Could something like this work?

Post by eric9721 »

Deploy Pattern:
To=sip:9722007710@$target=192.168.5.69, 192.168.5.68
james
Posts: 501
Joined: Mon Dec 10, 2007 12:56 pm

Post by james »

Try like this...

[Deploy Pattern]
To = sip:9722007710@192.168.5.68
$target = 192.168.5.69, 192.168.5.68
Post Reply