OT: Asterisk y python
Hola disculpen la pregunta fuera de topic, pero no
logro hacer funcionar un script (AGI) python usando la
libreria pyst:
Esto ocurre luego de ejecutar el siguiente comando,
que funciona, pero no entiendo por que hace saltar es
excepcion:
EL comando es el siguiente
b=AGI()
b.execute('EXEC Dial','SIP/%s'% (linea))
Esto funciona, es decir hace ring el anexo 4671 y
puedo contestar y hablar pero bota el script a raiz de
que hace saltar la excepcion:
COMMAND: EXEC Dial SIP/4671|45|rtL(30000:10000:5000)
-- AGI Script Executing Application: (Dial)
Options: (SIP/4671|45|rtL(30000:10000:5000))
-- Limit Data for this call:
-- - timelimit = 30000
-- - play_warning = 10000
-- - play_to_caller= yes
-- - play_to_callee= no
-- - warning_freq = 5000
-- - start_sound = UNDEF
-- - warning_sound = timeleft
-- - end_sound = UNDEF
RESULT_LINE: 510 Invalid or unknown command
Traceback (most recent call last):
File "/var/lib/asterisk/agi-bin/trafico.py", line
24, in ?
a.cliente()
File "/var/lib/asterisk/agi-bin/database.py", line
71, in cliente
b.execute('EXEC Dial','SIP/%s'% (linea))
File "/var/lib/asterisk/agi-bin/agi.py", line 102,
in execute
return self.get_result()
File "/var/lib/asterisk/agi-bin/agi.py", line 149,
in get_result
raise AGIInvalidCommand(response)
agi.AGIInvalidCommand: Invalid or unknown command
Alguien tiene experiencia en este tema pyst y
Asterisk.
Nuevamente disculpas por la consulta off-topic
Fernando
______________________________________________
Renovamos el Correo Yahoo!
Nuevos servicios, más seguridad
http://correo.yahoo.es
Reply to: