Hi, I've a a general question regarding how to activate and configure certain DSMs, because I can't find any documentation covering this:
From my understanding, the first thing I need to do to enable dsm
scripts is loading the dsm module in /etc/sems/sems.conf, like this:
load_plugins=<list-of-other-plugins>;dsm
This will cause Sems to read /etc/sems/etc/dsm.conf, where I can define
the path of the dsm scripts etc, right?
Then let's pretend I've a dsm script foo.dsm, which I'd like to register
as an app name, and also let's say I define which app to load via
"application=$(mapping)" in /etc/sems/sems.conf, so my mapping in
/etc/sems/etc/app_mapping.conf looks like this:
^sip:foo@=>foo
From my understanding, I can register foo.dsm as an app in
/etc/sems/etc/dsm.conf like this:
register_apps=foo
What confuses me though is that there are examples floating around on
the web which define a specific configuration file per dsm, so I could
have an extra config file /etc/sems/etc/foo.conf, where I can define
specific paths to plugins, application-specific params etc. like this:
diag_path=/usr/lib/sems/foo/
mod_path=/usr/lib/sems/plug-in/
load_diags=foo
register_apps=foo
run_invite_event=yes
set_param_variables=yes
# application configuration:
db_url="mysql://foo:bar@localhost/foo"
Now how does Sems know how and from where to include this config file?
Is there some kind of "include" directive I need to include in dsm.conf,
or does Sems figure out the config name by which
load_diags/register_apps are set and constructs a config path out of
that? If so, how come I could re-define load_diags/register_apps again
in the specific config file?
Thanks for clarification,
Andreas
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Sems mailing list [email protected] http://lists.iptel.org/mailman/listinfo/sems
