[Asterisk-Users] Problem with 401 Unauthorized

Kevin P. Fleming kpfleming at starnetworks.us
Tue Mar 29 09:01:37 MST 2005


Mike Miller wrote:

> Based on what you wrote -- I'm using type=friend, not type=peer. This
> should be ok, though, correct? (As friend == peer + user, right?)

Yes, type=friend is fine.

> sip.conf:
> [general]
> context=default    ; Default context for incoming calls
> realm=192.168.1.100    ; Realm for digest authentication

Please remove/comment this line as a test, it should not be necessary.

> port=5060    ; UDP Port to bind to (SIP standard port is 5060)
> bindaddr=0.0.0.0    ; IP address to bind to (0.0.0.0 binds to all)
> srvlookup=yes    ; Enable DNS SRV lookups on outbound calls
> 
> [203]
> type=friend
> username=203
> context=internal
> secret=203
> qualify=no    ; linphone will become unreachable if qualify=yes
> host=dynamic
> nat=no
> canreinvite=yes
> disallow=all    ; only the sensible codecs
> allow=ulaw
> allow=alaw
> allow=gsm

This looks fine, although 'username' is not needed. What version of 
Asterisk are you running?



More information about the asterisk-users mailing list