mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-14 08:05:37 +00:00
mod_voicemail: Fix vm_prefs profile lock (MODAPP-417)
This commit is contained in:
parent
b4233082fa
commit
0f29f46172
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user