Hello,
On 9/14/11 9:55 AM, Andreas Granig wrote:
Hi Daniel,
On 09/14/2011 08:30 AM, Daniel-Constantine Mierla wrote:
Seems like the rr params value is not set
properly. I looked in rr module and such case can happen indeed, but for the case when uri
in rr does not match myself. Is this also in your case? I wonder anyhow why the callbacks
are executed in route header uri is not local address...
Indeed it happens when it
doesn't match itself.
ok, so then it is found, fix to be done later.
However, I wonder if it makes sense to execute the rr calbacks when the
uri does not match myself. IIRC, the purpose of rr callbacks was to
access parameters added by proxy itself in record-route header which
should be mirrored by route headers. Do I misunderstand their goal?
Afaik path, dialog and uac modules use them to get parameters for dialog
id, from header recovery ... which are added by proxy itself. Not sure
for path module, is it about accessing parameters set by same instance
in record-route?
Cheers,
Daniel
Btw, were all hops in the signaling performing
loose routing or some did strict routing?
Well, the use-case is this:
REGISTER sip:mydomain.com:5060
Route:<sip:mydomain.com;lr>
To:<sip:myuser@mydomain.com>
So it's an initial REGISTER with no to-tag but with a Route header (e.g.
pjsip loves to do that for some reason for every initial request). We're
using Kamailio as a load-balancer (this is where the error occurs) in
the SPCE, and we don't set any "alias" parameter there, so the Route is
not considered local.
Instead, we're doing something like this:
if(loose_route()) {
if(!has_totag()) {
$du = $null;
# send off to proxy using dispatcher
} else {
t_relay();
}
}
Then on the proxy we check again after loose_route() using
is_domain_local("$dd") to either silently consume routes which are in
our domain table or to reject them if not.
Thanks,
Andreas
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla --
http://www.asipto.com
Kamailio Advanced Training, Oct 10-13, Berlin:
http://asipto.com/u/kat
http://linkedin.com/in/miconda --
http://twitter.com/miconda