Kamailio 1.5.4 segmentation faulted today. I was able to determine
with gdb that the error occurred at mediaproxy.c line 1104. Line 1104
is a call to memcpy
Core was generated by `/sbin/kamailio -m 512'.
Program terminated with signal 11, Segmentation fault.
#0 0x00007f1469db6bb5 in replace_element (msg=0x77e470,
old_element=<value optimized out>, new_element=0x7fffbd553210) at
mediaproxy.c:1104
1104 memcpy(buf, new_element->s, new_element->len);
1.5.4 is new to our …
[View More]production environment, we were previously running
1.5.2 notls (also no mediaproxy) for more than a year without issue.
1.5.4 notls with mediaproxy has been running in our lab and
preproduction QA environments since March of this year without any real
segmentation faults.
Does anyone have any ideas of what may have caused this, or suggestions
to get around this. I do see that 1.5.5 is available, although there
does not appear to have been too many changes to mediaproxy.c
Thank you in advance
Stagg
[View Less]
There is a tutorial posted at
http://kb.asipto.com/asterisk:realtime:kamailio-3.0.x-asterisk-1.6.2-astdb
I am confused. It seems that this tutorial has Asterisk AND Kamailio on the
same physical server. If this is true, why would you do that. I thought the
point was to move Kamailio to a separate server to handle all the SIP
sessions and have Asterisk on another box to handle media, such as
voicemail, IVR's and such.
If I am correct, can someone give guidance on how to integrate if …
[View More]Asterisk
is on a separate server?
Thanks,
Kurt
[View Less]
> This should be a UNIX style path e.g. /tmp/kamailio.fifo The directory
where the fifo is must be writable by the kamailio user.
I thought the line modparam("mi_fifo", "fifo_mode",0666) set the
permissions on the folder/file.
Also, I tried changing the path to /tmp/kamailio.fifo that did not work
either
Please change as below:
> kamctlrc
> ## path to FIFO file
> OSER_FIFO="/tmp/kamailio_fifo"
kamailio.cfg
> # ----- mi_fifo params -----
>modparam("mi_fifo", "…
[View More]fifo_name", "/tmp/kamailio_fifo")
I have also tried this. Here is what I am getting.
ERROR: Error opening Kamailio's FIFO /tmp/kamailio_fifo
ERROR: Make sure you have the line 'modparam("mi_fifo", "fifo_name",
"/tmp/kamailio_fifo")' in your config
ERROR: and also have loaded the mi_fifo module.
Interesting side note:
After the initial installation and reboot, Kamailio came up and was running
and kamctl moni displayed the correct results. However after running
"service kamailio restart" I began getting the error again and have not
been able to clear it.
-----Original Message-----
From: sr-users-bounces(a)lists.sip-router.org
[mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of
sr-users-request(a)lists.sip-router.org
Sent: Monday, December 06, 2010 3:37 AM
To: sr-users(a)lists.sip-router.org
Subject: sr-users Digest, Vol 67, Issue 17
Send sr-users mailing list submissions to
sr-users(a)lists.sip-router.org
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
or, via email, send a message with subject or body 'help' to
sr-users-request(a)lists.sip-router.org
You can reach the person managing the list at
sr-users-owner(a)lists.sip-router.org
When replying, please edit your Subject line so it is more specific than
"Re: Contents of sr-users digest..."
Today's Topics:
1. Re: lcr in 3.1 - no reload without Siremis? (Anders)
2. Error opening Kamailio's FIFO (Kurt Mullen)
3. Re: lcr in 3.1 - no reload without Siremis? (Juha Heinanen)
4. Re: Error opening Kamailio's FIFO (marius zbihlei)
5. Re: Error opening Kamailio's FIFO (Huy Nguyen)
----------------------------------------------------------------------
Message: 1
Date: Sun, 5 Dec 2010 14:32:20 -0500
From: Anders <vaerge(a)gmail.com>
Subject: Re: [SR-Users] lcr in 3.1 - no reload without Siremis?
To: Juha Heinanen <jh(a)tutpro.com>
Cc: sr-users(a)lists.sip-router.org
Message-ID:
<AANLkTimfd8CdXENb+oX6n2YNx54ohbudz8jUraX=yVGy(a)mail.gmail.com>
Content-Type: text/plain; charset=windows-1252
For anyone else who might not be able to find the old `kamctl lcr`-commands,
the alternatives to some can be found here:
http://www.kamailio.org/docs/modules/3.1.x/modules/lcr.html#id2960364
Being able to reload the lcr didn't solve my problem though - still not
finding any gw when I run next_gw(), so I'm still open for input...
On Sat, Dec 4, 2010 at 6:08 PM, Juha Heinanen <jh(a)tutpro.com> wrote:
> Anders writes:
>
>> But I added it manually to the tables, so maybe I needed to load them
>> to memory ? but ?kamctl lcr reload? has been discontinued, so no
>> loading. Is Siremis necessary as the input tool for lcr and gws?
>
> anders,
>
> read what is new in 3.1 wiki page and lcr manual. ?also, ctl help
> knows about lcr ctl commands.
>
> -- juha
>
------------------------------
Message: 2
Date: Sun, 5 Dec 2010 17:40:26 -0600
From: "Kurt Mullen" <kmullen(a)practical-pc.com>
Subject: [SR-Users] Error opening Kamailio's FIFO
To: <users(a)lists.kamailio.org>
Message-ID: <005301cb94d5$cb5a2aa0$620e7fe0$(a)practical-pc.com>
Content-Type: text/plain; charset="us-ascii"
I am getting this error when I try to run kamctl:
ERROR: Error opening Kamailio's FIFO FIFO
ERROR: Make sure you have the line 'modparam("mi_fifo", "fifo_name",
"FIFO")' in your config
ERROR: and also have loaded the mi_fifo module.
I am able to start Kamailio with Kamailio start
I have poured over all the responses on Google for two days trying to fix
this error. I have tried everything I know of.
I have tried each example.
kamctlrc
DB Path is correct:
# database path used by dbtext or db_berkeley
DB_PATH="/usr/share/kamailio/dbtext"
## control engine: FIFO or UNIXSOCK
## - default FIFO
CTLENGINE="FIFO"
## path to FIFO file
OSER_FIFO="FIFO" (I have already tried commenting this out)
kamailio.cfg
loadmodule "mi_fifo.so"
Path to modules is correct:
mpath="modules_k:modules"
#!else
mpath="/usr/lib/kamailio/modules_k/:/usr/lib/kamailio/modules/"
#!endif
# ----- mi_fifo params -----
modparam("mi_fifo", "fifo_name", "/tmp/kamailio.fifo")
modparam("mi_fifo", "fifo_mode",0666)
This is installed on Ubuntu Server 10.10 64 bit Intel .
Can someone please help?
Kurt A. Mullen
Practical PC, LLC
(O) 830.542.4102 x204
(F) 210.767.3912
------------------------------
Message: 4
Date: Mon, 6 Dec 2010 11:28:08 +0200
From: marius zbihlei <marius.zbihlei(a)1and1.ro>
Subject: Re: [SR-Users] Error opening Kamailio's FIFO
To: <sr-users(a)lists.sip-router.org>
Message-ID: <4CFCACA8.4060701(a)1and1.ro>
Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"
On 12/06/2010 01:40 AM, Kurt Mullen wrote:
Hello,
>
> I am getting this error when I try to run kamctl:
>
> ERROR: Error opening Kamailio's FIFO FIFO
>
> ERROR: Make sure you have the line 'modparam("mi_fifo", "fifo_name",
> "FIFO")' in your config
>
> ERROR: and also have loaded the mi_fifo module.
>
> I am able to start Kamailio with Kamailio start
>
> I have poured over all the responses on Google for two days trying to
> fix this error. I have tried everything I know of.
>
> I have tried each example.
>
> kamctlrc
>
> DB Path is correct:
>
> # database path used by dbtext or db_berkeley
>
> DB_PATH="/usr/share/kamailio/dbtext"
>
> ## control engine: FIFO or UNIXSOCK
>
> ## - default FIFO
>
> CTLENGINE="FIFO"
>
> ## path to FIFO file
>
> OSER_FIFO="FIFO" (I have already tried commenting this out)
>
This should be a UNIX style path e.g. /tmp/kamailio.fifo The directory where
the fifo is must be writable by the kamailio user.
Marius
>
> kamailio.cfg
>
> loadmodule "mi_fifo.so"
>
> Path to modules is correct:
>
> mpath="modules_k:modules"
>
> #!else
>
> mpath="/usr/lib/kamailio/modules_k/:/usr/lib/kamailio/modules/"
>
> #!endif
>
> # ----- mi_fifo params -----
>
> modparam("mi_fifo", "fifo_name", "/tmp/kamailio.fifo")
>
> modparam("mi_fifo", "fifo_mode",0666)
>
> This is installed on Ubuntu Server 10.10 64 bit Intel .
>
> Can someone please help?
>
> *Kurt A. Mullen*
>
> Practical PC, LLC
>
> (O) 830.542.4102 x204
>
> (F) 210.767.3912
>
[View Less]
Hi,
I'm having troubles fetching an xpath from an xml document using
presence_xml, so I probably do something wrong (using kamailio 3.0.x):
$xml(x=>doc) = '<?xml version="1.0" encoding="utf-8"?><presence
xmlns="urn:ietf:params:xml:ns:pidf"
entity="sip:test@mydomain.com"><tuple
id="86ae65b7-42de-4399-b635-295caad13aac"><status><basic>none</basic></status></tuple></presence>';
xlog("L_INFO", "all=$xml(x=>doc)\n");
-> prints the …
[View More]whole document, which is ok
xlog("L_INFO", "tmp1=$xml(x=>xpath:/)\n");
-> also prints the whole document (including the xml tag in the
beginning, not sure if this is ok)
xlog("L_INFO", "tmp2=$xml(x=>xpath:/presence)\n");
-> prints an empty string
How is this actually supposed to work? What I'd like to do in the end is
extracting for example the "none" from the "basic"-tag by specifying
"xpath:/presence/tuple/status/basic", which also returns an empty string
now, also when appended with "/text()".
Thanks a lot,
Andreas
[View Less]
I am getting this error when I try to run kamctl:
ERROR: Error opening Kamailio's FIFO FIFO
ERROR: Make sure you have the line 'modparam("mi_fifo", "fifo_name",
"FIFO")' in your config
ERROR: and also have loaded the mi_fifo module.
I am able to start Kamailio with Kamailio start
I have poured over all the responses on Google for two days trying to fix
this error. I have tried everything I know of.
I have tried each example.
kamctlrc
DB Path is correct:
# …
[View More]database path used by dbtext or db_berkeley
DB_PATH="/usr/share/kamailio/dbtext"
## control engine: FIFO or UNIXSOCK
## - default FIFO
CTLENGINE="FIFO"
## path to FIFO file
OSER_FIFO="FIFO" (I have already tried commenting this out)
kamailio.cfg
loadmodule "mi_fifo.so"
Path to modules is correct:
mpath="modules_k:modules"
#!else
mpath="/usr/lib/kamailio/modules_k/:/usr/lib/kamailio/modules/"
#!endif
# ----- mi_fifo params -----
modparam("mi_fifo", "fifo_name", "/tmp/kamailio.fifo")
modparam("mi_fifo", "fifo_mode",0666)
This is installed on Ubuntu Server 10.10 64 bit Intel .
Can someone please help?
Kurt A. Mullen
Practical PC, LLC
(O) 830.542.4102 x204
(F) 210.767.3912
[View Less]
Hello. I am new to this forum. Can someone point me in the correct direction regarding compiling the SER package from the sip-router git repository?
When I try to compile the binaries, it is having troubles finding the mysql.h header file. I have looked in some of the obvious places, but it is not installed either in the distro I for mysql nor in the sip-router directory's module folders. Here is the error I see in the make_and_install_output.txt file when I try to compile.
km_dbase.c:38:…
[View More] fatal error: mysql/mysql.h: No such file or directory
compilation terminated.
make[1]: *** [km_dbase.o] Error 1
make: *** [modules] Error 1
I am using the current ubuntu server distro. Is this a well known issue? I followed the download
instructions from the sip-router download page from this website so I assume it automatically pulled the most current release (?). Will I need to load a package from someplace else?
Mysql is currently installed onto my machine. But I cannot find mysql.h. WIll I need to get the
libs from mysql (if available) and will they include the header files?
thx in adv
[View Less]
I have Kamailio up and running and passing calls between users. However, it
is not authenticating. Therefore any one can access without user/password.
Kamailio.cfg
#!- define WITH_MYSQL
#
# *** To enable authentication execute:
#!- enable mysql
#!- define WITH_AUTH
#!- add users using 'kamctl'
#
# *** To enable IP authentication execute:
#!- enable mysql
#!- enable authentication
#!- define WITH_IPAUTH
#!- add IP addresses with group id '1' to 'address' table
Kurt A. …
[View More]Mullen
Practical PC, LLC
(O) 830.542.4102 x204
(F) 210.767.3912
[View Less]
Hello.
I have Kamailio ( K in further ) and 2x Asterisk boxes ( A1 and A2 in
further ) configured, so UAC registers at K and when it sends a call,
it's routed to A1 or A2, balanced.
The problem is, that I cannot find how to authorize INVITE requests, so
unregistered UAC could not send INVITE requests. Simply cannot find
anything.
I'm making registration, using www_authorize() and checking all INVITES
with proxy_authorize(). Just after kamailio is started - everything
works fine and as …
[View More]planned: registered UAC can call and not registered -
cannot. But after aproximately 40 seconds everything is stopped. Not
calls passed and everybody receives 407 Proxy Authorization is required.
So, the question: how it is correctly to verify that incoming INVITE on
K is authorized? It seems to me that I'm doing that in wrong way.
Thank you.
[View Less]
Hello,
We are running Kamailio 1.5.
I'm trying to use the forward() function with a variable like this:
forward($shv(voip1-edge1));
That fails to parse.
I then tried this, which I thought would fail:
forward("$shv(voip1-edge1)");
That parsed correctly, but it then failed to resolve the domain '$shv(voip1-edge1)' as expected. Why can this function not use variables?
I tried to make a workaround by doing this:
$du=$ru;
$dd=$shv(voip1-edge1);
forward();
That also failed. …
[View More]Why is $du writable but $dd is not?
I then made a fourth attempt, which seems to work:
$du="sip:" + $shv(voip1-edge1);
forward();
With kind regards,
Pan
[View Less]