Version 0.1.9 from FTP
authorMark Spencer <markster@digium.com>
Tue, 31 Jul 2001 23:02:36 +0000 (23:02 +0000)
committerMark Spencer <markster@digium.com>
Tue, 31 Jul 2001 23:02:36 +0000 (23:02 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@348 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_modem_i4l.c

index ecb931b..5133a57 100755 (executable)
@@ -475,8 +475,8 @@ static int i4l_dialdigit(struct ast_modem_pvt *p, char digit)
 static int i4l_dial(struct ast_modem_pvt *p, char *stuff)
 {
        char cmd[80];
-       snprintf(cmd, sizeof(cmd), "ATD%c %s", p->dialtype,stuff);
-       if (ast_modem_send(p, cmd, 0)) {
+       snprintf(cmd, sizeof(cmd), "ATD%c %s\n", p->dialtype,stuff);
+       if (ast_modem_send(p, cmd, strlen(cmd))) {
                ast_log(LOG_WARNING, "Unable to dial\n");
                return -1;
        }