El Lunes, 2 de Noviembre de 2009, Alexander escribió:
> subst("/^From: \".+\" (<sip: *[a-za-z0-9_\....@.*>)/From: \1/ig");I don't like it as a From URI could be a TEL or SIPS URI, and the username part can contain other characters as ;. Also, using < > is NOT required in a FROM URI, so this would fail if From is like: From: sip:[email protected];tag=qweqweqweqwe And the space after "From:" is not required so it could also fail. I would do: subst("/^From:(.*)/f: \1/ig"); -- Iñaki Baz Castillo <[email protected]> _______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
