[prev in list] [next in list] [prev in thread] [next in thread] 

List:       sr-users
Subject:    [Kamailio-Users] insert_hf not persistant
From:       miconda () gmail ! com (Daniel-Constantin Mierla)
Date:       2009-04-30 7:48:59
Message-ID: 49F957EB.1010900 () gmail ! com
[Download RAW message or body]

Hello,

what version of kamailio do you use. 1.5.x should do fine in such case, 
no matter it is not recommended to change the To header.

Cheers,
Daniel

On 04/29/2009 08:59 PM, David Aldworth wrote:
> I think I hijacked a thread when I posted this previously. Sorry 'bout 
> that.
>
> The issue we are having is where Kamailio relays an INVITE with the 
> correct To header field domain, however when it relays the subsequent 
> CANCEL it seems like it does not correctly change the To header field 
> domain.
>
> Here is what we use to try and put in the correct To header in the CANCEL:
>
>                   remove_hf("To");
>                    if ($tt == null)
>                        insert_hf("To: <sip:$rU at 1.2.3.4 
> <mailto:rU at 1.2.3.4>>\r\n", "From");
>                    else
>                        insert_hf("To: <sip:$rU at 1.2.3.4 
> <mailto:rU at 1.2.3.4>>;tag=$tt\r\n", "From");
>                    xlog("DBG1: Trying to fix CANCEL: td=$td ci=$ci 
> rm=$rm ru=$ru ou=$ou\n");
>
> Changes to the left side of the at-symbol persist, however changes to 
> the domain are reverted and changed back to what was received from 
> adjacent proxy.
>
> Any ideas why it reverts?
> ------------------------------------------------------------------------
>
> _______________________________________________
> Kamailio (OpenSER) - Users mailing list
> Users at lists.kamailio.org
> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
> http://lists.openser-project.org/cgi-bin/mailman/listinfo/users

-- 
Daniel-Constantin Mierla
http://www.asipto.com/




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic