<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">31.03.2013 23:15, Barry Flanagan &#1087;&#1080;&#1096;&#1077;&#1090;:<br>
    </div>
    <blockquote
cite="mid:CALJb54-+kYSsS2ZQ9x=HnaitqUGVzrXEYrETFBvamFNHBtGPbw@mail.gmail.com"
      type="cite">
      <div dir="ltr">On 31 March 2013 18:11, Dmitriy Serov <span
          dir="ltr">&lt;<a moz-do-not-send="true"
            href="mailto:serov.d.p@gmail.com" target="_blank">serov.d.p@gmail.com</a>&gt;</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 =&gt; s,n,Dial(SIP/peer1/<a moz-do-not-send="true"
                href="mailto:number@domain2.com" target="_blank">number@domain2.com</a>,60,r)<br>
              <br>
              [peer1]<br>
              type=friend<br>
              host=<a moz-do-not-send="true" href="http://domain1.com"
                target="_blank">domain1.com</a><br>
              fromdomain=<a moz-do-not-send="true"
                href="http://domain1.com" target="_blank">domain1.com</a><br>
              <br>
              As a result in SIP packet uri: <a class="moz-txt-link-abbreviated" href="mailto:number@domain2.com@">number@domain2.com@</a><a
                moz-do-not-send="true" href="http://domain1.com"
                target="_blank">domain1.com</a><br>
              I need: <a moz-do-not-send="true"
                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
                moz-do-not-send="true" href="http://domain2.com">domain2.com</a>]
              and set outboundproxy=<a moz-do-not-send="true"
                href="http://domain1.com">domain1.com</a> then sent the
              call to SIP/<a moz-do-not-send="true"
                href="mailto:number@domain2.com">number@domain2.com</a>
              ?</div>
            <div style="">&nbsp;&nbsp;</div>
          </div>
          -Barry</div>
        <br>
      </div>
    </blockquote>
    <br>
    does not matter.<br>
    <br>
    [skype.ippi.com](srv-options-common)<br>
    type=friend<br>
    secret=xxx<br>
    host=ippi.fr<br>
    fromdomain=ippi.fr<br>
    outboundproxy=ippi.fr<br>
    <br>
    exten =&gt; 22,n,Dial(<a class="moz-txt-link-abbreviated" href="mailto:SIP/login@skype.ippi.com,60,rS">SIP/login@skype.ippi.com,60,rS</a>(1200))<br>
    <br>
    INVITE <a class="moz-txt-link-abbreviated" href="mailto:sip:login@ippi.fr">sip:login@ippi.fr</a> SIP/2.0<br>
    Via: SIP/2.0/UDP 109.60.163.xx:5060;branch=z9hG4bK60e845b5;rport<br>
    Max-Forwards: 70<br>
    From: "demon" <a class="moz-txt-link-rfc2396E" href="mailto:sip:username@ippi.fr">&lt;sip:username@ippi.fr&gt;</a>;tag=as518b59df<br>
    To: <a class="moz-txt-link-rfc2396E" href="mailto:sip:login@ippi.fr">&lt;sip:login@ippi.fr&gt;</a><br>
    <br>
    and<br>
    exten =&gt;
    22,n,Dial(<a class="moz-txt-link-abbreviated" href="mailto:SIP/skype.ippi.com/login@skype.ippi.com,60,rS">SIP/skype.ippi.com/login@skype.ippi.com,60,rS</a>(1200))<br>
    do:<br>
    INVITE <a class="moz-txt-link-abbreviated" href="mailto:sip:login@skype.ippi.com@ippi.fr">sip:login@skype.ippi.com@ippi.fr</a> SIP/2.0<br>
    <br>
    I studied the source code and found no ways to implement it :(<br>
    <br>
    Dmitriy.<br>
  </body>
</html>