Ignore:
Timestamp:
Jan 13, 2007 11:22:40 PM (17 years ago)
Author:
bennylp
Message:

More work on ticket #50: binding of PJSUA-API account to specific transport, and minor fixes in PJSIP core implementation. Tested okay.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_pres.c

    r734 r881  
    502502    } 
    503503 
     504    /* If account is locked to specific transport, then lock dialog 
     505     * to this transport too. 
     506     */ 
     507    if (acc->cfg.transport_id != PJSUA_INVALID_ID) { 
     508        pjsip_tpselector tp_sel; 
     509 
     510        pjsua_init_tpselector(acc->cfg.transport_id, &tp_sel); 
     511        pjsip_dlg_set_transport(dlg, &tp_sel); 
     512    } 
     513 
    504514    /* Attach our data to the subscription: */ 
    505515    uapres = pj_pool_alloc(dlg->pool, sizeof(pjsua_srv_pres)); 
     
    989999    } 
    9901000 
     1001    /* If account is locked to specific transport, then lock dialog 
     1002     * to this transport too. 
     1003     */ 
     1004    if (acc->cfg.transport_id != PJSUA_INVALID_ID) { 
     1005        pjsip_tpselector tp_sel; 
     1006 
     1007        pjsua_init_tpselector(acc->cfg.transport_id, &tp_sel); 
     1008        pjsip_dlg_set_transport(dlg, &tp_sel); 
     1009    } 
     1010 
    9911011    /* Set route-set */ 
    9921012    if (!pj_list_empty(&acc->route_set)) { 
Note: See TracChangeset for help on using the changeset viewer.