diff options
Diffstat (limited to 'res/res_pjsip_path.c')
-rw-r--r-- | res/res_pjsip_path.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/res/res_pjsip_path.c b/res/res_pjsip_path.c index 03cbe5076..2dde7323e 100644 --- a/res/res_pjsip_path.c +++ b/res/res_pjsip_path.c @@ -53,9 +53,13 @@ static struct ast_sip_aor *find_aor(struct ast_sip_endpoint *endpoint, pjsip_uri configured_aors = ast_strdupa(endpoint->aors); /* Iterate the configured AORs to see if the user or the user+domain match */ - while ((aor_name = strsep(&configured_aors, ","))) { + while ((aor_name = ast_strip(strsep(&configured_aors, ",")))) { struct ast_sip_domain_alias *alias = NULL; + if (ast_strlen_zero(aor_name)) { + continue; + } + if (!pj_strcmp2(&sip_uri->user, aor_name)) { break; } |