Hi,
I came across a situation, where I needed to send headers with BYE, so I added
this modification:
--- AmSipDialog.h (revision 145)
+++ AmSipDialog.h (working copy)
@@ -167,7 +167,7 @@
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,
--- AmSipDialog.cpp (revision 145)
+++ AmSipDialog.cpp (working copy)
@@ -360,13 +360,13 @@
}
-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())
If you think it would be useful to have it in the general release, please
apply the patch.
br
Szo
_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev