On Fri, Jan 05, 2007 at 10:59:16PM +0100, Martin Hoffmann wrote:
Sure:
replace ("/^To:(.*);tag=[^;]*(;.*)/To:\1\2/");
subst ("/^To:(.*);tag=[A-Za-z0-9]*/To:\1/");
seems to work. A search for "User-Agent: Asterisk PBX" in the Invite should avoid trouble with other UA.
subst ("/^To:(.*);tag=[^;]*/To:\1/"); ignores line breaks even if no flag is used. That is not what I expected.