Skip to content
Snippets Groups Projects
Commit fd8010de authored by Joshua Colp's avatar Joshua Colp
Browse files

res_pjsip_sdp_rtp: Fix retrieval of "ice-pwd" attribute if in session and not media stream.

........

Merged revisions 422746 from http://svn.asterisk.org/svn/asterisk/branches/12
........

Merged revisions 422747 from http://svn.asterisk.org/svn/asterisk/branches/13


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@422748 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent d42b1169
Branches
Tags
No related merge requests found
...@@ -419,7 +419,7 @@ static void process_ice_attributes(struct ast_sip_session *session, struct ast_s ...@@ -419,7 +419,7 @@ static void process_ice_attributes(struct ast_sip_session *session, struct ast_s
attr = pjmedia_sdp_media_find_attr2(remote_stream, "ice-pwd", NULL); attr = pjmedia_sdp_media_find_attr2(remote_stream, "ice-pwd", NULL);
if (!attr) { if (!attr) {
pjmedia_sdp_attr_find2(remote->attr_count, remote->attr, "ice-pwd", NULL); attr = pjmedia_sdp_attr_find2(remote->attr_count, remote->attr, "ice-pwd", NULL);
} }
if (attr) { if (attr) {
ast_copy_pj_str(attr_value, (pj_str_t*)&attr->value, sizeof(attr_value)); ast_copy_pj_str(attr_value, (pj_str_t*)&attr->value, sizeof(attr_value));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment