Re: Waiting for modem to come free

Lee Howard <[email protected]>
Newsgroups gmane.comp.telephony.fax.hylafax.user
Message-ID <[email protected]>
On 12/06/2015 09:11 PM, Christo Labuschagne wrote:
>
> Good day
>
> I’ve tried to find something on the internet about this, but there was 
> not much about it. What causes Hylafax+ 5.5.6 to go into the state 
> “Waiting for modem to come free”? I have implemented code that hard 
> reboots the device and restarts the faxgetty service when I detect it, 
> but it does not always come up again. This feels like a band aid 
> though. How do I go about finding the cause of the problem? I did read 
> that I should use the wedging application/script, but again, a band aid.
>
> I’m using a Davicom modem on an embedded linux os.
>

"Waiting for modem to come free" means that a process (usually faxgetty 
but also possibly faxsend) is wanting to access the modem, but that it 
sees a lock-file (from some other process) and is waiting for the 
lock-file to disappear.

HylaFAX does check the lock-file to see if the process is still running. 
It should clear the lock-file if the process is not alive.

So, to troubleshoot it when this happens you need to see what processes 
are using the modem device, what process is listed in the lock-file, and 
see which HylaFAX processes are running.

So, these commands may help:

lsof | grep /dev/ttyS3 (where /dev/ttyS3 is your modem device)
cat /var/lock/lck..ttyS3
ps aux | grep fax

Thanks,

Lee.


____________________ HylaFAX(tm) Users Mailing List _______________________
  To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
 On UNIX: mail -s unsubscribe [email protected] < /dev/null
  *To learn about commercial HylaFAX(tm) support, mail [email protected].*
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.