Forums Read-only archive

Routing Call with Prefix

5 posts · Brekeke SIP Server Forum

JRayfield Original post
1. Brekeke Product Name and Version:

Brekeke SIP Server 3 (BSS3)

2. Java version:

Not sure

3. OS type and the version:

Windows 7 Pro

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

3CX IP PBX Server

5. Your problem:

I'm attempting to route calls based on a prefix that is added to the dialed number from a 3CX IP PBX. For example, in the Outbound Rules in the 3CX IP PBX, I add the digits "61001" to a local 7 digit number that is dialed. Then, based on the Matching Pattern in BSS3, the call is appropriately routed.

I've tried the following, which is based on the examples on page 8 of the Brekeke SIP Server Dial Plan Tutorial. 'xxx.xxx.xxx.xxx' is the IP address of the 3CX IP PBX server. 'yyy.yyy.yyy.yyy' is the IP address of the underlying VoIP service provider through which I'm routing the call. 'zzz.zzz.zzz.zzz' is the IP address of the BSS3. I also have to add '1417' to the dial 'string', sent to the underlying VoIP carrier for local numbers to dial correctly.

Matching Pattern:

$request=^INVITE
$addr=^xxx.xxx.xxx.xxx$
To=sip:61001(.+)@

Deploy Pattern:

To=1417%1@yyy.yyy.yyy.yyy
$rtp=false

This does not work. It appears that the incoming INVITE (610018694491@zzz.zzz.zzz.zzz) is not matching the Matching Pattern.

What am I doing wrong here?

John
JRayfield
I found the problem (or at least, fixed the problem). There was a conflict, of some kind, in the prefix that I was adding to the 'number dialed' from 3CX into BSS3. I changed the prefix and everything works fine now.

John
james
John,
I think you need to have "sip:" in the Deploy Patterns's To-definition.

To = sip:1417%1@yyy.yyy.yyy.yyy
JRayfield
Actually, I did have that. I just forgot to include it here when I made the post.

John
james
Oh ok.

Since you are using Brekeke SIP Server ver3, you can find Dial Plan History page under the [Dial Plan] menu.
It will help if you are debugging DialPlan rules.

If you are using ver 3.5, you can enable DialPlan log from the [Diagnostics] menu.