From 3ba27700868d76ba676b57c52aaf8da337eaa824 Mon Sep 17 00:00:00 2001 From: Jaco Kroon Date: Tue, 18 Oct 2022 12:46:11 +0200 Subject: [PATCH] Pass known caller id as remotenumber to pppd. Signed-off-by: Jaco Kroon --- xl2tpd.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xl2tpd.c b/xl2tpd.c index 3195988a..477ffaca 100644 --- a/xl2tpd.c +++ b/xl2tpd.c @@ -495,6 +495,12 @@ int start_pppd (struct call *c, struct ppp_opts *opts) } { + if (c->dialing[0]) + { + stropt[pos++] = strdup("remotenumber"); + stropt[pos++] = strdup(c->dialing); + } + struct ppp_opts *p = opts; int maxn_opts = sizeof(stropt) / sizeof(stropt[0]) - 1; while (p && pos < maxn_opts)