diff options
-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) |