[OpenSER-Devel] [ openser-Bugs-1857603 ] [CPL] $ru not properly updated CPL proxy_route

SourceForge.net noreply at sourceforge.net
Wed Jan 16 13:06:02 UTC 2008


Bugs item #1857603, was opened at 2007-12-24 18:09
Message generated for change (Settings changed) made by bogdan_iancu
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1857603&group_id=139143

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: modules
Group: ver 1.3.x
>Status: Closed
>Resolution: Invalid
Priority: 5
Private: No
Submitted By: Iñaki Baz (ibc_sf)
Assigned to: Bogdan-Andrei Iancu (bogdan_iancu)
Summary: [CPL] $ru not properly updated CPL proxy_route

Initial Comment:
I set a route for CPL processed messages:

  modparam("cpl-c","proxy_route", 10)

  route[10] {
      t_on_branch("10");
      xlog("L_INFO","route[10]: ru = $ru \n");
  }

  branch_route[10] {
      xlog("L_INFO", "branch_route[10]: ru = $ru \n");
  }

but $ru is not properly updated after CPL processing in the following case:

Incoming CPL for user "sip:test at domain":

 <lookup source="registration">
    <success>
       <proxy timeout="8">
          <noanswer>
             <location url="sip:voicemail at domain" />
                <proxy/>
             </location>
          </noanswer>
       </proxy>
    </success>
 </lookup>


Suppose test at domain is registered in "sip:test at IP_registered". If I call "sip:test at domain" logs show:

  route[10]: test at IP_registered
  branch_route[10]: test at IP_registered

but if there is no reply after 8 seconds I see:

  route[10]: test at IP_registered
  branch_route[10]: voicemail at domain


As you can see, $ru is not updated when reading it from "route[10]", but it's updated when readin it from "branch_route[10]". It seems a bug, isn't it?


----------------------------------------------------------------------

>Comment By: Bogdan-Andrei Iancu (bogdan_iancu)
Date: 2008-01-16 15:06

Message:
Logged In: YES 
user_id=1275325
Originator: NO

Hi Iñaki,

It is not a bug and it showing correct information.

The difference in the second scenario (with the 8 seconds of delay) is
that openser is doing serial forking as you are doing 2 sequential
proxying: First for the lookup result and second for the location node.
So, the URI from location will end up as branch and not as RURI (in the
route called by the proxy node). The URI will be moved as RURI only in
branch route, so here you see it correctly.

Regards,
Bogdan

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1857603&group_id=139143



More information about the Devel mailing list