Changeset 5250 for pjproject


Ignore:
Timestamp:
Mar 3, 2016 6:28:19 AM (9 years ago)
Author:
ming
Message:

Re #1882 (misc): Fixed Rseq to start from 1 (instead of from 0).
According to RFC 3262:
... MUST include an RSeq header field. The value

of the header field for the first reliable provisional response in a
transaction MUST be between 1 and 231 - 1.

Thanks to Marcus Froeschl for the report.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip-ua/sip_100rel.c

    r4936 r5250  
    857857                                             uas_state_t); 
    858858            dd->uas_state->cseq = cseq_hdr->cseq; 
    859             dd->uas_state->rseq = pj_rand() % 0x7FFF; 
     859            dd->uas_state->rseq = (pj_rand() % 0x7FFF) + 1; 
    860860            pj_list_init(&dd->uas_state->tx_data_list); 
    861861            dd->uas_state->retransmit_timer.user_data = dd; 
Note: See TracChangeset for help on using the changeset viewer.