Hi CallWeaver Users!
Running CallWeaver 1.2.0.1 on PowerMac with 10.4.11.
So i have incoming T.38 working and am using RxFAX() to receive faxes
and email the converted tif as pdf by doing a System() call to run a
script after seeing if RxFAX() received any pages.
But a strange thing has started to occur. Sometimes the script
"rxfaxdeliver" is not successfully called by CallWeaver but apparently
without rhyme nor reason as to when it works and when it doesn't.
Below are two console grabs (i've been leaving console open to watch
when faxes come in). One is where CW successfully called rxfaxdeliver
script and one where it didn't.
Good:
-- Executing [...@incoming-did:13] System("SIP/516567524-edf9",
"FAXFILE="pbx-isis-1229103591.48.tif" FAXPATH="/usr/local/callweaver/
var/spool/callweaver/rxfax/" REMOTESTATIONID="6179450496 "
FAXPAGES="1" FAXRESOLUTION="7700" FAXSENDER="+13238609370 "
MYFAX="unknown1" /usr/local/bin/rxfaxdeliver")
-- Executing [...@incoming-did:14] Verbose("SIP/516567524-edf9",
"Return from System call SYSTEMSTATUS="SUCCESS"")
Return from System call SYSTEMSTATUS=SUCCESS
Bad:
-- Executing [...@incoming-did:13] System("SIP/516567524-98f7",
"FAXFILE="pbx-isis-1229100346.34.tif" FAXPATH="/usr/local/callweaver/
var/spool/callweaver/rxfax/" REMOTESTATIONID="Via Fax "
FAXPAGES="1" FAXRESOLUTION="3850" FAXSENDER="+17325423012 "
MYFAX="unknown1" /usr/local/bin/rxfaxdeliver")
-- Executing [...@incoming-did:14] Verbose("SIP/516567524-98f7",
"Return from System call SYSTEMSTATUS="APPERROR"")
Return from System call SYSTEMSTATUS=APPERROR
I have tried running the script from the command line as if it was
called from CW and it ran fine:
FAXFILE="pbx-isis-1229100346.35.tif" FAXPATH="/usr/local/callweaver/
var/spool/callweaver/rxfax/" REMOTESTATIONID="Via Fax "
FAXPAGES="1" FAXRESOLUTION="3850" FAXSENDER="+17325423012 "
MYFAX="unknown1" /usr/local/bin/rxfaxdeliver
I checked the syslog and i see this message for an earlier failed
message (but not for the "Bad" one above:
callweaver[17190]: WARNING[17190]: app_system.c:101 in
system_exec_helper: Unable to execute 'FAXFILE=pbx-
isis-1229089538.21.tif FAXPATH=/usr/local/callweaver/var/spool/
callweaver/rxfax/ REMOTESTATIONID=Corp Travel dept FAXPAGES=1
FAXRESOLUTION=3850 FAXSENDER=+0000000000 MYFAX=unknown1 /usr/local/
bin/rxfaxdeliver'\n
Is there any way to get more info as to what is the actual error when
System() returns SYSTEMSTATUS=APPERROR?
Anyone have any clues as to what could be causing this intermittent
failure of the System() feature?
The only thing i see is that the one that failed from CW but ran ok
from command line has a REMOTESTAIONID that is multiword with
whitespace. Could CW be messing up not leaving quotes in the string
when passed to system()?
Peace,
Dan
_______________________________________________
Callweaver-users mailing list
[email protected]
http://lists.callweaver.org/mailman/listinfo/callweaver-users