aboutsummaryrefslogtreecommitdiffstats
path: root/src/bnetz
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2016-03-13 06:33:34 +0100
committerAndreas Eversberg <jolly@eversberg.eu>2016-03-13 09:12:43 +0100
commit3bee5e728a937a1a2f5732948e4cf0c3150b79e7 (patch)
treeca08e3f93ac47128067237b85cec342516b3e633 /src/bnetz
parente9234e3926d03d43e60e15301fe6484aba606794 (diff)
bnetz: Allow calling the phone using '05' prefix
Diffstat (limited to 'src/bnetz')
-rw-r--r--src/bnetz/bnetz.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bnetz/bnetz.c b/src/bnetz/bnetz.c
index cbe0a00..9819211 100644
--- a/src/bnetz/bnetz.c
+++ b/src/bnetz/bnetz.c
@@ -720,6 +720,8 @@ int call_out_setup(int callref, char *dialing)
int i;
/* 1. check if number is invalid, return INVALNUMBER */
+ if (strlen(dialing) == 7 && dialing[0] == '0' && dialing[1] == '5')
+ dialing += 2;
if (strlen(dialing) != 5) {
inval:
PDEBUG(DBNETZ, DEBUG_NOTICE, "Outgoing call to invalid number '%s', rejecting!\n", dialing);