diff --git a/res/res_pjsip.c b/res/res_pjsip.c index 421da8c9d8..68193f0bb7 100644 --- a/res/res_pjsip.c +++ b/res/res_pjsip.c @@ -2285,7 +2285,7 @@ static int create_out_of_dialog_request(const pjsip_method *method, struct ast_s pjsip_tpselector selector = { .type = PJSIP_TPSELECTOR_NONE, }; if (ast_strlen_zero(uri)) { - if (!endpoint && !contact) { + if (!endpoint && (!contact || ast_strlen_zero(contact->uri))) { ast_log(LOG_ERROR, "An endpoint and/or uri must be specified\n"); return -1; }