Never mind. I just had it print the uri instead of printing nothing and it works right. Just had to RTFS exec.c. /a
-------- Original Message -------- Subject: exec_dset() error checking? Date: Wed, 26 Nov 2003 15:39:18 -0500 From: Alan Crosswell alan@columbia.edu To: serusers@lists.iptel.org
The following code fragment causes a SER error rather than returning a detectable failure:
if (!exec_dset("/etc/ser/sipldap")) { sl_send_reply("404", "Not Found"); break; }
Nov 26 15:26:32 ren /usr/sbin/ser[30834]: INFO: SIGCHLD received: we do not worry about grand-children Nov 26 15:26:32 ren /usr/sbin/ser[30834]: ERROR:exec_str: no uri from /etc/ser/sipldap sip:wwww@columbia.edu
The script prints a URI and does exit 0 on success. It prints nothing and does exit 1 on failure. However, this does not appear to be seen as a failure by ser but rather a runtime error. What am I doing wrong?
/a PS: The documentation for exec_dset() misspells it as exec_dst() in http://iptel.org/ser/doc/modules/html/exec.html