2009/5/26 Daniel-Constantin Mierla <[email protected]>: > 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). -- Iñaki Baz Castillo <[email protected]> _______________________________________________ Kamailio (OpenSER) - Users mailing list [email protected] http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
