Changeset 1481


Ignore:
Timestamp:
Oct 6, 2007 5:26:33 PM (17 years ago)
Author:
bennylp
Message:

Changed RTP initial sequence number to be within 15bit number, as required by RFC 3711 (SRTP)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/rtp.c

    r1468 r1481  
    6464 
    6565    /* Initial sequence number SHOULD be random, according to RFC 3550. */ 
    66     ses->out_extseq = pj_rand(); 
     66    /* According to RFC 3711, it should be random within 2^15 bit */ 
     67    ses->out_extseq = pj_rand() & 0x7FFF; 
    6768    ses->peer_ssrc = 0; 
    6869     
Note: See TracChangeset for help on using the changeset viewer.