Author: sayer
Date: 2009-04-01 00:38:18 +0200 (Wed, 01 Apr 2009)
New Revision: 1347

Modified:
   trunk/apps/dsm/DSMCoreModule.cpp
   trunk/apps/dsm/DSMCoreModule.h
   trunk/apps/dsm/doc/dsm_syntax.txt
Log:
function to send reinvite to re-connect caller leg

Modified: trunk/apps/dsm/DSMCoreModule.cpp
===================================================================
--- trunk/apps/dsm/DSMCoreModule.cpp    2009-03-31 11:22:24 UTC (rev 1346)
+++ trunk/apps/dsm/DSMCoreModule.cpp    2009-03-31 22:38:18 UTC (rev 1347)
@@ -90,6 +90,7 @@
 
   DEF_CMD("B2B.connectCallee", SCB2BConnectCalleeAction);
   DEF_CMD("B2B.terminateOtherLeg", SCB2BTerminateOtherLegAction);
+  DEF_CMD("B2B.sendReinvite", SCB2BReinviteAction);
 
   ERROR("could not find action named '%s'\n", cmd.c_str());
   return NULL;
@@ -642,3 +643,9 @@
 EXEC_ACTION_START(SCB2BTerminateOtherLegAction) {
   sc_sess->B2BterminateOtherLeg();
 } EXEC_ACTION_END;
+
+CONST_ACTION_2P(SCB2BReinviteAction,',', true);
+EXEC_ACTION_START(SCB2BReinviteAction) {
+  bool updateSDP = par1=="true";
+  sess->sendReinvite(updateSDP, par2);
+} EXEC_ACTION_END;

Modified: trunk/apps/dsm/DSMCoreModule.h
===================================================================
--- trunk/apps/dsm/DSMCoreModule.h      2009-03-31 11:22:24 UTC (rev 1346)
+++ trunk/apps/dsm/DSMCoreModule.h      2009-03-31 22:38:18 UTC (rev 1347)
@@ -84,6 +84,7 @@
 
 DEF_ACTION_2P(SCB2BConnectCalleeAction);
 DEF_ACTION_1P(SCB2BTerminateOtherLegAction);
+DEF_ACTION_2P(SCB2BReinviteAction);
 
 class SCDIAction                                       
 : public DSMAction {

Modified: trunk/apps/dsm/doc/dsm_syntax.txt
===================================================================
--- trunk/apps/dsm/doc/dsm_syntax.txt   2009-03-31 11:22:24 UTC (rev 1346)
+++ trunk/apps/dsm/doc/dsm_syntax.txt   2009-03-31 22:38:18 UTC (rev 1347)
@@ -68,6 +68,12 @@
  B2B.terminateOtherLeg
    disconnect second leg of B2B session (see AmB2BSession)
 
+ B2B.sendReinvite(generate_sdp [, string extra_headers])
+   send a reinvite in caller leg (first leg), e.g. to 
+   reconnect first leg after B2B.otherBye received. 
+   generate_sdp can be 'true' or 'false'
+   (B2B.sendReinvite(true) recommended)
+
  setPrompts(name) 
    if more than one prompt sets are loaded
 

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

Reply via email to