trigger a handler=reload from bash

pddm

Joined
Dec 2, 2009
Messages
8
Likes
0
Points
0
#1
Hi everyone,

For an Add-On i am trying to do, I am looking for a way to execute, whatever handler=reload does, from command line or a script.
I have been searching through the index.php and the libs it includes for several days and I cannot seem to find what it actually runs.

Could anybody push me into the right direction?
 

dicko

Joined
Oct 24, 2008
Messages
4,099
Likes
0
Points
0
#2
rasterisk -x reload
 

pddm

Joined
Dec 2, 2009
Messages
8
Likes
0
Points
0
#3
It looks as if I was not specific :laugh:
I am aware that asterisk reloads like this.

Somehow the php script does something else which applies,moves or converts the changes from the database to the asterisk configuration, before having asterisk reload the configuration.
 

dicko

Joined
Oct 24, 2008
Messages
4,099
Likes
0
Points
0
#4
You will probably find what you want, somewhere in /var/www/html/admin/modules/framework/bin from which the FreePBX to/from Asterisk confs are built.

If you prefer sledgehammers to tweezers,

/var/www/html/admin/modules/framework/bin/module_admin reload

might be all you need: output of



/var/www/html/admin/modules/framework/bin//module_admin -h


is

.
.
.
reload
Reload the configuration (same as pressing the reload bar)
.
.
.
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,900
Messages
130,884
Members
17,561
Latest member
marouen
Top