Changeset 5071

Some extra checking for MOH.

Committed by:  mm_202
Date:  Jul 23 2008 * 16:40 (about 1 month ago)

Affected files:

callweaver/branches/rel/1.2/res/res_musiconhold.c (unified diff)

r5007r5071
256256 struct cw_frame *f = NULL;
257257 int res = 0;
258258
259 if(!state) {
260 cw_log(LOG_ERROR, "Trying to play MOH on channel '%s', music_state is NULL!\n", chan->name);
261 return -1;
262 }
259263 state->sample_queue += samples;
260264
261265 while (state->sample_queue > 0) {