Hello,
I don't know if this has already been reported, but I've downloaded kamailio 4.0.2 and tried to compile it with db_unixodbc. I got the following error:
CC (gcc) [M db_unixodbc.so] _con.o
_con.c:34:17: fatal error: con.h: No such file or directory
compilation terminated.
make[1]: *** [_con.o] Error 1
make: *** [modules] Error 1
I looked in: .../kamailio-4.0.0/modules/db_unixodbc and saw there was no con.h file, only a _con.h file. The con.c file was pointing to con.h. So I renamed _con.h to con.h and compiling worked.
Regards,
Grant
Hi All,
I see that Kamailio supports MSRP relay.
I wish to configure Kamailio with MSRP.
1. Do i just need to add the MSRP relay module into Include modules and
build again?
2. Is there any existing clients, to test SIP and MSRP with Kamailio (e.g
file transfer)
Please let me know the support links to configure and test MSRP on Kamailio
Hi,
I am having the problem with core file generation on ubuntu
For some reason the core file is not complete even though ulimit is set to
unlimited
$ullmit -a
core file size (blocks, -c) unlimited
<----- Unlimitd
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 15891
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 15891
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
But when core is generated, and I try to open gdb, it is complaining that
the core file is smaller
$sudo gdb /usr/local/sbin/kamailio core
GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2) 7.4-2012.04
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html
>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.launchpad.net/gdb-linaro/>...
Reading symbols from /usr/local/sbin/kamailio...done.
BFD: Warning: /home/krishna/corefiles/core is truncated: expected core file
size >= 2164264960, found: 176357376.
[New LWP 2547]
Cannot access memory at address 0x7fe56e85d2a8
Cannot access memory at address 0x7fe56e85d2a0
What could be going wrong?
Thanks
Krish Kura
Hello, I have enabled RTP proxy on my machine (ec2 instance) by running the following script:
rtpproxy -F -l mypublicip -s udp:localhost:7722
but I keep getting this error. The phones ring but there is no audio:
3(4144) ERROR: rtpproxy [rtpproxy.c:2647]: force_rtp_proxy(): incorrect port 0 in reply from rtp proxy
can someone let me know what this error means?
Thank you,
Arun
Hello,
Which module can I use to have Kamailio generate a CANCEL request when it receives a certain reply code? I want to cancel a dialog when Kamailio receives a 181 Call Forwarded.
Hello,
I need to query a database for every SIP request coming into Kamailio, but I want this to be handled as fast as possible, so I was thinking of loading the data I need in memory using the HTABLE or MTREE modules.
When the SIP request is coming from one of our carriers, the called number ($rU) must be used to get the data for this called number. Normally, I would query the database, using sqlops, and pass the value of $rU as the parameter and get the column values using the $dbr variable. Can this be accomplished with HTABLE or MTREE?
Also, the autoexpire parameter in HTABLE; once expired, will the data be reloaded again from the database?
Thanks,
Grant
While I have seen other posts I have not found anything that describes my scenario.
Kamailio sets in front of a group of asterisk servers which are used in a round robin dispatch group. All asterisk servers share a common database in which voicemail boxes are defined and messages are stored.
I'm looking for a way to make message waiting work in this example. I have tried creating a view with basic peer information for asterisk to use for message notification, however asterisk does not 'see' these peers until a call is made to the specific user and the peer info is retrieved from the database, which can delay notifications severely rendering them useless. I also want to avoid sending a copy of the registrations to asterisk servers, as the purpose of the distributed system is to eliminate the large number of sip registrations asterisk needs to manage.
I have also seen a couple of script methods that look at the voicemail directory structure for file changes and trigger an application like sipsak to generate the notifications and let kamailio relay them. From what I see, the consensus is not to go this route. In my case the script would need to look at the database level, and maybe some sort of database trigger could be used.
What are others doing / what do others recommend as the best way to handle message waiting with a situation where kamailio sets in front of a voicemail server?
Any input is appreciated.
Dan-
Hi,
I am trying to setup a test user. I have installed from repo. This is my
monitor output:
[cycle #: 2; if constant make sure server lives]
Server:: kamailio (4.0.2 (x86_64/linux))
Build:: mi_core.c compiled on 15:41:19 Jul 1 2013 with gcc 4.6.3
Flags:: STATS: Off, USE_IPV6, USE_TCP, USE_TLS, TLS_HOOKS, USE_RAW_SOCKS,
DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC,
USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER,
USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
GIT:: fc967b
Now:: Mon Jul 1 20:43:35 2013
Up since:: Mon Jul 1 20:43:04 2013
Up time:: 31 [sec]
Transaction Statistics:
tmx:UAS_transactions = 0
tmx:UAC_transactions = 0
tmx:inuse_transactions = 0
Stateless Server Statistics:
sl:sent_replies = 1
sl:sent_err_replies = 0
sl:received_ACKs = 0
UsrLoc Stats:
usrloc:location-contacts = 0
usrloc:location-expires = 0
usrloc:location-users = 0
usrloc:registered_users = 0
I am running kamailio as:
sudo /usr/local/kamailio-devel/sbin/kamailio -l <my-public-ip-addr> -E -ddd
-D 1
And this is my subscriber:
» kamctl db show subscriber
+----+----------+--------------------+------------+---------------+----------------------------------+----------------------------------+------+
| id | username | domain | password | email_address | ha1
| ha1b | rpid |
+----+----------+--------------------+------------+---------------+----------------------------------+----------------------------------+------+
| 6 | test | tethys.xxxxxxx.net | testpasswd | |
5cf40781f33c6f43a26244046564b67e | eb898de815bc16092e4c2e8c04bfe188 | NULL |
+----+----------+--------------------+------------+---------------+----------------------------------+----------------------------------+------+
My sip client is replying all the time with "Request Timeout (408)", and my
server is saying:
0(15818) DEBUG: auth [api.c:86]: pre_auth(): auth:pre_auth: Credentials
with realm '<my-ip>' not found
What could be going on?
Thanks,
Daniel
Good evening Gary.
1.- With regard to session control you can also implement with htable module
(avoiding orphan dialog module).
INVITE transaction
$sht(channels=>$ci) = $avp(s:caller_uuid);
BYE/on_failure transaction
$sht(channels=>$ci) = NULL;
CHANNEL CONTROL ROUTE ->
.
if ( $shtcv(channels=>$avp(s:caller_uuid)) >= "YOUR TOP") ) {
..
Your treatment
2.- My last way is to face dialog module development to achieve your goals,
even service restart.
The problem is that dialog module is now continuously changing (dialog,
dialog_ng, . ) and you'll have to accomplish your development with new
changes.
Regards.
--
Eduardo Lejarreta.
Hi,
After updating my git tree I'm on this commit :
* master 1123ed4 core: Also
consider PROTO_WS(S) in forward().
origin/master 1123ed4 core: Also
consider PROTO_WS(S) in forward().
After building kamailio is showing this and refusing to start :
arif@khost:~/src/kamailio$ kamailio -f /opt/kamailio/etc/kamailio/kamailio.cfg
0(21753) DEBUG: <core> [sr_module.c:591]: load_module(): load_module:
trying to load </opt/kamailio/lib64/kamailio/modules/db_mysql.so>
0(21753) ERROR: <core> [sr_module.c:449]: version_control(): ERROR:
module version mismatch for
/opt/kamailio/lib64/kamailio/modules/db_mysql.so; core: kamailio
4.1.0-dev6 (x86_64/linux); module: kamailio 4.0.2 (x86_64/linux)
Not understand what happened here.
--
-Cheers
-Arif