[SR-Users] Routing issues with SIP Route headers.

Klaus Darilion klaus.mailinglists at pernau.at
Mon Sep 6 10:34:46 CEST 2010


The REGISTER request contains the "pre-loaded route set". Pre-loaded 
route sets are for security reasons disabled in the default config 
(to-tag check):

if (has_totag()) {
    # sequential request withing a dialog should
    # take the path determined by record-routing
    if (loose_route()) {
       ...
       route(RELAY);
    } else {
    ...

Either remove the totag check or add an explicit entry (eg. before the 
above block):

if (is_method("REGISTER") {
    # allow pre-loaded route set for REGISTER
    if (loose_route()) {
       ...
       route(RELAY);
    }
}


regards
Klaus


Am 02.09.2010 17:05, schrieb Siddhardha Garige:
> Hello all,
>
> I am having little trouble routing registrations based on route header
> in following configuration. UA sends registration to P1 and P1 is
> ignoring “route header” and forwards registration request to Registrar.
>
> I am using default kamailio configuration. Is there any thing I need to
> add to default config to enable route headers?
>
>
> UA----------------->proxy1(kamailio)------------------->proxy2------------------>Registrar
>
> REGISTER sip:Registrar.com SIP/2.0
>
> Via: SIP/2.0/UDP 10.18.0.67:5060;branch=z9hG4bKd209323e;rport
>
> Route: <sip:proxy2.com;lr>
>
> Max-Forwards: 70
>
> From: <sip:xxxxxx at registrar.com>;tag=a85f9424
>
> To: <sip:xxxxx at registrar.com>
>
> Contact: <sip:xxxxxxx at 10.18.0.67>
>
> Call-ID: 431368ae25a3e232
>
> CSeq: 100 REGISTER
>
> Expires: 840
>
> Allow: INVITE,ACK,BYE,CANCEL,OPTIONS,UPDATE,SUBSCRIBE,NOTIFY
>
> Supported:
>
> User-Agent: xg-tx60 3.1.17 (VeriCall Edge)
>
> Content-Length: 0
>
>
> Thanks
>
> Sid
>
>
>
> "May the light be with you."
> ______________________________________________
> Siddhardha Garige
> www.luminepixels.com <http://www.luminepixels.com/>
>
>
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users



More information about the sr-users mailing list