mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-18 18:58:22 +00:00
stasis_channels.c: Don't set channel snapshot caller_dnid twice.
Change-Id: Ib8d45bbdfbda81e65045f6dff874d189b74e5471
This commit is contained in:
@@ -236,22 +236,24 @@ struct ast_channel_snapshot *ast_channel_snapshot_create(struct ast_channel *cha
|
||||
S_COR(ast_channel_caller(chan)->id.name.valid, ast_channel_caller(chan)->id.name.str, ""));
|
||||
ast_string_field_set(snapshot, caller_number,
|
||||
S_COR(ast_channel_caller(chan)->id.number.valid, ast_channel_caller(chan)->id.number.str, ""));
|
||||
ast_string_field_set(snapshot, caller_dnid, S_OR(ast_channel_dialed(chan)->number.str, ""));
|
||||
ast_string_field_set(snapshot, caller_subaddr,
|
||||
S_COR(ast_channel_caller(chan)->id.subaddress.valid, ast_channel_caller(chan)->id.subaddress.str, ""));
|
||||
ast_string_field_set(snapshot, dialed_subaddr,
|
||||
S_COR(ast_channel_dialed(chan)->subaddress.valid, ast_channel_dialed(chan)->subaddress.str, ""));
|
||||
ast_string_field_set(snapshot, caller_ani,
|
||||
S_COR(ast_channel_caller(chan)->ani.number.valid, ast_channel_caller(chan)->ani.number.str, ""));
|
||||
|
||||
ast_string_field_set(snapshot, caller_rdnis,
|
||||
S_COR(ast_channel_redirecting(chan)->from.number.valid, ast_channel_redirecting(chan)->from.number.str, ""));
|
||||
|
||||
ast_string_field_set(snapshot, caller_dnid,
|
||||
S_OR(ast_channel_dialed(chan)->number.str, ""));
|
||||
ast_string_field_set(snapshot, dialed_subaddr,
|
||||
S_COR(ast_channel_dialed(chan)->subaddress.valid, ast_channel_dialed(chan)->subaddress.str, ""));
|
||||
|
||||
ast_string_field_set(snapshot, connected_name,
|
||||
S_COR(ast_channel_connected(chan)->id.name.valid, ast_channel_connected(chan)->id.name.str, ""));
|
||||
ast_string_field_set(snapshot, connected_number,
|
||||
S_COR(ast_channel_connected(chan)->id.number.valid, ast_channel_connected(chan)->id.number.str, ""));
|
||||
|
||||
ast_string_field_set(snapshot, language, ast_channel_language(chan));
|
||||
|
||||
if ((bridge = ast_channel_get_bridge(chan))) {
|
||||
|
Reference in New Issue
Block a user