Calls ION nodes again
This commit is contained in:
parent
fa75b267fc
commit
e855187fa9
@ -212,13 +212,15 @@ int call(faddr *addr)
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Call when:
|
* Call when:
|
||||||
* there is a phone number or fqdn/ip-address
|
* there is a phone number and node is not down, hold or pvt
|
||||||
* and
|
* or
|
||||||
* nodenumber on commandline, or node is CM and not down, hold, pvt
|
* there is a fqdn/ip-address and node is not down or hold
|
||||||
* and
|
*
|
||||||
|
* and
|
||||||
* nocall is false
|
* nocall is false
|
||||||
*/
|
*/
|
||||||
if ((forcedphone||inetaddr) && (((nlent->pflag & (NL_DUMMY|NL_DOWN|NL_HOLD|NL_PVT))==0) && ((localoptions & NOCALL)==0))) {
|
if (((forcedphone && ((nlent->pflag & (NL_DUMMY | NL_DOWN | NL_HOLD | NL_PVT)) == 0)) ||
|
||||||
|
(inetaddr && ((nlent->pflag & (NL_DUMMY | NL_DOWN | NL_HOLD)) == 0))) && ((localoptions & NOCALL) == 0)) {
|
||||||
Syslog('+', "Calling %s (%s, phone %s)", ascfnode(addr,0x1f), nlent->name, forcedphone);
|
Syslog('+', "Calling %s (%s, phone %s)", ascfnode(addr,0x1f), nlent->name, forcedphone);
|
||||||
IsDoing("Call %s", ascfnode(addr, 0x0f));
|
IsDoing("Call %s", ascfnode(addr, 0x0f));
|
||||||
rc = portopen(addr);
|
rc = portopen(addr);
|
||||||
|
Reference in New Issue
Block a user