[Kamailio-Users] removal of tag-param in To Header
Klaus Darilion
klaus.mailinglists at pernau.at
Wed Apr 1 17:12:33 CEST 2009
Iñaki Baz Castillo wrote:
> 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.
>
A common use case is a SIP client which gets confused by multiple early
dialogs (e.g. Asterisk in pedenatic mode). Just remove the totags from
the responses 101-199 and you are done.
regards
klaus
More information about the sr-users
mailing list