[Freeswitch-users] Matching plus sign in dialplan Regexp

David Ponzone david.ponzone at ipeva.fr
Tue Sep 21 15:31:19 PDT 2010


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100922/c68b9745/attachment.html 


More information about the FreeSWITCH-users mailing list