Hi,
Антон Загорский wrote:
Hello!
I'm creating a MOH service via DSM. I want to have playlists, so when one
file ends, a next file from playlist will play. But it is unclear for me how
to store array of values (files path) in the DSM?
I would just store them as individual $vars, e.g.
$file[0]="abc.wav"
$file[1]="def.wav"
...
In doc/dsm/tutorials/quizconnect/quizconnect_caller.dsm there's an
example how to loop through such an array.
I'm thinking about mod_py to find all files in a directory and take next
file sequentially, but it isn't sounds good...
How about keeping things simple and adding a small sys.ls action to
mod_sys? This would list the directory and save the files to a set of
string variables.
Stefan
С уважением, Антон Загорский
Программист компании Oyster Telecom
Тел.: +7 812 601-0666
Факс: +7 812 601-0593
[email protected]
www.oyster-telecom.ru
_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems
--
Stefan Sayer
VoIP Services Consulting and Development
Warschauer Str. 24
10243 Berlin
tel:+491621366449
sip:[email protected]
email/xmpp:[email protected]
_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems