Advertisement
Guest User

Untitled

a guest
Oct 5th, 2011
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. if (ready_chan) {
  2. if (!(frame = ast_read(chan))) {
  3. /* the channel is probably gone, so lets stop polling on it and let the
  4. * FAX session complete before we exit the application. if needed,
  5. * send the FAX stack silence so the modems can finish their session without
  6. * any problems */
  7. ast_debug(1, "Channel '%s' did not return a frame; probably hung up.\n", chan->name);
  8. GENERIC_FAX_EXEC_SET_VARS(fax, chan, "HANGUP", "remote channel hungup");
  9. c = NULL;
  10. chancount = 0;
  11. timeout -= (1000 - ms);
  12. fax->tech->cancel_session(fax);
  13. if (fax->tech->generate_silence) {
  14. fax->tech->generate_silence(fax);
  15. }
  16. continue;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement