[asterisk-dev] execute function on Dialed Destination answers to
channel
ast guy
astguy at gmail.com
Wed Apr 26 04:00:35 MST 2006
Hi,
app = pbx_findapp ("Dial");
if (app)
{
ret = pbx_exec (chan, app, data, 1);
}
else
{
ast_log (LOG_VERBOSE, "Could not find application (Dial)\n");
ret = -2;
}
What this code snippt will do is to find dial application and execute it,
Is there a way that any `xyz` function (in the same app_application.c)
is being executed/called when Dialed destination gives 'ANSWERED', I'm
able to get channel status from
pbx_builtin_getvar_helper (chan, "DIALSTATUS")
but it's when Data flow b/w A and B party is completed. I
regards,
- ag
More information about the asterisk-dev
mailing list