|
|
@ -771,7 +771,7 @@ int call_system(s_faddr addr, const s_bforce_opts *opts)
|
|
|
|
gotoexit(BFERR_PHONE_UNKNOWN);
|
|
|
|
gotoexit(BFERR_PHONE_UNKNOWN);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
DEB((D_EVENT,"sess_call: may use %d must use %d", call_mayuse, call_mustuse));
|
|
|
|
// snprintf(s, 299, "after IP check: may use %d must use %d", call_mayuse, call_mustuse);
|
|
|
|
// snprintf(s, 299, "after IP check: may use %d must use %d", call_mayuse, call_mustuse);
|
|
|
|
// log(s);
|
|
|
|
// log(s);
|
|
|
|
|
|
|
|
|
|
|
@ -807,29 +807,34 @@ int call_system(s_faddr addr, const s_bforce_opts *opts)
|
|
|
|
|
|
|
|
|
|
|
|
// try allowed methods and break if rc == 0
|
|
|
|
// try allowed methods and break if rc == 0
|
|
|
|
rc = -1;
|
|
|
|
rc = -1;
|
|
|
|
|
|
|
|
|
|
|
|
if( rc && call_mayuse & CALL_STDIO )
|
|
|
|
if( rc && call_mayuse & CALL_STDIO )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
DEB((D_EVENT,"sess_call: calling stdio"));
|
|
|
|
rc = call_system_quiet(opts->connect, opts->inetd);
|
|
|
|
rc = call_system_quiet(opts->connect, opts->inetd);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if( rc && call_mayuse & CALL_TCPIP_BINKP )
|
|
|
|
if( rc && call_mayuse & CALL_TCPIP_BINKP )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
DEB((D_EVENT,"sess_call: calling binkp"));
|
|
|
|
rc = call_system_tcpip(CALL_TCPIP_BINKP);
|
|
|
|
rc = call_system_tcpip(CALL_TCPIP_BINKP);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if( rc && call_mayuse & CALL_TCPIP_IFCICO )
|
|
|
|
if( rc && call_mayuse & CALL_TCPIP_IFCICO )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
DEB((D_EVENT,"sess_call: calling ifcico"));
|
|
|
|
rc = call_system_tcpip(CALL_TCPIP_IFCICO);
|
|
|
|
rc = call_system_tcpip(CALL_TCPIP_IFCICO);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if( rc && call_mayuse & CALL_TCPIP_TELNET )
|
|
|
|
if( rc && call_mayuse & CALL_TCPIP_TELNET )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
DEB((D_EVENT,"sess_call: calling telnet"));
|
|
|
|
rc = call_system_tcpip(CALL_TCPIP_TELNET);
|
|
|
|
rc = call_system_tcpip(CALL_TCPIP_TELNET);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if( rc && call_mayuse & CALL_MODEM )
|
|
|
|
if( rc && call_mayuse & CALL_MODEM )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
DEB((D_EVENT,"sess_call: calling MODEM"));
|
|
|
|
setproctitle("bforce calling %.32s, %.32s",
|
|
|
|
setproctitle("bforce calling %.32s, %.32s",
|
|
|
|
ftn_addrstr(abuf, state.node.addr), state.node.phone);
|
|
|
|
ftn_addrstr(abuf, state.node.addr), state.node.phone);
|
|
|
|
rc = -1;
|
|
|
|
rc = -1;
|
|
|
@ -850,6 +855,7 @@ int call_system(s_faddr addr, const s_bforce_opts *opts)
|
|
|
|
|
|
|
|
|
|
|
|
if( port_lock(p_lockdir, state.modemport) == 0 ) /* Successfuly locked port */
|
|
|
|
if( port_lock(p_lockdir, state.modemport) == 0 ) /* Successfuly locked port */
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
DEB((D_EVENT,"sess_call: call_system_modem running"));
|
|
|
|
rc = call_system_modem();
|
|
|
|
rc = call_system_modem();
|
|
|
|
port_unlock(p_lockdir, state.modemport);
|
|
|
|
port_unlock(p_lockdir, state.modemport);
|
|
|
|
}
|
|
|
|
}
|
|
|
|