mirror of
https://github.com/asterisk/asterisk.git
synced 2026-01-21 17:12:24 +00:00
Merge "res_pjsip_mwi: Fix segv caused by 16c7d8e74a9af13f98c3c22aa9c43ce39965f6b7" into 13
This commit is contained in:
@@ -459,7 +459,8 @@ static struct ast_sip_aor *find_aor_for_resource(struct ast_sip_endpoint *endpoi
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!strcasecmp(check_aor->voicemail_extension, resource)) {
|
||||
if (!ast_strlen_zero(check_aor->voicemail_extension)
|
||||
&& !strcasecmp(check_aor->voicemail_extension, resource)) {
|
||||
ast_debug(1, "Found an aor (%s) that matches voicemail_extension %s\n", aor_name, resource);
|
||||
return check_aor;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user