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…
Reference in New Issue