Changeset 219 for pjproject/trunk
- Timestamp:
- Feb 22, 2006 10:18:58 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip-ua/sip_reg.c
r201 r219 31 31 #include <pj/pool.h> 32 32 #include <pj/log.h> 33 #include <pj/rand.h> 33 34 #include <pj/string.h> 34 35 … … 267 268 /* Set "CSeq" header. */ 268 269 regc->cseq_hdr = pjsip_cseq_hdr_create(regc->pool); 269 regc->cseq_hdr->cseq = 0;270 regc->cseq_hdr->cseq = pj_rand() % 0xFFFF; 270 271 pjsip_method_set( ®c->cseq_hdr->method, PJSIP_REGISTER_METHOD); 271 272 … … 592 593 { 593 594 pj_status_t status; 595 pjsip_cseq_hdr *cseq_hdr; 596 pj_uint32_t cseq; 594 597 595 598 /* Make sure we don't have pending transaction. */ … … 603 606 604 607 /* Increment CSeq */ 605 regc->cseq_hdr->cseq++; 608 cseq = ++regc->cseq_hdr->cseq; 609 cseq_hdr = pjsip_msg_find_hdr(tdata->msg, PJSIP_H_CSEQ, NULL); 610 cseq_hdr->cseq = cseq; 606 611 607 612 /* Send. */
Note: See TracChangeset
for help on using the changeset viewer.