[Kamailio-Users] insert_hf not persistant

David Aldworth daldworth at teliax.com
Wed Apr 29 18:32:31 CEST 2009


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>\r\n", "From");
                    else
                        insert_hf("To: <sip:$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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20090429/339ab8bd/attachment.htm>


More information about the sr-users mailing list