[Freeswitch-users] Strip digits from incoming caller id
Michael Collins
msc at freeswitch.org
Wed Sep 19 02:00:06 MSD 2012
We prefer not to store same info in multiple places unless there's no
elegant way around it. In this case you're fine just to put this tidbit
into both pages.
-MC
On Tue, Sep 18, 2012 at 2:46 PM, <georg at riseup.net> wrote:
> Hi,
>
> > 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
>
> Allright, will put it there.
> Is it undesired to store the same information twice? Because if not, I
> would also add it to the dialplan examples, maybe next to [1].
>
> Cheers,
> Georg
>
> [1]
>
> http://wiki.freeswitch.org/wiki/FreeSwitch_Dialplan_XML#Example_3:_Stripping_leading_digits
>
> > 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
> >
>
>
>
> _________________________________________________________________________
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120918/da85aff3/attachment.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list