[asterisk-users] Manager API

Andrew Nowrot andrew.nowrot at gmail.com
Mon Dec 29 12:12:23 CST 2008


Hi

Thanks for so fast reply, but I already have this part like this:


static int action_timeout(struct mansession *s, const struct message *m)
{
        struct ast_channel *c;
        const char *name = astman_get_header(m, "Channel");
        int timeout = atoi(astman_get_header(m, "Timeout"));

        if (ast_strlen_zero(name)) {
                astman_send_error(s, m, "No channel specified");
                return 0;
        }

no negation in 7th line. So I guest it is not the case.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20081229/03ab450e/attachment.htm 


More information about the asterisk-users mailing list