Fix #1539: Applied non-strict update of remote capability info after receiving the first 2xx response.

git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4171 74dad513-b988-da41-8d7b-12977e46ad98
This commit is contained in:
Nanang Izzuddin 2012-06-19 13:14:21 +00:00
parent 091503029d
commit eff0a4c6e5
1 changed files with 9 additions and 0 deletions

View File

@ -1885,6 +1885,15 @@ void pjsip_dlg_on_rx_response( pjsip_dialog *dlg, pjsip_rx_data *rdata )
}
dlg_update_routeset(dlg, rdata);
/* Update remote capability info after the first 2xx response
* (ticket #1539). Note that the remote capability retrieved here
* will be assumed to remain unchanged for the duration of the dialog.
*/
if (dlg->role==PJSIP_ROLE_UAC && !dlg->uac_has_2xx) {
pjsip_dlg_update_remote_cap(dlg, rdata->msg_info.msg, PJ_FALSE);
dlg->uac_has_2xx = PJ_TRUE;
}
}
/* Pass to dialog usages. */