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

Author: Stefan Sayer <[email protected]>
Committer: Stefan Sayer <[email protected]>
Date:   Sun Mar 24 19:15:58 2013 +0800

dsm:b2b: set b2b 2nd leg Call-ID with $b2b_callid

---

 apps/dsm/DSMCall.cpp   |    6 ++++--
 apps/dsm/DSMSession.h  |    2 ++
 doc/dsm/dsm_syntax.txt |    1 +
 3 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/apps/dsm/DSMCall.cpp b/apps/dsm/DSMCall.cpp
index d8b28ed..d385624 100644
--- a/apps/dsm/DSMCall.cpp
+++ b/apps/dsm/DSMCall.cpp
@@ -829,9 +829,11 @@ AmB2BCalleeSession* DSMCall::newCalleeSession() {
       s->setAuthHandler(h);
       DBG("uac auth enabled for DSM callee session.\n");
     }
- }
+  }
+
+  s->dlg->setCallid(getVar(DSM_B2B_CALLID));
 
- return s;
+  return s;
 }
 
 void DSMCall::B2BaddReceivedRequest(const AmSipRequest& req) {
diff --git a/apps/dsm/DSMSession.h b/apps/dsm/DSMSession.h
index f9f0f98..f542821 100644
--- a/apps/dsm/DSMSession.h
+++ b/apps/dsm/DSMSession.h
@@ -64,6 +64,8 @@ using std::map;
 #define DSM_B2B_AUTH_USER    "b2b_auth_user"
 #define DSM_B2B_AUTH_PWD     "b2b_auth_pwd"
 
+#define DSM_B2B_CALLID       "b2b_callid"
+
 #define DSM_AVAR_REQUEST "request"
 #define DSM_AVAR_REPLY   "reply"
 
diff --git a/doc/dsm/dsm_syntax.txt b/doc/dsm/dsm_syntax.txt
index c1e4967..b86908b 100644
--- a/doc/dsm/dsm_syntax.txt
+++ b/doc/dsm/dsm_syntax.txt
@@ -188,6 +188,7 @@ B2B call control
     To = remote_party 
     From = $b2b_local_party
     auth = ($b2b_auth_user, $b2b_auth_pwd)
+    Call-ID = $b2b_callid
     $b2b_relayed_invite=[true|false] : use relayed INVITE mode
 
  B2B.terminateOtherLeg

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

Reply via email to