diff options
author | Joshua Colp <jcolp@digium.com> | 2016-04-12 13:28:47 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2016-04-12 13:28:47 -0500 |
commit | 4ab4fc9141c30153d006392c3319c025aad08275 (patch) | |
tree | 574b753f793bbc19c28c8d7485fae37bafcee65b /res | |
parent | 70c788ec5e9c3ae4ee66ee05541c486849e103dc (diff) | |
parent | 5f768d2a9ca7e900f26cd82dd160f86bb45a1a72 (diff) |
Merge "res_pjsip_dialog_info: Add missing "direction" attribute in NOTIFY event" into 13
Diffstat (limited to 'res')
-rw-r--r-- | res/res_pjsip_dialog_info_body_generator.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/res/res_pjsip_dialog_info_body_generator.c b/res/res_pjsip_dialog_info_body_generator.c index 48ac60f98..b21b70fb1 100644 --- a/res/res_pjsip_dialog_info_body_generator.c +++ b/res/res_pjsip_dialog_info_body_generator.c @@ -133,6 +133,9 @@ static int dialog_info_generate_body_content(void *body, void *data) dialog = ast_sip_presence_xml_create_node(state_data->pool, dialog_info, "dialog"); ast_sip_presence_xml_create_attr(state_data->pool, dialog, "id", state_data->exten); + if (state_data->exten_state == AST_EXTENSION_RINGING) { + ast_sip_presence_xml_create_attr(state_data->pool, dialog, "direction", "recipient"); + } state = ast_sip_presence_xml_create_node(state_data->pool, dialog, "state"); pj_strdup2(state_data->pool, &state->content, statestring); |