Ignore:
Timestamp:
Jan 12, 2007 6:37:35 AM (17 years ago)
Author:
bennylp
Message:

Workaround for ticket #50: added API to lock/bind transaction, dialog, and regc to a specific transport/listener

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsip/sip_transaction.h

    r622 r879  
    2727#include <pjsip/sip_msg.h> 
    2828#include <pjsip/sip_util.h> 
     29#include <pjsip/sip_transport.h> 
    2930#include <pj/timer.h> 
    3031 
     
    9798    pj_uint32_t                 hashed_key;     /**< Key's hashed value.    */ 
    9899    pj_str_t                    branch;         /**< The branch Id.         */ 
     100    pjsip_tpselector            tp_sel;         /**< Transport selector.    */ 
    99101 
    100102    /* 
     
    215217 
    216218/** 
     219 * Lock/bind transaction to a specific transport/listener. This is optional, 
     220 * as normally transport will be selected automatically based on the  
     221 * destination of the request upon resolver completion. Also it's only valid 
     222 * for UAC transaction (to send outgoing request), since for UAS the 
     223 * transport will be selected according to rules about handling incoming 
     224 * request (most likely it will use the transport where the request is 
     225 * coming from if ";rport" parameter is present in Via header). 
     226 * 
     227 * @param tsx       The UAC transaction. 
     228 * @param sel       Transport selector containing the specification of 
     229 *                  transport or listener to be used by this transaction 
     230 *                  to send requests. 
     231 * 
     232 * @return          PJ_SUCCESS on success, or the appropriate error code. 
     233 */ 
     234PJ_DECL(pj_status_t) pjsip_tsx_set_transport(pjsip_transaction *tsx, 
     235                                             const pjsip_tpselector *sel); 
     236 
     237 
     238/** 
    217239 * Call this function to manually feed a message to the transaction. 
    218240 * For UAS transaction, application MUST call this function after 
Note: See TracChangeset for help on using the changeset viewer.