[Kamailio-Users] Can't get allow_trusted to work

Iñaki Baz Castillo ibc at aliax.net
Tue May 26 18:56:25 CEST 2009


2009/5/26 Daniel-Constantin Mierla <miconda at 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).

-- 
Iñaki Baz Castillo
<ibc at aliax.net>



More information about the Users mailing list