Module: sip-router
Branch: richard.good/diameter_rx_media
Commit: 05040db1c74f9dd5270441739001ec4e973fedc2
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=05040db…
Author: Richard Good <richard.good(a)smilecoms.com>
Committer: Richard Good <richard.good(a)smilecoms.com>
Date: Wed Mar 20 09:48:41 2013 +0200
ims_qos: Terminate dialog on CDP timeout events
- On ims_qos calling the dialog is terminated if a CDP terminate event is received. This
fix now also terminates the dialog if the CDP timeout event is received.
---
modules/ims_qos/cdpeventprocessor.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/modules/ims_qos/cdpeventprocessor.c b/modules/ims_qos/cdpeventprocessor.c
index 3a70ba2..c3ea661 100644
--- a/modules/ims_qos/cdpeventprocessor.c
+++ b/modules/ims_qos/cdpeventprocessor.c
@@ -217,6 +217,13 @@ void cdp_cb_event_process() {
p_session_data->registration_aor.len,
p_session_data->registration_aor.s,
p_session_data->domain.len, p_session_data->domain.s);
LM_DBG("This is a media bearer session session");
+ LM_DBG("Terminating dialog with callid, ftag, ttag: [%.*s],
[%.*s], [%.*s]\n",
+ p_session_data->callid.len, p_session_data->callid.s,
+ p_session_data->ftag.len, p_session_data->ftag.s,
+ p_session_data->ttag.len, p_session_data->ttag.s);
+ dlgb.terminate_dlg(&p_session_data->callid,
+ &p_session_data->ftag, &p_session_data->ttag,
NULL,
+ &release_reason);
}
break;