[Pkg-voip-commits] r3867 - in freepbx/modules-2.2/modules/freepbx-module-callback/debian: . patches

elcuco-guest at alioth.debian.org elcuco-guest at alioth.debian.org
Tue Jul 31 14:44:27 UTC 2007


Author: elcuco-guest
Date: 2007-07-31 14:44:26 +0000 (Tue, 31 Jul 2007)
New Revision: 3867

Added:
   freepbx/modules-2.2/modules/freepbx-module-callback/debian/patches/fix-debian.dpatch
Modified:
   freepbx/modules-2.2/modules/freepbx-module-callback/debian/changelog
   freepbx/modules-2.2/modules/freepbx-module-callback/debian/patches/00list
Log:
fix the callback module (sitting on my working copy for too long)



Modified: freepbx/modules-2.2/modules/freepbx-module-callback/debian/changelog
===================================================================
--- freepbx/modules-2.2/modules/freepbx-module-callback/debian/changelog	2007-07-31 12:42:17 UTC (rev 3866)
+++ freepbx/modules-2.2/modules/freepbx-module-callback/debian/changelog	2007-07-31 14:44:26 UTC (rev 3867)
@@ -1,3 +1,10 @@
+freepbx-module-callback (2.2-1.3.1-2.1) unstable; urgency=low
+
+  * Module was looking for scripts in the wrong path, fixed by
+    hardcoding the path to the directories used in Debian.
+
+ -- Diego Iastrubni <diego.iastrubni at xorcom.com>  Thu, 17 May 2007 16:29:06 +0300
+
 freepbx-module-callback (2.2-1.3.1-2) unstable; urgency=low
 
   * Added SQLite 3 support. Fixes upstream

Modified: freepbx/modules-2.2/modules/freepbx-module-callback/debian/patches/00list
===================================================================
--- freepbx/modules-2.2/modules/freepbx-module-callback/debian/patches/00list	2007-07-31 12:42:17 UTC (rev 3866)
+++ freepbx/modules-2.2/modules/freepbx-module-callback/debian/patches/00list	2007-07-31 14:44:26 UTC (rev 3867)
@@ -1 +1,3 @@
 sqlite3-support
+fix-debian
+

Added: freepbx/modules-2.2/modules/freepbx-module-callback/debian/patches/fix-debian.dpatch
===================================================================
--- freepbx/modules-2.2/modules/freepbx-module-callback/debian/patches/fix-debian.dpatch	                        (rev 0)
+++ freepbx/modules-2.2/modules/freepbx-module-callback/debian/patches/fix-debian.dpatch	2007-07-31 14:44:26 UTC (rev 3867)
@@ -0,0 +1,20 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## fix-debian.dpatch by Diego Iastrubni <diego.iastrubni at xorcom.com>
+##
+## DP: Fix paths to harcoded defaults in Debian.
+
+ at DPATCH@
+diff -urNad freepbx-module-callback~/functions.inc.php freepbx-module-callback/functions.inc.php
+--- freepbx-module-callback~/functions.inc.php	2007-04-02 11:21:34.000000000 +0300
++++ freepbx-module-callback/functions.inc.php	2007-05-17 16:27:31.000000000 +0300
+@@ -43,7 +43,9 @@
+ 					$ext->add('callback', $item['callback_id'], '', new ext_setvar("SLEEP",$sleep));
+ 					
+ 					// kick off the callback script - run in background (&) so we can hangup
+-					$ext->add('callback', $item['callback_id'], '', new ext_system((empty($asterisk_conf['astvarlib']) ? '/var/lib/asterisk' : $asterisk_conf['astvarlib']).'/bin/callback ${CALL} ${DESTINATION} ${SLEEP} &'));
++#					Original freePBX code, on debian it's on another directory				
++#					$ext->add('callback', $item['callback_id'], '', new ext_system((empty($asterisk_conf['astvarlib']) ? '/var/lib/asterisk' : $asterisk_conf['astvarlib']).'/bin/callback ${CALL} ${DESTINATION} ${SLEEP} &'));
++					$ext->add('callback', $item['callback_id'], '', new ext_system( '/usr/share/asterisk/bin/callback ${CALL} ${DESTINATION} ${SLEEP} &'));
+ 					
+ 					//hangup
+ 					$ext->add('callback', $item['callback_id'], '', new ext_hangup(''));


Property changes on: freepbx/modules-2.2/modules/freepbx-module-callback/debian/patches/fix-debian.dpatch
___________________________________________________________________
Name: svn:executable
   + *




More information about the Pkg-voip-commits mailing list