El Tue, 3 Jul 2012 09:07:36 +0200
Vaclav Kubart <[email protected]> escribió:
> Hi Jon,
> I have tried with current master branch and I have the User-Agent header
> there. At least with these options (in main sems config file) it seems to
> work for me:
>
> use_default_signature=no
> signature="My Big sems server"
>
>
Hi Vaclav
I was using another branch. I've installed plain 1.4.3 and 1.5.0 from debian
repos and found that in 1.4.3 the REGISTER request has the User-Agent header but
after the 401, the authenticated REGISTER does not. In 1.5.0 both REGISTER
requests are fine.
Find attached the REGISTER attempts using reg_agent module.
cheers,
Jon
1.4.3
U 2012/07/05 09:49:31.256291 77.77.77.77:5060 -> 1.2.3.4:5060
REGISTER sip:mypeer.com SIP/2.0'
Via: SIP/2.0/UDP
77.77.77.77;branch=z9hG4bK9fe1.cc2b45dadfb31c4987106b82a04c9069.0'
Via: SIP/2.0/UDP 127.0.0.1:5080;branch=z9hG4bK~OqTSaTM;rport=5080'
From: <sip:[email protected]>;tag=43861D73-4FF5470B0003E146-AC317700'
To: <sip:[email protected]>'
CSeq: 50 REGISTER'
Call-ID: 7796D744-4FF5470B0003E25B-ACB1F700'
Expires: 1000'
User-Agent: My little sems server'
Max-Forwards: 69'
Content-Length: 0'
Contact: <sip:[email protected]:5060>'
'
#
U 2012/07/05 09:49:31.261577 1.2.3.4:5060 -> 77.77.77.77:5060
SIP/2.0 401 Unauthorized'
Via: SIP/2.0/UDP
77.77.77.77;received=77.77.77.77;branch=z9hG4bK9fe1.cc2b45dadfb31c4987106b82a04c9069.0;rport=5060'
Via: SIP/2.0/UDP 127.0.0.1:5080;branch=z9hG4bK~OqTSaTM;rport=5080'
From: <sip:[email protected]>;tag=43861D73-4FF5470B0003E146-AC317700'
To: <sip:[email protected]>'
Call-ID: 7796D744-4FF5470B0003E25B-ACB1F700'
CSeq: 50 REGISTER'
Max-Forwards: 68'
WWW-Authenticate: Digest
realm="mypeer.com",nonce="5f3f6b8705a29a7fc59be1446800e467",opaque="374002c5fe53782f52a3ad32c94bb51b",algorithm=MD5,qop="auth"'
X-hint: Internet'
'
#
U 2012/07/05 09:49:31.266177 77.77.77.77:5060 -> 1.2.3.4:5060
REGISTER sip:mypeer.com SIP/2.0'
Max-Forwards: 10'
Via: SIP/2.0/UDP
77.77.77.77;branch=z9hG4bKafe1.ba54a9ec86c2e682c764f55ef1b9cdf7.0'
Via: SIP/2.0/UDP 127.0.0.1:5080;branch=z9hG4bKpafDhaqj;rport=5080'
From: <sip:[email protected]>;tag=43861D73-4FF5470B0003E146-AC317700'
To: <sip:[email protected]>'
CSeq: 51 REGISTER'
Call-ID: 7796D744-4FF5470B0003E25B-ACB1F700'
Expires: 1000'
Authorization: Digest username="myuser", realm="mypeer.com",
nonce="5f3f6b8705a29a7fc59be1446800e467", uri="sip:mypeer.com",
opaque="374002c5fe53782f52a3ad32c94bb51b", qop=auth, cnonce="046c2f4e",
nc=00000001, response="5a83acec5d987bc07ec7cb0caa538738", algorithm=MD5'
Content-Length: 0'
Contact: <sip:[email protected]:5060>'
'
1.5.0
#
U 2012/07/05 09:54:05.326641 77.77.77.77:5060 -> 1.2.3.4:5060
REGISTER sip:mypeer.com SIP/2.0'
Via: SIP/2.0/UDP
77.77.77.77;branch=z9hG4bKe829.f031da880ddb0e587a0d7b1c6b053ac9.0'
Via: SIP/2.0/UDP 127.0.0.1:5080;branch=z9hG4bKucTkIamp;rport=5080'
From: <sip:[email protected]>;tag=42CC5EE6-4FF5481D0004F7DE-B2E9F700'
To: <sip:[email protected]>'
CSeq: 50 REGISTER'
Call-ID: 208981C4-4FF5481D0004F885-B2FA0700'
Contact: <sip:77.77.77.77:5060>'
Expires: 3600'
User-Agent: My little Sems server'
Max-Forwards: 69'
Content-Length: 0'
'
#
U 2012/07/05 09:54:05.337308 1.2.3.4:5060 -> 77.77.77.77:5060
SIP/2.0 401 Unauthorized'
Via: SIP/2.0/UDP
77.77.77.77;received=77.77.77.77;branch=z9hG4bKe829.f031da880ddb0e587a0d7b1c6b053ac9.0;rport=5060'
Via: SIP/2.0/UDP 127.0.0.1:5080;branch=z9hG4bKucTkIamp;rport=5080'
From: <sip:[email protected]>;tag=42CC5EE6-4FF5481D0004F7DE-B2E9F700'
To: <sip:[email protected]>'
Call-ID: 208981C4-4FF5481D0004F885-B2FA0700'
CSeq: 50 REGISTER'
Max-Forwards: 68'
WWW-Authenticate: Digest
realm="mypeer.com",nonce="35beabef26374a92f264b90959ed5138",opaque="20eace2649c889f307a1137c060711be",algorithm=MD5,qop="auth"'
X-hint: Internet'
'
#
U 2012/07/05 09:54:05.339389 77.77.77.77:5060 -> 1.2.3.4:5060
REGISTER sip:mypeer.com SIP/2.0'
Via: SIP/2.0/UDP
77.77.77.77;branch=z9hG4bKf829.954804a08101f0310e956d46e935b038.0'
Via: SIP/2.0/UDP 127.0.0.1:5080;branch=z9hG4bKtiZPWaQO;rport=5080'
From: <sip:[email protected]>;tag=42CC5EE6-4FF5481D0004F7DE-B2E9F700'
To: <sip:[email protected]>'
CSeq: 51 REGISTER'
Call-ID: 208981C4-4FF5481D0004F885-B2FA0700'
Contact: <sip:77.77.77.77:5060>'
Expires: 3600'
User-Agent: My little Sems server'
Max-Forwards: 69'
Authorization: Digest username="myuser", realm="mypeer.com",
nonce="35beabef26374a92f264b90959ed5138", uri="sip:mypeer.com",
opaque="20eace2649c889f307a1137c060711be", qop=auth, cnonce="470c8cdf",
nc=00000001, response="96bb72e1c5cfb9d141a5a4c684438280", algorithm=MD5'
Content-Length: 0'
_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems