On Monday 15 June 2015, Alex Balashov wrote:
On 06/15/2015 04:20 AM, Alex Hermann wrote:
$(rU{select,0,;}) will always select the username with all parameters stripped.
Will it? What if the parameters precede the username, i.e.
sip:param1=hyz;param2;abc;user@host
I have never heard about that. It is valid syntax according to the ABNF. But the URI ABNF does not specify user-parameters, the whole part between sip: and @ is the 'user' part.
If you want to define that ; in the 'user' part defines parameters, IMHO the only sensible thing to do is put them at the end. Otherwise, what would be the meaning? How would you know what part is a username? What makes 'user' a username and not 'param2' or 'abc', or even 'param1=hyz'?