aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_sendtext.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-10 15:30:59 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-10 15:30:59 +0000
commit7554f54ea83d348a887dac60775cac0cda9b1396 (patch)
tree01d5ec67b53cac9f9d0ca913019fc14cc5d220fd /apps/app_sendtext.c
parent652ba9ff190198ca5019f095638a5435aff53a40 (diff)
use the channel lock wrappers (issue #7120, Mithraen)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26528 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_sendtext.c')
-rw-r--r--apps/app_sendtext.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/app_sendtext.c b/apps/app_sendtext.c
index 248c559bc..e9bdfe571 100644
--- a/apps/app_sendtext.c
+++ b/apps/app_sendtext.c
@@ -93,9 +93,9 @@ static int sendtext_exec(struct ast_channel *chan, void *data)
priority_jump = 1;
}
- ast_mutex_lock(&chan->lock);
+ ast_channel_lock(chan);
if (!chan->tech->send_text) {
- ast_mutex_unlock(&chan->lock);
+ ast_channel_unlock(chan);
/* Does not support transport */
if (priority_jump || ast_opt_priority_jumping)
ast_goto_if_exists(chan, chan->context, chan->exten, chan->priority + 101);
@@ -103,7 +103,7 @@ static int sendtext_exec(struct ast_channel *chan, void *data)
return 0;
}
status = "FAILURE";
- ast_mutex_unlock(&chan->lock);
+ ast_channel_unlock(chan);
res = ast_sendtext(chan, args.text);
if (!res)
status = "SUCCESS";