diff options
Diffstat (limited to 'channels')
-rwxr-xr-x | channels/chan_modem_i4l.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_modem_i4l.c b/channels/chan_modem_i4l.c index ecb931b72..5133a57c7 100755 --- a/channels/chan_modem_i4l.c +++ b/channels/chan_modem_i4l.c @@ -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; } |