Open Source Training Seminar FreePBX Paid Support

Ticket #2042 (closed Bugs: fixed)

Opened 1 year ago

Last modified 1 year ago

core agi scripts with hardcoded paths

Reported by: p_lindheimer Assigned to:
Priority: minor Milestone: 2.3
Component: Core Version: 2.3-branch
Keywords: Cc:
Confirmation: SVN Revision (if applicable):
Backend Engine: All Backend Engine Version:

Description

directory:

  • DIRECTORY_FILE
  • VOICEMAIL_DIR
  • LOG_DIR

fixlocalprefix:

  • LOCALPREFIX_FILE

These are either going to require a parser (not desirable because of performance indications) or otherwise require getting their paths elsewhere.

Options include:

  • put in globals and pull out with phpagi (or pass in as arguments from dialplan)
  • special case and insert the define statements in retrieve_conf when they get copied over, requires special handling.

passing in with global variables is probably the best way to handle these. retireve_conf can insert them, basically what should be inserted is all the ASTETCDIR, ASTAGIDIR, ASTSPOOLDIR, etc. style variables so that any other agi script could get access to them.

Change History

07/01/07 03:47:33 changed by p_lindheimer

suggested solution:

I added the assignment of all the ASTETCDIR, ASTAGIDIR, etc. variables to core_getconfig (where it creates the other globals). So these are now all available to either be passed in to the agi script, or pulled with get_variable once an agi connection is established. I am breadboarding up the use of this in dialparties.agi and the others, which will eliminate the need to do any parsing for these scripts.

On a related note to #2020 - we could always bass in as the first argument to any agi script the path to ASTAGIDIR, and that argument coudld be used to include the phpagi.php includes, letting us go back to the auto-linking instead of the copying that has been added.

07/12/07 18:32:15 changed by p_lindheimer

  • status changed from new to closed.
  • resolution set to fixed.

this has been fixed in core

Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads