Incoming Calls To A GSM Gateway & “SIP/2.0 401 Unauthorized” Response When Dial 7777 To Asterisk
2014-11-12 2:45 GMT-02:00 Luis Eduardo Cortes
Hello:
I solved my issue by changing type=friend with type=peer in
[555555555] section, afterwards, googling I’ve found this article that explain me why:
http://forums.digium.com/viewtopic.php?t=79338#p161214
Re: type=friend is bad for you
Postby thor » Tue Aug 02, 2011 11:24 am Another little known fact about the difference between peer and friend:
Friend will challenge INVITEs. When making outbound calls from a registered phone/peer another challenge will be issued.
This means type=friend requires second INVITE with authentication credentials, while peer will accept INVITE without challenge.
In other words type=friend does not care about the phone registration status and always tries to authenticate as if the phone never registered.
—