Hello,
Reaching out for some assistance with debugging, I am not seeing any xlog messages in my log file. If there is any other info I didn't include that would be helpful please let me know.
Any ideas are appreciated.
Using Kamailio 3.3.2 & Cent OS 6
Rsyslog.conf
--------------------
*.info;mail.none;authpriv.none;cron.none;local0.none /var/log/messages
# Kamailio
local0.* -/var/log/kamailio
Kamailio CFG
------------------------------
#!define WITH_DEBUG
#!ifdef WITH_DEBUG
debug=4
log_stderror=yes
#!else
debug=2
log_stderror=no
#!endif
log_facility=LOG_LOCAL0
loadmodule "xlog.so"
Example xlog-
xlog("L_INFO", "No more gateways \n");
Thanks,
Dan-
Hi,
I have a kamailio proxy server that´s controlling the limit of calls that
clients can make with profile grouping. In other side I also limit clients
call duration base on users credit ( DATABASE) and *timeout *feature .
Before the calls get answer I calculate how much time the client has left
for this call and set the timeout variable. When the time is reached the
proxy sends BYEs two both sides of this call.
I want when the call timeout, as before explain, all other calls in the
same profile end too, because the client has expired his credit.
Is there a way to achieve this?
Regards,
Camila
*Camila Troncoso **|* Ingeniero de Desarrollo
RedVoiss *|*ctroncoso(a)redvoiss.net
Santiago - Chile *|* +56 2 2408535
www.redvoiss.net
Hi,
Kamailio is running fine, but when I try run again by command line without
killing the previous, the kamailio_fifo is removed and functions fifo in
kamctl doen't work anymore. Why when I try running kamailio when already
exist one, it remove de file kamailio_fifo?
I can't find the part of source code that file kamailio_fifo is removed...
Someone knows?
Best Regards
Hi,
I am using app_lua to frequently store some data in htable and avp
entries, using sr.pv.sets. When I read the values using sr.pv.get
immediately after writing them, they seem correct. However, when I read
them later from Lua, I have noticed that sometimes the value is
incorrect or nil. Am I doing something wrong?
The following code uses rtimer to duplicate the problem on startup,
printing the errors to syslog.
Tested on version: kamailio 3.3.1 (i386/linux) 2d0f6f
###############
# kamailio.cfg
###############
loadmodule "pv.so"
loadmodule "xlog.so"
loadmodule "htable.so"
loadmodule "rtimer.so"
loadmodule "app_lua"
modparam("htable", "htable", "status=>size=14;autoexpire=0;")
modparam("rtimer", "timer", "name=ta;interval=10;mode=1")
modparam("rtimer", "exec", "timer=ta;route=LUA_TEST")
# the following path may need to change depending on filesystem setup
modparam("app_lua", "load", "/etc/kamailio/kamailio.lua")
route
{
route(LUA_TEST);
}
route[LUA_TEST] {
$var(lua_test_key) = $(pp{s.toupper}) + "::";
lua_runstring("htable_test([[status=>$var(lua_test_key)]])");
lua_runstring("avp_test([[status=>$var(lua_test_key)]])");
}
----------------
-- kamailio.lua
----------------
-- Test of sr.pv operations in Lua
function htable_test (namekey)
local pvar_prefix = "$sht("..namekey
pvar_test(pvar_prefix)
end
function avp_test ( name )
local pvar_prefix = "$avp("..name
pvar_test(pvar_prefix)
end
function pvar_test ( pvar_prefix )
for value = 10000, 10050 do
local pvar = pvar_prefix..value..")"
--sr.log("info", "Lua attempting to set '"..pvar.."' to value
'"..value.."'")
sr.pv.sets(pvar, value)
end
for value = 10000, 10050 do
-- now we check what was stored
local pvar = pvar_prefix..value..")"
local checkvar = sr.pv.get(pvar)
if ( tostring(checkvar) ~= tostring(value) ) then
sr.err(string.format("CHECK: Lua checking pvar '%s' and got value
'%s' which is NOT '%s'",
tostring(pvar),
tostring(checkvar),
tostring(value)
))
end
end
end
-- end of kamailio.lua
Thanks,
-Andrew
I am looking for a way to integrate Java business logic with Kamailio to
influence routing decisions, add/remove/modify headers, record
accounting-related information, etc. A while back there was a project named
WeSIP, but it doesn't appear to active anymore.
Is anyone doing something like this now, or any ideas or suggestions?
Thanks,
Ron
Hello,
I'm forwarding registrations to Freeswitch and adding a Path header using add_path_received() for endpoints behind NAT. When TCP is used, this results in a header like this:
Path: <sip:a.a.a.a:5070;lr;received="sip:b.b.b.b:35430;transport=tcp">
Freeswitch doesn't like the transport protocol inside the quotations and refuses to route a call to the registered user.
Constructing the header manually without the quotes such as:
append_hf("Path: <sip:$Ri:$Rp;lr;received=sip:$si:$sp;transport=$pr>\r\n");
solves the problem.
Is there a reason for the quotes?
Best Regards,
Spencer