[Freeswitch-users] Setting effecting_caller_id_name

Phil Quesinberry philq at qsystemsengineering.com
Thu Jul 26 23:59:05 MSD 2012


And while I'm asking dumb questions.

When doing CNAM dips from opencnam.com, often you get a result of "Currently
running a lookup for phone 'xxxxxxxxxx'. on incoming calls, typically for
wireless or other unknown name callers and I wanted to change that to
"Wireless/Unknown"  Since caller_id_name is apparently read-only, I am
attempting to set effective_caller_id_name.  I put the following in
public.xml right below the "fix_cidnam_plus" entry, in other words after a
CNAM lookup has been performed.

   <extension name="fix_currently_running" continue="true">
      <condition field="caller_id_name" expression="^Currently running a
lookup">
        <action application="set"
data="effective_caller_id_name=Wireless/Unknown"/>
      </condition>
    </extension>

If I crafted my regex properly, then it should be matching on the first part
of the string and setting the variable appropriately.  Is
'effective_caller_id_name' the variable I should be setting?

Many thanks,

Phil Quesinberry
Q Systems Engineering, Inc.
Electronic Controls and Embedded Systems Development
(410) 969-8002
http://www.qsystemsengineering.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120726/2da91371/attachment.html 


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