Skip to content

Commit

Permalink
Pass known caller id as remotenumber to pppd.
Browse files Browse the repository at this point in the history
Signed-off-by: Jaco Kroon <[email protected]>
  • Loading branch information
jkroonza committed Oct 18, 2022
1 parent 09737a1 commit 3ba2770
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions xl2tpd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3ba2770

Please sign in to comment.