<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
<META name=GENERATOR content="MSHTML 8.00.6001.19258"></HEAD>
<BODY>
<DIV><SPAN class=807283821-26072012><FONT color=#0000ff size=2 face=Arial>'$' is
the 'end of line' match and not a requirement for a regex.</FONT></SPAN></DIV>
<DIV><SPAN class=807283821-26072012><FONT color=#0000ff size=2
face=Arial></FONT></SPAN> </DIV>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px" dir=ltr>
<DIV dir=ltr class=OutlookMessageHeader align=left><FONT size=2
face=Tahoma>-----Original Message-----<BR><B>From:</B>
freeswitch-users-bounces@lists.freeswitch.org
[mailto:freeswitch-users-bounces@lists.freeswitch.org]<B>On Behalf Of
</B>Brian Foster<BR><B>Sent:</B> Thursday, July 26, 2012 2:29 PM<BR><B>To:</B>
FreeSWITCH Users Help<BR><B>Subject:</B> Re: [Freeswitch-users] Setting
effecting_caller_id_name<BR><BR></FONT></DIV>
<P>You need a $ after 'lookup' for it to be a regex. </P>
<P>Brian Foster<BR>Endigo Computer LLC</P>
<P>Sent from a mobile device.</P>
<DIV class=gmail_quote>On Jul 26, 2012 4:01 PM, "Phil Quesinberry" <<A
href="mailto:philq@qsystemsengineering.com">philq@qsystemsengineering.com</A>>
wrote:<BR type="attribution">
<BLOCKQUOTE
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote><U></U>
<DIV>
<P dir=ltr><SPAN lang=en-us><FONT face=Calibri>And while
I</FONT></SPAN><SPAN lang=en-us><FONT face=Calibri>’</FONT></SPAN><SPAN
lang=en-us><FONT face=Calibri>m asking dumb questions</FONT></SPAN><SPAN
lang=en-us><FONT face=Calibri>…</FONT></SPAN><SPAN lang=en-us></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT face=Calibri>When doing CNAM dips from <A
href="http://opencnam.com" target=_blank>opencnam.com</A>,
often</FONT></SPAN><SPAN lang=en-us> <FONT face=Calibri>you get a result
of</FONT></SPAN><SPAN lang=en-us> <FONT face=Calibri>“</FONT></SPAN><SPAN
lang=en-us><FONT face=Calibri>Currently running a lookup for
phone</FONT></SPAN><SPAN lang=en-us> <FONT face=Calibri>‘</FONT></SPAN><SPAN
lang=en-us><FONT face=Calibri>xxxxxxxxxx</FONT></SPAN><SPAN lang=en-us><FONT
face=Calibri>’…</FONT></SPAN><SPAN lang=en-us><FONT face=Calibri> on
incoming calls</FONT></SPAN><SPAN lang=en-us><FONT face=Calibri>, typically
for wireless or other unknown name callers</FONT></SPAN><SPAN
lang=en-us><FONT face=Calibri> and I wanted to change that
to</FONT></SPAN><SPAN lang=en-us> <FONT face=Calibri>“</FONT></SPAN><SPAN
lang=en-us><FONT face=Calibri>Wireless/Unknown</FONT></SPAN><SPAN
lang=en-us><FONT face=Calibri>”</FONT></SPAN><SPAN lang=en-us><FONT
face=Calibri> 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</FONT></SPAN><SPAN lang=en-us> <FONT
face=Calibri>“</FONT></SPAN><SPAN lang=en-us><FONT
face=Calibri>fix_cidnam_plus</FONT></SPAN><SPAN lang=en-us><FONT
face=Calibri>”</FONT></SPAN><SPAN lang=en-us><FONT face=Calibri> entry, in
other words after a CNAM lookup has been performed.</FONT></SPAN><SPAN
lang=en-us></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT face=Calibri> <extension
name="fix_currently_running" continue="true"></FONT></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT
face=Calibri> <condition
field="caller_id_name" expression="^Currently running a
lookup"></FONT></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT
face=Calibri> <action
application="set"
data="effective_caller_id_name=Wireless/Unknown"/></FONT></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT
face=Calibri>
</condition></FONT></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT face=Calibri>
</extension></FONT></SPAN><SPAN lang=en-us></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT face=Calibri>If I
crafte</FONT></SPAN><SPAN lang=en-us><FONT face=Calibri>d</FONT></SPAN><SPAN
lang=en-us><FONT face=Calibri> my regex properly, then it
should</FONT></SPAN><SPAN lang=en-us> <FONT face=Calibri>be matching on the
first part of the string and</FONT></SPAN><SPAN lang=en-us> <FONT
face=Calibri>setting the variable appropriately. Is</FONT></SPAN><SPAN
lang=en-us> <FONT face=Calibri>‘</FONT></SPAN><SPAN lang=en-us><FONT
face=Calibri>effective_caller_id_name</FONT></SPAN><SPAN lang=en-us><FONT
face=Calibri>’</FONT></SPAN><SPAN lang=en-us><FONT face=Calibri> the
variable I should be</FONT></SPAN><SPAN lang=en-us> <FONT
face=Calibri>setting?</FONT></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT face=Calibri>Many
thanks,</FONT></SPAN><SPAN lang=en-us></SPAN></P>
<P dir=ltr><SPAN lang=en-us></SPAN></P>
<P dir=ltr><SPAN lang=en-us><I></I></SPAN><SPAN
lang=en-us><I></I></SPAN><I><SPAN lang=en-us></SPAN></I><I><SPAN
lang=en-us><FONT face="Times New Roman">Phil
Quesinberry</FONT></SPAN></I><SPAN lang=en-us></SPAN><SPAN
lang=en-us></SPAN><SPAN lang=en-us></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT face=Arial>Q Systems Engineering,
Inc.</FONT></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT face=Arial>Electronic Controls and
Embedded Systems Development</FONT></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT face=Arial><A
href="tel:%28410%29%20969-8002" target=_blank value="+14109698002">(410)
969-8002</A></FONT></SPAN></P>
<P dir=ltr><SPAN lang=en-us></SPAN><A
href="http://www.qsystemsengineering.com" target=_blank><SPAN
lang=en-us></SPAN><SPAN lang=en-us><U></U></SPAN><U><SPAN
lang=en-us></SPAN></U><U><SPAN lang=en-us><FONT color=#0000ff
face=Arial>http://www.qsystemsengineering.com</FONT></SPAN></U><SPAN
lang=en-us></SPAN></A><SPAN lang=en-us></SPAN><SPAN lang=en-us></SPAN><SPAN
lang=en-us></SPAN></P>
<P dir=ltr><SPAN
lang=en-us></SPAN></P></DIV><BR>_________________________________________________________________________<BR>Professional
FreeSWITCH Consulting Services:<BR><A
href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</A><BR><A
href="http://www.freeswitchsolutions.com"
target=_blank>http://www.freeswitchsolutions.com</A><BR><BR>FreeSWITCH-powered
IP PBX: The CudaTel Communication Server<BR><A href="http://www.cudatel.com"
target=_blank>http://www.cudatel.com</A><BR><BR>Official FreeSWITCH
Sites<BR><A href="http://www.freeswitch.org"
target=_blank>http://www.freeswitch.org</A><BR><A
href="http://wiki.freeswitch.org"
target=_blank>http://wiki.freeswitch.org</A><BR><A
href="http://www.cluecon.com"
target=_blank>http://www.cluecon.com</A><BR><BR>Join Us At ClueCon - Aug
7-9, 2012<BR><BR>FreeSWITCH-users mailing list<BR><A
href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</A><BR><A
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
target=_blank>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</A><BR>UNSUBSCRIBE:<A
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
target=_blank>http://lists.freeswitch.org/mailman/options/freeswitch-users</A><BR><A
href="http://www.freeswitch.org"
target=_blank>http://www.freeswitch.org</A><BR><BR></BLOCKQUOTE></DIV></BLOCKQUOTE></BODY></HTML>