From 812e90999746431740f5a85e16bf8e2be6237584 Mon Sep 17 00:00:00 2001 From: martin Date: Thu, 6 May 2004 21:13:28 +0000 Subject: [PATCH] Make "local-phone-dialout" optional. This makes creating standard config files for peers that do not care about the calling number easy and helps roaming users. --- usr.sbin/isdn/isdnd/rc_config.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/usr.sbin/isdn/isdnd/rc_config.c b/usr.sbin/isdn/isdnd/rc_config.c index 577406c7acaa..820f49b6957a 100644 --- a/usr.sbin/isdn/isdnd/rc_config.c +++ b/usr.sbin/isdn/isdnd/rc_config.c @@ -27,7 +27,7 @@ * i4b daemon - config file processing * ----------------------------------- * - * $Id: rc_config.c,v 1.21 2004/03/28 20:49:22 pooka Exp $ + * $Id: rc_config.c,v 1.22 2004/05/06 21:13:28 martin Exp $ * * $FreeBSD$ * @@ -1239,12 +1239,6 @@ check_config(void) cep->name); error++; } - if (strlen(cep->local_phone_dialout) == 0) - { - logit(LL_ERR, "check_config: local-phone-dialout not set in entry \"%s\"!", - cep->name); - error++; - } } /* numbers used for incoming calls */ @@ -1584,7 +1578,9 @@ print_config(void) } } - fprintf(PFILE, "local-phone-dialout = %s\t\t# show this number to remote when dialling out\n", cep->local_phone_dialout); + if (cep->local_phone_dialout[0]) + fprintf(PFILE, "local-phone-dialout = %s\t\t# show this number to remote when dialling out\n", + cep->local_phone_dialout); fprintf(PFILE, "dialout-type = %s\n", cep->dialouttype ? "calledback\t\t# i am called back by remote" : "normal\t\t# i am not called back by remote"); }