diff --git a/pjsip/include/pjsua2/account.hpp b/pjsip/include/pjsua2/account.hpp index 4468233fc9..c7eb021703 100644 --- a/pjsip/include/pjsua2/account.hpp +++ b/pjsip/include/pjsua2/account.hpp @@ -371,6 +371,7 @@ struct AccountCallConfig : public PersistentObject AccountCallConfig() : holdType(PJSUA_CALL_HOLD_TYPE_DEFAULT), prackUse(PJSUA_100REL_NOT_USED), timerUse(PJSUA_SIP_TIMER_OPTIONAL), + siprecUse(PJSUA_SIP_SIPREC_INACTIVE), timerMinSESec(90), timerSessExpiresSec(PJSIP_SESS_TIMER_DEF_SE) {} diff --git a/pjsip/src/pjsua2/account.cpp b/pjsip/src/pjsua2/account.cpp index 04744995c4..8968e1ee0a 100644 --- a/pjsip/src/pjsua2/account.cpp +++ b/pjsip/src/pjsua2/account.cpp @@ -320,6 +320,7 @@ void AccountCallConfig::readObject(const ContainerNode &node) NODE_READ_NUM_T ( this_node, pjsua_call_hold_type, holdType); NODE_READ_NUM_T ( this_node, pjsua_100rel_use, prackUse); NODE_READ_NUM_T ( this_node, pjsua_sip_timer_use, timerUse); + NODE_READ_NUM_T ( this_node, pjsua_sip_siprec_use, siprecUse); NODE_READ_UNSIGNED( this_node, timerMinSESec); NODE_READ_UNSIGNED( this_node, timerSessExpiresSec); } @@ -332,6 +333,7 @@ void AccountCallConfig::writeObject(ContainerNode &node) const NODE_WRITE_NUM_T ( this_node, pjsua_call_hold_type, holdType); NODE_WRITE_NUM_T ( this_node, pjsua_100rel_use, prackUse); NODE_WRITE_NUM_T ( this_node, pjsua_sip_timer_use, timerUse); + NODE_WRITE_NUM_T ( this_node, pjsua_sip_siprec_use, siprecUse); NODE_WRITE_UNSIGNED( this_node, timerMinSESec); NODE_WRITE_UNSIGNED( this_node, timerSessExpiresSec); }