Hi Guys,<div><br></div><div>Thanks for the quick feedback</div><div><br></div><div>David, no we&#39;re getting the full URI with the domain part intact, just nothing before the &quot;&lt;&quot; braces</div><div><br></div><div>
Michael, I already tried the info app and we get</div><div><br></div><div><div>variable_sip_to_user: [011390NNNNNNNNNN;phone-context=+39]</div><div>variable_sip_to_uri: [011390NNNNNNNNNN;phone-context=+39@208.xx.xxx.xxx:5060]</div>
<div><br></div><div>Thanks</div><div>RR</div></div><div><br><br><div class="gmail_quote">On Tue, May 25, 2010 at 4:12 PM, Michael Collins <span dir="ltr">&lt;<a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br><br><div class="gmail_quote"><div class="im">On Tue, May 25, 2010 at 12:48 PM, RR <span dir="ltr">&lt;<a href="mailto:ranjtech@gmail.com" target="_blank">ranjtech@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
Hello I want to follow up on this example from YEARS ago. I had tried using the variable &quot;destination_number&quot; but that didn&#39;t work, and I figured that it was because the To: header doesn&#39;t have the destination_number but has just the URI, so I thought I&#39;d use sip_to_user instead.<div>


<br></div><div>We have calls coming in with the following info in the INVITE</div><div><br></div><div>From: &quot;16469NNNNNN&quot; &lt;sip:16469NNNNNN;phone-context=+1@67.1x.xxx.xxx:5060;user=phone&gt;;tag=SDru6fc01-gK0c10a887.</div>


<div>To: &lt;sip:011390NNNNNNNNNN;phone-context=+39@xxx.xxx.xxx.xxx:5060;user=phone&gt;.</div><div>(N and x are obviously being masked for privacy)</div><div><br></div><div>I use this info in the dialplan like so</div><div>


<br></div><div><div>&lt;include&gt;</div><div>  &lt;extension name=&quot;DIDtest&quot;&gt;</div><div>    &lt;condition field=&quot;ani&quot; expression=&quot;^(\+?|\+1?|1?)(6469NNNNNN).*$&quot; break=&quot;never&quot;&gt;</div>


<div>        &lt;action application=&quot;set&quot; data=&quot;effective_caller_id_number=$2&quot;/&gt;</div><div>        &lt;action application=&quot;set&quot; data=&quot;effective_caller_id_name=$2&quot;/&gt;</div><div>


    &lt;/condition&gt;</div><div>    &lt;condition field=&quot;${sip_to_user}&quot; expression=&quot;^(\+?|\+1?|1?|011?)(390NNNNNNNNNN).$&quot; break=&quot;never&quot;&gt;</div><div>        &lt;action application=&quot;set&quot; data=&quot;continue_on_fail=false&quot;/&gt;</div>


<div>        &lt;action application=&quot;set&quot; data=&quot;hangup_after_bridge=true&quot;/&gt;</div><div>        &lt;action application=&quot;set&quot; data=&quot;domain_name=$${domain}&quot;/&gt;</div><div>        &lt;action application=&quot;set&quot; data=&quot;bypass_media=true&quot;/&gt;</div>


<div>        &lt;action application=&quot;bridge&quot; data=&quot;{sip_invite_domain=${sip_from_host}}sofia/gateway/blade2/$2&quot;/&gt;</div><div>    &lt;/condition&gt;</div><div>  &lt;/extension&gt;</div><div>&lt;/include&gt;</div>


<div><br></div></div><div>However, the calls aren&#39;t passing the condition in this dialplan and thus not being forwarded to &quot;blade2&quot; server. In fact, even the 011 is not being stripped off. </div><div><br></div>


<div>What am I doing wrong?</div></blockquote></div><div><br>Create a quick test extension that only does an info dump. (See 9992 in default.xml for an example.) Make a call, look at the info dump, and make sure that what you think you are getting is really what you are getting. :)<br>

<br>-MC<br></div></div><br>
<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><br></div>