I have tried 0.9.1 ....1.4.2......1.6 but no success <br><br><br><br><br><br><div class="gmail_quote">On Wed, Aug 26, 2009 at 11:33 AM, ABBAS SHAKEEL <span dir="ltr"><<a href="mailto:shakeel.abbas.qau@gmail.com">shakeel.abbas.qau@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello <br><br>I have installed cepstral .... It works woderfull using an agi script but .....<br>
when i try to use Swift("say this") is Dial plan .... I get the error<br><br>[Aug 26 12:30:18] WARNING[7420]: pbx.c:3167 pbx_extension_helper: No application 'Swift' for extension (actdemo, 123, 2)<br>
<br><br><br>Now i come to know to install app_swift <br><br><br>Here is the issue...<br><br>when i try to execute make command on app_swift-1.6.2<br><br>I get the following error <br><br>[root@asterisk app_swift-1.6.2]# make<br>
gcc -I/opt/swift/include -g -Wall -D_REENTRANT -D_GNU_SOURCE -fPIC -c -o app_swift.o app_swift.c<br>app_swift.c: In function ‘engine’:<br>app_swift.c:402: error: incompatible types in assignment<br>app_swift.c: In function ‘load_module’:<br>
app_swift.c:546: error: ‘AST_MODULE’ undeclared (first use in this function)<br>app_swift.c:546: error: (Each undeclared identifier is reported only once<br>app_swift.c:546: error: for each function it appears in.)<br>make: *** [app_swift.o] Error 1<br>
<br><br><br>Now i am thinking to edit app_swift.c but AST_MODULE is not defined in app_swift.c<br><br>i commented this line ""//#define AST_MODULE "app_swift""<br><br>but in vain .... Please help <br>
<br>static int load_module(void)<br>{<br> int res;<br> const char *t = NULL;<br> struct ast_config *cfg;<br> struct ast_flags config_flags = { 0 };<br><br> // Set defaults<br> cfg_buffer_size = 65535;<br>
cfg_goto_exten = 0;<br> strncpy(cfg_voice, "David-8kHz", sizeof(cfg_voice));<br><br> res = ast_register_application(app, engine, synopsis, descrip);<br> cfg = ast_config_load(SWIFT_CONFIG_FILE, config_flags);<br>
<br> if (cfg) {<br> if ((t = ast_variable_retrieve(cfg, "general", "buffer_size"))) {<br> cfg_buffer_size = atoi(t);<br> ast_log(LOG_DEBUG, "Config buffer_size is %d\n", cfg_buffer_size);<br>
}<br> if ((t = ast_variable_retrieve(cfg, "general", "goto_exten"))) {<br> if (!strcmp(t, "yes"))<br> cfg_goto_exten = 1;<br> else<br> cfg_goto_exten = 0;<br>
ast_log(LOG_DEBUG, "Config goto_exten is %d\n", cfg_goto_exten);<br> }<br><br> ast_config_destroy(cfg);<br><br> } else {<br> ast_log(LOG_NOTICE, "Failed to load config\n");<br>
}<br><br> return res;<br>}<br><br>char *description(void)<br>{<br> return tdesc;<br>}<br><br><br><br>#define AST_MODULE "app_swift"<br><br>AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "Cepstral Swift TTS Application");<br>
<br><br><br><br><br> <br clear="all"><br>-- <br>Best Regards<br><font color="#888888">Shakeel Abbas<br><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Best Regards<br>Shakeel Abbas<br><br>