diff options
Diffstat (limited to 'channels')
-rwxr-xr-x | channels/chan_phone.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/channels/chan_phone.c b/channels/chan_phone.c index a2a0c461a..3493a4a1a 100755 --- a/channels/chan_phone.c +++ b/channels/chan_phone.c @@ -530,7 +530,8 @@ static int phone_write_buf(struct phone_pvt *p, char *buf, int len, int frlen) static int phone_send_text(struct ast_channel *ast, char *text) { int length = strlen(text); - return phone_write_buf(ast->pvt->pvt, text, length, length); + return phone_write_buf(ast->pvt->pvt, text, length, length) == + length ? 0 : -1; } static int phone_write(struct ast_channel *ast, struct ast_frame *frame) |