Yes, but I was hoping for a method that would keep me from entering in
hundred or so rules though.

On Wed, Jun 16, 2010 at 10:09 AM, Mossman, Paul (Paul)
<[email protected]> wrote:
> 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]
>
>
>



-- 
======================
Tony Graziano, Manager
Telephone: 434.984.8430
sip: [email protected]
Fax: 434.984.8431

Email: [email protected]

LAN/Telephony/Security and Control Systems Helpdesk:
Telephone: 434.984.8426
sip: [email protected]
Fax: 434.984.8427

Helpdesk Contract Customers:
http://www.myitdepartment.net/gethelp/

Why do mathematicians always confuse Halloween and Christmas?
Because 31 Oct = 25 Dec.
_______________________________________________
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/

Reply via email to