summaryrefslogtreecommitdiff
path: root/ztcfg.c
diff options
context:
space:
mode:
authormarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2003-08-01 23:14:10 +0000
committermarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2003-08-01 23:14:10 +0000
commitd239f1c8263649b75bf160d67fb6247324d10e19 (patch)
tree3946ff50d9fe8230f6603a3d3891983e0293ba5e /ztcfg.c
parent8f3ec1462602188292773c3259422a1f91de9776 (diff)
warn about FXS/FXO
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@225 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'ztcfg.c')
-rwxr-xr-xztcfg.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ztcfg.c b/ztcfg.c
index b746767..583c4ce 100755
--- a/ztcfg.c
+++ b/ztcfg.c
@@ -730,6 +730,10 @@ int main(int argc, char *argv[])
}
if (cc[x].sigtype && ioctl(fd, ZT_CHANCONFIG, &cc[x])) {
fprintf(stderr, "ZT_CHANCONFIG failed on channel %d: %s (%d)\n", x, strerror(errno), errno);
+ if (errno == EINVAL) {
+ fprintf(stderr, "Did you forget that FXS interfaces are configured with FXO signalling\n"
+ "and that FXO interfaces use FXS signalling?\n");
+ }
close(fd);
exit(1);
}