diff --git a/channels/chan_sip.c b/channels/chan_sip.c index b41f70ca61..ec79ce4e3a 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -5435,7 +5435,7 @@ static int sip_call(struct ast_channel *ast, char *dest, int timeout) return -1; } - if (p->trtp && !p->vsrtp && setup_srtp(&p->tsrtp) < 0) { + if (p->trtp && !p->tsrtp && setup_srtp(&p->tsrtp) < 0) { ast_log(LOG_WARNING, "SRTP text setup failed\n"); return -1; }