Ignore:
Timestamp:
Apr 13, 2009 8:54:10 AM (16 years ago)
Author:
bennylp
Message:

Ticket #780: Update TURN from draft 09 to draft 13:

  • new rules for permissions:
    • permission must be created and refreshed explicitly with CreatePermission?
    • transmitting data does not refresh permission
  • attributes changed/added: XOR-PEER-ADDRESS, XOR-RELAYED-ADDRESS, EVEN-PORT, DONT-FRAGMENT
  • attribute(s) removed: REQUESTED-PROPS
  • new status codes: 401 (Forbidden), 507 (Insufficient Capacity)
  • removed status codes: 443 (Invalid IP address), 444 (Invalid Port), 508 (Insufficient Port Capacity)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjnath/include/pjnath/turn_session.h

    r2394 r2589  
    435435PJ_DECL(void) pj_turn_session_set_log(pj_turn_session *sess, 
    436436                                      unsigned flags); 
     437 
     438 
     439/** 
     440 * Configure the SOFTWARE name to be sent in all STUN requests by the 
     441 * TURN session. 
     442 * 
     443 * @param sess      The TURN client session. 
     444 * @param sw        Software name string. If this argument is NULL or 
     445 *                  empty, the session will not include SOFTWARE attribute 
     446 *                  in STUN requests and responses. 
     447 * 
     448 * @return          PJ_SUCCESS on success, or the appropriate error code. 
     449 */ 
     450PJ_DECL(pj_status_t) pj_turn_session_set_software_name(pj_turn_session *sess, 
     451                                                       const pj_str_t *sw); 
    437452 
    438453 
     
    520535 
    521536/** 
     537 * Create or renew permission in the TURN server for the specified peer IP 
     538 * addresses. Application must install permission for a particular (peer) 
     539 * IP address before it sends any data to that IP address, or otherwise 
     540 * the TURN server will drop the data. 
     541 * 
     542 * @param sess          The TURN client session. 
     543 * @param addr_cnt      Number of IP addresses. 
     544 * @param addr          Array of peer IP addresses. Only the address family 
     545 *                      and IP address portion of the socket address matter. 
     546 * @param options       Specify 1 to let the TURN client session automatically 
     547 *                      renew the permission later when they are about to 
     548 *                      expire. 
     549 * 
     550 * @return              PJ_SUCCESS if the operation has been successfully 
     551 *                      issued, or the appropriate error code. Note that 
     552 *                      the operation itself will complete asynchronously. 
     553 */ 
     554PJ_DECL(pj_status_t) pj_turn_session_set_perm(pj_turn_session *sess, 
     555                                              unsigned addr_cnt, 
     556                                              const pj_sockaddr addr[], 
     557                                              unsigned options); 
     558 
     559 
     560/** 
    522561 * Send a data to the specified peer address via the TURN relay. This  
    523562 * function will encapsulate the data as STUN Send Indication or TURN 
Note: See TracChangeset for help on using the changeset viewer.