On 07/04/2011 08:26 AM, IƱaki Baz Castillo wrote:
2011/7/4 Klaus Darilionklaus.mailinglists@pernau.at:
I want to avoid: $ru = "sip:" + $rU + "@" + "1.2.3.4:5060";
This would be a bit hack as, for now, there is no way to know which URI schema (sip or sips) has the RURI (there is no a pv for it). So if you are forcing "sip:" you could break something if the original RURI had "sips" schema.
This affects a relatively small minority of users who actually use SIP-TLS :-) but, I suppose one could work around it thusly:
$var(scheme) = $(ru{s.select,:,0}); $ru = $var(scheme) + $rU + "@1.2.3.4:5060";