trigger a handler=reload from bash

Discussion in 'General' started by pddm, Dec 9, 2009.

  1. pddm

    Joined:
    Dec 2, 2009
    Messages:
    8
    Likes Received:
    0
    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?
     
  2. dicko

    Joined:
    Oct 24, 2008
    Messages:
    4,099
    Likes Received:
    0
    rasterisk -x reload
     
  3. pddm

    Joined:
    Dec 2, 2009
    Messages:
    8
    Likes Received:
    0
    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.
     
  4. dicko

    Joined:
    Oct 24, 2008
    Messages:
    4,099
    Likes Received:
    0
    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)
    .
    .
    .
     

Share This Page