[SR-Users] allow_trusted not passing

Daniel-Constantin Mierla miconda at gmail.com
Tue Nov 28 15:59:12 CET 2017


Hello,

one more thing to check -- the comparison is done by comparing the
string values, be sure there is no whitespace around.

On the other hand, if you do not need the pattern matching, I suggest to
use address table instead of trusted table, it is better optimized for
ip and network address matching.

Cheers,
Daniel


On 28.11.17 09:41, Sebastian Damm wrote:
> Hi,
>
> On Tue, Nov 28, 2017 at 1:47 AM, voipspace voipspace
> <voipspace at yandex.com> wrote:
>> Unfortunately that does not work. Second argument is required
> Try it with only if (!allow_trusted()) { ... }
>
> If you check against the source address, you don't need an argument at all.
>
> I don't know if some pattern is needed for the trusted entry to work.
> In our setup the trusted entries look like this:
>
> item: {
> ip: w.x.y.z
> proto: 0
> pattern: ^sip:.*$
> ruri_pattern: NULL
> tag: NULL
> priority: 0
> }
>
> Regards,
> Sebastian
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - www.asipto.com
Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com




More information about the sr-users mailing list