2009/5/26 Daniel-Constantin Mierla miconda@gmail.com:
looks like the function accepts only upper case protocol id while the PV is returning lowercase, try to use transformation:
http://www.kamailio.org/dokuwiki/doku.php/transformations:devel#s.toupper
allow_trusted("$si", "$(proto{s.toupper})")
Yes, the doc says:
Source address and transport protocol given in pvar arguments must be in string format. Valid transport protocol values are "UDP, "TCP", "TLS", and "SCTP".
However, wouldn't have the same beahviour if the second parameter is not set? AFAIK then the function would use the real transport protocolo (UDP in this case) and check it with the value in the table (ANY in this case).