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)
| r5007 | r5071 | |
|---|---|---|
| 256 | 256 | struct cw_frame *f = NULL; |
| 257 | 257 | int res = 0; |
| 258 | 258 | |
| 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 | } | |
| 259 | 263 | state->sample_queue += samples; |
| 260 | 264 | |
| 261 | 265 | while (state->sample_queue > 0) { |
![Home changeset 5071 [home]](/images/logo.png?1180520111)
RSS Feeds