In my opinion, the 407ers are retransmissions. Check with wireshark, if these responses are using e.g. the CSeq number of the first or the second invite-request. Maybe your ACK-request is not correct?
hth br Michael Josep Benavent wrote: > Hello, > > I'm developing a UA using JAIN-SIP that connect to Asterisk server and I > can't complete an INVITE process correctly. > > The dialogue I implemented is: > > 1. Send register > 2. Received a trying and a 401 Unauthorized > 3. I send a register again with the authorization header (with the nonce and > the response fields ) > 4. Received a TRYING and a 200 OK messages. > > At this point, I received some UDP packets from the SER continuously (I > suppose I had registered correctly). > > Now, I send and INVITE message (without authorization header) and I receive > a 407 Authentication failure message. I send an ACK and again an INVITE > message now, with authorization header (response) and using the nonce I > received in the last 407 message, but I always receive again 407 message as > response from the server. > > I detail the authorization headers following: > > *Authorization header in 407 message:* > Proxy-Authenticate: Digest realm="i2cat.net", > nonce="4b4ef99f88dede8c57be94d4c63464f9d268fbc5" > > *Authorization header in INVITE message:* > Authorization: Digest username="josep.benavent",realm="i2cat.net > ",nonce="4b4ef99f88dede8c57be94d4c63464f9d268fbc5",uri=" > sip:[email protected] <sip%[email protected]> > ",response="d6b6a75c32bc237984f03ffb26d9d745",algorithm=MD5 > > (I incremented de CSeq number correctly with each INVITE message). > > OK, I suppose my error is in the function that creates the response with a > nonce value in the INVITE message, I detail following: > > MessageDigestAlgorithm digest = new > MessageDigestAlgorithm(); > String responseCode = digest.calculateResponse("MD5", > this.user, response.getRealm(), this.pwd, response.getNonce(), null, null, > Request.INVITE,uri.toString(), null, null); > > (Variables values are that you can see in the Authorization header in INVITE > message detail). > > Does any body know what are the values I need to create a correct > responseCode? I also tried to include a Cnonce value in the > digest.calculateResponse function with any result. > > Any idea will be welcome. > > > Thank you for your attention, > > Josep Benavent > _______________________________________________ > Sip-implementors mailing list > [email protected] > https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors _______________________________________________ Sip-implementors mailing list [email protected] https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors
