[prev in list] [next in list] [prev in thread] [next in thread]
List: openser-users
Subject: Re: [SR-Users] allow_trusted not passing
From: voipspace voipspace <voipspace () yandex ! com>
Date: 2017-11-29 11:13:29
Message-ID: 25921511954009 () web51o ! yandex ! ru
[Download RAW message or body]
[Attachment #2 (text/html)]
<div>Thanks guys</div><div> </div><div>It worked for me now</div><div> \
</div><div><pre style="background-color:#fcfffc;border-radius:2.5px;border:1px solid \
#99cccc;color:#000000;font-family:monospace;font-size:15px;font-style:normal;font-vari \
ant:normal;font-weight:normal;line-height:normal;overflow:auto;padding-left:15pt;text-align:start;text-transform:none;">(allow_trusted("$si", \
"$proto"))</pre></div><div>and set UDP as proto is database</div><div> </div><div> \
</div><div>28.11.2017, 15:01, "Daniel-Constantin Mierla" \
<miconda@gmail.com>:</div><blockquote type="cite"><p>Hello,<br /><br />one more \
thing to check -- the comparison is done by comparing the<br />string values, be sure \
there is no whitespace around.<br /><br />On the other hand, if you do not need the \
pattern matching, I suggest to<br />use address table instead of trusted table, it is \
better optimized for<br />ip and network address matching.<br /><br />Cheers,<br \
/>Daniel<br /><br /><br />On 28.11.17 09:41, Sebastian Damm wrote:</p><blockquote> \
Hi,<br /><br /> On Tue, Nov 28, 2017 at 1:47 AM, voipspace voipspace<br /> <<a \
href="mailto:voipspace@yandex.com">voipspace@yandex.com</a>> wrote:<blockquote> \
Unfortunately that does not work. Second argument is required</blockquote> Try it \
with only if (!allow_trusted()) { ... }<br /><br /> If you check against the source \
address, you don't need an argument at all.<br /><br /> I don't know if some pattern \
is needed for the trusted entry to work.<br /> In our setup the trusted entries look \
like this:<br /><br /> item: {<br /> ip: w.x.y.z<br /> proto: 0<br /> pattern: \
^sip:.*$<br /> ruri_pattern: NULL<br /> tag: NULL<br /> priority: 0<br /> }<br /><br \
/> Regards,<br /> Sebastian<br /><br /> \
_______________________________________________<br /> Kamailio (SER) - Users Mailing \
List<br /> <a href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a><br \
/> <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a></blockquote><p> \
</p><span>--<br />Daniel-Constantin Mierla<br /><a \
href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a \
href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a><br \
/>Kamailio Advanced Training - <a href="http://www.asipto.com/">www.asipto.com</a><br \
/>Kamailio World Conference - May 14-16, 2018 - <a \
href="http://www.kamailioworld.com/">www.kamailioworld.com</a></span><p><br /><br \
/>_______________________________________________<br />Kamailio (SER) - Users Mailing \
List<br /><a href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a><br \
/><a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a></p></blockquote>
[Attachment #3 (text/plain)]
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic