diff options
author | hm <hm@FreeBSD.org> | 2001-01-16 13:10:51 +0000 |
---|---|---|
committer | hm <hm@FreeBSD.org> | 2001-01-16 13:10:51 +0000 |
commit | 9a23105d94a01c9bdebb18d839970bcce80286b0 (patch) | |
tree | 8f208cf10ef6b1fa1ca17eda7d4dcab00393c5e7 /usr.sbin | |
parent | 1476a16d4654cf8e3a11dc186bfc10c820fa7cab (diff) | |
download | FreeBSD-src-9a23105d94a01c9bdebb18d839970bcce80286b0.zip FreeBSD-src-9a23105d94a01c9bdebb18d839970bcce80286b0.tar.gz |
Enhance find_matching_entry_incoming() to check if the controller, on
which the call gets in, matches the one given in the entry section, or
-1 for any controller.
Submitted by: Oliver von Bueren <maillist@ovb.ch>
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/i4b/isdnd/support.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/usr.sbin/i4b/isdnd/support.c b/usr.sbin/i4b/isdnd/support.c index 1f17638..4e8015c 100644 --- a/usr.sbin/i4b/isdnd/support.c +++ b/usr.sbin/i4b/isdnd/support.c @@ -31,7 +31,7 @@ * * $FreeBSD$ * - * last edit-date: [Thu Nov 30 20:36:29 2000] + * last edit-date: [Tue Jan 16 14:07:12 2001] * *---------------------------------------------------------------------------*/ @@ -444,6 +444,20 @@ find_matching_entry_incoming(msg_connect_ind_t *mp) return(NULL); } + /* + * check controller he wants, check for any + * controller or specific controller + */ + + if( (mp->controller != -1) && + (mp->controller != cep->isdncontroller) ) + { + log(LL_CHD, "%05d %s incoming call, controller %d != incoming %d", + mp->header.cdid, cep->name, + cep->isdncontroller, mp->controller); + continue; + } + /* check channel he wants */ switch(mp->channel) |