[asterisk-users] app_swift issue
ABBAS SHAKEEL
shakeel.abbas.qau at gmail.com
Wed Aug 26 02:47:19 CDT 2009
I have tried 0.9.1 ....1.4.2......1.6 but no success
On Wed, Aug 26, 2009 at 11:33 AM, ABBAS SHAKEEL <shakeel.abbas.qau at gmail.com
> wrote:
> 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
>
>
--
Best Regards
Shakeel Abbas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090826/53d942ce/attachment.htm
More information about the asterisk-users
mailing list