[Freeswitch-users] Matching plus sign in dialplan Regexp
bsd
bsd at todoo.biz
Wed Sep 22 03:33:55 PDT 2010
What I want is to transform :
^(\+\d{7,15})$
into smthg like :
^(00\d{7,15})$
So that any "+" sign will be transformed into "00"
Thanks.
Le 22 sept. 2010 à 00:31, David Ponzone a écrit :
> You need to tell us what you want to transform, because transforming a registration username is useless.
> So I suppose you want to transform their caller-id.
> That would be:
>
> <extension name="normalize-callerid" continue="true">
> <condition field="caller_id_number" expression="^\+(33123456789)$">
> <action application="set" data="effective_caller_id_number=00$1"/>
> </condition>
> </extension>
>
> David Ponzone Direction Technique
> email: david.ponzone at ipeva.fr
> tel: 01 74 03 18 97
> gsm: 06 66 98 76 34
>
> Service Client IPeva
> tel: 0811 46 26 26
> www.ipeva.fr - www.ipeva-studio.com
>
> Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. IPeva décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur.
>
>
>
>
> Le 21/09/2010 à 16:01, bsd a écrit :
>
>> 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