diff options
Diffstat (limited to 'res/res_features.c')
-rwxr-xr-x | res/res_features.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/res/res_features.c b/res/res_features.c index b8639f614..f9a3025df 100755 --- a/res/res_features.c +++ b/res/res_features.c @@ -481,6 +481,7 @@ static void *do_parking_thread(void *ignore) char exten[AST_MAX_EXTENSION]; struct ast_context *con; int x; + int gc=0; fd_set rfds, efds; fd_set nrfds, nefds; FD_ZERO(&rfds); @@ -501,6 +502,10 @@ static void *do_parking_thread(void *ignore) pu = pu->next; continue; } + if (gc < 5 && !pu->chan->generator) { + gc++; + ast_moh_start(pu->chan,NULL); + } tms = (tv.tv_sec - pu->start.tv_sec) * 1000 + (tv.tv_usec - pu->start.tv_usec) / 1000; if (tms > pu->parkingtime) { /* They've been waiting too long, send them back to where they came. Theoretically they |