Hello, I am trying to set up sip trunk between asterisk servers in two LANs connected by VPN. There is no NAT and all traffic permited.
My configuration looks like: Server1:
Drop the register lines and specify the host name or IP address directly. Although contorted, what you have should work.
I think the delimiter for codecs is &, but I always put them on separate lines, so I could have remembered wrong.
If they both use the same password, insecure=invite is insecure. I’ve never come across a UDP configuration that needs insecure=port. If the passwords are different, use secret and remotesecret.
localnet is of no use without some means of determining the public address.
Replace with IP adresses and removed register - still no luck.
If i will remove register - I will get following error **Failed to authenticate on INVITE to ' <sip:0405@172.17.20.141>;tag=as550a2b25'**
Password are the same, i will adress security concerns later