RURI rewrite actions do not work with tel: URIs
-----------------------------------------------
Key: SER-435
URL: http://tracker.iptel.org/browse/SER-435
Project: SER
Issue Type: Bug
Components: core
Affects Versions: Ipteldorf
Reporter: Miklos Tirpak
Attachments: uri_scheme.patch
Strip, prefix, rewriteuser, ... all the SET_* actions rewrite also the URI
scheme to sip: as a side effect, therefore it is not possible to use these
actions with any other URI than sip:. rewriteuser("+456") on the URI "tel:+123"
produces "sip:+456@" without any domain name for instance.
The attached patch fixes this problem, the original URI scheme is preserved
unless the host part of the RURI is rewritten. If the host part is rewritten,
and the URI scheme is tel: or tels:, then the RURI is automatically converted
to sip: or sips:, and the user=phone parameter is added.
A script function, userphone(), is also introduced: It adds the "user=phone"
parameter to a sip: or sips: RURI if the param is not yet present. (Does not
change tel: and tels: URIs).
(Patch has been created with cooperation with Michal Matyska.)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://tracker.iptel.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
Serdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/serdev