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

Bogdan-Andrei Iancu bogdan at voice-system.ro
Tue Apr 20 14:02:17 CEST 2010


Sam, space is not allowed as character in the username of a SIP URI (see 
grammar from RFC3261).

Regards,
Bogdan

samoh wrote:
> 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.
>
>  
>   


-- 
Bogdan-Andrei Iancu
www.voice-system.ro




More information about the Users mailing list