[sr-dev] git:master: dialog: if sending BYE fails at timeout, unref dialog

Daniel-Constantin Mierla miconda at gmail.com
Mon May 12 23:17:53 CEST 2014


Module: sip-router
Branch: master
Commit: e39a90e11bfed2b4445c37db1532488aa9e3e725
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=e39a90e11bfed2b4445c37db1532488aa9e3e725

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Mon May 12 22:54:54 2014 +0200

dialog: if sending BYE fails at timeout, unref dialog

- destroy dialog structures

---

 modules/dialog/dlg_handlers.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/dialog/dlg_handlers.c b/modules/dialog/dlg_handlers.c
index 44bbc12..eebe30b 100644
--- a/modules/dialog/dlg_handlers.c
+++ b/modules/dialog/dlg_handlers.c
@@ -1356,7 +1356,8 @@ void dlg_ontimeout(struct dlg_tl *tl)
 
 		if(dlg->iflags&DLG_IFLAG_TIMEOUTBYE)
 		{
-			dlg_bye_all(dlg, NULL);
+			if(dlg_bye_all(dlg, NULL)<0)
+				dlg_unref(dlg, 1);
 			/* run event route for end of dlg */
 			dlg_run_event_route(dlg, NULL, dlg->state, DLG_STATE_DELETED);
 			dlg_unref(dlg, 1);




More information about the sr-dev mailing list