Hello,
I am studying in the university (in France and now in Germany), and I
have been asked to create an SIP client wich would work with an existing
SIP client and then with an SIP Server.
I have already succeeded to create an INVITE message which is accepted
by a Linphone.
Now I would like to register ... But I have some issues with the server ...
I managed to send the first register message, and got a 401 response,
but when I send the second Register message (as described in RFCs 3261
and 3665) I get a 403 response from the Linphone server ...
I don't understand why ...
I have decided to compare the REGISTER I send, with the REGISTER message
send by a Linphone and here is what I get :
(The only difference I can see are on the Authorization field
"response", (for this I have followed the guidelines given in RFC 2617),
and the "line" parameter in the contact field of the Header (however I
can't find any information about this parameter in the RFCs ...)).
Thank you,
Alexandre Rupp.
(here is the comparison
// ***************** Message header : *****************************
*************** Me : **************************
Via: SIP/2.0/UDP
172.16.94.218:5061;rport;branch=z9hG4bKeeb0d4a253e6c3f36e4ca1bc7715e461
From:
<sip:address@hidden:5061>;tag=1367667745620
To:
<sip:address@hidden:5061>
Call-ID:
address@hidden
CSeq: 2 REGISTER
Contact:
<sip:address@hidden>
Authorization: Digest
response="f2835e5fd10e0368abc7c023010c108",cnonce="0a4f113b",username="didjoman",nc=00000001,qop=auth,nonce="pHIv1QAAAADWHtKtAAAlkfscu6kAAAAA",realm="
sip.linphone.org",opaque="+GNywA==",uri="sip:
sip.linphone.org",algorithm=MD5
Max-Forwards: 70
User-Agent: Linphone/3.3.2 (eXosip2/3.3.0)
Expires: 3600
Content-Length: 0
**************** Linphone : ********************
Via: SIP/2.0/UDP 172.16.94.218:5060;rport;branch=z9hG4bK611354362
From:
<sip:address@hidden>;tag=945498785
To:
<sip:address@hidden>
Call-ID: 784837038
CSeq: 2 REGISTER
Contact:
<sip:address@hidden:5060;line=526f5fecaa69f30>
Authorization: Digest username="didjoman", realm="
sip.linphone.org",
nonce="tGMv1QAAAAC6mHtFAADSmqqxTV0AAAAA", uri="sip:
sip.linphone.org",
response="48eddc8e920e395551e8d24a03dc8782", algorithm=MD5,
cnonce="0a4f113b", opaque="+GNywA==", qop=auth, nc=00000001
Max-Forwards: 70
User-Agent: Linphone/3.2.1 (eXosip2/3.1.0)
Expires: 3600
Content-Length: 0
// ********************* Authorization content :
**************************************
*************** Me : **************************
Authorization: Digest
username="didjoman",
realm="
sip.linphone.org",
nonce="pHIv1QAAAADWHtKtAAAlkfscu6kAAAAA",
uri="sip:
sip.linphone.org",
response="f2835e5fd10e0368abc7c023010c108",
algorithm=MD5
cnonce="0a4f113b",
opaque="+GNywA==",
qop=auth,
nc=00000001,
**************** Linphone : ********************
Authorization: Digest
username="didjoman",
realm="
sip.linphone.org",
nonce="tGMv1QAAAAC6mHtFAADSmqqxTV0AAAAA",
uri="sip:
sip.linphone.org",
response="48eddc8e920e395551e8d24a03dc8782",
algorithm=MD5,
cnonce="0a4f113b",
opaque="+GNywA==",
qop=auth,
nc=00000001