[Kamailio-Users] insert_hf not persistant

Daniel-Constantin Mierla miconda at gmail.com
Thu Apr 30 09:48:59 CEST 2009


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/





More information about the sr-users mailing list