diff options
author | hm <hm@FreeBSD.org> | 2001-10-18 08:03:23 +0000 |
---|---|---|
committer | hm <hm@FreeBSD.org> | 2001-10-18 08:03:23 +0000 |
commit | 14ecf90087e63c336e564c00614b36609593f538 (patch) | |
tree | 85a3e3e38d57e216d0613eabb68aae6a322e0d13 /usr.sbin/i4b | |
parent | 8542877fb0234ca544727110593979c5574ce8c8 (diff) | |
download | FreeBSD-src-14ecf90087e63c336e564c00614b36609593f538.zip FreeBSD-src-14ecf90087e63c336e564c00614b36609593f538.tar.gz |
keypad facility information element: add keypad facility information decoding.
MFC after: 1 month
Diffstat (limited to 'usr.sbin/i4b')
-rw-r--r-- | usr.sbin/i4b/isdntrace/q931.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/usr.sbin/i4b/isdntrace/q931.c b/usr.sbin/i4b/isdntrace/q931.c index 781c695..d69453e 100644 --- a/usr.sbin/i4b/isdntrace/q931.c +++ b/usr.sbin/i4b/isdntrace/q931.c @@ -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 @@ * q931.c - print Q.931 traces * --------------------------- * - * $Id: q931.c,v 1.10 2000/02/14 16:25:22 hm Exp $ - * * $FreeBSD$ * - * last edit-date: [Mon Feb 14 14:51:13 2000] + * last edit-date: [Wed Oct 17 14:49:16 2001] * *---------------------------------------------------------------------------*/ @@ -624,6 +622,16 @@ decode_q931(char *pbuf, int n, int off, unsigned char *buf, int raw) break; case 0x2c: sprintf((pbuf+strlen(pbuf)), "[keypad: "); + i++; + len = buf[i]; + i++; + for(j = 0; j < len; j++) + { + sprintf((pbuf+strlen(pbuf)),"%c", buf[j+i]); + } + sprintf((pbuf+strlen(pbuf)),"]"); + i += j; + goto next; break; case 0x30: sprintf((pbuf+strlen(pbuf)), "[keypad echo: "); |