[Asterisk-Dev] asterisk with "-p" switch
Joseph
syscon at interbaun.com
Fri Aug 12 19:23:49 MST 2005
Using Asterisk with Hylafax (faxes are coming via PSTN line).
I've been using Asterisk NVBackgroundDetect successfully for most of the
time but there are many times that I get an error:
COMREC invalid response received
Here is a partial Hylafax report:
"....
Aug 11 02:56:01.15: [ 8164]: Copy quality checking performed by host
Aug 11 02:56:19.42: [ 8164]: RECV: 2267 total lines, 0 bad lines, 0
consecutive bad lines
Aug 11 02:56:19.42: [ 8164]: --> [20:+FPTS: 1,2267,2267,0]
Aug 11 02:56:28.72: [ 8164]: --> [10:+FHNG: 102]
Aug 11 02:56:28.72: [ 8164]: REMOTE HANGUP: COMREC invalid response
received (code 102)
...."
The fax is coming-in OK but it does not confirm to correctly
transmitting fax and as a result I'm receiving the same page twice.
(I'm not getting this error when I'm running Hylafax directly).
I know that fax transmissions are time sensitive so I'm trying to
experiment and starting asterisk with "-p" switch. However, because I'm
starting * from init script I'm not sure if it works.
Is the way to verify that asterisk is running with "-p" switch?
I've modified the startup script to start asterisk with "-p"; however
asterisk starts several sub-precess-ID's. Do the sup-process-ID's are
effected by the "-p" switch?
I run schedtool (12189 is asterisk PID with -p switch) and it shows:
schedtool 12189
PID 12189: PRIO 0, POLICY N: SCHED_NORMAL, NICE -15, AFFINITY 0x1
I run schedtool (27421 is asterisk PID without -p switch) and it shows:
schedtool 27421
PID 27421: PRIO 0, POLICY N: SCHED_NORMAL, NICE -15, AFFINITY 0x1
I can verify that "nice" has taken effect but PRIO shows in both cases
"0"
--
#Joseph
More information about the asterisk-dev
mailing list