[Pkg-voip-commits] r3487 - in freepbx/trunk/debian: . patches

Diego Iastrubni elcuco-guest at alioth.debian.org
Thu Apr 26 06:18:23 UTC 2007


Author: elcuco-guest
Date: 2007-04-26 06:18:23 +0000 (Thu, 26 Apr 2007)
New Revision: 3487

Modified:
   freepbx/trunk/debian/changelog
   freepbx/trunk/debian/patches/fix-agibin-dir.dpatch
Log:
fix logging dir for directory.agi (not used by default, but still should be done propely). closes upstream: http://freepbx.org/trac/ticket/1912


Modified: freepbx/trunk/debian/changelog
===================================================================
--- freepbx/trunk/debian/changelog	2007-04-25 23:44:23 UTC (rev 3486)
+++ freepbx/trunk/debian/changelog	2007-04-26 06:18:23 UTC (rev 3487)
@@ -15,6 +15,8 @@
     put in separate packages. One package is needed for the configuration.
   * freepbx-common: fixed patch for module_admin, now it also fixes upstream 1899).
     Now it is possible to install freepbx-sqlite3 in chroot
+  * freepbx-common: agi/directory will store logs in the correct dir (fixes
+    upstream 1912)
 
   [ Chris Halls ]
   * Remove fix-recordings.patch - already fixed in a different way upstream

Modified: freepbx/trunk/debian/patches/fix-agibin-dir.dpatch
===================================================================
--- freepbx/trunk/debian/patches/fix-agibin-dir.dpatch	2007-04-25 23:44:23 UTC (rev 3486)
+++ freepbx/trunk/debian/patches/fix-agibin-dir.dpatch	2007-04-26 06:18:23 UTC (rev 3487)
@@ -1,13 +1,26 @@
 #! /bin/sh /usr/share/dpatch/dpatch-run
 ## fix-agibin-dir.dpatch by Chris Halls <halls at debian.org>
 ##
-## All lines beginning with `## DP:' are a description of the patch.
-## DP: No description.
+## DP: Fix paths for AGI scripts:
+## DP:  * use script path for prefix (not /var/lib/asterisk
+## DP:  * logs should be saved in /var/asterisk/log (fixes http://freepbx.org/trac/ticket/1912)
 
 @DPATCH@
-diff -urNad freepbx-2.2.0~dfsg~/amp_conf/agi-bin/fixlocalprefix freepbx-2.2.0~dfsg/amp_conf/agi-bin/fixlocalprefix
---- freepbx-2.2.0~dfsg~/amp_conf/agi-bin/fixlocalprefix	2006-12-06 20:50:30.000000000 +0000
-+++ freepbx-2.2.0~dfsg/amp_conf/agi-bin/fixlocalprefix	2007-02-08 10:13:41.000000000 +0000
+diff -urNad freepbx-2.2.1~dfsg~/amp_conf/agi-bin/directory freepbx-2.2.1~dfsg/amp_conf/agi-bin/directory
+--- freepbx-2.2.1~dfsg~/amp_conf/agi-bin/directory	2006-08-10 07:38:06.000000000 +0300
++++ freepbx-2.2.1~dfsg/amp_conf/agi-bin/directory	2007-04-26 09:11:16.000000000 +0300
+@@ -385,7 +385,7 @@
+ 
+ $agi = new AGI;
+ 
+-if (DEBUG) $logfile = fopen("/tmp/directory.log","w");
++if (DEBUG) $logfile = fopen("/var/asterisk/log/directory.log","w");
+ 
+ $vmconf = array();
+ $null = null;
+diff -urNad freepbx-2.2.1~dfsg~/amp_conf/agi-bin/fixlocalprefix freepbx-2.2.1~dfsg/amp_conf/agi-bin/fixlocalprefix
+--- freepbx-2.2.1~dfsg~/amp_conf/agi-bin/fixlocalprefix	2006-12-06 22:50:30.000000000 +0200
++++ freepbx-2.2.1~dfsg/amp_conf/agi-bin/fixlocalprefix	2007-04-26 09:06:34.000000000 +0300
 @@ -69,7 +69,7 @@
  
  */
@@ -17,9 +30,9 @@
  define("LOCALPREFIX_FILE", "/etc/asterisk/localprefixes.conf");
  
  include(AGIBIN_DIR."/phpagi.php");
-diff -urNad freepbx-2.2.0~dfsg~/amp_conf/agi-bin/recordingcheck freepbx-2.2.0~dfsg/amp_conf/agi-bin/recordingcheck
---- freepbx-2.2.0~dfsg~/amp_conf/agi-bin/recordingcheck	2006-06-26 00:46:50.000000000 +0100
-+++ freepbx-2.2.0~dfsg/amp_conf/agi-bin/recordingcheck	2007-02-08 10:13:58.000000000 +0000
+diff -urNad freepbx-2.2.1~dfsg~/amp_conf/agi-bin/recordingcheck freepbx-2.2.1~dfsg/amp_conf/agi-bin/recordingcheck
+--- freepbx-2.2.1~dfsg~/amp_conf/agi-bin/recordingcheck	2006-06-26 02:46:50.000000000 +0300
++++ freepbx-2.2.1~dfsg/amp_conf/agi-bin/recordingcheck	2007-04-26 09:06:34.000000000 +0300
 @@ -17,7 +17,7 @@
  The program checks determines if Asterisk should record a call
  */




More information about the Pkg-voip-commits mailing list