[Serdev] Bug in the | operator?
Federico Giannici
giannici at neomedia.it
Mon Sep 26 10:29:43 UTC 2005
As in "serusers" there was no reply to my previous email, I'm trying to
ask it here.
I found that in a command like the following, only the first two
alternatives are recognised (REGISTER and INVITE) but MESSAGE is never
matched:
if ( method == "REGISTER|INVITE|MESSAGE" )
So, which is true?
1) It is a bug.
2) It is a known limitation of the "|" operator.
3) It is a mistake by me.
Thanks.
Federico Giannici wrote:
> The "|" operator (in expressions like method ==
> "REGISTER|INVITE|MESSAGE") seems to DON'T work when used more than once
> in the string (with more than two choices).
>
> Is this a known limitation?
>
>
> Thanks.
>
--
___________________________________________________
__
|- giannici at neomedia.it
|ederico Giannici http://www.neomedia.it
___________________________________________________
More information about the Serdev
mailing list