diff --git a/core/AmSipDialog.cpp b/core/AmSipDialog.cpp index 659aefed..6be5f49b 100644 --- a/core/AmSipDialog.cpp +++ b/core/AmSipDialog.cpp @@ -360,13 +360,13 @@ int AmSipDialog::reply_error(const AmSipRequest& req, unsigned int code, } -int AmSipDialog::bye() +int AmSipDialog::bye(const string& hdrs) { switch(status){ case Disconnecting: case Connected: status = Disconnected; - return sendRequest("BYE"); + return sendRequest("BYE", "", "", hdrs); case Pending: status = Disconnecting; if(getUACTransPending()) diff --git a/core/AmSipDialog.h b/core/AmSipDialog.h index ca3bec84..29f34438 100644 --- a/core/AmSipDialog.h +++ b/core/AmSipDialog.h @@ -167,7 +167,7 @@ class AmSipDialog const string& hdrs = "", int flags = 0); - int bye(); + int bye(const string& hdrs = ""); int cancel(); int update(const string& hdrs); int reinvite(const string& hdrs,