summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2013-09-29 15:39:28 +0200
committerHarald Welte <laforge@gnumonks.org>2013-09-29 15:39:28 +0200
commit25c512a7b622daf2efcf67ab707d12ca09b172ab (patch)
treedc1535e5791977a46ceefff6b1a2e36c6c5eaeb1
parent7792900d304518d5beb75bcca54c575cc3851013 (diff)
some modems (like wavecom) require a CR after the Ctrl+Z in PDU mode
-rw-r--r--src/gsmd/sms_cb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gsmd/sms_cb.c b/src/gsmd/sms_cb.c
index 7d69f12..e97d26d 100644
--- a/src/gsmd/sms_cb.c
+++ b/src/gsmd/sms_cb.c
@@ -299,6 +299,7 @@ int usock_rcv_sms(struct gsmd_user *gu, struct gsmd_msg_hdr *gph, int len)
gss) * 2;
}
buf[atcmd_len ++] = 26; /* ^Z ends the message */
+ buf[atcmd_len ++] = '\r';
buf[atcmd_len ++] = 0;
cmd = atcmd_fill(buf, atcmd_len, &sms_send_cb, gu, gph->id, NULL);
personal git repositories of Harald Welte. Your mileage may vary