summaryrefslogtreecommitdiff
path: root/src/gsmd
diff options
context:
space:
mode:
Diffstat (limited to 'src/gsmd')
-rw-r--r--src/gsmd/vendor_ti.c42
1 files changed, 1 insertions, 41 deletions
diff --git a/src/gsmd/vendor_ti.c b/src/gsmd/vendor_ti.c
index 6a633a6..e34cbaf 100644
--- a/src/gsmd/vendor_ti.c
+++ b/src/gsmd/vendor_ti.c
@@ -206,39 +206,6 @@ static const struct gsmd_unsolicit ticalypso_unsolicit[] = {
/* %CGEV: reports GPRS network events */
};
-static int cpmb_detect_cb(struct gsmd_atcmd *cmd, void *ctx, char *resp)
-{
- struct gsmd *g = ctx;
- struct gsm_extrsp *er;
- int rc;
- char atcmd_buf[20];
-
- if (strncmp(resp, "%CPMB: ", 7))
- return -EINVAL;
- resp += 7;
-
- er = extrsp_parse(cmd, resp);
- if (!er)
- return -ENOMEM;
-
- extrsp_dump(er);
-
- if (er->num_tokens == 5 &&
- er->tokens[2].type == GSMD_ECMD_RTT_STRING &&
- er->tokens[3].type == GSMD_ECMD_RTT_NUMERIC &&
- er->tokens[4].type == GSMD_ECMD_RTT_STRING) {
- snprintf(atcmd_buf, sizeof(atcmd_buf), "AT+CSVM=1,\"%s\",%d",
- er->tokens[2].u.string, er->tokens[3].u.numeric);
- rc = gsmd_simplecmd(g, atcmd_buf);
- } else {
- rc = -EINVAL;
- }
-
- talloc_free(er);
-
- return rc;
-}
-
static int cpi_detect_cb(struct gsmd_atcmd *cmd, void *ctx, char *resp)
{
struct gsmd *g = ctx;
@@ -252,11 +219,6 @@ static int cpi_detect_cb(struct gsmd_atcmd *cmd, void *ctx, char *resp)
if (!er)
return -EINVAL;
- /* retrieve voicemail number */
- cmd = atcmd_fill("AT%CPMB=1", 10, &cpmb_detect_cb, g, 0, NULL);
- if (cmd)
- atcmd_submit(g, cmd);
-
if (extrsp_supports(er, 0, 3))
return gsmd_simplecmd(g, "AT%CPI=3");
else if (extrsp_supports(er, 0, 2))
@@ -291,9 +253,7 @@ static int ticalypso_initsettings(struct gsmd *g)
rc |= gsmd_simplecmd(g, "AT%CSQ=1");
/* send unsolicited commands at any time */
rc |= gsmd_simplecmd(g, "AT%CUNS=0");
- /* enable %CPHS: Initialise CPHS Functionalities */
- rc |= gsmd_simplecmd(g, "AT%CPHS=1");
-
+
/* enable %CPI: call progress indication */
cmd = atcmd_fill("AT%CPI=?", 9, &cpi_detect_cb, g, 0, NULL);
if (cmd)
personal git repositories of Harald Welte. Your mileage may vary