diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2008-05-23 15:16:24 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2008-05-23 15:16:24 +0000 |
commit | 04128951db339ddfd7905adf92990f00a3a01447 (patch) | |
tree | fed6cec907ec871794693772483db9bd04e0422d /fxstest.c | |
parent | e027cd533ab52f09186f1bd4cd33e0f3aac0363c (diff) |
yay, all the tools compile now
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4339 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'fxstest.c')
-rw-r--r-- | fxstest.c | 25 |
1 files changed, 13 insertions, 12 deletions
@@ -5,16 +5,17 @@ #include <stdlib.h> #include <unistd.h> #include <sys/ioctl.h> -#include "kernel/zaptel.h" +#include <dahdi/user.h> +#include <dahdi/wctdm_user.h> + #include "tonezone.h" -#include "kernel/wctdm.h" static int tones[] = { - ZT_TONE_DIALTONE, - ZT_TONE_BUSY, - ZT_TONE_RINGTONE, - ZT_TONE_CONGESTION, - ZT_TONE_DIALRECALL, + DAHDI_TONE_DIALTONE, + DAHDI_TONE_BUSY, + DAHDI_TONE_RINGTONE, + DAHDI_TONE_CONGESTION, + DAHDI_TONE_DIALRECALL, }; int main(int argc, char *argv[]) @@ -39,8 +40,8 @@ int main(int argc, char *argv[]) } if (!strcasecmp(argv[2], "ring")) { fprintf(stderr, "Ringing phone...\n"); - x = ZT_RING; - res = ioctl(fd, ZT_HOOK, &x); + x = DAHDI_RING; + res = ioctl(fd, DAHDI_HOOK, &x); if (res) { fprintf(stderr, "Unable to ring phone...\n"); } else { @@ -50,18 +51,18 @@ int main(int argc, char *argv[]) } else if (!strcasecmp(argv[2], "polarity")) { fprintf(stderr, "Twiddling polarity...\n"); x = 0; - res = ioctl(fd, ZT_SETPOLARITY, &x); + res = ioctl(fd, DAHDI_SETPOLARITY, &x); if (res) { fprintf(stderr, "Unable to polarity...\n"); } else { fprintf(stderr, "Polarity is forward...\n"); sleep(2); x = 1; - ioctl(fd, ZT_SETPOLARITY, &x); + ioctl(fd, DAHDI_SETPOLARITY, &x); fprintf(stderr, "Polarity is reversed...\n"); sleep(5); x = 0; - ioctl(fd, ZT_SETPOLARITY, &x); + ioctl(fd, DAHDI_SETPOLARITY, &x); fprintf(stderr, "Polarity is forward...\n"); sleep(2); } |