Asterisk SIP Trunk Between Two Asterisk Servers

Home » Asterisk Users » Asterisk SIP Trunk Between Two Asterisk Servers
Asterisk Users 5 Comments

Hi,

Am making a simple SIP trunk between two Asterisk server,

Server 1
sip.conf
[usman02]
type=peer username=usman02
secret=usman02
host.30.2.58
context=man02-trunk portP60
qualify=yes disallow=all
;allow=g729
allow=g729
;allow=alaw nat=force_rport,comedia dtmfmode=rfc2833
relaxdtmf=yes insecure=invite,port

extensions.conf
[man02-trunk]
exten => _1X.,1,Dial(SIP/usman02/${EXTEN})
exten => _1X.,n,Hangup

Server2
sip.conf
[usman02]
type=peer username=usman02
secret=usman02
host.10.10.81
context=us02-trunk-inbound portP60
qualify=yes disallow=all allow=g729
;allow=ulaw
;allow=alaw nat=force_rport,comedia dtmfmode=rfc2833
relaxdtmf=yes insecure=port,invite

extensions.conf
[us02-trunk-inbound]
exten => _X.,Dial(SIP/${EXTEN},60)

Now when I dial from server1, in the server 2 am getting the error as,
[Aug 18 09:22:49] WARNING[2779][C-000008db]: chan_sip.c:16266 check_auth:
username mismatch, have <2001>, digest has

things are fine.. but I dont know where the mistake is…!

Can you some one advise me… !

Thanks.

5 thoughts on - Asterisk SIP Trunk Between Two Asterisk Servers