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">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">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">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>^sip:(.*)$ </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="^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 clear="all">Thanks<br>-- <br>Henry Huang<br>
<br>