diff options
Diffstat (limited to 'channels/chan_jingle.c')
-rw-r--r-- | channels/chan_jingle.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/channels/chan_jingle.c b/channels/chan_jingle.c index aad52e3cc..af0bd6ad8 100644 --- a/channels/chan_jingle.c +++ b/channels/chan_jingle.c @@ -893,13 +893,13 @@ static struct ast_channel *jingle_new(struct jingle *client, struct jingle_pvt * tmp->caller.id.name.presentation = client->callingpres; tmp->caller.id.number.presentation = client->callingpres; if (!ast_strlen_zero(client->accountcode)) - ast_string_field_set(tmp, accountcode, client->accountcode); + ast_channel_accountcode_set(tmp, client->accountcode); if (client->amaflags) tmp->amaflags = client->amaflags; if (!ast_strlen_zero(client->language)) - ast_string_field_set(tmp, language, client->language); + ast_channel_language_set(tmp, client->language); if (!ast_strlen_zero(client->musicclass)) - ast_string_field_set(tmp, musicclass, client->musicclass); + ast_channel_musicclass_set(tmp, client->musicclass); i->owner = tmp; ast_copy_string(tmp->context, client->context, sizeof(tmp->context)); ast_copy_string(tmp->exten, i->exten, sizeof(tmp->exten)); @@ -1583,7 +1583,7 @@ static struct ast_channel *jingle_request(const char *type, struct ast_format_ca ASTOBJ_WRLOCK(client); p = jingle_alloc(client, to, NULL); if (p) - chan = jingle_new(client, p, AST_STATE_DOWN, to, requestor ? requestor->linkedid : NULL); + chan = jingle_new(client, p, AST_STATE_DOWN, to, requestor ? ast_channel_linkedid(requestor) : NULL); ASTOBJ_UNLOCK(client); return chan; |