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-ua/sip_regc.h

    r843 r879  
    2727#include <pjsip/sip_types.h> 
    2828#include <pjsip/sip_auth.h> 
     29#include <pjsip/sip_transport.h> 
    2930 
    3031 
     
    199200                                              const pjsip_route_hdr*route_set); 
    200201 
     202 
     203/** 
     204 * Lock/bind client registration to a specific transport/listener.  
     205 * This is optional, as normally transport will be selected automatically 
     206 * based on the destination of requests upon resolver completion.  
     207 * When the client registration is explicitly bound to the specific  
     208 * transport/listener, all UAC transactions originated by the client 
     209 * registration will use the specified transport/listener when sending  
     210 * outgoing requests. 
     211 * 
     212 * Note that this doesn't affect the Contact header set for this client 
     213 * registration. Application must manually update the Contact header if 
     214 * necessary, to adjust the address according to the transport being 
     215 * selected. 
     216 * 
     217 * @param regc      The client registration instance. 
     218 * @param sel       Transport selector containing the specification of 
     219 *                  transport or listener to be used by this session 
     220 *                  to send requests. 
     221 * 
     222 * @return          PJ_SUCCESS on success, or the appropriate error code. 
     223 */ 
     224PJ_DECL(pj_status_t) pjsip_regc_set_transport(pjsip_regc *regc, 
     225                                              const pjsip_tpselector *sel); 
     226 
     227 
    201228/** 
    202229 * Add headers to be added to outgoing REGISTER requests. 
Note: See TracChangeset for help on using the changeset viewer.