Hi,
I've just installed new version of opensips 2.2.2 on the test box and
updated by routing script, the issue currently I'm seeing alot warning
messages while starting opensips service below;
/usr/sbin/opensips[6902]: WARNING:core:handle_timer_job: utimer job
has a 283 us delay in
Hi Răzvan,
Thanks. That worked correctly. I figured it was simple.
Thanks again,
Pat
Hi, Pat! The way you are using $rl_count is wrong, because the $rl_count pseudo
variable only accepts strings or other pvars, not formatted strings (such as
"cps_$avp(trunk_group)"). To achieve what you
Razvan, that's what I was looking for. I haven't tested it yet but it looks
like You made my day! Thanks
--
View this message in context:
http://opensips-open-sip-server.1449251.n2.nabble.com/Registrar-with-IP-authentication-selecting-variables-from-DB-tp7605514p7605556.html
Sent from the
You can do something like this:
avp_db_query("select ip from address where context_info='$fU'", "$avp(ip)");
if ($rc == -2) {
# not found in db
} else if ($avp(ip) != $si) {
# reject the call
}
Best regards,
Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.com
On 01/13/2017
Still I have to check login whether it exist in table. Then I have to compare
it to IP address.
--
View this message in context:
http://opensips-open-sip-server.1449251.n2.nabble.com/Registrar-with-IP-authentication-selecting-variables-from-DB-tp7605514p7605554.html
Sent from the OpenSIPS -
Use 0.0.0.0/0 for those without IP filter.
s
Il 13/01/2017 12:09, maatohewetbi ha scritto:
I think You don't understand. My Opensips should work in this scenario:
1. When user wants to register, I have to check whether his sip login is in
address table (which can be stored in context_info for
I think You don't understand. My Opensips should work in this scenario:
1. When user wants to register, I have to check whether his sip login is in
address table (which can be stored in context_info for example). If it is
there then check IP, which is in this record, for this sip login. If this
Hi Bogdan,
thank you for looking at this issue. This regex does not work. I tried
different combinations of the idea but it just not getting there.
2017-01-13T11:02:42.287766+01:00 ivr01 /usr/local/sbin/opensips[24845]:
DBG:core:tr_eval_re: we must compile the regexp
Hello!
The problem is that you are doing your logic in the onreply_route, which
is not transaction aware. You should move the logic in a name onreply
route that you engage in your main route. Something like:
route {
...
if (is_method("INVITE"))
t_on_reply(handle_timer);
Yes, it is. Provision the address table in the database and use the
check_source_address() functionin the script.
[1] http://www.opensips.org/html/docs/modules/2.2.x/permissions#id295007
Best regards,
Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.com
On 01/13/2017 11:03 AM,
Yes, but every IP and login should be in table. How can I read variables from
DB? Is it possible to do it?
--
View this message in context:
http://opensips-open-sip-server.1449251.n2.nabble.com/Registrar-with-IP-authentication-selecting-variables-from-DB-tp7605514p7605547.html
Sent from the
Then simply reverse the IP check logic and do it after the user is
authenticated.
Best regards,
Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.com
On 01/11/2017 01:15 PM, maatohewetbi wrote:
Yes, but I want to check sip login first, not an IP. Here is ny plan, what I
want to do:
-
Hi, Pat!
The way you are using $rl_count is wrong, because the $rl_count pseudo
variable only accepts strings or other pvars, not formatted strings
(such as "cps_$avp(trunk_group)").
To achieve what you are trying to do is to assign the name to a pvar and
feed it in the $rl_count's name:
13 matches
Mail list logo