mirror of https://github.com/sipwise/sems.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
666 B
30 lines
666 B
|
|
import(mod_dlg);
|
|
|
|
initial state START ;
|
|
transition "on invite" START - invite -> runinvite;
|
|
transition "on sess start" START - sessionStart -> runstart;
|
|
state runinvite enter { log(1, run invite!);
|
|
set(reply_request=0);
|
|
dlg.reply(100, trytry);
|
|
};
|
|
|
|
state runstart
|
|
enter { log(1, run start!);
|
|
set(connect_session=0);
|
|
setTimer(1, 5);
|
|
};
|
|
|
|
transition "go connect" runstart - timerTest(#id==1) /
|
|
dlg.acceptInvite();
|
|
connectMedia();
|
|
playFile(/home/stefan/sub_nautilus.wav);
|
|
-> waitstop;
|
|
|
|
state waitstop;
|
|
|
|
transition bye waitstop - hangup / stop -> FIN;
|
|
transition bye runstart - hangup / stop -> FIN;
|
|
|
|
state FIN;
|