RV: Despertador en Asterisk

312 views
Skip to first unread message

Ramses II

unread,
Jul 9, 2009, 1:28:47 PM7/9/09
to aster...@googlegroups.com
Esto me ha llegado a mi solo por error...

-----Mensaje original-----
De: Cesar [mailto:apo...@hotmail.com]
Enviado el: jueves, 09 de julio de 2009 19:05
Para: Ramses II
Asunto: Re: Despertador en Asterisk

Buenas tardes estoy tratando de implementar un despertador pero no
logro que me ejecute el agi.

este mensaje de error me devuelve el clic

Executing [*4444@recepcion:1] AGI("Zap/18-1", "wakeup.php") in new
stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/wakeup.php
== wakeup.php: Failed to execute '/var/lib/asterisk/agi-bin/
wakeup.php': No such file or directory
-- AGI Script wakeup.php completed, returning 0

No se si depronto sera problemas de permisos.

Alguna luz la agradeceria.

RazaMetaL | Only The Good Die Young

unread,
Jul 9, 2009, 1:33:48 PM7/9/09
to aster...@googlegroups.com
2009/7/9 Ramses II <ramses....@gmail.com>:

>
> Esto me ha llegado a mi solo por error...
>


A mi no me llegó.

El mensaje es clarísimo, el fichero
/var/lib/asterisk/agi-bin/wakeup.php no existe.

Saludos,

--
Linux User: 255902

Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html

Cesar

unread,
Jul 9, 2009, 4:07:44 PM7/9/09
to asterisk-es
Hola gracias por responder

Pero si existe


[root@localhost ~]# cd /var/lib/asterisk/agi-bin
[root@localhost agi-bin]# ls
agi-test.agi jukebox.agi wakeup.agi
eagi-sphinx-test wakeconfirm.agi wakeup-confirm-1.0.tar.gz
eagi-test wakeup.2.0.tar wakeup.php
[root@localhost agi-bin]#

RamonciO

unread,
Jul 9, 2009, 6:15:38 PM7/9/09
to asterisk-es
¿No tendrá permiso de ejecución?
Prueba con:

chmod +x /var/lib/asterisk/agi-bin/wakeup.php

y si tampoco funciona prueba con:

chmod 777 /var/lib/asterisk/agi-bin/wakeup.php

RazaMetaL | Only The Good Die Young

unread,
Jul 11, 2009, 1:33:40 AM7/11/09
to aster...@googlegroups.com
2009/7/9 RamonciO <sol...@gmail.com>:

>
> ¿No tendrá permiso de ejecución?
> Prueba con:
>
> chmod +x /var/lib/asterisk/agi-bin/wakeup.php
>
> y si tampoco funciona prueba con:
>
> chmod 777 /var/lib/asterisk/agi-bin/wakeup.php
>
>
>
>

Yo creo que le hace falta el paquete php5-cli, si utilizas debian trata con:

aptitude install php5-cli

Luego ejecuta el agi y mira si ya funciona.

Saludos,

Berzoc

unread,
Jul 11, 2009, 9:07:42 PM7/11/09
to aster...@googlegroups.com
A mi me paso lo mismo .
no me reconocia el comando php

 apt-get install php5-cli

Cesar

unread,
Jul 14, 2009, 5:39:17 PM7/14/09
to asterisk-es
Hola

Si reinstale el php5-cli y ahora ejecuta el agi pero no me esta
funcionando adecuadamente

esto me dice el cli al parecer no encuentra los archivo de sonido pero
de donde lo saco


- Executing [*4444@recepcion:1] AGI("Zap/8-1", "wakeup.php") in new
stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/wakeup.php
[Jul 14 14:23:20] WARNING[10485]: file.c:607 ast_openstream_full: File
welcome d oes not exist in
any format
[Jul 14 14:23:20] WARNING[10485]: file.c:607 ast_openstream_full: File
please-en ter-the does not
exist in any format
[Jul 14 14:23:20] WARNING[10485]: file.c:607 ast_openstream_full: File
time does not exist in
any format
[Jul 14 14:23:20] WARNING[10485]: file.c:607 ast_openstream_full: File
for does not exist in any
format
[Jul 14 14:23:20] WARNING[10485]: file.c:607 ast_openstream_full: File
your does not exist in
any format
-- <Zap/8-1> Playing 'wakeup-call' (language 'es')


Gracias a todos por la ayuda

Saúl Ibarra

unread,
Jul 14, 2009, 6:27:59 PM7/14/09
to aster...@googlegroups.com
Cuando instalas Asterisk se te instalan unos sonidos por defecto...
igual el que hizo el AGI tenía unos personalizados... aquí te han dado
la caña de pescar, ahora te toca ;)

--
Saúl -- "Nunca subestimes el ancho de banda de un camión lleno de disketes."
----------------------------------------------------------------
http://www.saghul.net/

Reply all
Reply to author
Forward
0 new messages