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:
$va
Hi, Ahmed!
OpenSIPS 1.6.3 is no longer supported (since 2013), so there's not much
we can do right now. Try upgrading your install to the latest 1.6.4
version and see if your problem is solved. Otherwise, upgrade to a
newer, supported version, preferably the latest stable release, 2.2.2.
Bes
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:
-
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 Ope
Hi, Soren!
What version of OpenSIPS are you running?
Also, can you send over the debug logs for this scenario?
Best regards,
Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.com
On 01/12/2017 01:13 PM, Søren Andersen wrote:
Hello,
I’ve some trouble with forceing 1 AOR per contact.
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, maatohe
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);
...
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
2017-01-13T11:02:42
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 IP
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
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
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 01:
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 OpenS
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 a
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 execution
15 matches
Mail list logo