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
2009/9/29 Rafael Maia rmaia_lcm@hotmail.com:
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...
Good catch, I've fixed this in http://trac.pjsip.org/repos/ticket/951#comment:5
Thanks!
Benny
P.S.:
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
Novo Internet Explorer 8: mais r?pido e muito mais seguro. Baixe agora, é
gr?tis!
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org