Hi,
This is my first time attempt using htable module.
How can I back up the htable content in the database incase the server
restarts. I saw a htable in the MySQL database.
My observation has been that htable module is not automatically backing up
to database even though I added
modparams to point to the database. Do I need to explicitly backup htable
content to database using sqlops or some
other mechanism?
Thanks
Krish Kura
Hi Guru's,
I'd just like some advice on t_replace and its placement in the routing
script.
A lot of examples show the following setup:
save("location");
t_replicate("backup_server");
Would it not be wiser to have something like:
if (save("location")) {
t_replcate("backup_server");
}
Would there be any scenario where you would want to t_replicate if
save("location") fails for some reason? The configuration I refer to is
if the location database is in memory. I suspect you may want to
replicate all if location is going to db core in case of external
failure. But would it matter on the placement if the location was in memory?
Thanks
hello room,
i was trying to add sip provider(like. flowroute,vitelity) with user-pass authentication in kamailio to accept inbound calls.
any help?
thanks
Hi everybody,
We are using kamailio+callcontrol+cdrtool+freeradius+mysql to build a
voip prepaid based system:
. 2 SIP accounts created and one of them is prepaid
. we can debit balance when we call with the SIP prepaid account, and
when the balance is 0, the call hang up
. if we hangup a call session from the prepaid SIP and the balance is
not still 0, the call hangup and the system debit the appropriate cost
. but when we call from the prepaid SIP account, and we disconnect the
ethernet cable or the alimentation of the other UAC, the call don't
hangup until the balance is set to 0
. if the phone is still ringing too, when we disconnect the other UAC,
the caller UAC still ringing
. the 2 uacs and kamailio are in the same subnet network
the question is, how can we tell to kamailio to detect if the other side
is down and then send bye immediately so thecalculating of the credit
will be correct?
Thank you.
--
Hello all,
I have a linux server with different IP.
eth0 -> 10.2.2.4
eth0:1 -> 10.2.2.5
I have kamailio listening on IP:
listen=udp:10.2.2.5:5060
listen=tcp:10.2.2.5:5060
and in the script I do :
rewritehostport("10.2.2.10:5060;transport=tcp");
if (!t_relay()) {
sl_reply_error();
}
exit;
the problem is that t_relay is not using the IP 10.2.2.5 to forward this
SIP request but the eth0 IP ( 10.2.2.4)
I see that they is a function force_send_socket , I need to use this
function to set the correct IP used to forward the request ?
As I'm using only one IP 10.2.2.5 for openser, why he cannot always use this
ip as default Ip ?
Best regards
Laurent
Hello
this is what I normally use:
if (defined $var(x)) {...}
Regards
Javi
> ------------------------------
>
> Message: 4
> Date: Tue, 6 Mar 2012 20:05:32 -0600
> From: Krishna Kurapati <kkurapat(a)gmail.com>
> Subject: [SR-Users] Improving Kamailo configuration parser ...
> To: kamailio users <sr-users(a)lists.sip-router.org>
> Message-ID:
> <CAOzCjAfcaRQ+HT3r+mwckPyaVJH+EVFWNa_Hj6tAhGyD2DaMJA(a)mail.gmail.com
> >
> Content-Type: text/plain; charset="iso-8859-1"
>
> I used
>
> if ($var(x) != null) { ... }
>
> in one of the routes, and tried to run Kamailio server.
> The server exited with an error. I did not know why.
>
> Once I changed it to if ($var(x) != $null) {} the error went away.
> I missed $ infront null. I think it is hard to trace such problems once a
> large chunk
> of logic is written since many of us come from C++ and scripting background
> where $null
> is not a common practice.
>
> Also if I tried to use if (!$var(x)) { ... } Kamailio tries to convert the
> value of $var(x) to integer.
> prints WARNINGS in the log when the $var(x) consists of a string.
>
> Krish Kura
>
I used
if ($var(x) != null) { ... }
in one of the routes, and tried to run Kamailio server.
The server exited with an error. I did not know why.
Once I changed it to if ($var(x) != $null) {} the error went away.
I missed $ infront null. I think it is hard to trace such problems once a
large chunk
of logic is written since many of us come from C++ and scripting background
where $null
is not a common practice.
Also if I tried to use if (!$var(x)) { ... } Kamailio tries to convert the
value of $var(x) to integer.
prints WARNINGS in the log when the $var(x) consists of a string.
Krish Kura
Hi all,
I am trying to use msilo module from modules_k. Unfortunately it if failing
during DB initialization.
Other modules are initializing fine. I am using Kamailio 3.2.2.
Not sure why the connection is not found. I tried to increase the MAX mysql
connections to 250. I see the
same error after I increase the connections.
The config file is pretty standard:
loadmodule "msilo.so"
modparam("msilo", "add_date", 0);
modparam("msilo", "db_url", DBURL); # The DBURL works for other modules...
Here is the Log output:
0(14115) DEBUG: <core> [cfg.y:1684]: loading module msilo.so
0(14115) DEBUG: <core> [sr_module.c:557]: load_module: trying to load
</usr/local/kamailio-3.2.2/lib64/kamailio/modules_k/msilo.so>
.....
0(14117) DEBUG: <core> [sr_module.c:928]: DEBUG: init_mod: msilo
0(14117) DEBUG: <core> [sr_module.c:667]: find_export_record: found
<db_bind_api> in module db_mysql
[/usr/local/kamailio-3.2.2/lib64/kamailio/modules/db_mysql.so]
0(14117) DEBUG: <core> [db.c:212]: using db bind api for db_mysql
0(14117) DEBUG: <core> [db.c:299]: connection 0x7fc20d1ace60 not found in
pool
0(14117) DEBUG: db_mysql [km_my_con.c:94]: opening connection:
mysql://xxxx:xxxx@localhost/openser
0(14117) ERROR: db_mysql [km_my_con.c:109]: driver error: Access denied
for user 'openser'@'localhost' (using password: YES)
0(14117) ERROR: <core> [db.c:303]: could not add connection to the pool
0(14117) ERROR: msilo [msilo.c:319]: failed to connect to the database
0(14117) ERROR: <core> [sr_module.c:932]: init_mod(): Error while
initializing module msilo
(/usr/local/kamailio-3.2.2/lib64/kamailio/modules_k/msilo.so)
ERROR: error while initializing modules
Any help?
Thanks