[sr-dev] About SIP and TEL uri in SR
Martin Hoffmann
martin.hoffmann at telio.ch
Thu Aug 6 10:43:31 CEST 2009
Iñaki Baz Castillo wrote:
>
> The current "support" of TEL uri is also a "hack", since after parsing
> a TEL URI what we have is:
> - $rU = null
> - $rd = the TEL number
> (note: parhaps is the opposite)
>
> I'd realy would like to have something as:
> - $rtU = RURI TEL number
> - $rtparams = RURI TEL parameters
Call me biased, but I do prefer the select stuff:
@ruri.type -> "tel"
@ruri.user -> number
@ruri.params -> parameters
@ruri.params["phone-context"] -> phone-context parameter
The only thing I always need to look up is whether it is user or
username. One could probably add a sub-select "number" which is only
valid if the type is "tel" or if the username part of the URI consists
of characters valid in a TEL URI.
I know C people like their functions and variables to have cryptical
names for hyst[eo]rical reasons, but this is so 20th century.
Regards,
Martin
More information about the sr-dev
mailing list