From 49cf8cba3a4f75e80a0cf4f4efb64f10c3d8c260 Mon Sep 17 00:00:00 2001 From: Philipp Hancke Date: Sun, 22 Jun 2014 16:12:56 +0200 Subject: [PATCH] dont call SDPUtil.find_line without the media section --- app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index c7e7a0424..7543c9310 100644 --- a/app.js +++ b/app.js @@ -530,8 +530,8 @@ $(document).bind('setLocalDescription.jingle', function (event, sid) { directions[type] = ( SDPUtil.find_line(media, 'a=sendrecv') || SDPUtil.find_line(media, 'a=recvonly') || - SDPUtil.find_line('a=sendonly') || - SDPUtil.find_line('a=inactive') || + SDPUtil.find_line(media, 'a=sendonly') || + SDPUtil.find_line(media, 'a=inactive') || 'a=sendrecv').substr(2); } });