Hello
I’m trying to use “htable” module with the example to block a user with
three time s failed password.
When a REGISTER arrives I’m getting this error :
Feb 18 17:26:34 /usr/local/sbin/kamailio[5840]: ERROR: <core>
[lvalue.c:358]: setting pvar failed
Feb 18 17:26:34 /usr/local/sbin/kamailio[5840]: ERROR: <core>
[lvalue.c:411]: assignment failed at pos: (322,54-322,81)
Feb 18 17:26:34 /usr/local/sbin/kamailio[5840]: ERROR: <core>
[lvalue.c:358]: setting pvar failed
Feb 18 17:26:34 /usr/local/sbin/kamailio[5840]: ERROR: <core>
[lvalue.c:411]: assignment failed at pos: (328,47-328,49)
The lines pointing the error are these :
312 if ( !radius_www_authorize("10.0.0.208") )
313 {
314 switch ($retcode) {
315 case -1:
316 xlog("L_INFO","authentication failed from
radius\n");
317 if($sht(a=>$au::auth_count) == "null")
318 {
319 $sht(a=>$au::auth_count) = 0;
320 }
321 $sht(a=>$au::auth_count) =
$sht(a=>$au::auth_count) + 1;
322 if($sht(a=>$au::auth_count) == 3)
323 {
324 xlog("L_INFO","auth failed 3rd time -
src ip: $si\n");
325 }
326 $sht(a=>$au::last_auth) = $Ts;
327 break;
328 case -5:
329 sl_send_reply("403", "Forbidden");
330 exit;
331 }
332 www_challenge("10.0.0.208", "1");
333 exit;
334 }
What could be the problem?
Thanks in advance.
Regards,
Ricardo.-
Hello,
almost a tradition by now, being the 4th edition, I published Kamailio
Awards for 2010 - a blog post that tries to summarize the top of the
activities in the public space related to Kamailio project that happened
during the previous year.
You can browse it at:
http://asipto.com/u/ka10
Cheers,
Daniel
--
Daniel-Constantin Mierla
http://www.asipto.com
Hi All,
On register we store the contact in an avp variable and do a t_relay().
After t_relay() the $avp variable becomes null.
I printed the value before after t_relay() to determine this behavior.
This happens only on registration load test around 2000 subcribers with ( 4
REGISTER/sec). This happens only for one subscriber out of 2000
subscribers.
I did the similar test with $var and its working fine.
Anybody observed similar behavior with avp? This was working in kamailio 1.4
version. We did the upgrade recently to 3.1.0 and started observing this
issue.
How do we debug this issue.?
Thanks
Jijo
Hello
bother again
what's the problem with the function get_profile_size()
My script
modparam("dialog", "enable_stats", 1)
modparam("dialog", "dlg_flag", 4)
modparam("dialog", "dlg_mode", 1)
modparam("dialog", "db_url", "mysql://openser:openserrw@localhost/openser")
modparam("dialog", "profiles_no_value", "inbound ; outbound")
...
if(is_method("INVITE"))
{
...
dlg_manage();
set_dlg_profile("inbound");
...
get_profile_size("inbound","$avp(size)");
...
}
============================================
when program runs to the function get_profile_size(), the proxy will
be terminate.
log file:
ALTER: <core> [main.c 722] : child process 29651 exited by sinal 11
ALTER: <core> [main.c 725] : core was generated
INFO : <core> [main.c 737] : terminating due to SIGCHILD
============================================
what' s the problem? Did I use the func wrong?
thanks
i have in dialplan table record
287 14 10 1 ^(.+)\+358 0 ^(.+):\+358(.+) \1:0\2
and when it is applied to uri
Feb 21 08:05:15 sip /usr/sbin/sip-proxy[24071]: INFO: uri <sip:+35892345670@test.fi;user=phone>
the resulting uri looks like this:
Feb 21 08:05:15 sip /usr/sbin/sip-proxy[24071]: INFO: uri <sip\1:092345670@test.fi;user=phone>
i can't figure out, where \1 comes to the result, because \1 is has
already produced 'sip' to it.
i have added debug to dialplan module and looks like it compiles correct
subst and repl expressions:
Feb 21 08:05:05 sip /usr/sbin/sip-proxy[24067]: INFO: dialplan [dp_db.c:392]: parsing repl_exp <\1:0\2>
Feb 21 08:05:05 sip /usr/sbin/sip-proxy[24067]: INFO: dialplan [dp_db.c:404]: compilig subst_exp <^(.+):\+358(.+)>
is there some stupid mistake in the expressions or could it be a bug
somewhere?
-- juha
Hello
I need to add q value while using function append_branch(),but the function
only takes decimal fraction as the parameter.
What if I want to use pv to add q value?
The $var and $avp just have string and integer type.
Thanks a lot!
Hi Guys,
Soon, I'll be starting a new section related to Asterisk (around 4 years of
full time experience with Asterisk, Trixbox, SER, OpenSer, MediaProxy, AGI*)
so let me know if you like to see some topic coming.
Cheers
Arun
Hello,
Is there any specific information / documentation as to what kind of
response causes the failure_route to trigger over the reply_route.
For example, it seems that 486 response triggers the failure route while as
a 408 triggers the reply_route.
Perhaps I am over looking something?
I would imagine that 5xx and 6xx (final / non provisional responses) would
trigger the failure route.
While as 4xx would trigger the reply route -- however this does not always
seem to be the case in the example of 486 vs 408.
Any information / help in advance is greatly appreciated, thanks!
Sincerely,
Brandon Armstead
Hello all.
I'm having problem with sending NOTIFY packet for event dialog.
The problem is, that all NOTIFY packets sent with this event is empty.
( Content-length: 0 ) and in fact, not passing actual status to the
phone. In my case this is SPA962.
NOTIFY packets for event presence are sent fine and status is changing
normally.
The same phone, works fine with Asterisk. Asterisk is sending NOTIFY
with non-zero content and changing status for the subscriber as well.
I've turned on pua module to send PUBLISH requests at Kamailio, it's
filling DB table with subscription, everything runs fine and NOTIFY
packets are coming to subscribed phone, but they are empty.
I also have presence_dialoginfo module on and pua_dialoginfo module on.
I've tried on Kamailio 3.0.3 and 3.1.1. Content always empty.
There is no sense of pasting here packet dumps, cause everything is like
should be:
(UAC) SUBSCRIBE, event: presence ---> K
K ---> 202 OK
(SPA) SUBSCRIBE, event: dialog ---> K
K ---> 202 OK
PUBLISH, event: presence ---> K
K ---> 200 OK
NOTIFY, event: presence, Content-Length: XXX ---> UAC
NOTIFY, event: dialog, Content-Length: 0 ---> SPA962
As result, softphone changes status and hardphone ( SPA962 ) - no. May
be it's cause of PUBLISH event value?
Please advise.
i have a local function x that returns a positive integer or -1. when
it returns -1, assignment
$var(tmp) = function_x("$rd");
produces to syslog an error:
Feb 19 07:32:44 sip /usr/sbin/sip-proxy[27284]: ERROR: <core> [lvalue.c:411]: assignment failed at pos: (1415,40-1415,40)
i have had that function for years, but have not noticed these errors in
earlier versions than 3.1.
any ideas why the error is produced and how to get rid of it?
-- juha