Page 1 of 1

Change the run state externally (ie with a perl script)

Posted: Wed May 20, 2009 4:24 pm
by execcr
it is possibile to activate and deactivate zm from an external script?

I want to activate/deactivate it from my Asterisk PBX...

thanks

Posted: Wed May 20, 2009 5:01 pm
by coke

Code: Select all

sudo zmpkg.pl start
"stop" and "restart" are also acceptable parameters.

Posted: Wed May 20, 2009 11:10 pm
by execcr
wow thanks!!
i was thinking there will be a command for changing the run state, but i thinks that this will works to me.

thanks

Posted: Thu Jun 04, 2009 11:46 am
by haus
Sure is...

Code: Select all

sudo zmpkg.pl <runstate>
:)

I have two runstates defined: Arm and Disarm, for example.