i don't know if i changed anything, but now the error messages about
non-matching transaction disappeared with this version of the test
script:

import(mod_mysql);

initial state start;

transition "session start" start - sessionStart / {
    mysql.connect(mysql://openxg:openxg123@localhost/sems);
    mysql.playDBAudio(select audio from user_audio where 
application='announcement' and message='greeting_msg' and userid='jh' and 
domain='test.fi' union select audio from default_audio where 
application='announcement' and message='greeting_msg' and language='$Language' 
limit 1, anything.wav);
} -> session_started;

state session_started;

transition "audio ends" session_started - noAudio / stop(true) -> end;

state end
    exit {
        if mysql.connected(); { mysql.disconnect(); };
    };

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

i moved closing of mysql connection as exit action to state end.
perhaps that is unnecessary if the connection is closed automatically
when execution of dsm script ends?

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

Reply via email to