[OpenSIPS-Devel] [ opensips-Patches-3510049 ] Allow $ru and $du to be changed in local_route

Nick nikbyte at gmail.com
Thu Mar 22 13:06:10 CET 2012


Where could we get the patch?

--
Nick


2012/3/22 SourceForge.net <noreply at sourceforge.net>

> Patches item #3510049, was opened at 2012-03-22 04:46
> Message generated for change (Tracker Item Submitted) made by saghul
> You can respond by visiting:
>
> https://sourceforge.net/tracker/?func=detail&atid=1086412&aid=3510049&group_id=232389
>
> Please note that this message will contain a full copy of the comment
> thread,
> including the initial issue submission, for this request,
> not just the latest update.
> Category: core
> Group: trunk
> Status: Open
> Resolution: None
> Priority: 5
> Private: No
> Submitted By: saghul (saghul)
> Assigned to: Nobody/Anonymous (nobody)
> Summary: Allow $ru and $du to be changed in local_route
>
> Initial Comment:
> Hi,
>
> Currently local_route doesn't allow the Request-URI not the destination
> URI to be changed, which is probably OK for many cases but I came across a
> case in which I can't solve a routing problem without setting the $du in
> the local_route.
>
> Scenario is as follows:
>
> Alice <--> P1 <--> P2 <--> Bob
>
> Alice and Bob belong to the same domain and are both registered on P2. P2
> alo has dialog ping feature enabled.
>
> Alice happens to use GRUU, so her Contact header's URI looks like this:
> sip:alice at atlanta.com;gr=1234567890
>
> When P2 generates the in-dialog OPTIONS request for Alice, it will contain
> Alice's GRUU as the RURI and P1 in a Route header. Because P2 is Alice's
> registrar, P1 will not know how to route that request.
>
> A workaround for this situation which doesn't require (presumably) complex
> changes is to self-forward the OPTIONS request in P2, then in the main
> routing block to a lookup() to get the real location of Alice, and
> loose_route(). This way, P1 will get the packet with Alice's received
> contact in the RURI and will know how to route it.
>
> Self forwarding could be avoided if lookup() was allowed in the
> local_route, but I didn't want to go that far.
>
> The attached patch allows $ru and $du to be changed in the local_route to
> be able to deal with the scenario described above.
>
>
> Regards,
>
> --
> Saúl Ibarra Corretgé
> AG Projects
>
>
> ----------------------------------------------------------------------
>
> You can respond by visiting:
>
> https://sourceforge.net/tracker/?func=detail&atid=1086412&aid=3510049&group_id=232389
>
> _______________________________________________
> Devel mailing list
> Devel at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20120322/2bc866a5/attachment.htm>


More information about the Devel mailing list