[OpenSIPS-Users] changing $rU number

dpa denis7979 at mail.ru
Thu Jul 23 10:51:20 CEST 2015


And how dialplan helps me to do it, if ,for example, one time I have such
characters 8%2089-0987-09, and in another time I have 987-89%20908-1?

 

From: users-bounces at lists.opensips.org
[mailto:users-bounces at lists.opensips.org] On Behalf Of Trevor Steyn
Sent: Thursday, July 23, 2015 11:27 AM
To: users at lists.opensips.org
Subject: Re: [OpenSIPS-Users] changing $rU number

 

Hi Denis

You can use the dialplan module to rewrite variables as below

dp_translate("1","$rU/$rU");

Then insert you regexp into the dialplan tables, read the dialplan module
documentation for more info.

Regards
Trevor

On 23/07/2015 09:49, dpa wrote:

Thank you.

But what can I use for do it?

 

From: users-bounces at lists.opensips.org
[mailto:users-bounces at lists.opensips.org] On Behalf Of Schneur Rosenberg
Sent: Thursday, July 23, 2015 10:40 AM
To: OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] changing $rU number

 

$rU is read/write so you can use regexp and just rewrite the variable

 

On Thu, Jul 23, 2015 at 10:33 AM, dpa <denis7979 at mail.ru> wrote:



Hello!

 

Opensips 1.10.

 

I am using DROUTING module from making routing.

But some SIP UA sends to Opensips tel. number with  some unnecessary
characters, such as "%20" and "-".

 

The question is how can I delete these characters from request user?

 

Thank you for any help.

 

 

 


_______________________________________________
Users mailing list
Users at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

 






_______________________________________________
Users mailing list
Users at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20150723/32628994/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 906 bytes
Desc: not available
URL: <http://lists.opensips.org/pipermail/users/attachments/20150723/32628994/attachment-0001.gif>


More information about the Users mailing list