Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
dial rules guessing
Author Message
raulbmjr
Brekeke Newbie


Joined: 19 Mar 2008
Posts: 3

PostPosted: Mon Mar 24, 2008 2:58 am    Post subject: dial rules guessing Reply with quote

1. Brekeke Product Name and version: 2.1.6.6

2. Java version:

3. OS type and the version: windows xp

4. UA (phone), gateway or other hardware/software involved: Nextone, xlite

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

6. Your problem:

How can I call to different sip provider if call originates from the following example:

Any calls starting 1xxxxxx -> should route to 202.163.211.23

Any calls starting 6xxxxxx -> should route to 203.170.89.5

I'm having problem on the following rules with an error "404 not found"

Matching Patterns
$request = ^INVITE
To = sip:(1.+)@
To = sip:(6.+)@
Deploy Patterns
To = sip:%1@202.163.211.23
To = sip:%2@203.170.89.5

Would appreciate so much your advise!!!
Back to top
View user's profile Yahoo Messenger
jelly
Brekeke Talented


Joined: 20 Jun 2007
Posts: 62

PostPosted: Mon Mar 24, 2008 10:54 am    Post subject: Reply with quote

Try to use two dial plans with different priority.

Matching Patterns
$request = ^INVITE
To = sip:(1.+)@


Deploy Patterns
To = sip:%1@202.163.211.23

Matching Patterns
$request = ^INVITE
To = sip:(6.+)@
Deploy Patterns
To = sip:%1@203.170.89.5
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