[sr-dev] assigning $rd buggy?

Alex Balashov abalashov at evaristesys.com
Mon Jul 4 14:37:45 CEST 2011


On 07/04/2011 08:26 AM, Iñaki Baz Castillo wrote:

> 2011/7/4 Klaus Darilion<klaus.mailinglists at 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";

-- 
Alex Balashov - Principal
Evariste Systems LLC
260 Peachtree Street NW
Suite 2200
Atlanta, GA 30303
Tel: +1-678-954-0670
Fax: +1-404-961-1892
Web: http://www.evaristesys.com/



More information about the sr-dev mailing list