[Freeswitch-users] Trouble setting "caller_id_name", "caller_id_number" on an inbound call
DJB International
djbinter at gmail.com
Fri Mar 30 19:33:55 MSD 2012
In general, caller_id_name and caller_id_number are read-only values. In
this case, if you want to set them for inline use purpose, you can set them
to other variables like in_cid_name and in_cid_num, then you can call that
variables by using it as {in_cid_name} and/or {in_cid_num} to run to
dialplan matching later.
-djbinter
On Fri, Mar 30, 2012 at 3:27 AM, Brian Foster <bdfoster at endigotech.com>wrote:
> As the subject says, I'm having issues setting the caller id name and
> number on an inbound call when doing some cleanups and a lookup. These
> dialplans are based on what information is listed for Mod_callcenter, and I
> have a feeling that they are wrong. I'll volunteer myself to change them if
> they are.
>
> Alright, so here's the dialplan:
>
> <extension name="cid_number_cleanup" continue="true">
> <condition field="caller_id_number" expression="^(?:\+)(\d+)$">
> <action application="set" data="caller_id_number=$1"
> inline="true"/>
> </condition>
> </extension>
>
> <extension name="cid_name_cleanup" continue="true">
> <condition field="caller_id_name" expression="^(?:\+)(\d+)$">
> <action application="set" data="caller_id_name=$1" inline="true"/>
> </condition>
> </extension>
>
> <extension name="cid_lookup-country_code_1" continue="true">
> <condition field="${module_exists(mod_cidlookup)}"
> expression="true"/>
> <condition field="caller_id_name"
> expression="^${caller_id_number}$|^$"/>
> <condition field="caller_id_number"
> expression="^(?:/+1)?([2-9]\d\d[2-9]\d{6})$">
> <action application="cidlookup" data="$1"/>
> </condition>
> </extension>
>
> Call log here: http://pastebin.freeswitch.org/18786
>
> I've tried setting the effective_caller_id_(name/number) but no luck
> there. Is there something I'm doing wrong here?
>
> -BDF
>
> --
> Brian D. Foster
> Endigo Computer LLC
> Email: bdfoster at endigotech.com
> Phone: 317-800-7876
> Indianapolis, Indiana, USA
>
> This message contains confidential information and is intended for those
> listed in the "To:", "CC:", and/or "BCC:" fields of the message header. If
> you are not the intended recipient you are notified that disclosing,
> copying, distributing or taking any action in reliance on the contents of
> this information is strictly prohibited. E-mail transmission cannot be
> guaranteed to be secure or error-free as information could be intercepted,
> corrupted, lost, destroyed, arrive late or incomplete, or contain viruses.
> The sender therefore does not accept liability for any errors or omissions
> in the contents of this message, which arise as a result of e-mail
> transmission. If verification is required please request a hard-copy
> version.
>
>
> _________________________________________________________________________
> 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/20120330/81d49103/attachment-0001.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list