Hello Team,
I am trying to remove Route Header (seems like preloaded)
remove_hf("Route")  but  it's not being removed.

i tried to put it in several places on the code but no success

  if (is_method("INVITE"))
                {
                  if (is_present_hf("Route"))
                  {
                    xlog("removing Route Header: $(hdr(Route)[0])\n");

                     remove_hf("Route");

                    xlog ( "Route Header still present?: $(hdr(Route)[0])\n"
);
                  }
                 route(RELAY);
                }


instead of it goes to


    if (loose_route())
                {
                  xlog("L_ERR","Attempt to route with preloaded Route's
[$fu/$tu/$ru/$ci]")

                    if (!is_method("ACK")){
                     send_reply("403","Preload Route denied");
                    exit;
                    }
                }



opensips 2.4.8


what i am doing wrong ?
_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to