From 5de5efa71b183106b059157e4024d1e7bb434857 Mon Sep 17 00:00:00 2001 From: markster Date: Thu, 30 Oct 2003 23:17:02 +0000 Subject: Add DACS functionality to zaptel for cross connecting channels git-svn-id: http://svn.digium.com/svn/zaptel/trunk@262 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- patlooptest.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'patlooptest.c') diff --git a/patlooptest.c b/patlooptest.c index 405ccf8..2f3f2c7 100755 --- a/patlooptest.c +++ b/patlooptest.c @@ -80,7 +80,9 @@ int main(int argc, char *argv[]) res = write(fd,outbuf,bs); if (res != bs) { - printf("Res is %d\n", res); + printf("Res is %d: %s\n", res, strerror(errno)); + ioctl(fd, ZT_GETEVENT, &x); + printf("Event: %d\n", x); exit(1); } -- cgit v1.2.3