Skip to content
Snippets Groups Projects
Commit dc297cd0 authored by Mark Spencer's avatar Mark Spencer
Browse files

Fix chan_phone error code (bug #3692)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5116 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent a5a45131
No related branches found
No related tags found
No related merge requests found
...@@ -530,7 +530,8 @@ static int phone_write_buf(struct phone_pvt *p, char *buf, int len, int frlen) ...@@ -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) static int phone_send_text(struct ast_channel *ast, char *text)
{ {
int length = strlen(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) static int phone_write(struct ast_channel *ast, struct ast_frame *frame)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment