diff --git a/source/ChangeLog b/source/ChangeLog index 8fc29de..259d64f 100644 --- a/source/ChangeLog +++ b/source/ChangeLog @@ -1,3 +1,8 @@ +2006-01-04 Evgeniy Kozhuhovskiy + + * bforce/daemon_call.c (daemon_call_branch): if phone == + 00-00-000000, we call via ip + 2005-10-24 Evgeniy Kozhuhovskiy * bforce/sess_call.c (call_system): added possibility to run diff --git a/source/bforce/daemon_call.c b/source/bforce/daemon_call.c index 4aeac40..e45a801 100644 --- a/source/bforce/daemon_call.c +++ b/source/bforce/daemon_call.c @@ -93,7 +93,7 @@ static int daemon_call_branch(s_sysentry *syst, const char *lockdir, s_modemport setproctitle("bforce calling %s, %s", ftn_addrstr(abuf, state.node.addr), state.node.phone); - if( syst->tcpip ) + if( ( syst->tcpip ) || (strcmp(state.node.phone,NO_PSTN_PHONE)) ) { rc = call_system_tcpip(); } diff --git a/source/include/bforce.h b/source/include/bforce.h index fb9be7e..ce3e014 100644 --- a/source/include/bforce.h +++ b/source/include/bforce.h @@ -39,6 +39,9 @@ #define BF_MAXDOMAIN 40 #define BF_MAXADDRSTR 80 +/* IP-only nodes phone */ +#define NO_PSTN_PHONE "00-00-000000" + /* * Maximum length of file name (without path) */