[asterisk-users] Jain-Sip-Applet-Phone with Asterisk

Kutman.DK at forces.gc.ca Kutman.DK at forces.gc.ca
Fri Aug 17 09:40:15 CDT 2007


Hello,

I have the Jain-Sip-Applet-Phone installed on two machines in a small LAN network.  These machines are connected through an Asterisk Server (Using Trixbox).  I run the phone as an application on both machines through Eclipse and I am able to log on as a user with one of the extensions that I use within Asterisk on each machine (extensions 201 and 202 in this case).  When I try to add a contact to my list (the other user machine) from one of the machines, I get the following message, which looks like I am having a problem with authentication:

ECLIPSE CONSOLE WINDOW

<![CDATA[SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.1.252:7933;branch=z9hG4bKf87a334e3afb041a4b7783d409b6c95d;received=192.168.1.252
From: <sip:202 at 192.168.1.252>;tag=973
To: <sip:201 at 192.168.1.251>;tag=as72bce758
Call-ID: 8bf9e5281cd0ac56cf1b43467f3b3be3 at 192.168.1.252
CSeq: 1 SUBSCRIBE
User-Agent: Asterisk PBX
Allow: INVITE,ACK,CANCEL,OPTIONS,BYE,REFER,SUBSCRIBE,NOTIFY
WWW-Authenticate: Digest algorithm=MD5,realm="asterisk",nonce="62a12192"
Content-Length: 0


I have defined two users in my sip.conf file as shown below:

; do not edit this file, this is an auto-generated file by freepbx
; all modifications must be done from the web gui
[201]
type=friend
secret=201
record_out=Adhoc
record_in=Adhoc
qualify=yes
port=5060
nat=yes
host=dynamic
dtmfmode=rfc2833
dial=SIP/201
context=from-internal
canreinvite=no
callerid=device <201>

[202]
type=friend
secret=202
record_out=Adhoc
record_in=Adhoc
qualify=yes
port=5060
nat=yes
host=dynamic
dtmfmode=rfc2833
dial=SIP/202
context=from-internal
canreinvite=no
callerid=device <202>

Would anyone know where I am going wrong?  Is it possible to remove this authentication requirement?

Thanks in advance,

Denis Kutman




More information about the asterisk-users mailing list