<div dir="ltr">Thanks for the comments.<div><br></div><div>Without changing anything, adding fromuser=usman02 in both side worked for me..<div><br></div><div>Thanks. </div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Mon, Aug 19, 2013 at 1:01 AM, Andrew Colin <span dir="ltr"><<a href="mailto:andrew@vsave.co.za" target="_blank">andrew@vsave.co.za</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
change server two to host = dynamic<br>
<br>
then add register =XXXX on server 1<div><div class="h5"><br>
<div>On 8/18/2013 6:29 PM, Gopalakrishnan N
wrote:<br>
</div>
</div></div><blockquote type="cite"><div><div class="h5">
<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>
<br>
<fieldset></fieldset>
<br>
</div></div><span class="HOEnZb"><font color="#888888"><pre>--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --
New to Asterisk? Join us for a live introductory webinar every Thurs:
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a>
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></pre>
</font></span></blockquote>
<br>
</div>
</blockquote></div><br></div>