Increasing CSEQ in im_callback when proxy authentication is required‏

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
i encountered a problem regarding SIP MESSAGE.
 
When using pjsua, if the server responds with 401 authorization required or 407 proxy authorization required, the CSEQ should be incremented has described in the SIP RFC 3261, page 145. Chapters 22.2 and 22.3.
 
Just in case anyone else needs this, here is my solution...
 
file: pjsua_im.c
line: 379
 
if (status == PJ_SUCCESS) {
 pjsua_im_data *im_data2;
 
// My code
/* Increment CSeq */
pjsip_cseq_hdr *cseq_hdr = PJSIP_MSG_CSEQ_HDR(tsx->last_tx);
pj_uint32_t cseq = ++cseq_hdr->cseq;
cseq_hdr = PJSIP_MSG_CSEQ_HDR(tdata->msg);
cseq_hdr->cseq = cseq;
//**** My code
 
 
Rafael Maia
  		 	   		  
_________________________________________________________________
Conhe?a os novos produtos Windows Live! Clique aqui.
http://www.windowslive.com.br
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20090928/b67192d5/attachment.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux