Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (ready_chan) {
- if (!(frame = ast_read(chan))) {
- /* the channel is probably gone, so lets stop polling on it and let the
- * FAX session complete before we exit the application. if needed,
- * send the FAX stack silence so the modems can finish their session without
- * any problems */
- ast_debug(1, "Channel '%s' did not return a frame; probably hung up.\n", chan->name);
- GENERIC_FAX_EXEC_SET_VARS(fax, chan, "HANGUP", "remote channel hungup");
- c = NULL;
- chancount = 0;
- timeout -= (1000 - ms);
- fax->tech->cancel_session(fax);
- if (fax->tech->generate_silence) {
- fax->tech->generate_silence(fax);
- }
- continue;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement