[Freeswitch-users] lcr cid maniluaption

Miha miha at softnet.si
Wed Jul 31 17:33:04 MSD 2013


Thx Avi.

miha

Dne 7/31/2013 3:04 PM, pis(e Avi Marcus:
> You can do an extension in your dialplan to match: ^(\d+)\*(\d+)$
> And if it matches, transfer to $1$2 to strip the * from the number.. 
> that only works for this exact circumstance, though.
>
> -Avi
>
> On Wed, Jul 31, 2013 at 3:45 PM, Miha <miha at softnet.si 
> <mailto:miha at softnet.si>> wrote:
>
>     Avi sorry,
>
>     I was looking at wrong palce. I need a manipulation with
>     destination number as some cerrier is sending 385*xxxxx, some are
>     sending without * (385xxxx).
>
>     I did two routes in lcr but from what I can see lcr module does
>     not look at *, for with * and without * same route is used.
>
>     What whout be the best way to deal with this?
>
>     BR,
>     Miha
>
>     Dne 7/31/2013 2:24 PM, pis(e Avi Marcus:
>>     If you only need to replace the * with nothing, then try: /\*//
>>     -Avi
>>
>>
>>     On Wed, Jul 31, 2013 at 2:49 PM, Miha <miha at softnet.si
>>     <mailto:miha at softnet.si>> wrote:
>>
>>         HI,
>>
>>         I need a little help with regex for cid manipulation in lcr.
>>
>>         On wiki I can see that I can do it like this: /search/replace/
>>
>>         I am getting sometime number like: 385*60001264567 and
>>         sometimes without
>>         * (385*60001264567) (from different carrier).
>>
>>         How can I get rid of * with regex in LCR table? I can see
>>         that row CID
>>         is for this manipulation.
>>
>>         tnx
>>         miha
>>
>>
>>
>>         _________________________________________________________________________
>>         Professional FreeSWITCH Consulting Services:
>>         consulting at freeswitch.org <mailto:consulting at freeswitch.org>
>>         http://www.freeswitchsolutions.com
>>
>>         
>>         
>>
>>         Official FreeSWITCH Sites
>>         http://www.freeswitch.org
>>         http://wiki.freeswitch.org
>>         http://www.cluecon.com
>>
>>         FreeSWITCH-users mailing list
>>         FreeSWITCH-users at lists.freeswitch.org
>>         <mailto: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
>>
>>
>>
>>
>>     _________________________________________________________________________
>>     Professional FreeSWITCH Consulting Services:
>>     consulting at freeswitch.org  <mailto:consulting at freeswitch.org>
>>     http://www.freeswitchsolutions.com
>>
>>     
>>     
>>
>>     Official FreeSWITCH Sites
>>     http://www.freeswitch.org
>>     http://wiki.freeswitch.org
>>     http://www.cluecon.com
>>
>>     FreeSWITCH-users mailing list
>>     FreeSWITCH-users at lists.freeswitch.org  <mailto: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
>
>
>     _________________________________________________________________________
>     Professional FreeSWITCH Consulting Services:
>     consulting at freeswitch.org <mailto:consulting at freeswitch.org>
>     http://www.freeswitchsolutions.com
>
>     
>     
>
>     Official FreeSWITCH Sites
>     http://www.freeswitch.org
>     http://wiki.freeswitch.org
>     http://www.cluecon.com
>
>     FreeSWITCH-users mailing list
>     FreeSWITCH-users at lists.freeswitch.org
>     <mailto: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
>
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> 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/20130731/a49a5adb/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list