Module: sems Branch: peterlemenkov/1.2.x-fedora Commit: fbda32c65743e9e71f4b324c7a0198ca8327a623 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=fbda32c65743e9e71f4b324c7a0198ca8327a623
Author: Stefan Sayer <[email protected]> Committer: Peter Lemenkov <[email protected]> Date: Thu Sep 16 17:22:43 2010 +0200 b/f: send autheticated BYE with To-tag closes https://bugtracker.iptel.org/view.php?id=44 Summary: authenticated BYE does not work (to-tag missing) Description: When authentication is requested by a proxy for a BYE request sent by SEMS, the second BYE request (with authentication info) does not contain a to-tag. This causes the proxy to reject the request with a 481 reply. Thanks to <samusenko at msm dot ru> for reporting this bug. backport of ee229de02 --- core/plug-in/uac_auth/UACAuth.cpp | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/core/plug-in/uac_auth/UACAuth.cpp b/core/plug-in/uac_auth/UACAuth.cpp index 9870bcf..a692b73 100644 --- a/core/plug-in/uac_auth/UACAuth.cpp +++ b/core/plug-in/uac_auth/UACAuth.cpp @@ -155,7 +155,8 @@ bool UACAuth::onSipReply(const AmSipReply& reply) // stripHeader(ri->second.hdrs, "Proxy-Authorization")); hdrs += result; - if (dlg->getStatus() < AmSipDialog::Connected) { + if ((dlg->getStatus() < AmSipDialog::Connected) && + (ri->second.method != "BYE")) { // reset remote tag so remote party // thinks its new dlg dlg->remote_tag = ""; _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
