[asterisk-users] Manager API

David fire ddfire at gmail.com
Mon Dec 29 17:25:49 CST 2008


2008/12/29 Andrew Nowrot <andrew.nowrot at gmail.com>

> I did not need to change the code. My manager.c already has all the lines
> you specified that are wrong.
>
>
>> did you re compile and re installed?
>> make
>> make install
>> after the code change?
>>
>> david
>>
>>
> Cheers
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>

hi
sorry
the error wasnt in the line i told you before
is here, same file diferent function

static int action_originate(struct mansession *s, const struct message *m)
{
        const char *name = astman_get_header(m, "Channel");
        const char *exten = astman_get_header(m, "Exten");
        const char *context = astman_get_header(m, "Context");
        const char *priority = astman_get_header(m, "Priority");
        const char *timeout = astman_get_header(m, "Timeout");
        const char *callerid = astman_get_header(m, "CallerID");
        const char *account = astman_get_header(m, "Account");
        const char *app = astman_get_header(m, "Application");
        const char *appdata = astman_get_header(m, "Data");
        const char *async = astman_get_header(m, "Async");
        const char *id = astman_get_header(m, "ActionID");
        const char *codecs = astman_get_header(m, "Codecs");
        struct ast_variable *vars = astman_get_variables(m);
        char *tech, *data;
        char *l = NULL, *n = NULL;
        int pi = 0;
        int res;
        int to = 30000;
        int reason = 0;
        char tmp[256];
        char tmp2[256];
        int format = AST_FORMAT_SLINEAR;

        pthread_t th;
        if (ast_strlen_zero(name)) {
                astman_send_error(s, m, "Channel not specified");
                return 0;
        }


-- 
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
(")_(")signature to help him gain world domination.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20081229/39b2c5f7/attachment.htm 


More information about the asterisk-users mailing list