Re: dial plan issues in vocal 1.4

"Adil Laari" <[email protected]> Mon, 2 May 2005 14:11:20 -0600
Newsgroups gmane.comp.lib.vovida.vocal
Message-ID <[email protected]>
YES, it works fine.

Thanks alot Jon.


-----Original Message-----
From: [email protected] [mailto:[email protected]]On
Behalf Of [email protected]
Sent: Monday, May 02, 2005 1:05 PM
To: [email protected]
Subject: vocal Digest, Vol 15, Issue 1


Send vocal mailing list submissions to
	[email protected]

To subscribe or unsubscribe via the World Wide Web, visit
	http://www.vovida.org/mailman/listinfo/vocal
or, via email, send a message with subject or body 'help' to
	[email protected]

You can reach the person managing the list at
	[email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of vocal digest..."


Today's Topics:

   1. dial plan issues in vocal 1.4 (Adil Laari)
   2. Re: dial plan issues in vocal 1.4 (Jon Ringle)


----------------------------------------------------------------------

Message: 1
Date: Mon, 2 May 2005 13:17:51 -0600
From: "Adil Laari" <[email protected]>
Subject: [Vocal] dial plan issues in vocal 1.4
To: <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain;	charset="iso-8859-1"

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.

If you guys have any ideas why this problem is happening, please reply. I
really appreciate it.



------------------------------

Message: 2
Date: Mon, 2 May 2005 14:26:30 -0400
From: Jon Ringle <[email protected]>
Subject: [Vocal] Re: dial plan issues in vocal 1.4
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain;  charset="iso-8859-1"

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


End of vocal Digest, Vol 15, Issue 1
************************************

_______________________________________________
vocal mailing list
[email protected]
To unsubscribe, please go to http://www.vovida.org/mailman/listinfo/vocal