Hi All,
Kamailio 3.0 permissions module, I see that the address database table
is cached by default, really the only option. But there is no MI
Function to reload the database into cache, you must restart kamailio
to update the cache for the address table. Is there any reason the
reload MI function is not there for the address table? It is present
for the trusted table and works fine.
I like the trusted db option to use cache or no cache, I'm wondering
if this option can be extended to the …
[View More]address table as well? Also I
like the address table ability to define subnets, can this be extended
to the trusted table?
Thanks.
JR
--
JR Richardson
Engineering for the Masses
[View Less]
Hey everyone,
Just wanted to bounce some things off the list to make sure I'm not heading
down the wrong path here. I'll quickly explain my problem and then explain
my plan to deal with it. Please let me know if anyone sees an issue here.
Problem: I need to send FROM two different IP addresses based on the LCR
group returned from next_gw();. For example, if the gateway returned is in
group_id=1 from the LCR I need to send FROM 1.1.1.1:5060, if it's from
group_id=2, I need to send FROM 1.1.1.…
[View More]2:5060. I need to do this on
REQUEST_ROUTE and FAILURE_ROUTE. Here is what I am thinking will work:
modparam("pv","shvset","gw_one=s:1.1.1.1:5060")
modparam("pv","shvset","gw_two=s:1.1.1.2:5060")
route{
load_gws();
next_gw();
if(to_gw("1")){
force_send_socket($shv(gw_one));
}else if(to_gw("2")){
force_send_socket($shv(gw_two));
}
}
Sorry for not just trying this out on my own. I currently don't have access
to a dev machine, and I need to make changes to the live script... so I
would prefer not to have a ton of restarts while trying to work the bugs
out.
Thanks.
[View Less]
Job offer:
Interested in working with one of the biggest Voice over IP networks in
europe? We're hiring and have one additional VoIP developer position open in
our team in Karlsruhe, Germany at the moment.
For more informations (requirements, how to apply..) please refer to the
opening on the job web page. Some facts about our VoIP system can be found at
e.g. [1], please feel free to contact me per mail as well.
http://www.united-internet.de/xml/ui/JobsJobDetail;?__lf=JobsApplication200……
[View More]
Best regards,
Henning Westerholt
[1] http://www.kamailio.org/events/2010-linuxtag/presentation.pdf
--
Henning Westerholt - Technical Leader VoIP backend development
1&1 Internet AG, Ernst-Frey-Str. 9, 76135 Karlsruhe, Germany
[View Less]
Greetings,
I have a Contact URI with params as in the following form returned to
me in a 302 Moved Temporarily reply:
<sip:a=foo;b;c=bar>
I am able to check the existence of parameters 'a' and 'b', which have
values assigned to them, in the following way:
failure_route[...] {
...
$var(dest) = $T_rpl($ct);
$var(dest) = $(var(dest){nameaddr.uri});
$var(dest) = $(var(dest){uri.user});
...
if(! $(var(…
[View More]dest){param.value,a})) {
....
}
...
}
However, what I cannot seem to figure out is a reliable test condition
for the existence of a parameter like 'b', which does not have a
value. I have tried:
if(! $(var(dest){param.value,b}))
which clearly cannot work as the parameter has no _value_.
Also have tried:
if(!defined $(var(dest){param.value,b}))
and also tests of strempty(), !defined, etc. for
$var(dest){uri.param,b}) (prior to extraction of param list using
{uri.user} above).
Ideas appreciated, thanks!
--
Alex Balashov - Principal
Evariste Systems LLC
1170 Peachtree Street
12th Floor, Suite 1200
Atlanta, GA 30309
Tel: +1-678-954-0670
Fax: +1-404-961-1892
Web: http://www.evaristesys.com/
[View Less]
http_query function takes an url as the first argument, for example,
http_query("http://localhost/test.php?uri=$(ru{s.escape.param})",
"$var(result)");
what i would like to do is this:
http_query("$sel(cfg_get.local.http_query_url)", "$var(result)");
that is, instead of giving url argument as a fixed string, i would like
to take it from cfg variable.
the problem is that if i give local.http_query_url string value
"http://localhost/test.php?uri=$(ru{s.escape.param})", pseudo variables
and …
[View More]transformations in the value are not evaluated.
is there any current means to get them evaluated? something like
http_query(eval("$sel(cfg_get.local.http_query_url)"), "$var(result)");
????
-- juha
[View Less]
Hey,
Is this format still valid in Kamailio 3.0 ?
modparam("module1|module2|module3", "db_url",
"mysql://me:secret@server/database")
This line :
modparam("auth_db|usrloc|acc|domain|avpops|presence|presence_xml|pua|dialog",
"db_url", "mysql://kamailiodev:kamailiosecret@192.168.1.10/kamailiodev")
gives me this error :
-e
0(9334) ERROR: <core> [modparam.c:143]: set_mod_param_regex: parameter
<db_url> not found in module <pua_dialoginfo>
0(9334) : <core> [cfg.y:…
[View More]3333]: parse error in config file
/etc/kamailio/kamailio.cfg, line 399, column 153: Can't set module parameter
ERROR: bad config file (1 errors)
0(9334) ERROR: dialog [dlg_db_handler.c:177]: invalid database handle
Funny thing is I have not set the module parameter for pua_dialoginfo,
looks like kamailio is getting confused with my pipes, if I name each
parameter one at a time, it works fine.
Any thoughts on this?
David
[View Less]
I have a customer who has just started operating a dialer. Over the
past couple of days this dialer has been creating some minor issues with
our US48 termination. We are currently running Server:: Kamailio
(1.5.1-notls (x86_64/linux)).
I would like to limit on a subscriber by subscriber basis the amount of
outgoing calls per second that they can do. I am reading through the
ratelimit module documentation, but haven't been able to determine if I
can use it to limit one particular …
[View More]subscriber outgoing activity. I have
also looked at the pike module, and think that I may be able to use it
in order to limit calls per second by IP. Does anyone have any
recommendations, suggestions, or examples that can be used to control
the calls per second based on the kamailio subscriber name.
Stagg Shelton
VocalCloud
[View Less]