bnetz: Allow calling the phone using '05' prefix

This commit is contained in:
Andreas Eversberg 2016-03-13 06:33:34 +01:00
parent e9234e3926
commit 3bee5e728a
1 changed files with 2 additions and 0 deletions

View File

@ -720,6 +720,8 @@ int call_out_setup(int callref, char *dialing)
int i; int i;
/* 1. check if number is invalid, return INVALNUMBER */ /* 1. check if number is invalid, return INVALNUMBER */
if (strlen(dialing) == 7 && dialing[0] == '0' && dialing[1] == '5')
dialing += 2;
if (strlen(dialing) != 5) { if (strlen(dialing) != 5) {
inval: inval:
PDEBUG(DBNETZ, DEBUG_NOTICE, "Outgoing call to invalid number '%s', rejecting!\n", dialing); PDEBUG(DBNETZ, DEBUG_NOTICE, "Outgoing call to invalid number '%s', rejecting!\n", dialing);