Hello <br><br>I have installed cepstral .... It works woderfull using an agi script but .....<br>when i try to use Swift(&quot;say this&quot;) is Dial plan .... I get the error<br><br>[Aug 26 12:30:18] WARNING[7420]: pbx.c:3167 pbx_extension_helper: No application &#39;Swift&#39; 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 &quot;&quot;//#define AST_MODULE &quot;app_swift&quot;&quot;<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, &quot;David-8kHz&quot;, 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, &quot;general&quot;, &quot;buffer_size&quot;))) {<br>            cfg_buffer_size = atoi(t);<br>            ast_log(LOG_DEBUG, &quot;Config buffer_size is %d\n&quot;, cfg_buffer_size);<br>
        }<br>        if ((t = ast_variable_retrieve(cfg, &quot;general&quot;, &quot;goto_exten&quot;))) {<br>            if (!strcmp(t, &quot;yes&quot;))<br>                cfg_goto_exten = 1;<br>            else<br>                cfg_goto_exten = 0;<br>
            ast_log(LOG_DEBUG, &quot;Config goto_exten is %d\n&quot;, cfg_goto_exten);<br>        }<br><br>        ast_config_destroy(cfg);<br><br>    } else {<br>        ast_log(LOG_NOTICE, &quot;Failed to load config\n&quot;);<br>
    }<br><br>    return res;<br>}<br><br>char *description(void)<br>{<br>    return tdesc;<br>}<br><br><br><br>#define AST_MODULE &quot;app_swift&quot;<br><br>AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, &quot;Cepstral Swift TTS Application&quot;);<br>
<br><br><br><br><br> <br clear="all"><br>-- <br>Best Regards<br>Shakeel Abbas<br><br>