diff options
author | Terry Wilson <twilson@digium.com> | 2012-02-13 17:27:06 +0000 |
---|---|---|
committer | Terry Wilson <twilson@digium.com> | 2012-02-13 17:27:06 +0000 |
commit | 34c55e8e7c87a92181fca3e0101dc456eef2475b (patch) | |
tree | ad27fca98a7df582348e14b0aaa42f0065cdef99 /addons/chan_mobile.c | |
parent | a955a4770fcdd7874e1337e7df694bcd293e020e (diff) |
Opaquify char * and char[] in ast_channel
Review: https://reviewboard.asterisk.org/r/1733/
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@354968 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'addons/chan_mobile.c')
-rw-r--r-- | addons/chan_mobile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/chan_mobile.c b/addons/chan_mobile.c index 90b059e0f..3f849d1c6 100644 --- a/addons/chan_mobile.c +++ b/addons/chan_mobile.c @@ -3586,7 +3586,7 @@ static int handle_response_cmgr(struct mbl_pvt *pvt, char *buf) return -1; } - strcpy(chan->exten, "sms"); + ast_channel_exten_set(chan, "sms"); pbx_builtin_setvar_helper(chan, "SMSSRC", from_number); pbx_builtin_setvar_helper(chan, "SMSTXT", text); @@ -3970,7 +3970,7 @@ static void *do_monitor_headset(void *data) ast_channel_set_fd(chan, 0, pvt->sco_socket); - ast_copy_string(chan->exten, "s", AST_MAX_EXTENSION); + ast_channel_exten_set(chan, "s"); if (ast_pbx_start(chan)) { ast_log(LOG_ERROR, "[%s] unable to start pbx on incoming call\n", pvt->id); ast_hangup(chan); |