Digest has issue

Hello,

Two SIP account are configured on my Asterisk : tsbc and tsbc2

[tsbc]
type=peer
language=en
context=sbc-special
username=tksbc
secret=****
host=dynamic
disallow=all
allow=alaw
allow=ulaw
qualify=yes
nat=force_rport,comedia
dtmfmode=auto
canreinvite=yes

[tsbc2]
type=peer
language=en
context=sbc-special
username=tksbc2
secret=****
host=dynamic
disallow=all
allow=alaw
allow=ulaw
qualify=yes
nat=force_rport,comedia
dtmfmode=auto
canreinvite=yes

Both SIP account are registred on the same device (SBC Audiocodes).

When I make a call throught the SBC to Asterisk, I’m able to make a call with tsbc but when I try from tsbc2 I meet the following issue :
username mismatch, have , digest has

-> impossible to make a call

I tried to play with type : friend, peer…

Need help,
Thx,

This is the one case when you should use type=friend. Asterisk is trying to match by IP address, which is not going to be able to distinguish the two cases

Normally it is a bad idea, because it can match from addresses on calls from other places.

Also, please explain why you have nat=force_rport and nat=comedia, They may be valid, but the reasons for having them may be relevant to the general problem. They are not generally needed if both Asterisk and the peer are on the same private network, and may not be needed if Asterisk is inside NAT and the per is outside.

Also note that canreinvite was replaced by directmedia many years ago, although I think the deprecated name is still recognized.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.