diff options
author | Hellmuth Michaelis <hm@FreeBSD.org> | 2001-01-16 13:10:51 +0000 |
---|---|---|
committer | Hellmuth Michaelis <hm@FreeBSD.org> | 2001-01-16 13:10:51 +0000 |
commit | b96f01353da2dbaa49f2268d68c33456a5eba234 (patch) | |
tree | 59928354723ff425338886f2e01b7ca2ca65566b /usr.sbin | |
parent | 98849115065f3203c1570734843a296af55fb076 (diff) | |
download | src-b96f01353da2dbaa49f2268d68c33456a5eba234.tar.gz src-b96f01353da2dbaa49f2268d68c33456a5eba234.zip |
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>
Notes
Notes:
svn path=/head/; revision=71111
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 1f17638427fd..4e8015c2944d 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) |