[Freeswitch-users] Setting effecting_caller_id_name

JRichey jrichey at itltd.net
Fri Jul 27 01:42:38 MSD 2012


'$' is the 'end of line' match and not a requirement for a regex.
 

-----Original Message-----
From: freeswitch-users-bounces at lists.freeswitch.org
[mailto:freeswitch-users-bounces at lists.freeswitch.org]On Behalf Of Brian
Foster
Sent: Thursday, July 26, 2012 2:29 PM
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] Setting effecting_caller_id_name



You need a $ after 'lookup' for it to be a regex. 

Brian Foster
Endigo Computer LLC

Sent from a mobile device.

On Jul 26, 2012 4:01 PM, "Phil Quesinberry" < philq at qsystemsengineering.com
<mailto:philq at qsystemsengineering.com> > wrote:




And while I’m asking dumb questions…

When doing CNAM dips from opencnam.com <http://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)  <tel:%28410%29%20969-8002> 969-8002

 <http://www.qsystemsengineering.com> http://www.qsystemsengineering.com




_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org <mailto:consulting at freeswitch.org> 
http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com> 


 <> 

Official FreeSWITCH Sites
http://www.freeswitch.org <http://www.freeswitch.org> 
http://wiki.freeswitch.org <http://wiki.freeswitch.org> 
http://www.cluecon.com <http://www.cluecon.com> 

Join Us At ClueCon - Aug 7-9, 2012

FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
<mailto:FreeSWITCH-users at lists.freeswitch.org> 
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
<http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> 
UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users
<http://lists.freeswitch.org/mailman/options/freeswitch-users> 
http://www.freeswitch.org <http://www.freeswitch.org> 



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


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