diff --git a/src/switch_rtp.c b/src/switch_rtp.c
index 3aa2696ae9..f4bcb476e7 100644
--- a/src/switch_rtp.c
+++ b/src/switch_rtp.c
@@ -2674,7 +2674,7 @@ SWITCH_DECLARE(switch_status_t) switch_rtp_create(switch_rtp_t **new_rtp_session
 	}
 
 #ifdef ENABLE_ZRTP
-	if (zrtp_on && !rtp_session->flags[SWITCH_RTP_FLAG_PROXY_MEDIA]) {
+	if (zrtp_on && session && channel && !rtp_session->flags[SWITCH_RTP_FLAG_PROXY_MEDIA]) {
 		switch_rtp_t *master_rtp_session = NULL;
 
 		int initiator = 0;