<div dir="ltr"><div>Thanks Matt, I adjusted my code to trim the URI scheme.<br><br></div><div>Regards,<br></div>Nitesh<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 26, 2016 at 2:45 PM, Matthew Jordan <span dir="ltr"><<a href="mailto:mjordan@digium.com" target="_blank">mjordan@digium.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Fri, Apr 22, 2016 at 11:04 AM, Nitesh Bansal <span dir="ltr"><<a href="mailto:nitesh.bansal@gmail.com" target="_blank">nitesh.bansal@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div>Hello,<br><br></div>I'm using the following Dial command syntax:<br></div>Dial<i><b>(SIP/peer/exten!<a href="mailto:sip%3Axyz@xyz.com" target="_blank">sip:xyz@xyz.com</a></b></i>), the SIP URI<br></div>after the '!' mark should be set as To-URI in outgoing INVITE<br></div>from Asterisk.<br></div>It works, but problem is that To-URI formatting is a bit messed up,<br></div>It looks as follows:<br></div><b><a href="mailto:sip%3Asip%3Axyz@xyz.com" target="_blank">sip:sip:xyz@xyz.com</a></b>, it seems that Asterisk added an extra '<b>sip:'</b> in the<br></div>To-header and it breaks.<br><br></div>I'm using Asterisk 13.<br></div>I'm wondering if this behaviour is intended or a potential bug?<br><br></div></div></blockquote><div><br></div></span><div>I would think that it isn't a bug. If you look at the documentation of that dial string option for the chan_sip channel driver in sip.conf.sample, you can see that the URI scheme is left off:<br><br> 54 ; All of these dial strings specify the SIP request URI.<br> 55 ; In addition, you can specify a specific To: header by adding an<br> 56 ; exclamation mark after the dial string, like<br> 57 ;<br> 58 ; SIP/sales@mysipproxy!<a href="mailto:sales@edvina.net" target="_blank">sales@edvina.net</a> <br></div></div><br clear="all"></div><div class="gmail_extra">While it might be nice if it didn't always use a scheme of 'sip', that'd probably be categorized as an improvement to this option.<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div class="gmail_extra"><br>-- <br><div><div dir="ltr"><div><div dir="ltr"><div>Matthew Jordan<br></div><div>Digium, Inc. | Director of Technology<br></div><div>445 Jan Davis Drive NW - Huntsville, AL 35806 - USA</div><div>Check us out at: <a href="http://digium.com" target="_blank">http://digium.com</a> & <a href="http://asterisk.org" target="_blank">http://asterisk.org</a></div></div></div></div></div>
</div></font></span></div>
<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" rel="noreferrer" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" rel="noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br></div>