[Freeswitch-dev] Trouble registering SIP client
Roland Zagler
r.zagler at zakotel.com
Sat Jan 24 09:08:55 PST 2009
Hi everybody,
I am writing a Java SIP ua (based on mjsip 1.6) that is supposed to
register to freeswitch.
Unfortunately I am not able to register and I cannot find the problem,
although a softphone
(X-Lite) CAN register by using the same creds. The credentials
are:
SIP username: roland
SIP password: roland
SIP realm: 10.0.4.60
There is no acl activated.
The freeswitch versions I have tested are 1.0.2 and the trunk of today
(11480).
I hope someone on the list could take a look on the trace I attached
below and give
me a hint what goes wrong.
Thank you very much in advance.
Roland
tport_wakeup_pri(0x81042c8): events IN
tport_recv_event(0x81042c8)
tport_recv_iovec(0x81042c8) msg 0xb3415ed8 from (udp/10.0.4.60:5060) has
373 bytes, veclen = 1
recv 373 bytes from udp/[10.0.2.51]:32816 at 17:01:30.461289:
------------------------------------------------------------------------
REGISTER sip:10.0.4.60:5060 SIP/2.0
Via: SIP/2.0/UDP 10.0.2.51:32816;rport;branch=z9hG4bK33562
Max-Forwards: 70
To: "roland" <sip:roland at 10.0.4.60:5060>
From: "roland" <sip:roland at 10.0.4.60:5060>;tag=z9hG4bK84430669
Call-ID: 218108472980 at 10.0.2.51
CSeq: 1 REGISTER
Contact: <sip:roland at 10.0.2.51:32816>
Expires: 3600
User-Agent: ZaKoSIP v1.2
Content-Length: 0
------------------------------------------------------------------------
tport_deliver(0x81042c8): msg 0xb3415ed8 (373 bytes) from
udp/10.0.2.51:5060/sip next=(nil)
nta: received REGISTER sip:10.0.4.60:5060 SIP/2.0 (CSeq 1)
nta: canonizing sip:10.0.4.60:5060 with contact
nta: REGISTER (1) going to a default leg
nua: nua_stack_process_request: entering
nua: nh_create: entering
nua: nh_create_handle: entering
nua: nua_stack_set_params: entering
soa_clone(static::0x80fe270, 0x80f9448, 0xb3402b30) called
soa_set_params(static::0xb341ba78, ...) called
nua: nua_application_event: entering
nua: nua_respond: entering
nua(0xb3402b30): sent signal r_respond
2009-01-24 18:01:30 [DEBUG] sofia_reg.c:883 sofia_reg_handle_register()
Requesting Registration from: [roland at 10.0.4.60]
nua: nua_handle_destroy: entering
nua(0xb3402b30): sent signal r_destroy
nua: nua_handle_magic: entering
nua: nua_handle_destroy: entering
nua: nua_stack_set_params: entering
soa_set_params(static::0xb341ba78, ...) called
tport_tsend(0x81042c8) tpn = UDP/10.0.2.51:32816
tport_resolve addrinfo = 10.0.2.51:32816
tport_by_addrinfo(0x81042c8): not found by name UDP/10.0.2.51:32816
tport_vsend returned 620
send 620 bytes to udp/[10.0.2.51]:32816 at 17:01:30.586602:
------------------------------------------------------------------------
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 10.0.2.51:32816;rport=32816;branch=z9hG4bK33562
From: "roland" <sip:roland at 10.0.4.60:5060>;tag=z9hG4bK84430669
To: "roland" <sip:roland at 10.0.4.60:5060>;tag=aZa7matyy5Uca
Call-ID: 218108472980 at 10.0.2.51
CSeq: 1 REGISTER
User-Agent: FreeSWITCH-mod_sofia/1.0.trunk-11480
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE,
NOTIFY, REFER, UPDATE, REGISTER, INFO, PUBLISH
Supported: timer, precondition, path, replaces
WWW-Authenticate: Digest realm="10.0.4.60",
nonce="a5608fcc-ea38-11dd-8437-6d678b851040", algorithm=MD5, qop="auth"
Content-Length: 0
------------------------------------------------------------------------
nta: sent 401 Unauthorized for REGISTER (1)
nta: timer set to 32000 ms
nta_leg_destroy((nil))
soa_destroy(static::0xb341ba78) called
tport_wakeup_pri(0x81042c8): events IN
tport_recv_event(0x81042c8)
tport_recv_iovec(0x81042c8) msg 0xb3444050 from (udp/10.0.4.60:5060) has
575 bytes, veclen = 1
recv 575 bytes from udp/[10.0.2.51]:32816 at 17:01:30.614376:
------------------------------------------------------------------------
REGISTER sip:10.0.4.60:5060 SIP/2.0
Via: SIP/2.0/UDP 10.0.2.51:32816;rport;branch=z9hG4bK33562
Max-Forwards: 70
To: "roland" <sip:roland at 10.0.4.60:5060>
From: "roland" <sip:roland at 10.0.4.60:5060>;tag=z9hG4bK84430669
Call-ID: 218108472980 at 10.0.2.51
CSeq: 2 REGISTER
Contact: <sip:roland at 10.0.2.51:32816>
Expires: 3600
User-Agent: ZaKoSIP v1.2
Authorization: Digest username="roland", realm="10.0.4.60",
nonce="a5608fcc-ea38-11dd-8437-6d678b851040", uri="sip:10.0.4.60:5060",
algorithm=MD5, qop=auth, response="2f26d787c68ac2a342a4b1d7bb49a1a0"
Content-Length: 0
------------------------------------------------------------------------
tport_deliver(0x81042c8): msg 0xb3444050 (575 bytes) from
udp/10.0.2.51:5060/sip next=(nil)
nta: received REGISTER sip:10.0.4.60:5060 SIP/2.0 (CSeq 2)
nta: canonizing sip:10.0.4.60:5060 with contact
nta: REGISTER (2) going to a default leg
nua: nua_stack_process_request: entering
nua: nh_create: entering
nua: nh_create_handle: entering
nua: nua_stack_set_params: entering
soa_clone(static::0x80fe270, 0x80f9448, 0xb3445690) called
soa_set_params(static::0xb341ba78, ...) called
nua: nua_application_event: entering
2009-01-24 18:01:30 [DEBUG] sofia_reg.c:869 sofia_reg_handle_register()
Send challenge for [roland at 10.0.4.60]
nua: nua_respond: entering
nua(0xb3445690): sent signal r_respond
nua: nua_handle_destroy: entering
nua(0xb3445690): sent signal r_destroy
nua: nua_handle_magic: entering
nua: nua_handle_destroy: entering
nua: nua_stack_set_params: entering
soa_set_params(static::0xb341ba78, ...) called
tport_tsend(0x81042c8) tpn = UDP/10.0.2.51:32816
tport_resolve addrinfo = 10.0.2.51:32816
tport_by_addrinfo(0x81042c8): not found by name UDP/10.0.2.51:32816
tport_vsend returned 500
send 500 bytes to udp/[10.0.2.51]:32816 at 17:01:30.617125:
------------------------------------------------------------------------
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 10.0.2.51:32816;rport=32816;branch=z9hG4bK33562
From: "roland" <sip:roland at 10.0.4.60:5060>;tag=z9hG4bK84430669
To: "roland" <sip:roland at 10.0.4.60:5060>;tag=B83Zp5a2UejZN
Call-ID: 218108472980 at 10.0.2.51
CSeq: 2 REGISTER
User-Agent: FreeSWITCH-mod_sofia/1.0.trunk-11480
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE,
NOTIFY, REFER, UPDATE, REGISTER, INFO, PUBLISH
Supported: timer, precondition, path, replaces
Content-Length: 0
------------------------------------------------------------------------
nta: sent 403 Forbidden for REGISTER (2)
nta_leg_destroy((nil))
soa_destroy(static::0xb341ba78) called
More information about the Freeswitch-dev
mailing list