Hi, all.
I has configure kamailio.cfg as below:
#!ifdef WITH_TLS
modparam("tls", "session_id", "vic22")
modparam("tls", "session_cache",1)
modparam("tls", "tls_disable_compression",0)
modparam("tls", "config", "/usr/cfg/tls.cfg")
#!endif
I was sure that this configure segment was included , in case that I set a wrong path to
modparam("tls", "config", "/wrong paths/tls.cfg")
the kamailio can`t boost and raised error.
But, when I debug this configure with gdb, I found that, within method : init_tls_compression(),
Line 384 of tls_init.c
384 } else if (cfg_get(tls, tls_cfg, disable_compression)){
385 LOG(L_INFO, "tls: init_tls: disabling compression...\n");
386 sk_SSL_COMP_zero(comp_methods);
The param value from cfg was always 1, namely:
* print ((struct cfg_group_tls *)tls_cfg)->disable_compression
1
Why that? Are there something wrong?
B.R.
Rixin liu
Hi all,
I have a multidomain setup that I share load, among two freeswtich servers
with a kamailio loadbalancer using dispatcher.
For specific applications like queues, I need to match a sip domain with a
freeswitch server. A domain should match same freeswitch server on every
request.
Which algorithm should I use with ds_selecy_dst, or what is the most
appropriate way to do this?
Thanks.
/Volkan
Hello,
I have configured TLS on kamailio server. Problem is that in kamailio.cfg,
when I use command port =5061. Kamailio doesnot start and error given in
logs is
>> ERROR: tcp_init : bind(a, 0x9007f4, 16) on MyIP:5061 : Adress already in
>> use
>> ERROR: Error while initializing TCP port of TLS Socket MyIP:5061
I tried the command " netstat -lntp | grep 5061 " to see what service or app
is using the port 5061. I found no result. It is not used by any application
apparently.
Any help will be highly appreciated.
Thanks.
Aawaise
--
View this message in context: http://sip-router.1086192.n5.nabble.com/Port-5061-problem-tp127464.html
Sent from the Users mailing list archive at Nabble.com.
Hello, can someone let me know the reason that the location table does not
get updated? Out of 15 extension only a few registered phones details get
updated in this table and the rest are not. But I can see all the extension
in Kamailio when I run kamctl ul show --brief.
Thank you,
Arun
Hello,
I am running a kamailio server with SIPS over TLS. Now I have to connect an
android based SIP client to server. The SIP client has no support for SIPS
over TLS. But it can run SIP over TLS. First I want to know the difference
between the two ??
Secondly how can I make my server accept SIP connection over TLS ?
Thanks.
Cheers,
Owais
--
View this message in context: http://sip-router.1086192.n5.nabble.com/SIP-over-TLS-tp127469.html
Sent from the Users mailing list archive at Nabble.com.
hello, all of users:
I am using this link for kamalio+asterisk+mysql:
http://kb.asipto.com/asterisk:realtime:kamailio-3.3.x-asterisk-10.7.0-astdb
i do everything based on the link, only different thing is I installed
Kamalio+mysql at same server, and asterisk in another server.
currently, my asterisk can connect with the remove MYSQL server, but
kamailio can not connect with that.
when start up the kamailio, i got the error message:
------------------------------------------
0(3739) DEBUG: <core> [sruid.c:100]: root for sruid is [uloc-5365e604-e9b-]
(0 / 18)
0(3739) DEBUG: <core> [sr_module.c:892]: DEBUG: init_mod_child (1): ctl
0(3739) DEBUG: <core> [sr_module.c:892]: DEBUG: init_mod_child (1): mi_rpc
0(3739) DEBUG: <core> [sr_module.c:892]: DEBUG: init_mod_child (1): acc
0(3739) DEBUG: <core> [sr_module.c:892]: DEBUG: init_mod_child (1): auth_db
0(3739) DEBUG: <core> [db.c:316]: connection 0xb71aab90 not found in pool
0(3739) DEBUG: db_mysql [km_my_con.c:94]: opening connection:
mysql://xxxx:xxxx@localhost/asterisk
0(3739) ERROR: db_mysql [km_my_con.c:109]: driver error: Access denied for
user 'asterisk'@'localhost' (using password: YES)
0(3739) ERROR: <core> [db.c:320]: could not add connection to the pool
0(3739) ERROR: auth_db [authdb_mod.c:174]: unable to connect to the database
0(3739) ERROR: <core> [sr_module.c:896]: init_mod_child(): Error while
initializing module auth_db (/usr/local/lib/kamailio/modules_k/auth_db.so)
0(3739) ERROR: <core> [main.c:1433]: main_dontfork: init_child failed
4(3744) INFO: <core> [main.c:851]: INFO: signal 15 received
3(3743) INFO: <core> [main.c:851]: INFO: signal 15 received
0(3739) INFO: <core> [main.c:797]: INFO: dont_fork turned on, living on
0(3739) ALERT: <core> [main.c:782]: child process 3743 exited normally,
status=0
0(3739) ALERT: <core> [main.c:782]: child process 3744 exited normally,
status=0
0(3739) INFO: <core> [main.c:797]: INFO: dont_fork turned on, living on
0(3739) DEBUG: <core> [db_pool.c:97]: connection still kept in the pool
0(3739) DEBUG: tm [t_funcs.c:122]: DEBUG: tm_shutdown : start
0(3739) DEBUG: tm [t_funcs.c:125]: DEBUG: tm_shutdown : emptying hash table
0(3739) DEBUG: tm [t_funcs.c:127]: DEBUG: tm_shutdown : removing semaphores
0(3739) DEBUG: tm [t_funcs.c:129]: DEBUG: tm_shutdown : destroying tmcb
lists
0(3739) DEBUG: tm [t_funcs.c:132]: DEBUG: tm_shutdown : done
0(3739) DEBUG: <core> [mem/shm_mem.c:242]: shm_mem_destroy
0(3739) DEBUG: <core> [mem/shm_mem.c:245]: destroying the shared memory
lock
---------------------------------------------------------------------------------------------------------------------------
[MySQL-asterisk]
Description = MySQL Asterisk database
Trace = Off
TraceFile = stderr
Driver = MySQL
SERVER = 192.168.1.116 // IP for kamailio and mysql
USER = asterisk
PASSWORD = 111111
PORT = 3306
DATABASE = asterisk
-----------------use isql test---------------
root@kamailio:/etc# isql -v ODBC
[IM002][unixODBC][Driver Manager]Data source name not found, and no default
driver specified
[ISQL]ERROR: Could not SQLConnect
root@kamailio:/etc#
-----------------------------------------------------------
anyone knows the problem?
thanks!
Hello, can someone let me know what could be the reason that the location
table in the kamailiio db does not get updated? There are some extensions
that I can see in the location table but not others, but I am still able to
make extension to extension calls to all extensions. This is a multi domain
set up.
Thank you,
Arun
Hello,
I don't know a lot about XML or XPath, so I was hoping someone could
help me out.
I'm trying to parse out 'Event: dialog' state notifications from NOTIFYs
using xmlops. They look like this:
<?xml version="1.0"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="5"
state="full" entity="sip:abalashov-roaming@xxx.xxx.xxx.xxx">
<dialog id="0588e460-d293-11e3-8563-538b9e69fee5" direction="initiator">
<state>terminated</state>
</dialog>
</dialog-info>
So, I do:
$xml(u=>doc) = $rb;
xlog("L_INFO", "State:
$xml(u=>xpath:/dialog-info/dialog[1]/state/text())\n");
This produces a blank result. I've tried numerous other variations, such as:
xpath:/dialog-info/dialog/state/text()
None of them work, either. When I upload the above XML body to various
online XPath validation tools and try my expressions, they work fine.
Any ideas as to what I'm missing? Do I need to indicate the namespace in
the XPath expression somehow? If so, how do I do it?
Thanks!
-- Alex
--
Alex Balashov - Principal
Evariste Systems LLC
235 E Ponce de Leon Ave
Suite 106
Decatur, GA 30030
United States
Tel: +1-678-954-0670
Web: http://www.evaristesys.com/, http://www.alexbalashov.com/
Hi,
I am trying to append new field in SDP and I need to append new line but I
don't know how. I tried to google for solution but I didn't find anything.
I want to route my RTP and RTCP packet to port 5060 (this is for
development of my school project, I know that in the context of correct SIP
this has no sense but this is only experimental).
My sample kamailio.cfg code:
if (is_method("INVITE"))
{
# route RTP packets to 5060
if (search_body('m=audio [0-9]+'))
{
subst_body('/^m=audio
[0-9]+/m=audio 5060/g');
}
# route RTCP packets to 5060
if (search_body('a=rtcp:[0-9]+ IN
IP4 [0-9]+.[0-9]+.[0-9]+.[0-9]+'))
{
subst_body('/^a=rtcp:[0-9]+
IN IP4 [0-9]+.[0-9]+.[0-9]+.[0-9]+/a=rtcp:5060 IN IP4 192.168.11.129/g');
}
else
{
search_append_body('m=audio
[0-9]+ RTP/AVP [0-9]+ [0-9]+ [0-9]+ [0-9]+ [0-9]+ [0-9]+ [0-9]+', '
*{NEW_LINE_NEEDED_HERE}*a=rtcp:5060 IN IP4 192.168.11.129');
}
}
}
Could someone please help me resolve what should I replace the
{NEW_LINE_NEEDED_HERE} with to add new line after 'm=audio' field? Also If
you have some idea how should I optimize my regexp for finding
'm=audio'/'a=rtcp' fields I would appreciate your help.