Module: sems Branch: master Commit: 7f6e426f2ab9d0c362ec02ed48fb972d111bdc33 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=7f6e426f2ab9d0c362ec02ed48fb972d111bdc33
Author: Stefan Sayer <[email protected]> Committer: Stefan Sayer <[email protected]> Date: Thu Jan 5 17:21:20 2012 +0100 b/f: DSM: fix DSM examples for B2BUA and end-to-end BYE --- doc/dsm/dsm_syntax.txt | 5 ++++- .../b2b_connect_extension/connect_extension.dsm | 2 +- doc/dsm/examples/test_b2b.dsm | 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/doc/dsm/dsm_syntax.txt b/doc/dsm/dsm_syntax.txt index c827fe9..a92d195 100644 --- a/doc/dsm/dsm_syntax.txt +++ b/doc/dsm/dsm_syntax.txt @@ -171,7 +171,10 @@ B2B call control connect second leg of B2B session (see AmB2BSession) B2B.terminateOtherLeg - disconnect second leg of B2B session (see AmB2BSession) + disconnect second leg of B2B session (see AmB2BSession), + e.g. to connect to a new destination + note: don't use this when receiving BYE in an established + B2BUA call, as the BYE is sent end-to-end B2B.sendReinvite(generate_sdp [, string extra_headers]) send a reinvite in caller leg (first leg), e.g. to diff --git a/doc/dsm/examples/b2b_connect_extension/connect_extension.dsm b/doc/dsm/examples/b2b_connect_extension/connect_extension.dsm index 844ab78..567f004 100644 --- a/doc/dsm/examples/b2b_connect_extension/connect_extension.dsm +++ b/doc/dsm/examples/b2b_connect_extension/connect_extension.dsm @@ -122,7 +122,7 @@ transition "negative reply" CONNECTING - B2B.otherReply() / { } -> COLLECTING; state CONNECTED; -transition "bye recvd" CONNECTED - hangup / B2B.terminateOtherLeg(); stop(false) -> END; +transition "bye recvd" CONNECTED - hangup / stop(false) -> END; transition "bye on other leg" CONNECTED - B2B.otherBye() / stop(true) -> END; state PLAY_AND_BYE; diff --git a/doc/dsm/examples/test_b2b.dsm b/doc/dsm/examples/test_b2b.dsm index 0cfe093..ba781df 100644 --- a/doc/dsm/examples/test_b2b.dsm +++ b/doc/dsm/examples/test_b2b.dsm @@ -45,7 +45,8 @@ transition "negative reply" waitconnect - B2B.otherReply() / { } -> end; state conn; -transition "bye recvd" conn - hangup / B2B.terminateOtherLeg(); stop(false) -> end; + +transition "bye recvd" conn - hangup / stop(false) -> end; transition "bye on other leg" conn - B2B.otherBye() / stop(true) -> end; state end; \ No newline at end of file _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
