[Freeswitch-users] Strip digits from incoming caller id

Avi Marcus avi at avimarcus.net
Wed Sep 19 01:45:47 MSD 2012


Whoa. I did NOT know about this onlyinclude stuff.
It looks like there's quite a few vars on channel vars page that aren't
using an include like this.

-Avi


On Wed, Sep 19, 2012 at 12:33 AM, Michael Collins <msc at freeswitch.org>wrote:

> Where on the wiki were you looking for this information? It sounds like it
> is related to caller id handling. My guess is that the best place to put it
> would be:
> http://wiki.freeswitch.org/wiki/Variable_effective_caller_id_number
>
> if you put it inside of the <onlyinclude> tags then it will also display
> on the main channel variables page.
>
> -MC
>
>
> On Tue, Sep 18, 2012 at 2:20 PM, <georg at riseup.net> wrote:
>
>> Hi Paul,
>>
>> > Try this instead of the above:
>> >
>> > <action application="set"
>> >
>> data="effective_caller_id_number=${regex(${caller_id_number}|^49([0-9]{9})$|0%1)}"/>
>> >
>> > You maybe want to adjust the {9} to reflect the correct number of digits
>> > in the national part of the caller ID.
>>
>> Thank you. I've found this aswell in the wiki 2 minutes after my post, and
>> wanted to test first.
>> Everything works as expected! :)
>>
>> Cheers,
>> Georg
>>
>> P.S.: Before my post I googled aroung for sth. like two hours. Should I
>> wikify this somewhere (if yes, where?) to make it easier to find?
>>
>>
>> _________________________________________________________________________
>> 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
>>
>
>
>
> --
> Michael S Collins
> Twitter: @mercutioviz
> http://www.FreeSWITCH.org
> http://www.ClueCon.com
> http://www.OSTAG.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/20120919/deee7cfe/attachment-0001.html 


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