Module: kamailio
Branch: master
Commit: 25fa214154ede1907b20b0bf3d6c8e2ed8055512
URL: 
https://github.com/kamailio/kamailio/commit/25fa214154ede1907b20b0bf3d6c8e2ed8055512

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date: 2025-09-25T12:31:38+02:00

dialog: try sending bye to callee no matter of the return code for caller

- GH #4404

---

Modified: src/modules/dialog/dlg_req_within.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/25fa214154ede1907b20b0bf3d6c8e2ed8055512.diff
Patch: 
https://github.com/kamailio/kamailio/commit/25fa214154ede1907b20b0bf3d6c8e2ed8055512.patch

---

diff --git a/src/modules/dialog/dlg_req_within.c 
b/src/modules/dialog/dlg_req_within.c
index 1e7c71c17f8..e1d4331f1db 100644
--- a/src/modules/dialog/dlg_req_within.c
+++ b/src/modules/dialog/dlg_req_within.c
@@ -872,9 +872,7 @@ int dlg_bye_all(struct dlg_cell *dlg, str *hdrs)
        }
 
        ret = send_bye(dlg, DLG_CALLER_LEG, &all_hdrs, 0);
-       if(ret == 0) {
-               ret |= send_bye(dlg, DLG_CALLEE_LEG, &all_hdrs, 1);
-       }
+       ret |= send_bye(dlg, DLG_CALLEE_LEG, &all_hdrs, 1);
 
        pkg_free(all_hdrs.s);
 

_______________________________________________
Kamailio - Development Mailing List -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to