[Asterisk-Users] festival in agi?
Maciek Kaminski
maciejka at tiger.com.pl
Fri Feb 13 03:59:29 MST 2004
Are there any restrictions on what may be executed in AGI? I try in vain
to execute festival command from AGI while it executes successfuly from
dialplan. Say_digits also executes from AGI.
Here is agi fragment (i use pyst package):
...
agi.festival('Thank You for calling');
agi.say_digits('123');
...
and asterisk log:
class AGI: self.env = {'agi_accountcode': '',
'agi_callerid': 'kamyk',
'agi_channel': 'IAX[kamyk at kamyk]/51',
'agi_context': 'default',
'agi_dnid': '800',
'agi_enhanced': '1.0',
'agi_extension': '800',
'agi_language': 'en',
'agi_priority': '1',
'agi_rdnis': 'unknown',
'agi_request': 'pyst.py',
'agi_type': 'IAX1',
'agi_uniqueid': '1076668035.10'}
COMMAND: exec festival "Thank You for calling."
-- AGI Script Executing Application: (festival) Options: (Thank you
for calling.)
== Parsing '/etc/asterisk/festival.conf': Found
Feb 13 11:27:15 DEBUG[376846]: app_festival.c:318 festival_exec: Text
passed to festival server : Thank you for calling.
Feb 13 11:27:15 DEBUG[376846]: app_festival.c:395 festival_exec: Passing
text to festival...
Feb 13 11:27:15 DEBUG[376846]: app_festival.c:414 festival_exec: Passing
data to channel...
Feb 13 11:27:15 DEBUG[376846]: app_festival.c:424 festival_exec:
Festival WV command
RESULT_LINE: 200 result=-1
RESULT_DICT: {'result': ('-1', '')}
COMMAND: say digits "123"
-- Playing 'digits/1' (language 'en')
-- Playing 'digits/2' (language 'en')
-- Playing 'digits/3' (language 'en')
RESULT_LINE: 200 result=0
...
More information about the asterisk-users
mailing list