I think asterisk will take care of this for you. Asterisk will take the most complete match in a pattern match. For example if you have a local extension 1234567890 and a pattern match _XXXXXXXXXX then Asterisk will match the 1234567890 to the exact match if it exist, if not then it will got the closest pattern it can find. Does that make sense or help?

On 7/18/06, Jerry Bonner <[EMAIL PROTECTED]> wrote:

Hi all,

 

Does anyone have any tips on how I would accomplish a plan where if a user dials 4 digits, then prefix 6 digits, then if there is a local extension configured for that number dial it, otherwise send it out another sip gateway ( my pstn gateway)?

 

Perhaps more specifically, are there any construtcs that would "dial extension if exists"? Because I want to make sure I dial a sip extension before routing it out to the pstn.

 

~jerry


_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users





--
Bruce
Nortex Networks
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to