summaryrefslogtreecommitdiffstats
path: root/gatchat/gsmdial.c
diff options
context:
space:
mode:
Diffstat (limited to 'gatchat/gsmdial.c')
-rw-r--r--gatchat/gsmdial.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gatchat/gsmdial.c b/gatchat/gsmdial.c
index d15aaa91..63f1c0f9 100644
--- a/gatchat/gsmdial.c
+++ b/gatchat/gsmdial.c
@@ -54,6 +54,7 @@ static gboolean option_legacy = FALSE;
static gboolean option_ppp = FALSE;
static gchar *option_username = NULL;
static gchar *option_password = NULL;
+static gchar *option_pppdump = NULL;
static GAtPPP *ppp;
static GAtChat *control;
@@ -271,6 +272,9 @@ static void connect_cb(gboolean ok, GAtResult *result, gpointer user_data)
}
g_at_ppp_set_debug(ppp, gsmdial_debug, "PPP");
+ if (option_pppdump)
+ g_at_ppp_set_recording(ppp, option_pppdump);
+
g_at_ppp_set_credentials(ppp, option_username, option_password);
/* set connect and disconnect callbacks */
@@ -581,7 +585,9 @@ static GOptionEntry options[] = {
{ "username", 'u', 0, G_OPTION_ARG_STRING, &option_username,
"Specify PPP username" },
{ "password", 'w', 0, G_OPTION_ARG_STRING, &option_password,
- "Specifiy PPP password" },
+ "Specify PPP password" },
+ { "pppdump", 'D', 0, G_OPTION_ARG_STRING, &option_pppdump,
+ "Specify pppdump filename" },
{ NULL },
};