Hi!<br><br>I'm trying to register a SIP UA to my FreeSWITCH server and for some reason I always get a "401 Unauthorized" response. I've tried with other UA (X-Lite and Ekiga) and they do work. The UA is: <a href="http://www.doddlephone.com">http://www.doddlephone.com</a><br>
<br>My user configuration is:<br><br><include><br> <user id="doddle"><br> <params><br> <param name="password" value="doddle"/><br> <param name="vm-password" value="1234"/><br>
</params><br> <variables><br> <variable name="toll_allow" value="domestic,international,local"/><br> <variable name="accountcode" value="doddle"/><br>
<variable name="user_context" value="default"/><br> <variable name="effective_caller_id_name" value="doddle"/><br> <variable name="effective_caller_id_number" value="doddle"/><br>
</variables><br> </user><br></include><br><br>Can someone help me and tell me what I'm doing wrong?<br><br>Here's the FreeSWITCH trace if it's useful:<br><br><a href="mailto:freeswitch@fc1160102.aspadmin.net">freeswitch@fc1160102.aspadmin.net</a>> tport_wakeup_pri(0xae7056b0): events IN<br>
tport_recv_event(0xae7056b0)<br>tport_recv_iovec(0xae7056b0) msg 0xae703f88 from (udp/<a href="http://216.75.60.102:5060">216.75.60.102:5060</a>) has 444 bytes, veclen = 1<br>recv 444 bytes from udp/[190.179.3.18]:4375 at 21:51:10.194004:<br>
------------------------------------------------------------------------<br> REGISTER sip:216.75.60.102 SIP/2.0<br> From: <a href="mailto:sip%3Adoddle@216.75.60.102">sip:doddle@216.75.60.102</a>;tag=633f3915<br> To: <a href="mailto:sip%3Adoddle@216.75.60.102">sip:doddle@216.75.60.102</a><br>
Call-Id: 186e708700bcf9a944855105fc3dce0e<br> Cseq: 101 REGISTER<br> Contact: <sip:doddle@192.168.0.1:4375;LINEID=fc9c0e49caad><br> Expires: 3600<br> Date: Wed, 11 Nov 2009 21:51:51 GMT<br> Max-Forwards: 70<br>
User-Agent: Doddle WebPhone<br> Supported: replaces<br> Via: SIP/2.0/UDP 192.168.0.1:4375;branch=z9hG4bK-0f9263f10caa;rport<br> Content-Length: 0<br> <br> ------------------------------------------------------------------------<br>
tport_deliver(0xae7056b0): msg 0xae703f88 (444 bytes) from udp/<a href="http://190.179.3.18:5060/sip">190.179.3.18:5060/sip</a> next=(nil)<br>nta: received REGISTER sip:216.75.60.102 SIP/2.0 (CSeq 101)<br>nta: Via check: received=190.179.3.18<br>
nta: canonizing sip:216.75.60.102 with contact<br>nta: REGISTER (101) going to a default leg<br>nua: nua_stack_process_request: entering<br>nua: nh_create: entering<br>nua: nh_create_handle: entering<br>nua: nua_stack_set_params: entering<br>
soa_clone(static::0xae7098a0, 0xae704890, 0xae718fc8) called<br>soa_set_params(static::0xae719398, ...) called<br>nua: nua_application_event: entering<br>nua: nua_respond: entering<br>nua(0xae718fc8): sent signal r_respond<br>
nua: nua_handle_destroy: entering<br>nua(0xae718fc8): sent signal r_destroy<br>nua: nua_stack_set_params: entering<br>nua: nua_handle_magic: entering<br>nua: nua_handle_destroy: entering<br>soa_set_params(static::0xae719398, ...) called<br>
tport_tsend(0xae7056b0) tpn = UDP/<a href="http://190.179.3.18:4375">190.179.3.18:4375</a><br>tport_resolve addrinfo = <a href="http://190.179.3.18:4375">190.179.3.18:4375</a><br>tport_by_addrinfo(0xae7056b0): not found by name UDP/<a href="http://190.179.3.18:4375">190.179.3.18:4375</a><br>
tport_vsend returned 631<br>send 631 bytes to udp/[190.179.3.18]:4375 at 21:51:10.198733:<br> ------------------------------------------------------------------------<br> SIP/2.0 401 Unauthorized<br> Via: SIP/2.0/UDP 192.168.0.1:4375;branch=z9hG4bK-0f9263f10caa;rport=4375;received=190.179.3.18<br>
From: <a href="mailto:sip%3Adoddle@216.75.60.102">sip:doddle@216.75.60.102</a>;tag=633f3915<br> To: <<a href="mailto:sip%3Adoddle@216.75.60.102">sip:doddle@216.75.60.102</a>>;tag=U8QpcZyvrQ3Fg<br> Call-Id: 186e708700bcf9a944855105fc3dce0e<br>
Cseq: 101 REGISTER<br> User-Agent: FreeSWITCH-mod_sofia/1.0.5pre5-15326M<br> Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE<br> Supported: timer, precondition, path, replaces<br>
WWW-Authenticate: Digest realm="216.75.60.102", nonce="132239a5-e37e-4698-af61-5df9b3b67de8", algorithm=MD5, qop="auth"<br> Content-Length: 0<br> <br> ------------------------------------------------------------------------<br>
nta: sent 401 Unauthorized for REGISTER (101)<br>nta: timer set to 32000 ms<br>nta_leg_destroy((nil))<br>soa_destroy(static::0xae719398) called<br>tport_wakeup_pri(0xae7056b0): events IN<br>tport_recv_event(0xae7056b0)<br>
tport_recv_iovec(0xae7056b0) msg 0xae716af8 from (udp/<a href="http://216.75.60.102:5060">216.75.60.102:5060</a>) has 706 bytes, veclen = 1<br>recv 706 bytes from udp/[190.179.3.18]:4375 at 21:51:10.453646:<br> ------------------------------------------------------------------------<br>
REGISTER sip:216.75.60.102 SIP/2.0<br> From: <a href="mailto:sip%3Adoddle@216.75.60.102">sip:doddle@216.75.60.102</a>;tag=633f3915<br> To: <a href="mailto:sip%3Adoddle@216.75.60.102">sip:doddle@216.75.60.102</a><br>
Call-Id: 186e708700bcf9a944855105fc3dce0e<br> Cseq: 102 REGISTER<br> Expires: 3600<br> Date: Wed, 11 Nov 2009 21:51:51 GMT<br> Max-Forwards: 70<br> User-Agent: Doddle WebPhone<br> Supported: replaces<br> Authorization: Digest username="doddle", realm="216.75.60.102", nonce="132239a5-e37e-4698-af61-5df9b3b67de8", uri="sip:216.75.60.102", response="686ec180c04fc70be22aaca9eb21f5e9", algorithm=MD5, cnonce="155fb1307a89ffc0eaed1e0e94958e6e", qop=auth, nc=00000033<br>
Via: SIP/2.0/UDP 192.168.0.1:4375;branch=z9hG4bK-36a1b6039a42;rport<br> Contact: <sip:doddle@190.179.3.18:4375;LINEID=fc9c0e49caad><br> Content-Length: 0<br> <br> ------------------------------------------------------------------------<br>
tport_deliver(0xae7056b0): msg 0xae716af8 (706 bytes) from udp/<a href="http://190.179.3.18:5060/sip">190.179.3.18:5060/sip</a> next=(nil)<br>nta: received REGISTER sip:216.75.60.102 SIP/2.0 (CSeq 102)<br>nta: Via check: received=190.179.3.18<br>
nta: canonizing sip:216.75.60.102 with contact<br>nta: REGISTER (102) going to a default leg<br>nua: nua_stack_process_request: entering<br>nua: nh_create: entering<br>nua: nh_create_handle: entering<br>nua: nua_stack_set_params: entering<br>
soa_clone(static::0xae7098a0, 0xae704890, 0xae71ae30) called<br>soa_set_params(static::0xae71b340, ...) called<br>nua: nua_application_event: entering<br>nua: nua_respond: entering<br>nua(0xae71ae30): sent signal r_respond<br>
nua: nua_handle_destroy: entering<br>nua: nua_stack_set_params: entering<br>nua(0xae71ae30): sent signal r_destroy<br>nua: nua_handle_magic: entering<br>soa_set_params(static::0xae71b340, ...) called<br>nua: nua_handle_destroy: entering<br>
tport_tsend(0xae7056b0) tpn = UDP/<a href="http://190.179.3.18:4375">190.179.3.18:4375</a><br>tport_resolve addrinfo = <a href="http://190.179.3.18:4375">190.179.3.18:4375</a><br>tport_by_addrinfo(0xae7056b0): not found by name UDP/<a href="http://190.179.3.18:4375">190.179.3.18:4375</a><br>
tport_vsend returned 645<br>send 645 bytes to udp/[190.179.3.18]:4375 at 21:51:10.462570:<br> ------------------------------------------------------------------------<br> SIP/2.0 401 Unauthorized<br> Via: SIP/2.0/UDP 192.168.0.1:4375;branch=z9hG4bK-36a1b6039a42;rport=4375;received=190.179.3.18<br>
From: <a href="mailto:sip%3Adoddle@216.75.60.102">sip:doddle@216.75.60.102</a>;tag=633f3915<br> To: <<a href="mailto:sip%3Adoddle@216.75.60.102">sip:doddle@216.75.60.102</a>>;tag=vHHFetF0N0S2B<br> Call-Id: 186e708700bcf9a944855105fc3dce0e<br>
Cseq: 102 REGISTER<br> User-Agent: FreeSWITCH-mod_sofia/1.0.5pre5-15326M<br> Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE<br> Supported: timer, precondition, path, replaces<br>
WWW-Authenticate: Digest realm="216.75.60.102", nonce="5a5ebe31-baf6-429c-a184-f835a22d7c24", stale="true", algorithm=MD5, qop="auth"<br> Content-Length: 0<br> <br> ------------------------------------------------------------------------<br>
nta: sent 401 Unauthorized for REGISTER (102)<br>nta_leg_destroy((nil))<br>soa_destroy(static::0xae71b340) called<br><br><br><br>Thank you in advacen,<br><br>Federico Omoto<br><br><br>