Tony wrote:
> http://article.gmane.org/gmane.comp.telephony.pbx.sipfoundry.g
> eneral/19404/match=nxx
>
> I hope this explains it easier.
Yes, I think so.
The challenge is that we don't make it easy to strip part of a Prefix. A
single rule can only either strip the entire prefix (append suffix/nothing), or
leave the prefix intact (append entire dialed number.)
I think this trick might work though.
For simplicity assume only 434-202-XXXX and 434-962-XXX are 7 digits calls, and
all other 434-YYY-YYYY are 10 digit calls. Create the following rules:
Rule 1.
Dialed Number
Prefix: 434202 and: 4 digits
Prefix: 434962 and: 4 digits
Resulting Call
Dial: 999999 and append: Entire dialed number
Gateways
<none>
Rule 2.
Dialed Number
Prefix: 999999434 and: 7 digits
Resulting Call
Dial: <blank> and append: Matched suffix
Gateways
<your gateway>
Rule 3.
Dialed Number
Prefix: 434 and: 7 digits
Resulting Call
Dial: <blank> and append: Entire dialed number
Gateways
<your gateway>
434-202-XXXX and 434-962-XXX calls will hit Rule 1. and then Rule 2. All other
434-YYY-YYYY calls will hit only Rule 3.
Make sense?
-Paul
[email protected]
_______________________________________________
sipx-dev mailing list [email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev
sipXecs IP PBX -- http://www.sipfoundry.org/