Author |
Message |
eric9721 Brekeke Junior Member
Joined: 16 Dec 2009 Posts: 7
Location: Richardson, Tx
|
Posted: Wed Dec 16, 2009 7:36 am Post subject: Load Balanced Dial Plan |
|
|
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 |
|
hope Brekeke Master Guru
Joined: 15 Jan 2008 Posts: 862
|
|
Back to top |
|
james Brekeke Master Guru
Joined: 10 Dec 2007 Posts: 501
|
Posted: Wed Dec 16, 2009 6:43 pm Post subject: |
|
|
Note.. The $sid based load balancing requires Advanced Edition. |
|
Back to top |
|
eric9721 Brekeke Junior Member
Joined: 16 Dec 2009 Posts: 7
Location: Richardson, Tx
|
Posted: Thu Dec 17, 2009 1:39 pm Post subject: Advanced Version worked for Load Balancing |
|
|
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 |
|
james Brekeke Master Guru
Joined: 10 Dec 2007 Posts: 501
|
Posted: Thu Dec 17, 2009 8:03 pm Post subject: |
|
|
The $target variable accpets IP address and FQDN only..
So.. like this.
$target = 192.168.5.68, 192.168.5.69 |
|
Back to top |
|
eric9721 Brekeke Junior Member
Joined: 16 Dec 2009 Posts: 7
Location: Richardson, Tx
|
Posted: Fri Dec 18, 2009 6:54 am Post subject: Is it possible to use To: in the same manor? |
|
|
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 |
|
eric9721 Brekeke Junior Member
Joined: 16 Dec 2009 Posts: 7
Location: Richardson, Tx
|
Posted: Fri Dec 18, 2009 8:03 am Post subject: Could something like this work? |
|
|
Deploy Patterns | To = sip:9722007710@$target=192.168.5.69, 192.168.5.68
|
|
|
Back to top |
|
james Brekeke Master Guru
Joined: 10 Dec 2007 Posts: 501
|
Posted: Tue Dec 22, 2009 1:09 pm Post subject: |
|
|
Try like this...
Deploy Patterns | To = sip:9722007710@192.168.5.68 $target = 192.168.5.69, 192.168.5.68
|
|
|
Back to top |
|
|