On 18.05.11 14:46, Stefan Sayer wrote:
1. A DSM application .conf (or dsm.conf) key which sets which should be the first event to be processed, e.g.
  startup_event=sessionStart (or: start, invite)

2. An explicit statement in the script which sets the startup event, e.g.
#set_property(startup_event=sessionStart)

3. deciding on the name of the initial state:

 If "initial state START", then start with  onStart()
 If "initial state INVITE" then start with onInvite()

 else start with onSessionStart() ("simple mode").

Which one do you like best?

I vote for 2&3, as I consider the setting to be specific to the script itself. On the other hand, I don't think SEMS supports different configuration sets for one and the same script, so that it probably does not even make a difference.

-Raphael.

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

Reply via email to