[Asterisk-Dev] app_page

Michael Anderson michaela at qualitau.com
Thu Nov 17 21:43:25 MST 2005


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 Anderson



More information about the asterisk-dev mailing list