<div dir="ltr">Even I tried the type as friend.. but no use... </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"><<a href="mailto:gopalakrishnan.an@gmail.com" target="_blank">gopalakrishnan.an@gmail.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">Hi, <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 => _1X.,1,Dial(SIP/usman02/${EXTEN})</div><div>exten => _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 => _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 <2001>, digest has <usman02><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. </div></div>
</blockquote></div><br></div>