X-lite I believe handles the sip: by itself sometime and therefore will try and place a call to the sip address directly from x-lite without touching FreeSWITCH. Be aware of this while testing and watch for this behavior because it might throw off your expectations.<br>

<br clear="all">Regards,<br>    Kevin Green<br>
<br><br><div class="gmail_quote">On Sat, Aug 22, 2009 at 1:35 PM, Henry Huang <span dir="ltr">&lt;<a href="mailto:red.rain.seven@gmail.com">red.rain.seven@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Michael:<br><br>Thank you for making it in &quot;for dummies&quot; format. :P<br>These are really nice tips I can use. thanks.<div><div></div><div class="h5"><br><br><div class="gmail_quote">On Sat, Aug 22, 2009 at 11:35 PM, Michael Collins <span dir="ltr">&lt;<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br><br><div class="gmail_quote"><div>On Sat, Aug 22, 2009 at 8:07 AM, Henry Huang <span dir="ltr">&lt;<a href="mailto:red.rain.seven@gmail.com" target="_blank">red.rain.seven@gmail.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Brian:<br><br>Oh, and again, if it&#39;s not passing it to the dialplan. I had suggested to remove the sample &quot;sip uri&quot; extension in the default.xml dialplan. because no one can reach the dialplan with prefix &quot;sip:&quot; because sofia is going to remove that prefix. </blockquote>




</div><div><br>Well, this isn&#39;t entirely accurate. Like Mike J said, if you dialed something like this at the CLI:<br><br>pa call <a href="mailto:sip%3Auser@domain.com" target="_blank">sip:user@domain.com</a><br><br>


Then you&#39;d need the dialplan entry that handles the SIP URI.<br>

<br>Going back to the original question...<br>X-Lite dials <a href="mailto:1009@4.2.2.2" target="_blank">1009@4.2.2.2</a> correct?<br>But you&#39;re saying that the dialplan simply sees &quot;1009&quot; as the destination number? I&#39;m looking at the pastebin (10089) and trying to figure out exactly what is happening. All I can see is that you have a context named &quot;Global&quot; so I&#39;m assuming you&#39;ve made at least some modifications to the default dialplan. Can you pastebin that whole context?<br>




<br>The other thing that you should probably do is create an extension in this global context that routes a call to the info application. You could do something like this so that &quot;9992&quot; would do an info dump:<br>




&lt;extension name=&quot;info&quot;&gt;<br>  &lt;condition field=&quot;destination_number&quot; expression=&quot;^(9992)$&quot;&gt;<br>    &lt;action application=&quot;info&quot;/&gt;<br>  &lt;/condition&gt;<br>&lt;/extension&gt;<br>




<br>Then reloadxml and make a call to 9992 from your X-Lite client. The CLI will have a dump and you&#39;ll see all sorts of variables listed. Many of those are available for you to use for condition matches and routing in the dialplan. <br>




<br>Let us know how the info application does in giving you information about the A leg of the call.<br><font color="#888888">-MC<br></font></div><div><div></div><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">




<br><div>
<br><span style="color: rgb(51, 51, 255);">&lt;!-- dial via SIP uri --&gt;</span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);">    &lt;extension name=&quot;sip_uri&quot;&gt;</span><br style="color: rgb(51, 51, 255);">

<span style="color: rgb(51, 51, 255);">      &lt;condition field=&quot;destination_number&quot; expression=&quot;^sip:(.*)$&quot;&gt;</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">        &lt;action application=&quot;bridge&quot; data=&quot;sofia/${use_profile}/$1&quot;/&gt;</span><br style="color: rgb(51, 51, 255);">








<span style="color: rgb(51, 51, 255);">      &lt;/condition&gt;</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">    &lt;/extension&gt;</span><br><br></div><div><div></div><div>
<div class="gmail_quote">On Sat, Aug 22, 2009 at 10:59 PM, Brian West <span dir="ltr">&lt;<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Because the dial plan is technology agnostic... you have been told<br>
more than once it won&#39;t pass it to the dialplan from mod_sofia...<br>
<font color="#888888"><br>
/b<br>
</font><div><br>
On Aug 22, 2009, at 9:46 AM, Henry Huang wrote:<br>
<br>
&gt; Brian:<br>
&gt;<br>
&gt; but why can&#39;t I pass &quot;sip:&quot; to dialplan? seems like it&#39;s being<br>
&gt; truncated by sofia..<br>
&gt; Can you confirm that?<br>
<br>
<br>
</div><div><div></div><div>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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>
</div></div></blockquote></div><br><br clear="all"><br></div></div><div><div></div><div>-- <br>Henry Huang<br>UniC Solution - Communication Unified<br>VoIP &amp; Open Source software Consultant<br>
</div></div><br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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></div></div><br><input type="hidden"><input type="hidden"><div></div>
<input type="hidden"><input type="hidden"><div></div>
<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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><br clear="all"><br>-- <br>Henry Huang<br>UniC Solution - Communication Unified<br>VoIP &amp; Open Source software Consultant<br>
</div></div><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>