[Freeswitch-users] Matching plus sign in dialplan Regexp

Milena testeador01 at gmail.com
Tue Sep 21 08:44:48 PDT 2010


hello,

You can match the "+" sign using: \+
then you can replace the + for 00, check this example:
http://wiki.freeswitch.org/wiki/Dialplan_XML#Example_4:_Adding_a_prefix

make sure you spend some time understanding regexes, it will help you a lot!

-milena

On Tue, Sep 21, 2010 at 9:01 AM, bsd <bsd at todoo.biz> wrote:

> Hello folks,
>
> I am actually using a regexp such as ^(\d{7,15})$ to route call to one of
> my gateway.
> My SIP clients have all their number registered with number such as
> +33123456789
>
> Is there a way to treat the "+" and transform It in "00" at the level of
> FreeSwitch (I can do that at the client level, but you'll understand that It
> is easier to do on the server side).
>
>
> Thanks.
>
>
> ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
> Gregober ---> PGP ID --> 0x1BA3C2FD
> bsd @at@ todoo.biz
> ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
>
>
>
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100921/9dbac26e/attachment.html 


More information about the FreeSWITCH-users mailing list