[Kamailio-Users] removal of tag-param in To Header

Iñaki Baz Castillo ibc at aliax.net
Wed Apr 1 13:32:55 CEST 2009


2009/4/1 Klaus Darilion <klaus.mailinglists at pernau.at>:
> There is no dedicated function. You can use the functions from textops
> module to replace the tag (using regular expressions) (make sure to not
> remove the \r at the end of the line)

Or you can remove the "To" header with remove_hf("To") and create a new one:
  insert_hf("To: <$tu>\r\n");

But I really wonder why you need to remove the To tag in an in-dialog request.

-- 
Iñaki Baz Castillo
<ibc at aliax.net>




More information about the sr-users mailing list