pjsip_process_route_set() select wrong target, is it?

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

 



sorry, I make a mistake. Ignore it.

regards,
Gang

On Fri, Feb 27, 2009 at 3:06 PM, Gang Liu <gangban.lau at gmail.com> wrote:

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20090227/498e9425/attachment.html>


[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