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; }