From 99cae5b7508f30a308afbbacf92ad306a30f68df Mon Sep 17 00:00:00 2001 From: Terry Wilson Date: Tue, 24 Jan 2012 20:12:09 +0000 Subject: Opaquify channel stringfields Continue channel opaque-ification by wrapping all of the stringfields. Eventually, we will restrict what can actually set these variables, but the purpose for now is to hide the implementation and keep people from adding code that directly accesses the channel structure. Semantic changes will follow afterward. Review: https://reviewboard.asterisk.org/r/1661/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@352348 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- addons/chan_mobile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'addons/chan_mobile.c') diff --git a/addons/chan_mobile.c b/addons/chan_mobile.c index b99b2d7f7..0588ef81b 100644 --- a/addons/chan_mobile.c +++ b/addons/chan_mobile.c @@ -837,7 +837,7 @@ static struct ast_channel *mbl_new(int state, struct mbl_pvt *pvt, char *cid_num ast_dsp_digitreset(pvt->dsp); chn = ast_channel_alloc(1, state, cid_num, pvt->id, 0, 0, pvt->context, - requestor ? requestor->linkedid : "", 0, + requestor ? ast_channel_linkedid(requestor) : "", 0, "Mobile/%s-%04lx", pvt->id, ast_random() & 0xffff); if (!chn) { goto e_return; @@ -854,7 +854,7 @@ static struct ast_channel *mbl_new(int state, struct mbl_pvt *pvt, char *cid_num if (state == AST_STATE_RING) chn->rings = 1; - ast_string_field_set(chn, language, "en"); + ast_channel_language_set(chn, "en"); pvt->owner = chn; if (pvt->sco_socket != -1) { -- cgit v1.2.3