Author: sayer
Date: 2009-05-19 13:22:47 +0200 (Tue, 19 May 2009)
New Revision: 1387

Modified:
   trunk/core/AmSipDialog.cpp
   trunk/core/AmSipDialog.h
Log:
optionally send headers with BYE (e.g. Reason) patch by Robert Szokovacs

Modified: trunk/core/AmSipDialog.cpp
===================================================================
--- trunk/core/AmSipDialog.cpp  2009-05-15 15:09:59 UTC (rev 1386)
+++ trunk/core/AmSipDialog.cpp  2009-05-19 11:22:47 UTC (rev 1387)
@@ -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())

Modified: trunk/core/AmSipDialog.h
===================================================================
--- trunk/core/AmSipDialog.h    2009-05-15 15:09:59 UTC (rev 1386)
+++ trunk/core/AmSipDialog.h    2009-05-19 11:22:47 UTC (rev 1387)
@@ -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,  

_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to