From b89f8dcb096a825065d48c8749cf24a028bd18aa Mon Sep 17 00:00:00 2001 From: Evgeniy Kozhuhovskiy Date: Thu, 5 Jan 2006 05:12:33 +0000 Subject: [PATCH] see changelog --- source/ChangeLog | 5 +++++ source/bforce/daemon_call.c | 2 +- source/include/bforce.h | 3 +++ 3 files changed, 9 insertions(+), 1 deletion(-) 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) */