[Asterisk-code-review] res rtp asterisk: Issue NOTICE if res srtp is not found. (asterisk[master])

Sean Bright asteriskteam at digium.com
Fri May 8 10:50:43 CDT 2015


Sean Bright has uploaded a new change for review.

  https://gerrit.asterisk.org/411

Change subject: res_rtp_asterisk: Issue NOTICE if res_srtp is not found.
......................................................................

res_rtp_asterisk: Issue NOTICE if res_srtp is not found.

While trying to get WebRTC working with chan_pjsip, I was running
into the following error:

    Attempted to set an invalid DTLS-SRTP configuration on RTP
    instance...

Josh helpfully pointed out that res_srtp.so might not be loaded, and
sure enough, it wasn't. This patch adds a NOTICE indiciating as much
to hopefully help others having a similar problem.

Change-Id: I13aa477b47b299876728a21b130998a0ea6cd19f
---
M res/res_rtp_asterisk.c
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/11/411/1

diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c
index 62601dc..9e83817 100644
--- a/res/res_rtp_asterisk.c
+++ b/res/res_rtp_asterisk.c
@@ -1270,6 +1270,7 @@
 	}
 
 	if (!ast_rtp_engine_srtp_is_registered()) {
+		ast_log(LOG_NOTICE, "SRTP support module is not loaded or available. Try loading res_srtp.so.\n");
 		return -1;
 	}
 

-- 
To view, visit https://gerrit.asterisk.org/411
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I13aa477b47b299876728a21b130998a0ea6cd19f
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Owner: Sean Bright <sean.bright at gmail.com>



More information about the asterisk-code-review mailing list