Open GoogleCodeExporter opened 9 years ago
The actual issue is really with the SIPml-api.js - the following code snippet
from the function
tsip_dialog.prototype.request_new = function(g)
processes the Service-Route array (stored earlier during registration) and
generates "Service-Route" headers instead of "Route" headers - see corrected
code snippet below
if (this.e_state == tsip_dialog_state_e.INITIAL
|| this.e_state == tsip_dialog_state_e.EARLY) {
for ( var s = 0; s < q.ao_uri_service_routes.length; ++s) {
tsk_utils_log_info("adding service route header = " + q.ao_uri_service_routes[s]);
x.add_header(new tsip_header_Route(q.ao_uri_service_routes[s]))
//x.add_header(new tsip_header_Service_Route(q.ao_uri_service_routes[s]))
}
}
This generate the right originating INVITE for OpenIMSCore. However, if you
have webrtc2sip as a gateway, that does correctly drop the proxy (P-CSCF) Route
header but does NOT direct the INVITE to the P-CSCF - instead, it sends it to
the S-CSCF (the next Route entry). Most likely this is a bug in webrtc2sip
(still digging around....)
HTH
Original comment by Devasis....@gmail.com
on 30 Sep 2013 at 9:07
Original issue reported on code.google.com by
jorges...@gmail.com
on 24 Nov 2012 at 4:35