[Asterisk-Dev] app_page

BJ Weschke bweschke at gmail.com
Thu Nov 17 22:34:05 MST 2005


On 11/17/05, Michael Anderson <michaela at qualitau.com> wrote:
> I'm wanting to alter app_page so that I can specify an Alert Info sip
> header to send (our Polycoms are set to auto answer on that one).
> Eventually I would want to make it customizable, but for a first test
> I thought I'd try the following:
>
> <snip from app_page.c>
> static void *page_thread(void *data)
> {
>        struct calloutdata *cd = data;
>        struct ast_variable *var = ast_variable_new("Alert Info",
> "Ring Answer");
>
>        ast_pbx_outgoing_app(cd->tech, AST_FORMAT_SLINEAR, cd->resource, 30000,
>                "MeetMe", cd->meetmeopts, NULL, 0, cd->cidnum,
> cd->cidname, var, NULL);
>        free(cd);
>        return NULL;
> }
> </snip>
>
> The variable doesn't seem to be delivered to the paged phone(s).  Am I
> missing something, or perhaps using the wrong call?
>
> Thanks,
>

 Michael,

 I think you're looking for the pbx_builtin_setvar_helper function.
Doxygen docs about Asterisk functions can be found at
http://www.asterisk.org/doxygen/

 BJ

--
Bird's The Word Technologies, Inc.
http://www.btwtech.com/



More information about the asterisk-dev mailing list