<div dir="ltr">On Thu, Feb 21, 2013 at 3:27 PM, Brian West <span dir="ltr">&lt;<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a>&gt;</span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">You know you can do CNAM lookups while dialing and set those values and update the phone during the ringing phase.  It puts Outgoing Call in there when it has no other information.</blockquote>
<div><br></div><div style>I tried the following:</div><div style><br></div><div>   &lt;extension name=&quot;local 7-digit&quot;&gt;</div><div>    &lt;condition field=&quot;destination_number&quot; expression=&quot;^([2-9]\d\d\d{4})$&quot;&gt;</div>
<div>      &lt;action application=&quot;set&quot; data=&quot;effective_caller_id_number=${outbound_caller_id_number}&quot;/&gt;</div><div>      &lt;action application=&quot;set&quot; data=&quot;effective_caller_id_name=${outbound_caller_name}&quot;/&gt;</div>
<div>      &lt;action application=&quot;set&quot; data=&quot;effective_callee_id_number=$1&quot;/&gt;</div><div>      &lt;action application=&quot;set&quot; data=&quot;effective_callee_id_name=${cidlookup(1${default_areacode}$1)}&quot;/&gt;</div>
<div>      &lt;action application=&quot;bridge&quot; data=&quot;sofia/gateway/flowroute/1${default_areacode}$1&quot;/&gt;</div><div>     &lt;/condition&gt;</div><div>    &lt;/extension&gt;</div><div style><br></div><div style>
This had one intended consequence in that it left the 7-digit number in the display, rather than replacing it with the 11-digit number, like it usually does, but setting the effective_called_id_name did not behave as expected.</div>
<div style><br></div><div style>What it did was change the name on the display to the CNAM, as expected, while it was ringing, but as soon as the remote party answered, the display changed again to &quot;Outbound Call&quot;.</div>
<div style><br></div><div style>-- </div><div style>Steve</div></div></div></div>