mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-01-25 02:07:54 +00:00
mod_voicemail: Fix vm_prefs profile lock (MODAPP-417)
This commit is contained in:
@@ -3353,7 +3353,7 @@ SWITCH_STANDARD_API(prefs_api_function)
|
||||
stream->write_function(stream, "-ERR No such profile\n");
|
||||
goto done;
|
||||
}
|
||||
if (!(profile = get_profile("default"))) {
|
||||
if (!profile && !(profile = get_profile("default"))) {
|
||||
stream->write_function(stream, "-ERR profile 'default' doesn't exist\n");
|
||||
goto done;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user