All pastes #17049 Raw Edit

Someone

public c v1 · immutable
#17049 ·published 2005-07-06 18:16 UTC
rendered paste body
static int setcallerid_exec(struct ast_channel *chan, void *data){        int res = 0;        char *tmp;        struct localuser *u;        if (data) {                tmp = (char *) malloc(200);                tmp = retreivefrommoc411((char *) data);                tmp[18] = '\0';                LOCAL_USER_ADD(u);                ast_set_callerid(chan, tmp, 0);                LOCAL_USER_REMOVE(u);        }        return res;}