I am looking for the best way to remove headers from INVITES sent to my PSTN gateway. The invites from my UA are too long and return '513's when they include authentication. My provider doesn't support BYOD so getting them to change maxlength is not an option. there are several headers that are sent by my ua that are not sent by the ua they have provided. when I strip the extra headers out using textops subst function it leaves an empty line which the pstn gateway doesn't seem to like very much. Is there some other method to strip headers? or maybe my regular expression syntax is wrong? the re I use to select the Date: header for removal is '^Date:.*$' replaced with // . I am testing my re's using sed. I must admit I know nearly nothing about using regular expressions. Thanks, Dale
Hi Dale,
remove_hf("From"); remove_hf("To");
with remove_hf you can remove a headers. just like I did with From and To :-)
- Atle
* Dale J. Robertson dale@nap.com [051102 12:53]:
I am looking for the best way to remove headers from INVITES sent to my PSTN gateway. The invites from my UA are too long and return '513's when they include authentication. My provider doesn't support BYOD so getting them to change maxlength is not an option. there are several headers that are sent by my ua that are not sent by the ua they have provided. when I strip the extra headers out using textops subst function it leaves an empty line which the pstn gateway doesn't seem to like very much. Is there some other method to strip headers? or maybe my regular expression syntax is wrong? the re I use to select the Date: header for removal is '^Date:.*$' replaced with // . I am testing my re's using sed. I must admit I know nearly nothing about using regular expressions. Thanks, Dale
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers