I am having a problem with my recent installation of Asterisk 11.2.1
I have connected the system to Internet.
Basically the conection is Asterisk on lan -> Router (with PAT) -> internet
I can connect from outside using 3G on my mobile phone and make and receive calls, that works fine. The problem is happening for calls that I try to make from telephones connected to my lan.
In my local network, I have 3 smartphones registered to my Asterisk (one of which is my mobile phone). All the phones are pointed out my public dns address so I don’t have to change anything when I move out from my LAN.
When I see the output of a sip show peers, I can see all of them registered with the same IP (the lan IP of my router) and different port numbers. I assume I see the same IP due to the hairpinned connection.
The problem arises when I try to make a call…
I hear a fast busy, get a forbidden 403 on my phone, and see the following error in asterisk console:
[2013-02-17 14:53:56] WARNING[C-0000004a]: chan_sip.c:16266 check_auth: username mismatch, have <2010>, digest has <2020>
[2013-02-17 14:53:56] NOTICE[C-0000004a]: chan_sip.c:25084 handle_request_invite: Failed to authenticate device “2020” sip:email@example.com;tag=TYpnQpdzWJBLeCWnVUizRMf15s9JY7
If I only register one of the three phones (anyone), I can make calls without any problem.
Also, if I setup type=friend I can register the 3 phones and make calls, but I don’t like that option because it is less secure than using type=peer.
I will really appreciate any help to solve this issue.
The following is part of my sip.conf
externhost=Edited my public domain
Thanks in advance.