[asterisk-users] Fw: app_swift issue

Todd Fulton todd.fulton at yahoo.com
Wed Aug 26 13:03:29 CDT 2009


Hi Shakeel,

I had the same problem building app_swift (1.6..) myself and searched the web far-and-wide for a solution.  I eventually contacted Darren Sessions -- who was maintaining that plug-in -- about a month ago.  He was involved in another project and said he might be able get to it after a few weeks.  But, since then, his website http://www.darrensessions.com/ has gone out of comission.

I think we may be on our own on this one!


Todd



----- Forwarded Message ----
From: Todd Fulton <todd.fulton at yahoo.com>
To: Todd Fulton <todd.fulton at yahoo.com>
Sent: Wednesday, August 26, 2009 10:59:34 AM
Subject: [asterisk-users] app_swift issue


Hello 

I have installed cepstral .... It works woderfull using an agi script but 
..... 
when i try to use Swift("say this") is Dial plan .... I get the error 

[Aug 26 12:30:18] WARNING[7420]: pbx.c:3167 pbx_extension_helper: No 
application 'Swift' for extension (actdemo, 123, 2) 



Now i come to know to install app_swift 


Here is the issue... 

when i try to execute make command on app_swift-1.6.2 

I get the following error 

[root at asterisk app_swift-1.6.2]# make 
gcc -I/opt/swift/include -g -Wall -D_REENTRANT -D_GNU_SOURCE -fPIC   -c -o 
app_swift.o app_swift.c 
app_swift.c: In function ‘engine’: 
app_swift.c:402: error: incompatible types in assignment 
app_swift.c: In function ‘load_module’: 
app_swift.c:546: error: ‘AST_MODULE’ undeclared (first use in this function) 
app_swift.c:546: error: (Each undeclared identifier is reported only once 
app_swift.c:546: error: for each function it appears in.) 
make: *** [app_swift.o] Error 1 



Now i am thinking to edit app_swift.c but AST_MODULE is not defined in 
app_swift.c 

i commented this line ""//#define AST_MODULE "app_swift"" 

but in vain .... Please help 

static int load_module(void) 
{ 
int res; 
const char *t = NULL; 
struct ast_config *cfg; 
struct ast_flags config_flags = { 0 }; 

// Set defaults 
cfg_buffer_size = 65535; 
cfg_goto_exten = 0; 
strncpy(cfg_voice, "David-8kHz", sizeof(cfg_voice)); 

res = ast_register_application(app, engine, synopsis, descrip); 
cfg = ast_config_load(SWIFT_CONFIG_FILE, config_flags); 

if (cfg) { 
if ((t = ast_variable_retrieve(cfg, "general", "buffer_size"))) { 
cfg_buffer_size = atoi(t); 
ast_log(LOG_DEBUG, "Config buffer_size is %d\n", 
cfg_buffer_size); 
} 
if ((t = ast_variable_retrieve(cfg, "general", "goto_exten"))) { 
if (!strcmp(t, "yes")) 
cfg_goto_exten = 1; 
else 
cfg_goto_exten = 0; 
ast_log(LOG_DEBUG, "Config goto_exten is %d\n", cfg_goto_exten); 
} 

ast_config_destroy(cfg); 

} else { 
ast_log(LOG_NOTICE, "Failed to load config\n"); 
} 

return res; 
} 

char *description(void) 
{ 
return tdesc; 
} 



#define AST_MODULE "app_swift" 

AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "Cepstral Swift TTS 
Application"); 








-- 
Best Regards
Shakeel Abbas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090826/b8bd9aff/attachment.htm 


More information about the asterisk-users mailing list