Hello,

When outbound is fully supported the use of received parameters on URIs and the received column in the location table will (in theory at least) be able to be deprecated.  This is because all of the information that would previously have been stored in these is now in the flow-tokens in Record-Route:/Route: and Path: headers.

The biggest thing in the way of this right now is that the current outbound on Kamailio does not contain everything it requires for single-server proxy/registrar support.  What is required is:
There are some distinct advantages to the above over contact aliasing, mainly that it should help with interoperability issues (especially with SBCs which strip and do no restore parameters they do not recognise) and it should be easier for non-Kamailio users to understand as it is standards based.

If/when the above changes have been made I would also like to see nat_uac_test() moved out of the nathelper module and into another (perhaps siputils).  This makes it easier for people to have a clear choice of NAT traversal mechanisms, SIP outbound or contact aliasing.

Regards,

Peter


On Mon, 2013-01-07 at 18:32 +0100, Andrew Pogrebennyk wrote:
On 01/07/2013 01:29 PM, Andrew Pogrebennyk wrote:
> What I don't understand is why kamailio sets RURI of the OPTIONS message
> to value of "received" instead of the contact. I suspect a bug in the
> parser somewhere along these lines:
> 
>> >                 rval = ul.get_all_ucontacts(buf,cblen,(ping_nated_only?ul.nat_flag:0),

This needs some overhaul. The get_all_mem_ucontacts prefers received
over contact. So what nathelper does is set Path as $du and Received as
$ru, then send it. But in case home proxy which generated the NAT ping
is sitting behind the edge proxy and the user is behind NAT, we need to
pass both Contact and Received to the edge proxy.

It looks like we (Sipwise) need to introduce a few modparams so the user
choose what to put into $ru and $du (like 1 - Contact, 2 - Received, 3 -
Path). I'm just wondering if there is anything speaking against that or
missing in the light of SIP-Outbound implementation.

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Peter Dunkley
Technical Director
Crocodile RCS Ltd