<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    change server two to host = dynamic<br>
    <br>
    then add register =XXXX on server 1<br>
    <div class="moz-cite-prefix">On 8/18/2013 6:29 PM, Gopalakrishnan N
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAEymo12tKg8Beq6PqBykBL02PG-di=54M8stJPwJ-r9FbVr5ig@mail.gmail.com"
      type="cite">
      <div dir="ltr">Even I tried the type as friend.. but no use...&nbsp;</div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Mon, Aug 19, 2013 at 12:27 AM,
          Gopalakrishnan N <span dir="ltr">&lt;<a
              moz-do-not-send="true"
              href="mailto:gopalakrishnan.an@gmail.com" target="_blank">gopalakrishnan.an@gmail.com</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">Hi,&nbsp;
              <div><br>
              </div>
              <div>Am making a simple SIP trunk between two Asterisk
                server,</div>
              <div><br>
              </div>
              <div>
                Server 1</div>
              <div>sip.conf</div>
              <div>
                <div>[usman02]</div>
                <div>type=peer</div>
                <div>username=usman02</div>
                <div>secret=usman02</div>
                <div>host=10.30.2.58</div>
                <div>context=man02-trunk</div>
                <div>port=5060</div>
                <div>qualify=yes</div>
                <div>disallow=all</div>
                <div>;allow=g729</div>
                <div>allow=g729</div>
                <div>;allow=alaw</div>
                <div>nat=force_rport,comedia</div>
                <div>dtmfmode=rfc2833</div>
                <div>relaxdtmf=yes</div>
                <div>insecure=invite,port</div>
              </div>
              <div><br>
              </div>
              <div>extensions.conf</div>
              <div>
                <div>[man02-trunk]</div>
                <div>exten =&gt; _1X.,1,Dial(SIP/usman02/${EXTEN})</div>
                <div>exten =&gt; _1X.,n,Hangup</div>
              </div>
              <div><br>
              </div>
              <div><br>
              </div>
              <div>Server2</div>
              <div>sip.conf</div>
              <div>
                <div>[usman02]</div>
                <div>type=peer</div>
                <div>username=usman02</div>
                <div>secret=usman02</div>
                <div>host=10.10.10.81</div>
                <div>context=us02-trunk-inbound</div>
                <div>port=5060</div>
                <div>qualify=yes</div>
                <div>disallow=all</div>
                <div>allow=g729</div>
                <div>;allow=ulaw</div>
                <div>;allow=alaw</div>
                <div>nat=force_rport,comedia</div>
                <div>dtmfmode=rfc2833</div>
                <div>relaxdtmf=yes</div>
                <div>
                  insecure=port,invite</div>
              </div>
              <div><br>
              </div>
              <div>extensions.conf</div>
              <div>
                <div>[us02-trunk-inbound]</div>
                <div>exten =&gt; _X.,Dial(SIP/${EXTEN},60)</div>
              </div>
              <div><br>
              </div>
              <div><br>
              </div>
              <div>Now when I dial from server1, in the server 2 am
                getting the error as,</div>
              <div>[Aug 18 09:22:49] WARNING[2779][C-000008db]:
                chan_sip.c:16266 check_auth: username mismatch, have
                &lt;2001&gt;, digest has &lt;usman02&gt;<br>
              </div>
              <div><br>
              </div>
              <div>things are fine.. but I dont know where the mistake
                is...!</div>
              <div><br>
              </div>
              <div>Can you some one advise me... !</div>
              <div><br>
              </div>
              <div>Thanks.&nbsp;</div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by <a class="moz-txt-link-freetext" href="http://www.api-digital.com">http://www.api-digital.com</a> --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               <a class="moz-txt-link-freetext" href="http://www.asterisk.org/hello">http://www.asterisk.org/hello</a>

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   <a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a></pre>
    </blockquote>
    <br>
  </body>
</html>