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

Author: Stefan Sayer <[email protected]>
Committer: Stefan Sayer <[email protected]>
Date:   Sun Apr 15 21:06:20 2012 +0200

DSM: add INVITE request in DSM_AVAR_REQUEST on invite event

---

 apps/dsm/DSMCall.cpp |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/apps/dsm/DSMCall.cpp b/apps/dsm/DSMCall.cpp
index ba41da6..edaa9bf 100644
--- a/apps/dsm/DSMCall.cpp
+++ b/apps/dsm/DSMCall.cpp
@@ -99,9 +99,12 @@ void DSMCall::onInvite(const AmSipRequest& req) {
     
   bool run_session_invite = engine.onInvite(req, this);
 
+  avar[DSM_AVAR_REQUEST] = AmArg(sip_req);
+
   DBG("before runEvent(this, this, DSMCondition::Invite);\n");
   AmSipDialog::Status old_st = dlg.getStatus();
   engine.runEvent(this, this, DSMCondition::Invite, NULL);
+  avar.erase(DSM_AVAR_REQUEST);
 
   if ( old_st != dlg.getStatus()
        //checkVar(DSM_CONNECT_SESSION, DSM_CONNECT_SESSION_FALSE)

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

Reply via email to