<br><br><div class="gmail_quote">On Sat, Aug 22, 2009 at 8:07 AM, Henry Huang <span dir="ltr"><<a href="mailto:red.rain.seven@gmail.com" target="_blank">red.rain.seven@gmail.com</a>></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's not passing it to the dialplan. I had suggested to remove the sample "sip uri" extension in the default.xml dialplan. because no one can reach the dialplan with prefix "sip:" because sofia is going to remove that prefix. </blockquote>
<div><br>Well, this isn'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'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're saying that the dialplan simply sees "1009" as the destination number? I'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 "Global" so I'm assuming you'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 "9992" would do an info dump:<br>
<extension name="info"><br> <condition field="destination_number" expression="^(9992)$"><br> <action application="info"/><br> </condition><br></extension><br>
<br>Then reloadxml and make a call to 9992 from your X-Lite client. The CLI will have a dump and you'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>-MC<br></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);"><!-- dial via SIP uri --></span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);"> <extension name="sip_uri"></span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);"> <condition field="destination_number" expression="^sip:(.*)$"></span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);"> <action application="bridge" data="sofia/${use_profile}/$1"/></span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);"> </condition></span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);"> </extension></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"><<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a>></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'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>
> Brian:<br>
><br>
> but why can't I pass "sip:" to dialplan? seems like it's being<br>
> truncated by sofia..<br>
> 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 & 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><br><input type="hidden"><input type="hidden"><div></div>
<input id="gwProxy" type="hidden"><input onclick="jsCall();" id="jsProxy" type="hidden"><div id="refHTML"></div>