Ignore:
Timestamp:
Jul 5, 2012 7:26:29 AM (12 years ago)
Author:
nanang
Message:

Fix #1547:

  • Added PJMEDIA_MAX_MRU to specify maximum packet size in receiving direction.
  • Added max_pkt_size into pj_turn_sock_cfg, default is PJ_TURN_MAX_PKT_LEN.
  • Fixed hardcoded MTU settings in media transport SRTP.
  • Added MIN_CHUNKS_PER_FRM constant in video stream.

Notes:

  • PJMEDIA_MAX_MTU & PJMEDIA_MAX_MRU to specify max packet size for TX and RX dir.
  • For ICE media transport, TURN session limits outgoing packet size to PJ_TURN_MAX_PKT_LEN (the size of internal buffer for inserting TURN overheads).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjnath/src/pjnath/turn_sock.c

    r3841 r4197  
    9898{ 
    9999    pj_bzero(cfg, sizeof(*cfg)); 
     100    cfg->max_pkt_size = PJ_TURN_MAX_PKT_LEN; 
    100101    cfg->qos_type = PJ_QOS_TYPE_BEST_EFFORT; 
    101102    cfg->qos_ignore_error = PJ_TRUE; 
     
    475476    /* Kick start pending read operation */ 
    476477    status = pj_activesock_start_read(asock, turn_sock->pool,  
    477                                       PJ_TURN_MAX_PKT_LEN, 0); 
     478                                      turn_sock->setting.max_pkt_size, 0); 
    478479 
    479480    /* Init send_key */ 
Note: See TracChangeset for help on using the changeset viewer.