what version of sems do you use...if 1.5.0 the problem is maybe related to closePlaylist because now sems use flushPlaylist
regards ivan On Thu, Jun 6, 2013 at 7:49 PM, Ivan Milivojevic <[email protected]> wrote: > Hi Juha, > > I got the same error but mine dsm scipt is working without errors..i am > using the same code for addkey..maybe something else is wrong > > transition "start_pin_entry" START - invite / { > log(2,>> start_pin_entry); > set($tryAgain=0); > set($pin=""); > > -- rfc4240 > if test($room=="") { > log(2,room is empty); > dlg.reply(404,"Not found"); > } else { > playFile(/usr/local/lib/sems/audio/pincollect/welcome.wav); > > playFile(/usr/local/lib/sems/audio/pincollect/enter_pin.wav); > } > log(2,start_pin_entry <<); > } -> ADDKEY; > > state ADDKEY; > > transition "add_a_key" ADDKEY - keyTest(#key<10) / { > log(2,>> add_a_key); > append($pin, #key); > log(2,USER ENTERED); > log(2,#key); > playPrompt(#key); > log(2,add_a_key <<); > } -> ADDKEY; > > .... > > Regards, > Ivan > > > On Thu, Jun 6, 2013 at 6:27 PM, Juha Heinanen <[email protected]> wrote: > >> dsm example doc/dsm/examples/test.dsm fails to load due to this kind of >> error message: >> >> Jun 6 19:11:17 siika sems[6972]: [#7f57e4416720] >> [SCSetAction,DSMCoreModule.cpp:605] ERROR: expected two parameters >> separated with '=' in expression '$pin = ""' for P11SCSetAction >> >> the line is this: >> >> transition "start pin entry" sess_started - / set($pin = "") -> ADDKEY; >> >> i have tried to figure out based on dsm_syntax.txt what is wrong with >> the action, but it looks ok to me: >> >> transition name s1 - [ { [not] condition; [not] condition; ... } ] [/ >> {<actions>} ] -> s2; >> >> <actions> ::= >> action; >> action(param, param, ...); >> >> the error disappears if i change empty string to, for example, "x". >> >> why set to empty string causes the error? it is a bug in diagram >> parser? >> >> -- juha >> _______________________________________________ >> Sems mailing list >> [email protected] >> http://lists.iptel.org/mailman/listinfo/sems >> > >
_______________________________________________ Sems mailing list [email protected] http://lists.iptel.org/mailman/listinfo/sems
