Ignore:
Timestamp:
Aug 6, 2013 8:02:24 AM (11 years ago)
Author:
bennylp
Message:

Fixed #1693: Pay attention to reg_hdr_list and sub_hdr_list in pjsua_acc_modify(), and also fixed pjsua_acc_get_config()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app_cli.c

    r4537 r4580  
    21092109{ 
    21102110    pjsua_acc_config acc_cfg; 
     2111    pj_pool_t *pool = pjsua_pool_create("tmp-pjsua", 1000, 1000); 
    21112112     
    2112     pjsua_acc_get_config(current_acc, &acc_cfg); 
     2113    pjsua_acc_get_config(current_acc, pool, &acc_cfg); 
    21132114    app_config_show_video(current_acc, &acc_cfg); 
     2115    pj_pool_release(pool); 
    21142116    return PJ_SUCCESS; 
    21152117} 
     
    21192121    pjsua_acc_config acc_cfg; 
    21202122    pj_cli_cmd_id cmd_id = pj_cli_get_cmd_id(cval->cmd); 
     2123    pj_pool_t *pool = pjsua_pool_create("tmp-pjsua", 1000, 1000); 
    21212124 
    21222125    CHECK_PJSUA_RUNNING(); 
    21232126 
    2124     pjsua_acc_get_config(current_acc, &acc_cfg); 
     2127    pjsua_acc_get_config(current_acc, pool, &acc_cfg); 
    21252128 
    21262129    switch(cmd_id) { 
     
    21492152    } 
    21502153    modify_video_account(&acc_cfg); 
     2154    pj_pool_release(pool); 
    21512155    return PJ_SUCCESS; 
    21522156} 
Note: See TracChangeset for help on using the changeset viewer.