[OpenSIPS-Users] if subscriber.username contain 2 words the authentification doesn't work

samoh dahmani.samy at gmail.com
Tue Apr 20 13:44:48 CEST 2010


Hi Bogdan,

I tried to capture packets using ngrep. when I try to be authentificated
with my soft-phone like x-lite, I got no packet but when I tray whith my ip
phone (linksys), I have this capture  (with username = user 1): 

U 192.168.0.47:5060 -> 192.168.0.190:5060
REGISTER sip:192.168.0.190 SIP/2.0.
Via: SIP/2.0/UDP 192.168.0.47:5060;branch=z9hG4bK-9528bec1.
From: "user 1" <sip:user 1 at 192.168.0.190>;tag=a71b38209dd65a5do0.
To: "user 1" <sip:user 1 at 192.168.0.190>.
Call-ID: e8d5f73c-248745f1 at 192.168.0.47.
CSeq: 1 REGISTER.
Max-Forwards: 70.
Contact: "user 1" <sip:user 1 at 192.168.0.47:5060>;expires=3600.
User-Agent: Sipura/SPA841-3.1.4(a).
Content-Length: 0.
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.
.


U 192.168.0.47:5060 -> 192.168.0.190:5060
REGISTER sip:192.168.0.190 SIP/2.0.
Via: SIP/2.0/UDP 192.168.0.47:5060;branch=z9hG4bK-9528bec1.
From: "user 1" <sip:user 1 at 192.168.0.190>;tag=a71b38209dd65a5do0.
To: "user 1" <sip:user 1 at 192.168.0.190>.
Call-ID: e8d5f73c-248745f1 at 192.168.0.47.
CSeq: 1 REGISTER.
Max-Forwards: 70.
Contact: "user 1" <sip:user 1 at 192.168.0.47:5060>;expires=3600.
User-Agent: Sipura/SPA841-3.1.4(a).
Content-Length: 0.
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.
.


U 192.168.0.47:5060 -> 192.168.0.190:5060
REGISTER sip:192.168.0.190 SIP/2.0.
Via: SIP/2.0/UDP 192.168.0.47:5060;branch=z9hG4bK-9528bec1.
From: "user 1" <sip:user 1 at 192.168.0.190>;tag=a71b38209dd65a5do0.
To: "user 1" <sip:user 1 at 192.168.0.190>.
Call-ID: e8d5f73c-248745f1 at 192.168.0.47.
CSeq: 1 REGISTER.
Max-Forwards: 70.
Contact: "user 1" <sip:user 1 at 192.168.0.47:5060>;expires=3600.
User-Agent: Sipura/SPA841-3.1.4(a).
Content-Length: 0.
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.
.


U 192.168.0.47:5060 -> 192.168.0.190:5060
REGISTER sip:192.168.0.190 SIP/2.0.
Via: SIP/2.0/UDP 192.168.0.47:5060;branch=z9hG4bK-9528bec1.
From: "user 1" <sip:user 1 at 192.168.0.190>;tag=a71b38209dd65a5do0.
To: "user 1" <sip:user 1 at 192.168.0.190>.
Call-ID: e8d5f73c-248745f1 at 192.168.0.47.
CSeq: 1 REGISTER.
Max-Forwards: 70.
Contact: "user 1" <sip:user 1 at 192.168.0.47:5060>;expires=3600.
User-Agent: Sipura/SPA841-3.1.4(a).
Content-Length: 0.
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.
.


U 192.168.0.47:5060 -> 192.168.0.190:5060
REGISTER sip:192.168.0.190 SIP/2.0.
Via: SIP/2.0/UDP 192.168.0.47:5060;branch=z9hG4bK-9528bec1.
From: "user 1" <sip:user 1 at 192.168.0.190>;tag=a71b38209dd65a5do0.
To: "user 1" <sip:user 1 at 192.168.0.190>.
Call-ID: e8d5f73c-248745f1 at 192.168.0.47.
CSeq: 1 REGISTER.
Max-Forwards: 70.
Contact: "user 1" <sip:user 1 at 192.168.0.47:5060>;expires=3600.
User-Agent: Sipura/SPA841-3.1.4(a).
Content-Length: 0.
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.
.


U 192.168.0.47:5060 -> 192.168.0.190:5060
REGISTER sip:192.168.0.190 SIP/2.0.
Via: SIP/2.0/UDP 192.168.0.47:5060;branch=z9hG4bK-9528bec1.
From: "user 1" <sip:user 1 at 192.168.0.190>;tag=a71b38209dd65a5do0.
To: "user 1" <sip:user 1 at 192.168.0.190>.
Call-ID: e8d5f73c-248745f1 at 192.168.0.47.
CSeq: 1 REGISTER.
Max-Forwards: 70.
Contact: "user 1" <sip:user 1 at 192.168.0.47:5060>;expires=3600.
User-Agent: Sipura/SPA841-3.1.4(a).
Content-Length: 0.
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.
.


U 192.168.0.47:5060 -> 192.168.0.190:5060
REGISTER sip:192.168.0.190 SIP/2.0.
Via: SIP/2.0/UDP 192.168.0.47:5060;branch=z9hG4bK-9528bec1.
From: "user 1" <sip:user 1 at 192.168.0.190>;tag=a71b38209dd65a5do0.
To: "user 1" <sip:user 1 at 192.168.0.190>.
Call-ID: e8d5f73c-248745f1 at 192.168.0.47.
CSeq: 1 REGISTER.
Max-Forwards: 70.
Contact: "user 1" <sip:user 1 at 192.168.0.47:5060>;expires=3600.
User-Agent: Sipura/SPA841-3.1.4(a).
Content-Length: 0.
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.
.


U 192.168.0.47:5060 -> 192.168.0.190:5060
REGISTER sip:192.168.0.190 SIP/2.0.
Via: SIP/2.0/UDP 192.168.0.47:5060;branch=z9hG4bK-dfa12e29.
From: "user 1" <sip:user 1 at 192.168.0.190>;tag=a71b38209dd65a5do0.
To: "user 1" <sip:user 1 at 192.168.0.190>.
Call-ID: e8d5f73c-248745f1 at 192.168.0.47.
CSeq: 2 REGISTER.
Max-Forwards: 70.
Contact: "user 1" <sip:user 1 at 192.168.0.47:5060>;expires=3600.
User-Agent: Sipura/SPA841-3.1.4(a).
Content-Length: 0.
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.
.


U 192.168.0.47:5060 -> 192.168.0.190:5060
REGISTER sip:192.168.0.190 SIP/2.0.
Via: SIP/2.0/UDP 192.168.0.47:5060;branch=z9hG4bK-dfa12e29.
From: "user 1" <sip:user 1 at 192.168.0.190>;tag=a71b38209dd65a5do0.
To: "user 1" <sip:user 1 at 192.168.0.190>.
Call-ID: e8d5f73c-248745f1 at 192.168.0.47.
CSeq: 2 REGISTER.
Max-Forwards: 70.
Contact: "user 1" <sip:user 1 at 192.168.0.47:5060>;expires=3600.
User-Agent: Sipura/SPA841-3.1.4(a).
Content-Length: 0.
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.
.


U 192.168.0.47:5060 -> 192.168.0.190:5060
REGISTER sip:192.168.0.190 SIP/2.0.
Via: SIP/2.0/UDP 192.168.0.47:5060;branch=z9hG4bK-dfa12e29.
From: "user 1" <sip:user 1 at 192.168.0.190>;tag=a71b38209dd65a5do0.
To: "user 1" <sip:user 1 at 192.168.0.190>.
Call-ID: e8d5f73c-248745f1 at 192.168.0.47.
CSeq: 2 REGISTER.
Max-Forwards: 70.
Contact: "user 1" <sip:user 1 at 192.168.0.47:5060>;expires=3600.
User-Agent: Sipura/SPA841-3.1.4(a).
Content-Length: 0.
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.
.


U 192.168.0.47:5060 -> 192.168.0.190:5060
REGISTER sip:192.168.0.190 SIP/2.0.
Via: SIP/2.0/UDP 192.168.0.47:5060;branch=z9hG4bK-dfa12e29.
From: "user 1" <sip:user 1 at 192.168.0.190>;tag=a71b38209dd65a5do0.
To: "user 1" <sip:user 1 at 192.168.0.190>.
Call-ID: e8d5f73c-248745f1 at 192.168.0.47.
CSeq: 2 REGISTER.
Max-Forwards: 70.
Contact: "user 1" <sip:user 1 at 192.168.0.47:5060>;expires=3600.
User-Agent: Sipura/SPA841-3.1.4(a).
Content-Length: 0.
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.
.


U 192.168.0.47:5060 -> 192.168.0.190:5060
REGISTER sip:192.168.0.190 SIP/2.0.
Via: SIP/2.0/UDP 192.168.0.47:5060;branch=z9hG4bK-dfa12e29.
From: "user 1" <sip:user 1 at 192.168.0.190>;tag=a71b38209dd65a5do0.
To: "user 1" <sip:user 1 at 192.168.0.190>.
Call-ID: e8d5f73c-248745f1 at 192.168.0.47.
CSeq: 2 REGISTER.
Max-Forwards: 70.
Contact: "user 1" <sip:user 1 at 192.168.0.47:5060>;expires=3600.
User-Agent: Sipura/SPA841-3.1.4(a).
Content-Length: 0.
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.
.


U 192.168.0.47:5060 -> 192.168.0.190:5060
REGISTER sip:192.168.0.190 SIP/2.0.
Via: SIP/2.0/UDP 192.168.0.47:5060;branch=z9hG4bK-dfa12e29.
From: "user 1" <sip:user 1 at 192.168.0.190>;tag=a71b38209dd65a5do0.
To: "user 1" <sip:user 1 at 192.168.0.190>.
Call-ID: e8d5f73c-248745f1 at 192.168.0.47.
CSeq: 2 REGISTER.
Max-Forwards: 70.
Contact: "user 1" <sip:user 1 at 192.168.0.47:5060>;expires=3600.
User-Agent: Sipura/SPA841-3.1.4(a).
Content-Length: 0.
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.
.


U 192.168.0.47:5060 -> 192.168.0.190:5060
REGISTER sip:192.168.0.190 SIP/2.0.
Via: SIP/2.0/UDP 192.168.0.47:5060;branch=z9hG4bK-dfa12e29.
From: "user 1" <sip:user 1 at 192.168.0.190>;tag=a71b38209dd65a5do0.
To: "user 1" <sip:user 1 at 192.168.0.190>.
Call-ID: e8d5f73c-248745f1 at 192.168.0.47.
CSeq: 2 REGISTER.
Max-Forwards: 70.
Contact: "user 1" <sip:user 1 at 192.168.0.47:5060>;expires=3600.
User-Agent: Sipura/SPA841-3.1.4(a).
Content-Length: 0.
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.

do I have some mistakes in my config or that's the same for everybody ???

Best regards
Sam.

 
-- 
View this message in context: http://n2.nabble.com/if-subscriber-username-contain-2-words-the-authentification-doesn-t-work-tp4926026p4930698.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.



More information about the Users mailing list