diff options
author | Terry Wilson <twilson@digium.com> | 2012-01-25 01:21:23 +0000 |
---|---|---|
committer | Terry Wilson <twilson@digium.com> | 2012-01-25 01:21:23 +0000 |
commit | 213f7a65b55e0cc5a52ded22fba0532499fa3274 (patch) | |
tree | 51ec3b71908a1f361b416b055941902986dfa07b /channels | |
parent | 0fe90432334fdf6aabf82391f5f2ca83f494a033 (diff) |
Fix channel opaquification of stringfields for chan_vpb
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@352475 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_vpb.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/channels/chan_vpb.cc b/channels/chan_vpb.cc index 71e7febee..312730d78 100644 --- a/channels/chan_vpb.cc +++ b/channels/chan_vpb.cc @@ -2475,7 +2475,7 @@ static struct ast_channel *vpb_new(struct vpb_pvt *me, enum ast_channel_state st else strcpy(tmp->exten, "s"); if (!ast_strlen_zero(me->language)) - ast_string_field_set(tmp, language, me->language); + ast_channel_language_set(tmp, me->language); me->owner = tmp; @@ -2538,13 +2538,13 @@ static struct ast_channel *vpb_request(const char *type, struct ast_format_cap * if (group == -1) { if (strncmp(s, p->dev + 4, sizeof p->dev) == 0) { if (!p->owner) { - tmp = vpb_new(p, AST_STATE_DOWN, p->context, requestor ? requestor->linkedid : NULL); + tmp = vpb_new(p, AST_STATE_DOWN, p->context, requestor ? ast_channel_linkedid(requestor) : NULL); break; } } } else { if ((p->group == group) && (!p->owner)) { - tmp = vpb_new(p, AST_STATE_DOWN, p->context, requestor ? requestor->linkedid : NULL); + tmp = vpb_new(p, AST_STATE_DOWN, p->context, requestor ? ast_channel_linkedid(requestor) : NULL); break; } } |