Module: sems
Branch: master
Commit: 37747e09e4da133d7856e606cdd7be5acc3e4d96
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=37747e09e4da133d7856e606cdd7be5acc3e4d96

Author: Stefan Sayer <[email protected]>
Committer: Stefan Sayer <[email protected]>
Date:   Thu Apr 19 18:13:36 2012 +0200

core: subscription: sendReqeust using 'SUBSCRIBE' directly

Conflicts:

        core/AmSipSubscription.cpp

---

 core/AmSipSubscription.cpp |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/core/AmSipSubscription.cpp b/core/AmSipSubscription.cpp
index d05b99d..81af763 100644
--- a/core/AmSipSubscription.cpp
+++ b/core/AmSipSubscription.cpp
@@ -125,7 +125,7 @@ bool AmSipSubscription::doSubscribe()
     dlg.outbound_proxy = AmConfig::OutboundProxy;
   }
 
-  if (dlg.sendRequest(req.method, NULL, getSubscribeHdrs()) < 0) {
+  if (dlg.sendRequest(SIP_METH_SUBSCRIBE, NULL, getSubscribeHdrs()) < 0) {
     WARN("failed to send subscription to '%s' (proxy '%s').\n",
         dlg.remote_uri.c_str(), dlg.outbound_proxy.c_str());
     return false;
@@ -145,7 +145,7 @@ bool AmSipSubscription::doSubscribe()
 
 bool AmSipSubscription::reSubscribe() 
 {
-  if (dlg.sendRequest(req.method, NULL, getSubscribeHdrs()) < 0) {
+  if (dlg.sendRequest(SIP_METH_SUBSCRIBE, NULL, getSubscribeHdrs()) < 0) {
     WARN("failed to send subscription to '%s' (proxy '%s').\n",
         dlg.remote_uri.c_str(), dlg.outbound_proxy.c_str());
     return false;
@@ -183,7 +183,7 @@ bool AmSipSubscription::doUnsubscribe()
   }
   hdrs += SIP_HDR_COLSP(SIP_HDR_EXPIRES) "0" CRLF;
 
-  if (dlg.sendRequest(req.method, NULL, hdrs) < 0) {
+  if (dlg.sendRequest(SIP_METH_SUBSCRIBE, NULL, hdrs) < 0) {
     WARN("failed to send unsubscription to '%s' (proxy '%s').\n",
         dlg.remote_uri.c_str(), dlg.outbound_proxy.c_str());
     return false;

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

Reply via email to