diff options
author | hm <hm@FreeBSD.org> | 2001-10-18 11:58:49 +0000 |
---|---|---|
committer | hm <hm@FreeBSD.org> | 2001-10-18 11:58:49 +0000 |
commit | 49e3567ef7c9c2e6bb7da47b86af7b991b1d1bd1 (patch) | |
tree | dcfe434253eaa1290451be56d7a4ca351036de67 /sys/i386/include | |
parent | 4153de7b054229b20a09957ffa86037f696d6da4 (diff) | |
download | FreeBSD-src-49e3567ef7c9c2e6bb7da47b86af7b991b1d1bd1.zip FreeBSD-src-49e3567ef7c9c2e6bb7da47b86af7b991b1d1bd1.tar.gz |
Add experimental support for sending keypad facility messages.
MFC after: 2 months
Diffstat (limited to 'sys/i386/include')
-rw-r--r-- | sys/i386/include/i4b_ioctl.h | 20 | ||||
-rw-r--r-- | sys/i386/include/i4b_tel_ioctl.h | 7 |
2 files changed, 20 insertions, 7 deletions
diff --git a/sys/i386/include/i4b_ioctl.h b/sys/i386/include/i4b_ioctl.h index e71c486..8e685e3 100644 --- a/sys/i386/include/i4b_ioctl.h +++ b/sys/i386/include/i4b_ioctl.h @@ -29,7 +29,7 @@ * * $FreeBSD$ * - * last edit-date: [Sat Jul 21 12:24:56 2001] + * last edit-date: [Thu Oct 18 13:40:40 2001] * *---------------------------------------------------------------------------*/ @@ -46,8 +46,8 @@ * version and release number for isdn4bsd package *---------------------------------------------------------------------------*/ #define VERSION 1 /* version number */ -#define REL 0 /* release number */ -#define STEP 1 /* release step */ +#define REL 1 /* release number */ +#define STEP 0 /* release step */ /*---------------------------------------------------------------------------* * date/time format in i4b log messages @@ -170,6 +170,7 @@ #define TELNO_MAX 41 /* max length of a telephone number (+ '\0') */ #define DISPLAY_MAX 91 /* max length of display information (+ '\0') */ #define DATETIME_MAX 21 /* max length of datetime information (+ '\0')*/ +#define KEYPAD_MAX 35 /* max length of a keypad string (+ '\0') */ /*---------------------------------------------------------------------------* * in case the src or dst telephone number is empty @@ -318,6 +319,7 @@ typedef struct { #define MSG_IFSTATE_CHANGED_IND 'o' #define MSG_DIALOUTNUMBER_IND 'p' #define MSG_PACKET_IND 'q' +#define MSG_KEYPAD_IND 'r' int cdid; /* call descriptor id */ } msg_hdr_t; @@ -410,6 +412,17 @@ typedef struct { } msg_dialoutnumber_ind_t; /*---------------------------------------------------------------------------* + * send keypad string + *---------------------------------------------------------------------------*/ +typedef struct { + msg_hdr_t header; /* common header */ + int driver; /* driver type */ + int driver_unit; /* driver unit number */ + int cmdlen; /* length of string */ + char cmd[KEYPAD_MAX];/* keypad string */ +} msg_keypad_ind_t; + +/*---------------------------------------------------------------------------* * idle timeout disconnect sent indication * kernel has sent disconnect request because of b-ch idle *---------------------------------------------------------------------------*/ @@ -556,6 +569,7 @@ typedef struct { #define ULEN_METHOD_DYNAMIC 1 /* use AOCD */ char dst_telno[TELNO_MAX]; /* destination telephone no */ char src_telno[TELNO_MAX]; /* source telephone number */ + char keypad[KEYPAD_MAX]; /* keypad string */ } msg_connect_req_t; #define I4B_CONNECT_REQ _IOW('4', 1, msg_connect_req_t) diff --git a/sys/i386/include/i4b_tel_ioctl.h b/sys/i386/include/i4b_tel_ioctl.h index 0f955af..3b92922 100644 --- a/sys/i386/include/i4b_tel_ioctl.h +++ b/sys/i386/include/i4b_tel_ioctl.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2000 Hellmuth Michaelis. All rights reserved. + * Copyright (c) 1997, 2001 Hellmuth Michaelis. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -27,11 +27,9 @@ * i4b_tel_ioctl.h telephony interface ioctls * ------------------------------------------ * - * $Id: i4b_tel_ioctl.h,v 1.13 2000/01/12 14:49:36 hm Exp $ - * * $FreeBSD$ * - * last edit-date: [Wed Jan 12 15:47:11 2000] + * last edit-date: [Wed Oct 17 13:47:03 2001] * *---------------------------------------------------------------------------*/ @@ -83,6 +81,7 @@ struct i4b_tel_tones { #define CMD_DIAL 'D' /* dial the following number string */ #define CMD_HUP 'H' /* hangup */ +#define CMD_KEYP 'K' /* send keypad string */ /* dialer responses */ |