Not able to control MWI subscription through PJSUA2 via AccountConfig

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In PJSUA2 to create an account the following needs to be done:

1) AccountConfig accCfg; // populate config

2) Account *acc = new Account;

3) acc->create(accCfg)


Account::create is given below:


void Account::create(const AccountConfig &acc_cfg,

                     bool make_default) throw(Error)

{

    pjsua_acc_config pj_acc_cfg;

    

    acc_cfg.toPj(pj_acc_cfg);

    pj_acc_cfg.user_data = (void*)this;

    PJSUA2_CHECK_EXPR( pjsua_acc_add(&pj_acc_cfg, make_default, &id) );

}


The problem Account::toPj does not initialize mwi_enabled parameter, therefore it is not possible to control MWI subscription through PJSUA2 API. The following line should be added to Account::toPj method.


ret.mwi_enabled = mwiConfig.enabled;

BTW, how do one create and open ticket on the PJSIP web site? I could not find a way to do it. 

Regards,
Zarko

_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux