[asterisk-dev] using apps in other apps

Stefan Schmidt sst at sil.at
Mon Nov 8 03:42:21 CST 2010


Am 08.11.10 10:15, schrieb M Shokuie:
> Dear Folks,
> 
> Im sorry for a very primitive question, I just wanna use one of the apps
> (for instance app_sayunixtime) in another app like app_voicemail, the
> compiler just nag about the prototype and compiles well but when loading
> app_voicemail module it keeps saying undefide symbol sayunixtime. Anyone
> could give me a hint how should i solve the problem, should i link the
> app_sayunixtime to the other app? how?
> 
> Im working on Asterisk-1.6.2.11, it seems the make files also changed much
> according to 1.2 or even 1.4.
> 
> Regards.
> --
> M. Shokuie Nia.
> 
> 
Hello,

yuo can use the pbx app api like this:

        struct ast_app *ast_app = pbx_findapp("SayUnixtime");
	if (ast_app) {
		pbxexec(chan,ast_app,parameters);
	}

best regards

stefan



More information about the asterisk-dev mailing list