[Freeswitch-users] Trouble setting "caller_id_name", "caller_id_number" on an inbound call

Brian Foster bdfoster at endigotech.com
Fri Mar 30 14:27:11 MSD 2012


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120330/a1725642/attachment.html 


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