[svn-commits] rmudgett: branch rmudgett/q931_fsm r2251 - /team/rmudgett/q931_fsm/doc/
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Fri Mar 11 15:19:01 CST 2011
Author: rmudgett
Date: Fri Mar 11 15:18:57 2011
New Revision: 2251
URL: http://svnview.digium.com/svn/libpri?view=rev&rev=2251
Log:
Added support for STATUS_ENQUIRY. Eliminated Test notation.
Modified:
team/rmudgett/q931_fsm/doc/q931_global_cr.fsm
Modified: team/rmudgett/q931_fsm/doc/q931_global_cr.fsm
URL: http://svnview.digium.com/svn/libpri/team/rmudgett/q931_fsm/doc/q931_global_cr.fsm?view=diff&rev=2251&r1=2250&r2=2251
==============================================================================
--- team/rmudgett/q931_fsm/doc/q931_global_cr.fsm (original)
+++ team/rmudgett/q931_fsm/doc/q931_global_cr.fsm Fri Mar 11 15:18:57 2011
@@ -17,6 +17,9 @@
Stimulus Q931_EV_MGMT_DESTROY {
/* Terminate the FSM */
Next_State *;
+ }
+ Stimulus Q931_EV_MSG_STATUS_ENQUIRY {
+ Action Send(STATUS(current_state));
}
Stimulus Q931_EV_MSG_STATUS {
/* Ignore STATUS messages. */
@@ -61,12 +64,10 @@
}
Stimulus Q931_EV_TIMEOUT_T316 {
Action Inc_Count;
- Test = Get_Count;
- Test < 2 {
+ if (Get_Count < 2) {
Action Send(RESTART(Channels));
Action Start_T316;
- }
- Test == 2 {
+ } else {
Action Maintenance("No response to RESTART");
}
}
@@ -75,19 +76,16 @@
}
Stimulus Q931_EV_MSG_RESTART_ACKNOWLEDGE {
Action Stop_T316;
- Test = Get_Restart_Rsp;
- Test != 0 {
+ if (Get_Restart_Rsp != 0) {
Next_State q931_global_null;
}
Action Set_Restart_Rsp(1);
}
Stimulus Q931_EV_MGMT_RESTARTED(Channel) {
Action Accumulate_Restarted_Channels(Channel);
- Test = Get_All_Channels_Restarted;
- Test == Yes {
+ if (Get_All_Channels_Restarted == Yes) {
Action Stop_T317;
- Test = Get_Restart_Ack;
- Test != 0 {
+ if (Get_Restart_Ack != 0) {
Next_State q931_global_null;
}
Action Set_Restart_Rsp(1);
@@ -112,8 +110,7 @@
}
Stimulus Q931_EV_MGMT_RESTARTED(Channel) {
Action Accumulate_Restarted_Channels(Channel);
- Test = Get_All_Channels_Restarted;
- Test == Yes {
+ if (Get_All_Channels_Restarted == Yes) {
Action Send(RESTART_ACKNOWLEDGE);
Next_State q931_global_null;
}
More information about the svn-commits
mailing list