Skip to content
Snippets Groups Projects
Commit 30fe5778 authored by Alexandre Savard's avatar Alexandre Savard
Browse files

[#3649] Fix codec order initialization

parent 174c963f
No related branches found
No related tags found
No related merge requests found
......@@ -161,7 +161,7 @@ void SIPAccount::serialize(Conf::YamlEmitter *emitter) {
Conf::ScalarNode publishPort(publicportstr.str());
Conf::ScalarNode sameasLocal(_publishedSameasLocal ? "true" : "false");
Conf::ScalarNode resolveOnce(_resolveOnce ? "true" : "false");
Conf::ScalarNode codecs("");
Conf::ScalarNode codecs(_startupCodecStr);
Conf::ScalarNode stunServer(std::string(_stunServerName.ptr, _stunServerName.slen));
Conf::ScalarNode stunEnabled(_stunEnabled ? "true" : "false");
Conf::ScalarNode displayName(_displayName);
......@@ -210,6 +210,7 @@ void SIPAccount::serialize(Conf::YamlEmitter *emitter) {
accountmap.setKeyValue(resolveOnceKey, &resolveOnce);
accountmap.setKeyValue(dtmfTypeKey, &dtmfType);
accountmap.setKeyValue(displayNameKey, &displayName);
accountmap.setKeyValue(codecsKey, &codecs);
accountmap.setKeyValue(srtpKey, &srtpmap);
srtpmap.setKeyValue(srtpEnableKey, &srtpenabled);
......@@ -276,8 +277,7 @@ void SIPAccount::unserialize(Conf::MappingNode *map)
// val = (Conf::ScalarNode *)(map->getValue(mailboxKey));
val = (Conf::ScalarNode *)(map->getValue(codecsKey));
if(val) { val = NULL; }
// _codecOrder = val->getValue();
if(val) { _startupCodecStr = val->getValue(); val = NULL; }
val = (Conf::ScalarNode *)(map->getValue(expireKey));
if(val) { _registrationExpire = val->getValue(); val = NULL; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment