Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
Load Balanced Dial Plan
Author Message
eric9721
Brekeke Junior Member


Joined: 16 Dec 2009
Posts: 7
Location: Richardson, Tx

PostPosted: Wed Dec 16, 2009 7:36 am    Post subject: Load Balanced Dial Plan Reply with quote

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/networkpatterns.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.
Back to top
View user's profile
hope
Brekeke Master Guru


Joined: 15 Jan 2008
Posts: 862

PostPosted: Wed Dec 16, 2009 11:51 am    Post subject: Reply with quote

there are some dial plans for load balancing at dial plan tutorial
http://www.brekeke-sip.com/download/bss/v2_x/bss_tutorial_dialplan_en.pdf
Back to top
View user's profile
james
Brekeke Master Guru


Joined: 10 Dec 2007
Posts: 498

PostPosted: Wed Dec 16, 2009 6:43 pm    Post subject: Reply with quote

Note.. The $sid based load balancing requires Advanced Edition.
Back to top
View user's profile
eric9721
Brekeke Junior Member


Joined: 16 Dec 2009
Posts: 7
Location: Richardson, Tx

PostPosted: Thu Dec 17, 2009 1:39 pm    Post subject: Advanced Version worked for Load Balancing Reply with quote

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.
Back to top
View user's profile
james
Brekeke Master Guru


Joined: 10 Dec 2007
Posts: 498

PostPosted: Thu Dec 17, 2009 8:03 pm    Post subject: Reply with quote

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

So.. like this.
$target = 192.168.5.68, 192.168.5.69
Back to top
View user's profile
eric9721
Brekeke Junior Member


Joined: 16 Dec 2009
Posts: 7
Location: Richardson, Tx

PostPosted: Fri Dec 18, 2009 6:54 am    Post subject: Is it possible to use To: in the same manor? Reply with quote

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!
Back to top
View user's profile
eric9721
Brekeke Junior Member


Joined: 16 Dec 2009
Posts: 7
Location: Richardson, Tx

PostPosted: Fri Dec 18, 2009 8:03 am    Post subject: Could something like this work? Reply with quote


Deploy Patterns
To = sip:9722007710@$target=192.168.5.69, 192.168.5.68
Back to top
View user's profile
james
Brekeke Master Guru


Joined: 10 Dec 2007
Posts: 498

PostPosted: Tue Dec 22, 2009 1:09 pm    Post subject: Reply with quote

Try like this...

Deploy Patterns
To = sip:9722007710@192.168.5.68
$target = 192.168.5.69, 192.168.5.68
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    Brekeke Forum Index » Brekeke SIP Server Forum All times are GMT - 7 Hours
Page 1 of 1