Brekeke Forum Index » Brekeke PBX Forum

Post new topic   Reply to topic
problem to create a ARS
Author Message
pltec
Brekeke Talented


Joined: 04 Nov 2005
Posts: 52

PostPosted: Fri Jun 13, 2008 1:49 pm    Post subject: problem to create a ARS Reply with quote

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


Joined: 15 Jan 2008
Posts: 862

PostPosted: Fri Jun 13, 2008 2:57 pm    Post subject: Reply with quote

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

Deploy
sip:$1@192.168.10.8
Back to top
View user's profile
pltec
Brekeke Talented


Joined: 04 Nov 2005
Posts: 52

PostPosted: Mon Jun 16, 2008 4:48 am    Post subject: Reply with quote

It did not work!
Back to top
View user's profile
hope
Brekeke Master Guru


Joined: 15 Jan 2008
Posts: 862

PostPosted: Mon Jun 16, 2008 11:23 am    Post subject: Reply with quote

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.
Back to top
View user's profile
pltec
Brekeke Talented


Joined: 04 Nov 2005
Posts: 52

PostPosted: Mon Jun 16, 2008 12:35 pm    Post subject: Reply with quote

problem solved

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

sip:$1$2@192.168.10.8

Thanks & Best Regards
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    Brekeke Forum Index » Brekeke PBX Forum All times are GMT - 7 Hours
Page 1 of 1