Sean Darcy
2013-Sep-08 22:25 UTC
[asterisk-users] iax2: two users can't authenticate from same ip address
I'm trying set up asterisk on an amazon instance in Sydney. It's to use for our kids in Sydney to connect with their friends in the States. We've found iax works better than sip with these distances. But we now have weird problem: everybody has a cell phone, and it's much cheaper/better to use the house internet connection over the phones wifi. Each cell phone has it's own peer. Each cell phone registers with the server. The problem is that once a phone has used the server, no other phone can use it. The servers sees all the phones as having the same ip address (though different ports). iax2 show peers Name/Username Host Mask Port Status Description gn <ipaddr> (D) 255.255.255.255 1026 OK (101 ms) home/home <ipaddr> (D) 255.255.255.255 4569 OK (85 ms) but "home" can't make a call: chan_iax2.c:11157 socket_process_helper: Host <ipaddr> failed to authenticate as gn gn can make calls: -- Registered IAX2 'gn' (AUTHENTICATED) at <ipaddr>:1026 -- Accepting AUTHENTICATED call from <ipaddr>: > requested format = speex, ........................
Julian Beach
2013-Sep-09 12:04 UTC
[asterisk-users] iax2: two users can't authenticate from same ip address
Hello Sean, Sunday, September 8, 2013, 11:25:24 PM, you wrote:> The problem is that once a phone has used the server, no other phone can > use it. The servers sees all the phones as having the same ip address > (though different ports).This sounds like the Peer v Friend problem I have had in the past. Try setting user=friend which will match on the username and not IP address. I found that asterisk was matching to the first account in the list in IAX.CONF and authentication was then failing (or in the case of incoming calls, ending up in the wrong context). http://www.voip-info.org/wiki/view/Asterisk+SIP+user+vs+peer Julian -- Best regards, Julian mailto:jb_soft at trink.co.uk