[Freeswitch-users] Matching plus sign in dialplan Regexp

bsd bsd at todoo.biz
Tue Sep 21 13:14:01 PDT 2010


Thanks Milena, 

But my question was not about regexp, which I do understand, but about substitution in the context of FreeSwitch, which is not part of regexp as far as I can tell. 

;-) 


Le 21 sept. 2010 à 17:44, Milena a écrit :

> 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
> 
> _______________________________________________
> 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

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Gregober ---> PGP ID --> 0x1BA3C2FD
bsd @at@ todoo.biz
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯






More information about the FreeSWITCH-users mailing list