diff --git a/res/res_pjsip.c b/res/res_pjsip.c
index bd8418152bbf89b14a7990c7d9d5706310b90c3c..a74f23268cb976cc91419d27af7352746c902776 100644
--- a/res/res_pjsip.c
+++ b/res/res_pjsip.c
@@ -1629,7 +1629,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) {
+		if (!endpoint && !contact) {
 			ast_log(LOG_ERROR, "An endpoint and/or uri must be specified\n");
 			return -1;
 		}