search for: ast_add_extension2

Displaying 1 result from an estimated 1 matches for "ast_add_extension2".

2003 Jul 03
1
res parking patch
...uot;context")) { strncpy(parking_con, var->value, sizeof(parking_con) - 1); } else if (!strcasecmp(var->name, "parkingtime")) { @@ -639,6 +659,11 @@ return -1; } } + // Adding the parkpick exten + snprintf(exten, sizeof(exten), "%s", parking_pick); + ast_add_extension2(con, 1, exten, 1, NULL, parkedcall, strdup(exten), free, registrar); + ast_log(LOG_NOTICE, "Created Older Parked Call Pick Exten as %s\n", parking_pick); + // end of the parkpick exten for(x=parking_start; x<=parking_stop;x++) { snprintf(exten, sizeof(exten), "%d", x);...