I am trying to have an SIP peer on one asterisk server call an SIP peer on another asterisk server. I have SRTP enabled between the two servers not the SIP clients. When I initiate the call, i.e SIP1 on server1 calls SIP2 on server2, server2 tries to authenticate SIP1 and fails. I don’t want SIP TLS to be enabled, if that is causing the problem, and I don’t believe I have it enabled. Why is one server trying to authenticate a device on another server, don’t the severs just authenticate each other, via username/password? Everything is on the same WLAN, no NAT. Since it just says failed to authenticate SIP device, that doesn’t give me much information on what type of authentication failed.
I have tried different ways to try to fix this before posting here, but the receiving server just keeps saying that it has failed to authenticate the peer on the calling server.
I don’t know if this related but when I have an SIP client on dynamic, and I register it with the server, the server trys to look for the peer via my router’s public ip for some reason.
Here is my configuration for serverA or server1(similar config on serverB):
[general] udpbindaddr=0.0.0.0 videosupport=no allowguest=no dtmfmode=rfc2833 context=default disallow=all allow=alaw rtcachefriends=yes limitonpeers=yes callcounter=yes canreinvite=no srtpcapable=yes call-limit=50 t38pt_udptl=no qualify=yes transfer=yes allowtransfer=yes encryption=yes [asterisksrtpB] disallow=all allow=alaw host=192.168.1.207 deny=0.0.0.0/0.0.0.0 permit=192.168.1.0/255.255.255.255 defaultuser=asterisksrtpA secret=apassword type=peer context=incoming-internal canreinvite=no qualify=yes nat=no insecure=invite,port srtpcapable=yes encryption=yes  disallow=all allow=alaw host=dynamic deny=0.0.0.0/0.0.0.0 permit=192.168.0.0/255.255.0.0 defaultuser=201 secret=somepassword type=friend context=incoming-internal canreinvite=no qualify=yes nat=no srtpcapable=no encryption=no