problem to create a ARS

Discuss any topic about Brekeke PBX.

Moderator: Brekeke Support Team

Post Reply
pltec
Posts: 52
Joined: Fri Nov 04, 2005 6:24 am

problem to create a ARS

Post by pltec »

1. Brekeke Product Name and version:PBX 2.1.6.6

2. Java version: 6

3. OS type and the version: Slackware 12.0

4. UA (phone), gateway or other hardware/software involved: IP phne grandstrean and Quintum

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

6. Your problem:

My problem is in create a ARS that I dont needed to make use 9 ou 0, I want to make a direct call for to pstn and use a ramal to...

my ARS is wrong
matching deploy
sip:([1-6]{8}.+)@ sip:$1@192.168.10.8

when I call to ramal is ok... but when I call to psnt using this ARS the pbx report to me a 404 error

my ramal use 4 digits

and a need that all number betwen 1 and 6 go to 192.168.10.8

someone can help me?
hope
Posts: 862
Joined: Tue Jan 15, 2008 4:08 pm

Post by hope »

Did you try
matching
sip:([1-6]{8})@

Deploy
sip:$1@192.168.10.8
pltec
Posts: 52
Joined: Fri Nov 04, 2005 6:24 am

Post by pltec »

It did not work!
hope
Posts: 862
Joined: Tue Jan 15, 2008 4:08 pm

Post by hope »

Are you going to dial to 192.168.10.8 with the number which is only include numbers between 1 and 6 and total digits is 8? or the total digits is at least 8?

if total is at least 8 digists, the matching pattern is
"To: sip:([1-6]{8,})@"

By the way the ARS rules above is put in the "To" part of matching and deploy patterns.
pltec
Posts: 52
Joined: Fri Nov 04, 2005 6:24 am

Post by pltec »

problem solved

sip:([1-6])(.{7})@

sip:$1$2@192.168.10.8

Thanks & Best Regards
Post Reply