diff options
author | Sean Bright <sean@malleable.com> | 2015-05-08 15:39:42 +0000 |
---|---|---|
committer | Sean Bright <sean.bright@gmail.com> | 2015-05-08 13:32:53 -0500 |
commit | 613a461c3dd7a51ec0673c3c925d3fa0129e4765 (patch) | |
tree | 33a5d022995473bb1b7b2ede225bd29a181dffe7 | |
parent | 394fcb5eab5b1be1a346746c69a29d700ad91494 (diff) |
res_rtp_asterisk: Issue ERROR 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 ERROR indiciating as much
to hopefully help others having a similar problem.
Change-Id: I13aa477b47b299876728a21b130998a0ea6cd19f
-rw-r--r-- | res/res_rtp_asterisk.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c index 6df8a6e17..ed7dde01d 100644 --- a/res/res_rtp_asterisk.c +++ b/res/res_rtp_asterisk.c @@ -1270,6 +1270,7 @@ static int ast_rtp_dtls_set_configuration(struct ast_rtp_instance *instance, con } if (!ast_rtp_engine_srtp_is_registered()) { + ast_log(LOG_ERROR, "SRTP support module is not loaded or available. Try loading res_srtp.so.\n"); return -1; } |