Skip to content

Commit

Permalink
add siprecUse in readObject and writeObject
Browse files Browse the repository at this point in the history
  • Loading branch information
sorooshm78 committed Dec 24, 2024
1 parent 5014838 commit 81a10de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions pjsip/include/pjsua2/account.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{}
Expand Down
2 changes: 2 additions & 0 deletions pjsip/src/pjsua2/account.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand All @@ -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);
}
Expand Down

0 comments on commit 81a10de

Please sign in to comment.