<div dir="ltr">On 31 March 2013 18:11, Dmitriy Serov <span dir="ltr"><<a href="mailto:serov.d.p@gmail.com" target="_blank">serov.d.p@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi, asterisk admin and users.<br>
<br>
I need to SIP INVITE uri with domain via peer. And uri domain differ then peer domain.<br>
dialplan:<br>
exten => s,n,Dial(SIP/peer1/<a href="mailto:number@domain2.com" target="_blank">number@<u></u>domain2.com</a>,60,r)<br>
<br>
[peer1]<br>
type=friend<br>
host=<a href="http://domain1.com" target="_blank">domain1.com</a><br>
fromdomain=<a href="http://domain1.com" target="_blank">domain1.com</a><br>
<br>
As a result in SIP packet uri: number@domain2.com@<a href="http://domain1.com" target="_blank">domain1.com</a><br>
I need: <a href="mailto:number@domain2.com" target="_blank">number@domain2.com</a><br>
<br>
I can't use "SIP uri dial", i need authorization (peer1)<br>
<br>
<br>
I think asterisk can't do that. Is where work around?<br><br></blockquote><div><br></div><div><br></div><div style>Would it work if you created a sip peer [<a href="http://domain2.com">domain2.com</a>] and set outboundproxy=<a href="http://domain1.com">domain1.com</a> then sent the call to SIP/<a href="mailto:number@domain2.com">number@domain2.com</a> ?</div>
<div style> </div></div>-Barry</div><div class="gmail_extra"><br></div></div>