Hello,
I am planning to release tomorrow the v4.2.8 out of branch 4.2 to mark
the end of official packaging for 4.2.x series. From now on, the focus
will be 4.4.x and 4.3.x as stable branches.
I just backported what I found relevant from branch 4.3 to 4.2 -- if
anyone finds some other commits that need to be backported, reply to
mailing lists.
Cheers,
Daniel
--
Daniel-Constantin Mierla
http://www.asipto.com - http://www.kamailio.orghttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Hi all,
As title, i want to add some additional parameters to the topmost via
header in replied message.
example. REGISTER ==> Kamailio ===> reply 200 OK. So in 200 OK message, i
will add some additional parameters.
And the same for the other message: INVITE, SUBSCRIBE, NOTIFY, MESSAGE
message.
--
Brs/Bao
Greetings Lists.
I am having hard time trying to use ndb_cassandra with kamailio. I have
successfully complied the module and kamailio runs without any error.
Below is relevant snippet.
loadmodule "ndb_cassandra.so"
modparam("ndb_cassandra", "host", "192.168.0.103")
modparam("ndb_cassandra", "port", 9160)
$var(keyspace) = 'kamailio';
$var(column_family) = 'numbers_directory';
$var(key) = 15;
$var(column) = 'number';
xlog("L_INFO", "Valus to fetch are $var(keyspace),
$var(column_family), $var(key), $var(column) \n");
* if (cass_retrieve("$var(keyspace)",
"$var(column_family)", "$var(key)", "prefix", "$var(val_read)") > 0) {*
xlog("L_INFO", " ===== ndb_cassandra. Sucess while reading
from Cassandra. val_read: \"$var(val_read)\"\n");
} else {
xlog("L_INFO", " ===== ndb_cassandra. Error while reading
from Cassandra \n");
}
Cassandra Table Structure.
cqlsh:kamailio> describe numbers_directory;
CREATE TABLE kamailio.numbers_directory (
id int PRIMARY KEY,
description text,
number text
) WITH bloom_filter_fp_chance = 0.01
AND caching = '{"keys":"ALL", "rows_per_partition":"NONE"}'
AND comment = ''
AND compaction = {'class':
'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy'}
AND compression = {'sstable_compression':
'org.apache.cassandra.io.compress.LZ4Compressor'}
AND dclocal_read_repair_chance = 0.1
AND default_time_to_live = 0
AND gc_grace_seconds = 864000
AND max_index_interval = 2048
AND memtable_flush_period_in_ms = 0
AND min_index_interval = 128
AND read_repair_chance = 0.0
AND speculative_retry = '99.0PERCENTILE';
cqlsh:kamailio> select * from numbers_directory;
id | description | number
----+-------------+-----------
15 | null | 212456789
When i make a call i get this in logs.
Jul 1 19:10:42 debian ./kamailio[8142]: INFO: <script>: Valus to fetch are
kamailio, numbers_directory, 15, number
Jul 1 19:10:42 debian ./kamailio[8142]: INFO: <script>: =====
ndb_cassandra. *Error while reading from Cassandra*
I am stuck at this. Does anybody able to use kamailio with cassandra or can
share their configuration?
Any pointer on this is much appreciated.
Best Regards,
Aqs Younas
Hi,
I have followed instructions on setting up Kamailio with MongoDB backend, and successfully compiled and installed kamailio with the db_mongo module. It can start successfully. However, when I tried to add users using the command:
kamctl add test testpasswd test(a)mysipserver.com <mailto:test@mysipserver.com>
It fails because it is trying to default to MYSQL. Here is the result of that command:
WARNING: database engine not found - tried 'MYSQL'
ERROR: This command requires a database engine - none was loaded
When I take a look at the kamctl script, it lists all the other kinds of database engines, except MongoDb, so this is probably why it is failing. How can I use kamctl to create the required Mongodb collections (like users, subscribers, etc) that Kamaiio will then use?My kamailio.cfg seem to be working ok, as I seem to be able to connect to the database (I modified the file to use db_mongo module), and I create the initial collections as listed here - https://www.kamailio.org/wiki/tutorials/kamailio-and-mongodb <https://www.kamailio.org/wiki/tutorials/kamailio-and-mongodb>
Thanks,
Chuks.
Hi,
Question about future config-engines.
Will it be possible to use connectors/drivers via the engine script and is
it a good Idea?
E.g. I have specific database and python driver for that database. May I
use simple 'import dbdriver', create connection to the db, use it inside
python engine script, etc?
In general, in case there is no kamailio connector module for scpecific
database, I would use python connector.
Thanks in advance!
--
*Alexander Rudenko*
Dear All,
Hopefully I'll be able to get some help here on re-INVITE in the failure route. For example I have a couple of PSTN gateway options. I'd like to try them by priorities. In case the one with top priority couldn't go through(e.g. returned 5XX on INVITE), I'd like to re-INVITE through another provider in the failure route. Not sure what I should do for such cases. Thanks.
Regards,Jay
Hi All,
I am trying to bring-up PCSCF on releae 4.4 and I am getting errors related
to loading of ims_dialog module.
The mpath is set correctly in kamailio.cfg and ims_dialog.so is present in
that path.
Interestingly, it is able to load rest of the modules from the same
locaiton.
ls -lrt /usr/local/lib64/kamailio/modules/ims_dialog.so
-rwxr-xr-x 1 root root 953760 Jun 29 16:37
/usr/local/lib64/kamailio/modules/ims_dialog.so
Any pointers will be appreciated.
-- Unit kamailio.service has begun starting up.
Jun 29 17:08:17 kamailio1 kamctl[2914]: ** INFO: Starting Kamailio :
Jun 29 17:08:17 kamailio1 kamailio[2939]: ERROR: <core> [sr_module.c:582]:
load_module(): could not open module
</usr/local/lib64/kamailio/modules/ims_dialog.so
Jun 29 17:08:17 kamailio1 kamailio[2939]: : <core> [cfg.y:3365]:
yyerror_at(): parse error in config file
/usr/local/etc/kamailio//kamailio.cfg, line 169, colum
Jun 29 17:08:17 kamailio1 kamailio[2939]: ERROR: <core> [modparam.c:150]:
set_mod_param_regex(): No module matching <ims_dialog> found
Jun 29 17:08:17 kamailio1 kamailio[2939]: : <core> [cfg.y:3368]:
yyerror_at(): parse error in config file
/usr/local/etc/kamailio//kamailio.cfg, line 313, colum
Jun 29 17:08:17 kamailio1 kamailio[2939]: ERROR: <core> [modparam.c:150]:
set_mod_param_regex(): No module matching <ims_dialog> found
Jun 29 17:08:17 kamailio1 kamailio[2939]: : <core> [cfg.y:3368]:
yyerror_at(): parse error in config file
/usr/local/etc/kamailio//kamailio.cfg, line 314, colum
Jun 29 17:08:17 kamailio1 kamailio[2939]: ERROR: <core> [modparam.c:150]:
set_mod_param_regex(): No module matching <ims_dialog> found
Jun 29 17:08:17 kamailio1 kamailio[2939]: : <core> [cfg.y:3368]:
yyerror_at(): parse error in config file
/usr/local/etc/kamailio//kamailio.cfg, line 315, colum
Jun 29 17:08:17 kamailio1 kamailio[2939]: ERROR: <core> [modparam.c:150]:
set_mod_param_regex(): No module matching <ims_dialog> found
Jun 29 17:08:17 kamailio1 kamailio[2939]: : <core> [cfg.y:3368]:
yyerror_at(): parse error in config file
/usr/local/etc/kamailio//kamailio.cfg, line 316, colum
Jun 29 17:08:17 kamailio1 kamailio[2939]: ERROR: <core> [cfg.y:3228]:
yyparse(): cfg. parser: failed to find command set_dlg_profile (params 1)
Jun 29 17:08:17 kamailio1 kamailio[2939]: : <core> [cfg.y:3368]:
yyerror_at(): parse error in config file
/usr/local/etc/kamailio//kamailio.cfg, line 1009, colu
Jun 29 17:08:17 kamailio1 kamailio[2939]: ERROR: <core> [cfg.y:3228]:
yyparse(): cfg. parser: failed to find command set_dlg_profile (params 1)
Jun 29 17:08:17 kamailio1 kamailio[2939]: : <core> [cfg.y:3368]:
yyerror_at(): parse error in config file
/usr/local/etc/kamailio//kamailio.cfg, line 1077, colu
Jun 29 17:08:17 kamailio1 kamailio[2939]: INFO: <core> [sctp_core.c:53]:
sctp_core_destroy(): SCTP API not initialized
Jun 29 17:08:20 kamailio1 kamctl[2914]: ** ERROR: PID file
/var/run/kamailio.pid does not exist -- Kamailio start failed
Jun 29 17:08:20 kamailio1 systemd[1]: kamailio.service: Control process
exited, code=exited status=1
Jun 29 17:08:20 kamailio1 systemd[1]: Failed to start Kamailio SIP Server.
-- Subject: Unit kamailio.service has failed
Thanks
Hey all,
I'm running a cluster of Kamailio instances as a proxy/registrar for
another cluster of Freeswitch instances. I'm using http_async_client to
make HTTP queries to my API to fetch credentials on auth challenges.
Kamailio performs generating the header, and validating the result based on
the data provided from my API.
I'm fairly sure the answer is no, but I was wondering if Kamailio has any
mechanism for getting access to the nonce/nc values in the challenges and
responses so I can store them somewhere accessible to the whole cluster.
Because my instances are transaction stateful, the request that is
challenged and the subsequent request with the response may be routed to
different instances and I want to validate the nonce correctly.
I can move all of this into the API (the digest auth and verification), but
my next question would be whether or not there are any APIs for getting
access to this information in a structured format, or if I should just
shove the whole digest auth header in the request to my API and
parse/verify there.
Thanks in advance.
Best,
Colin