<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">No, you don't get the full sip uri in the dialplan like that. You do have a whole bunch of variables of the parsed sip header you can use. Use the "info" application to see all the vars so you can see what you have to route the call on.<div><br></div><div>Mike</div><div><br><div><div>On Aug 22, 2009, at 2:40 AM, Henry Huang wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi:<br><br>I try to dial sip url from my softphone but seems like the sip address is being processed by sofia before it pass to the dialplan. The example here is :<br><br><b><span style="color: rgb(102, 0, 0);">X-lite(softphone) dials -> <a href="mailto:1009@4.2.2.2" target="_blank">1009@4.2.2.2</a> (it's fake sip address, the purpose was just to test what's being passed to dialplan)</span><br style="color: rgb(102, 0, 0);"> <span style="color: rgb(102, 0, 0);">sofia receives the invite and return with trying </span><br style="color: rgb(102, 0, 0);"><span style="color: rgb(102, 0, 0);">sofia pass the destination number to dailplan with "1009" (without the "sip:" in front and without the "@<a href="http://4.2.2.2/" target="_blank">4.2.2.2</a>" after it)</span><br style="color: rgb(102, 0, 0);"> </b><br>Please see pastebin for full log. <a href="http://pastebin.freeswitch.org/10089" target="_blank">http://pastebin.freeswitch.org/10089</a><br>ignore anything after line 80, because it's not my point, and the destination is a fake address. <br> <br>I would like to know how do you actually pass a full sip url to the dialplan to do the regex match. Because from the default.xml dialplan, it comes with an example sip url dialing extension that match's <b>^<a href="sip:(.*)$">sip:(.*)$</a> </b>. So I assume there must be a way of passing full sip url to the dialplan. Here is the example dialplan expecting sofia to pass it a full sip url:<br> <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="^<a href="sip:(.*)$">sip:(.*)$</a>"></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 clear="all"></blockquote></div><br></div></body></html>