[Freeswitch-users] CIDlookup

Brett Wilson brett at launch3.net
Tue Aug 21 00:55:53 MSD 2012


I am trying to get CID lookup to display on the phone's display. I am using
this code in the beginning of the public.xml dialplan:

 

<extension name="cid_number_cleanup" continue="true">

      <condition field="caller_id_number" expression="^(?:\+)(\d+)$">

        <action application="set" data="effective_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="effective_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="^(?:\+)(\d+)$|^$"/>

      <condition field="caller_id_number"
expression="^(?:\+1|1)?([2-9]\d\d[2-9]\d{6})$">

        <action application="cidlookup" data="$1"/>

      </condition>

    </extension>

 

The lookup works - I can see the result in the cdr records. But it does not
display on the phone's display. When we get a call in with actual cnam info,
that does display on the phone. The difference I think is when we get a cnam
call, sip_from_display is filled with the name. When we do the cid lookup,
it is not filled. I tried to set sip_from_display myself through channel
variables in the bridge string as well as export but it is not working. Any
ideas on how I can do this? Being able to control what is displayed on the
screen would be ideal so I can let users know when they are getting a call
direct to their extension or an ACD call.

 

TIA.

 

******************************************* 
Brett Wilson
IT Department
Launch 3 Ventures, LLC 
134 Myer Street 
Hackensack, NJ 07601 
Phone: 877.878.9134
Fax: 646.536.3866 
Email:  <mailto:Brett.Wilson at launch3.net> Brett.Wilson at launch3.net
AOL IM:  <mailto:Brett.Wilson at launch3.net> Brett.Wilson at launch3.net
 <http://www.launch3.net/> www.Launch3.net 
 <http://www.launch3telecom.com/> www.Launch3telecom.com 
******************************************* 
 <http://launch3telecom.blogspot.com/> Description: Description:
Description: Blogger-logo
<http://www.facebook.com/pages/Launch-3-Telecom/165610820178720>
Description: Description: Description: FaceBook-Logo
<https://twitter.com/launch3telecom> Description: Description: Description:
Twitter-Logo <https://plus.google.com/102713212642017290959> Description:
Description: Description: GPlus-Logo

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120820/f8c3e877/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 2872 bytes
Desc: not available
Url : http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120820/f8c3e877/attachment-0004.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 2952 bytes
Desc: not available
Url : http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120820/f8c3e877/attachment-0005.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 2958 bytes
Desc: not available
Url : http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120820/f8c3e877/attachment-0006.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 3063 bytes
Desc: not available
Url : http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120820/f8c3e877/attachment-0007.png 


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