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>
This commit is contained in:
parent
cd914ddc3c
commit
5fef4795b5
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user