[SR-Users] Kamailio + Asterisk 1.6.2 Realtime - REGFWD : 401 not authorized

Skyler skchopperguy at gmail.com
Sun May 22 09:01:47 CEST 2011


Hi all,

 

 After 3 hours stuck on this I have to ask the group. I am setting up Kam
3.1.3 +Ast 1.6.2.18 + realtime following Daniel's guide on the Asipto site.
The problem I see is 401 not authorized when uac tries to register. 

 

Below is ngrep . do you see something I am missing or have any pointers? I
can't seem to get any devices to register with asterisk.       --- TIA

 

 

interface: any

filter: (ip or ip6) and ( port 5060 )

 

U 2011/05/21 23:40:39.333181 192.168.1.132:5060 -> 192.168.1.104:5060

REGISTER sip:192.168.1.104 SIP/2.0.

Via: SIP/2.0/UDP 192.168.1.132:5060;branch=z9hG4bK-cd60fa71.

From: testing <sip:4444 at 192.168.1.104>;tag=16b905e66a42787eo0.

To: testing <sip:4444 at 192.168.1.104>.

Call-ID: 5407498c-e755970e at 192.168.1.132.

CSeq: 55278 REGISTER.

Max-Forwards: 70.

Authorization: Digest
username="4444",realm="192.168.1.104",nonce="Tdiwvk3Yr5JAcX9Iljh/AX0BieRt73Y
v",uri="sip:192.168.1.104",algorithm=MD5,response="68bc7ad2de02caa48b8cbb22b
6de7aa6".

Contact: testing <sip:4444 at 192.168.1.132:5060>;expires=30.

User-Agent: Linksys/PAP2-3.1.23(LS).

Content-Length: 0.

Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.

Supported: x-sipura, replaces.

 

 

U 2011/05/21 23:40:39.347248 192.168.1.104:5060 -> 192.168.1.132:5060

SIP/2.0 200 OK.

Via: SIP/2.0/UDP 192.168.1.132:5060;branch=z9hG4bK-cd60fa71;rport=5060.

From: testing <sip:4444 at 192.168.1.104>;tag=16b905e66a42787eo0.

To: testing
<sip:4444 at 192.168.1.104>;tag=d0c53e97c845e2d86a9876bb195e3450.e92e.

Call-ID: 5407498c-e755970e at 192.168.1.132.

CSeq: 55278 REGISTER.

Contact:
<sip:4444 at 192.168.1.132:5060>;expires=60;received="sip:192.168.1.132:5060".

Server: kamailio (3.1.3 (i386/linux)).

Content-Length: 0.

 

 

U 2011/05/21 23:40:39.349726 192.168.1.104:5060 -> 192.168.1.104:5080

REGISTER sip:192.168.1.104:5080 SIP/2.0.

Via: SIP/2.0/UDP 192.168.1.104;branch=z9hG4bK0f62.635b95f3.0.

To: sip:4444 at 192.168.1.104.

From: sip:4444 at 192.168.1.104;tag=a707bfce77c9367d1734afac7b3de6ca-f4de.

CSeq: 10 REGISTER.

Call-ID: 7f1ddb01-6717 at 192.168.1.104.

Content-Length: 0.

User-Agent: kamailio (3.1.3 (i386/linux)).

Contact: <sip:4444 at 192.168.1.104:5060>.

Expires: 30.

 

 

U 2011/05/21 23:40:39.351790 192.168.1.104:5080 -> 192.168.1.104:5060

SIP/2.0 401 Unauthorized.

v: SIP/2.0/UDP
192.168.1.104;branch=z9hG4bK0f62.635b95f3.0;received=192.168.1.104.

f: sip:4444 at 192.168.1.104;tag=a707bfce77c9367d1734afac7b3de6ca-f4de.

t: sip:4444 at 192.168.1.104;tag=as64ca9fe3.

i: 7f1ddb01-6717 at 192.168.1.104.

CSeq: 10 REGISTER.

Server: taridium ipbx.

Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO.

k: replaces, timer.

WWW-Authenticate: Digest algorithm=MD5, realm="192.168.1.104",
nonce="5bad77f5".

l: 0.

 

 

U 2011/05/21 23:40:53.322348 192.168.1.104:5060 -> 192.168.1.132:5060

....

 

U 2011/05/21 23:40:57.180694 192.168.1.132:5060 -> 192.168.1.104:5060

NOTIFY sip:192.168.1.104 SIP/2.0.

Via: SIP/2.0/UDP 192.168.1.132:5060;branch=z9hG4bK-56c97474.

From: testing <sip:4444 at 192.168.1.104>;tag=16b905e66a42787eo0.

To: <sip:192.168.1.104>.

Call-ID: dbc8d986-9fbb95e at 192.168.1.132.

CSeq: 47 NOTIFY.

Max-Forwards: 70.

Event: keep-alive.

User-Agent: Linksys/PAP2-3.1.23(LS).

Content-Length: 0.

 

 

U 2011/05/21 23:40:57.187840 192.168.1.104:5060 -> 192.168.1.132:5060

SIP/2.0 200 OK - keepalive.

Via: SIP/2.0/UDP 192.168.1.132:5060;branch=z9hG4bK-56c97474;rport=5060.

From: testing <sip:4444 at 192.168.1.104>;tag=16b905e66a42787eo0.

To: <sip:192.168.1.104>;tag=d0c53e97c845e2d86a9876bb195e3450.e05a.

Call-ID: dbc8d986-9fbb95e at 192.168.1.132.

CSeq: 47 NOTIFY.

Server: kamailio (3.1.3 (i386/linux)).

Content-Length: 0.

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20110522/61829575/attachment-0001.htm>


More information about the sr-users mailing list