hanenehrizi / sipdroid

Automatically exported from code.google.com/p/sipdroid
GNU General Public License v3.0
0 stars 0 forks source link

auth-header - line break #117

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello 

in the authentication header  is a line-break - that should not be - its
incorrect. The pbx (innovaphone) answers with 401 unauthorized

see:

REGISTER sip:172.16.84.7 SIP/2.0

Via: SIP/2.0/UDP 127.0.0.1:5060;rport;branch=z9hG4bK83630

Max-Forwards: 70

To: <sip:tsr@172.16.84.7>

From: <sip:tsr@172.16.84.7>;tag=z9hG4bK68948693

Call-ID: 493286360070@127.0.0.1

CSeq: 2 REGISTER

Contact: <sip:tsr@172.16.84.7>

Expires: 3600

User-Agent: Sipdroid/1.0.5 beta

Authorization: Digest username="tsr@172.16.84.7

", realm="172.16.84.7", nonce="3ce86c5be909d311",…

Content-Length: 0

Original issue reported on code.google.com by brez...@googlemail.com on 24 Aug 2009 at 2:24

GoogleCodeExporter commented 9 years ago
You must have included the newline into the username. Check your configuration, 
please.

Original comment by pmerl...@googlemail.com on 24 Aug 2009 at 2:35

GoogleCodeExporter commented 9 years ago

Original comment by pmerl...@googlemail.com on 27 Aug 2009 at 3:17

GoogleCodeExporter commented 9 years ago
Hello

i included the newline in the username

see:

REGISTER sip:172.16.84.7/@172.16.84.7/ SIP/2.0
Via: SIP/2.0/UDP 127.0.0.1:5060;rport;branch=z9hG4bK80564
Max-Forwards: 70
To: <sip:tsr@172.16.84.7/@172.16.84.7/>
From: <sip:tsr@172.16.84.7/@172.16.84.7/>;tag=z9hG4bK76950350
Call-ID: 759379479409@127.0.0.1
CSeq: 1 REGISTER
Contact: <sip:tsr@172.16.84.7/@127.0.0.1>
Expires: 3600
User-Agent: Sipdroid/1.0.5 beta
Content-Length: 0

but still i get an unathorized back

SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 127.0.0.1:5060;rport;branch=z9hG4bK80564
From: <sip:tsr@172.16.84.7/@172.16.84.7/>;tag=z9hG4bK76950350
To: <sip:tsr@172.16.84.7/@172.16.84.7/>;tag=578392766
Call-ID: 759379479409@127.0.0.1
CSeq: 1 REGISTER
Content-Length: 0
Date: Thu, 27 Aug 2009 17:26:05 GMT
Server: (innovaphone IP302/8.00 dvl [09-80202/09-80202/100])
WWW-Authenticate: Digest
realm="172.16.84.7/@172.16.84.7/",nonce="3ce86c5be909d311",qop="auth",algorithm=
MD5

regards
thomas

Original comment by brez...@googlemail.com on 27 Aug 2009 at 3:29

GoogleCodeExporter commented 9 years ago
it looks like that the sipdroid does not answer to the 401 unauthorized.

so the sip-client does not authenticate to the 401

greetings
thomas

Original comment by brez...@googlemail.com on 27 Aug 2009 at 3:40

GoogleCodeExporter commented 9 years ago

Original comment by pmerl...@googlemail.com on 1 Sep 2009 at 10:08