Re: dial plan issues in vocal 1.4
Jon Ringle <[email protected]> Mon, 2 May 2005 14:26:30 -0400
| Newsgroups | gmane.comp.lib.vovida.vocal |
|---|---|
| Message-ID | <[email protected]> |
On Monday 02 May 2005 15:17, Adil Laari wrote:
> Hello,
>
> I have some problems getting some routes to work properly in vocal.
>
> this is what I am trying to do:
> Route#1:
> key: ^sip:9(.{7}) contact: sip:$1@IP1_Addr:port;user=phone
> this will take any 9+7digit call, delete the 9 and send the call to
> IP1_Addr.
>
> Route#2:
> And I have another key/contact as follow:
> key: ^sip:[2-9][0-9][0-9][0-9][0-9][0-9][0-9] contact:
> sip:$USER@IP2_Addr:port;user=phone
> this will send any 7 digit calls to IP2_Addr.
>
> The issue is:
> When a user dials a 7digit phone number starting with 9 (e.g. 9997777)
> Route#1 overrides Route#2 even though a user dials only and only 7 digits.
> If I do switch back the index between Route#1 and Route#2. Route#2 starts
> to overrides Route#1.
Try modifying keys to have a trailing @ character. ie, ^sip:9(.{7})@
This should force the matching to include the @ that follows the username
portion of the address, and make it so it matches exactly the number of
digits that you intend for the rule.
Jon
_______________________________________________
vocal mailing list
[email protected]
To unsubscribe, please go to http://www.vovida.org/mailman/listinfo/vocal