o Juha Heinanen on 12/12/2011 12:28 PM:
Stefan Sayer writes:

IIRC, with the mod_mysql functions
   mysql.playDBAudio
   mysql.getFileFromDB
   mysql.putFileToDB
you should be able to rewrite e.g. conference app easily in DSM, using
sounds from DB. Not that it's really necessary, but sometimes it can
be useful e.g. for live updates, getting detailed usage statistics
   etc.

stafan,

as a starter, i went through all dsm examples and the tutorial, but was
not able to find out, how to reference P-App-Param header params from
dsm scripts.

dsm.conf (or application.conf):
 set_param_variables=yes

...
set($confmode="");
if ($ListenOnly!="") {
 set($confmode="listenonly");
}

conference.join(@user, $confmode);

alternatively, you can use mod_uri
 uri.getHeader("P-ListenOnly", $listen_only);
or use the #hdrs event param in the invite event.

Stefan



-- juha



--
tel:+491621366449
sip:[email protected]
mailto/xmpp:[email protected]
_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems

Reply via email to