pjsip_process_route_set() select wrong target, is it?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi benny,
??? When I try pjsip_endpt_send_request_stateless() function today, I
got the same issue which
C?dric. reported before.
   http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/2008-November/005565.html

   pjsip_process_route_set() function select request URI as target
when topmostRoute is loose route.But It should be URI from
topmostRoute. After change below code to use topmost_route_uri, the
trarget is correct.
...
	if (has_lr_param) {
	    new_request_uri = tdata->msg->line.req.uri;
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
	    /* We shouldn't need to delete topmost Route if it has lr param.
	     * But seems like it breaks some proxy implementation, so we
	     * delete it anyway.
	     */
	    /*
	    pj_list_erase(first_route_hdr);
	    if (first_route_hdr == last_route_hdr)
		last_route_hdr = NULL;
	    */
	} else {
	    new_request_uri = (const pjsip_uri*)
...

regards,
Gang



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux