So I have an old Epygi gateway, with one pri and one fxs port. The fxs port registers to my FreePBX box.
For the pri port I have a sip trunk.
I get a digest authentication error, the device send as username the one that I have filled in my sip trunk but asterisk compares it with the one that the extensions has. Something like this
WARNING…: chan_sip.c:16702 check_auth: username mismatch, have <937>, digest has <10000>
I setup my trunk with host as dynamic and I register one more ip account from the gateway to use this and avoid ip authentication but whatever I try asterisk just goes and compares the digest with the last one that have read.
The Epygi gateway cannot listen to different port for each voip account so ip and port authentication is out of the way, but why asterisk keeps reading wrong the invite packet?
Is there anythin else to try. My sip trunk options are the following
host=dynamic
username=10000
secret=10000
canreinvite=no
insecure=no
qualify=yes
disallow=all
allow=alaw&ulaw
nat=no
type=friend
context=from-pstn