Parche para Asterisk para modificar el tiempo de espera en una transferencia atendida.Patch for Asterisk to configure the timeout in attended transfers. (c) 2006 ServiTux Servicios Informáticos S.L. info@servitux.es
Este parche se distribuye bajo licencia GPL
Atención:
Este parche ya ha sido incluido en la versión 1.4 de Asterisk.
This patch is already applied in Asterisk 1.4
(english version below)
Castellano
Este parche sirve para poder configurar el tiempo de espera en una transferencia atendida (atxfer). Por defecto, este tiempo es de 15 segundos, que es demasiado poco.
atxfertimeout.patch
Descargar el fichero en el directorio res dentro del código fuente de Asterisk. Parchear el fichero res_features.c con el comando:
patch -p0 < atxfertimeout.patch
El parche se aplica limpiamente en Asterisk 1.2.4 y 1.2.5. En Asterisk 1.2.6 da 2 avisos sin importancia.
En el directorio del código fuente de Asterisk, ejecutar make
- Copiar el fichero res_features.so al directorio correspondiente de los módulos, normalmente /usr/lib/asterisk/modules/ .
- Editar el fichero /etc/asterisk/features.conf y añadir el parámetro atxfertimeout en el bloque general, con el número de segundos deseados:
[general]
; ...
atxfertimeout = 45 ; number of seconds to wait in attended transfer
; ...
[featuremap]
atxfer = # ; use the pound key for attended transfer
; ...
- Modificar el valor con Asterisk en marcha
Cambiar el valor de atxfertimeout en el fichero features.conf y ejecutar:
asterisk -rx 'reload res_features.so'
English
This patch adds a new configuration option in features.conf to modify the timeout seconds in attended transfers (default is 15 seconds).
atxfertimeout.patch
Download the patch in res directory, in the main directory of Asterisk, and patch the file res_features.c with the command:
patch -p0 < atxfertimeout.patch
This patch works with Asterisk 1.2.4, 1.2.5 and 1.2.6.
In the main directory of Asterisk source code, execute make
- Stop Asterisk
- Copy res/res_features.so to Asterisk modules directory, (tipically /usr/lib/asterisk/modules)
- Edit file /etc/asterisk/features.conf and add parameter atxfertimeout in general block with a numeric value:
[general]
; ...
atxfertimeout = 45 ; number of seconds to wait in attended transfer
; ...
[featuremap]
atxfer = # ; use the pound key for attended transfer
; ...
- Modifying the value with Asterisk running
Edit the number of seconds in features.conf and reload the module with:
asterisk -rx 'reload res_features.so'
|