Hello Juha,

o Juha Heinanen on 12/13/2011 12:48 PM:
i tried with this dsm script that i adapted from the examples:

initial state start;

transition "session start" start - sessionStart / {
     playFile(/home/jh/test/tango.wav);
} ->  session_started;

state session_started;

transition "bye recvd" (start,session_started) - hangup / {
     stop;
} ->  end;

state end;

when it is loaded, i get warning:

Dec 13 13:42:27 sip sems[14370]: [#b75516d0] [loadFile, 
DSMStateDiagramCollection.cpp:113] WARNING: consistency check failed on 
'dsm_conf' from file '/etc/sems/dsm/dsm_conf.dsm':
Dec 13 13:42:27 sip sems[14370]: [#b75516d0] [loadFile, 
DSMStateDiagramCollection.cpp:116] WARNING: 
------------------------------------------#012dsm_conf: State 'end': hangup is 
not handled#012#012------------------------------------------
it checks for every state, whether hangup is handled, as this is the most common error in writing scripts (BYE comes in, is not handled, and a call is hanging in SEMS). you can either disable checking, or add the 'end' state to the list of states where you handle hangup (even if it won't happen). see below.


looks like that kind of warning comes from other example scripts too.

the script handled incoming invite ok and starts to play the tango, but
when i hangup from sip client, i get to syslog

Dec 13 13:42:44 sip sems[14370]: [#b53a7b70] [reply, AmSipDialog.cpp:1139] 
ERROR: could not find any transaction matching request cseq
Dec 13 13:42:44 sip sems[14370]: [#b53a7b70] [reply, AmSipDialog.cpp:1143] 
ERROR: request cseq=607; reply code=200; [email protected]; 
local_tag=48ABF5A3-4EE73A30000B48D7-B56AAB70; remote_tag=uyzrw
you are using
 stop;
which tries to bye() the dialog.

use stop(false) like in this script (added stopping the call after tango):
----
initial state start;

transition "session start" start - sessionStart / {
    --playFile(/home/jh/test/tango.wav);
   playFile(/home/stefan/devel/sems/sems/core/wav/default_en.wav);
} -> session_started;

state session_started;
state end;

transition "bye recvd" (start,session_started,end) - hangup / {
    stop(false);
} -> end;

transition "tango ended" session_started - noAudio / {
    stop;
} -> end;
----


stefan
_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems

Reply via email to