via: 88d410d31485d13911f0958af5a73f1f6f49a454 (commit)
from: 02234ae87db5fcca0168a140b5800618de65d3d9 (commit)
= COMMIT LOG ===========================================================
committer: Anthony Minessale
comments:
fix uuid_jitterbuffer edge case debugging a non-existant jb causing a seg
diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c
index 2a2ec63..07c285f 100644
--- a/src/mod/endpoints/mod_sofia/mod_sofia.c
+++ b/src/mod/endpoints/mod_sofia/mod_sofia.c
@@ -1366,7 +1366,7 @@ static switch_status_t sofia_receive_message(switch_core_session_t *session, swi
if (s && !strcmp(s, "off")) {
s = NULL;
}
- switch_rtp_debug_jitter_buffer(tech_pvt->rtp_session, s);
+ status = switch_rtp_debug_jitter_buffer(tech_pvt->rtp_session, s);
goto end;
}
diff --git a/src/switch_rtp.c b/src/switch_rtp.c
index 4df867a..200f4f0 100644
--- a/src/switch_rtp.c
+++ b/src/switch_rtp.c
@@ -1875,7 +1875,7 @@ static void jb_logger(const char *file, const char *func, int line, int level, c
SWITCH_DECLARE(switch_status_t) switch_rtp_debug_jitter_buffer(switch_rtp_t *rtp_session, const char *name)
{
- if (!switch_rtp_ready(rtp_session)) {
+ if (!switch_rtp_ready(rtp_session) || !rtp_session->jb) {
return SWITCH_STATUS_FALSE;
}
Summary of changes: src/mod/endpoints/mod_sofia/mod_sofia.c | 2 +- src/switch_rtp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
this email was generated because of /git/your-repo.git/hooks/post-receive by the file /git-core/contrib/hooks/post-receive-email
For more info, see http://blog.chomperstomp.com/?p=630
--
FreeSWITCH Source