oh.variable = malloc(100); if(oh.variable == NULL) { ast_log(LOG_WARNING, "Out of memory\n"); return NULL; } snprintf(oh.variable, 100, "_PARKEDAT=%u", lot); dchan = __ast_request_and_dial(dialtech, AST_FORMAT_SLINEAR, dialstr,30000, &outstate, chan->callerid, &oh);