git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@5200
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
int priority;
int parkingtime;
int notquiteyet;
+ unsigned char moh_trys;
struct parkeduser *next;
};
} else {
/* XXX Maybe we could do something with packets, like dial "0" for operator or something XXX */
ast_frfree(f);
+ if (pu->moh_trys < 3 && !pu->chan->generatordata) {
+ ast_log(LOG_DEBUG, "MOH on parked call stopped by outside source. Restarting\n");
+ ast_moh_start(pu->chan, NULL);
+ pu->moh_trys++;
+ }
goto std; /* XXX Ick: jumping into an else statement??? XXX */
}
}