Merged revisions 324491 via svnmerge from
authorRichard Mudgett <rmudgett@digium.com>
Wed, 22 Jun 2011 19:17:56 +0000 (19:17 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Wed, 22 Jun 2011 19:17:56 +0000 (19:17 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r324491 | rmudgett | 2011-06-22 14:16:29 -0500 (Wed, 22 Jun 2011) | 1 line

  Use correct variable for text SRTP media.
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@324495 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 83d74c4..e4dadc3 100644 (file)
@@ -5475,7 +5475,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;
                }