summaryrefslogtreecommitdiff
path: root/patlooptest.c
diff options
context:
space:
mode:
authormarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2003-10-30 23:17:02 +0000
committermarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2003-10-30 23:17:02 +0000
commit5de5efa71b183106b059157e4024d1e7bb434857 (patch)
treef7206ab483b5077b0f9faca16c017e0cd2eab18c /patlooptest.c
parent3e29b66d03ecccd8ce6c4f95d75a47afc603aa23 (diff)
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
Diffstat (limited to 'patlooptest.c')
-rwxr-xr-xpatlooptest.c4
1 files changed, 3 insertions, 1 deletions
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);
}