Help with ARS matching patterns

Discuss any topic about Brekeke PBX.

Moderator: Brekeke Support Team

Post Reply
jimby_aus
Posts: 2
Joined: Wed Jul 04, 2007 6:45 am

Help with ARS matching patterns

Post by jimby_aus »

Hello,

Im a brekeke newbie, and just purchased a license. I have the demo running, connected to a SIP provider, with 10 extensions all running OK. My question relates to the matching patterns section for outgoing calls for my SIP provider in ARS.

The To field is currently as follows: sip:9(.+)@

Outbound calls work fine if I prefix all numbers with a 9, however I do not want a number prefix. If I remove the 9 in the pattern, the problem is solved, however I can then no longer receive calls to extensions, I guess because this pattern captures all calls or something?

Basically all calls to numbers starting with 199 are an extension, and anything else should go out via the SIP provider, or the relevant SIP provider (I have multiple) depending on the first few digits of the phone number.

Not knowing Regex, a pointer in the right direction should get me on my way.

Thanks.
jelly
Posts: 62
Joined: Wed Jun 20, 2007 9:54 am

Post by jelly »

check this link:
http://www.brekeke-sip.com/wiki/index.p ... i=cd964cee#
it may helps. good luck
tissa
Posts: 39
Joined: Thu Nov 18, 2010 7:45 am
Location: sri lanka

need advise

Post by tissa »

I'm using BREKE PBX software and have installed the trial version 2.4.7.3.

My Quintum AFT400 gateway is located in Sri Lanka

Currently,my PAP2-PAP2 PBX server is running perfectly.

Also I have registered my Quintum AFT400 as PBX user.

However,when a call is orginated from PAP2, call is not being connected to Quintum and is giving a busy tone.

Can you please advise me on how to give ARS settings abd dial plan for quintum on this regard?

Thanks & Regards,
Tissa
juanmanuel
Posts: 107
Joined: Wed Mar 04, 2009 12:57 pm
Location: Medellin,Colombia

Post by juanmanuel »

Hi:

When you remove the digit 9 from sp:9(.+), is telling tp Pbx that all the calls be drve to to To argument you have configured at Deploy Patterns, that must be the SIP Provider address.

If you want no use any prefix, you must to configure several OUT ARS rules as:

Matching patterns Deploy Patterns
to:sip: 2(.+)@ To:sip:2$1@SIP_Provider_Address
To:sip:3(.+)@ To:sip:3$1@SIP_Provider_Address

And so on

The expresion 2$1 means that the called number must contain the number 2 plus the value into (.+)



Note that the 1(.+)@ is not present because is 1xx is the serie for internal extensions

I hope it help
Juan Acevedo
Juan Manuel Acevedo
Medellin, Colombia
email:jacevedo@e-global.com.co
Post Reply