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_dialog.h

    r729 r879  
    2929#include <pjsip/sip_auth.h> 
    3030#include <pjsip/sip_errno.h> 
     31#include <pjsip/sip_transport.h> 
    3132#include <pj/sock.h> 
    3233#include <pj/assert.h> 
     
    135136    int                 tsx_count;  /**< Number of pending transactions.    */ 
    136137 
     138    /** Transport selector. */ 
     139    pjsip_tpselector    tp_sel; 
     140 
    137141    /* Dialog usages. */ 
    138142    unsigned            usage_cnt;  /**< Number of registered usages.       */ 
     
    225229 
    226230/** 
     231 * Lock/bind dialog to a specific transport/listener. This is optional, 
     232 * as normally transport will be selected automatically based on the  
     233 * destination of requests upon resolver completion. When the dialog is  
     234 * explicitly bound to the specific transport/listener, all UAC transactions 
     235 * originated by this dialog will use the specified transport/listener 
     236 * when sending outgoing requests. 
     237 * 
     238 * Note that this doesn't affect the Contact header generated by this 
     239 * dialog. Application must manually update the Contact header if 
     240 * necessary, to adjust the address according to the transport being 
     241 * selected. 
     242 * 
     243 * @param dlg       The dialog instance. 
     244 * @param sel       Transport selector containing the specification of 
     245 *                  transport or listener to be used by this dialog 
     246 *                  to send requests. 
     247 * 
     248 * @return          PJ_SUCCESS on success, or the appropriate error code. 
     249 */ 
     250PJ_DECL(pj_status_t) pjsip_dlg_set_transport(pjsip_dialog *dlg, 
     251                                             const pjsip_tpselector *sel); 
     252 
     253 
     254/** 
    227255 * Create a new (forked) dialog on receipt on forked response in rdata.  
    228256 * The new dialog will be created from original_dlg, except that it will have 
Note: See TracChangeset for help on using the changeset viewer.