summaryrefslogtreecommitdiff
path: root/pjsip
diff options
context:
space:
mode:
authorNanang Izzuddin <nanang@teluu.com>2013-02-27 09:57:58 +0000
committerNanang Izzuddin <nanang@teluu.com>2013-02-27 09:57:58 +0000
commit92c4ced573a60414ea24c2afeaeac57ce0758d30 (patch)
tree412f745b842766dcebef71499f3064ba33c1f203 /pjsip
parentf9681b24d393fc30dc86099ade679f16ab5318b0 (diff)
Re #1539: backported to 1.x
git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/1.x@4380 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip')
-rw-r--r--pjsip/src/pjsip/sip_dialog.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/pjsip/src/pjsip/sip_dialog.c b/pjsip/src/pjsip/sip_dialog.c
index 3b2ce15a..b76a0f9e 100644
--- a/pjsip/src/pjsip/sip_dialog.c
+++ b/pjsip/src/pjsip/sip_dialog.c
@@ -1871,6 +1871,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. */