I'm having a problem installing kamailio 5.4 using the following guide
https://kamailio.org/docs/tutorials/5.4.x/kamailio-install-guide-git/ .
I have a debian 10.7 machine where I install default-mysql-server package
for the database. After that I follow the install guide and everything goes
smoothly until I have to install the init.d scripts.
1. I do "cd /usr/local/src/kamailio-5.4/kamailio'
2. I do "make install-initd-debian"
Then make fails with the following error
"
root@kamServ:/usr/local/src/kamailio-5.4/kamailio# make install-initd-debian
make -C src/ install-initd-debian
make[1]: Entering directory '/usr/local/src/kamailio-5.4/kamailio/src'
sed -e "s#DAEMON=/usr/sbin/kamailio#DAEMON=/usr/local/sbin/kamailio#g" \
-e "s#NAME=kamailio#NAME=kamailio#g" \
-e "s#DESC=Kamailio#DESC=kamailio#g" \
-e "s#HOMEDIR=/run/kamailio#HOMEDIR=/run/kamailio#g" \
-e "s#DEFAULTS=/etc/default/kamailio#DEFAULTS=/etc/default/kamailio#g" \
-e
"s#CFGFILE=/etc/kamailio/kamailio.cfg#CFGFILE=/usr/local/etc/kamailio/kamailio.cfg#g"
\
< pkg/kamailio/deb/debian/kamailio.init \
> /etc/init.d/kamailio
/bin/sh: 1: cannot open pkg/kamailio/deb/debian/kamailio.init: No such file
make[1]: *** [Makefile:982: install-initd-debian] Error 2
make[1]: Leaving directory '/usr/local/src/kamailio-5.4/kamailio/src'
make: *** [Makefile:34: install-initd-debian] Error 2
"
Am I doing something wrong? Possibly in the wrong directory? If you need
any more information please don't hesitate to ask.
Sincerely,
Matthew Sherwood
Hello
I’m trying to use function xavp_rm_by_index to remove a specific index from a given xavp.
I’m observing an unexpected behaviour, I think it might be a bug :
Instead of just removing the index, the function removes the index and all others before it.
E.g : if called with « idx = 1 », it removes indexes 0 and 1.
Reading the code of xavp_rm_internal (which is called by xavp_rm_by_index), I don’t think it behaves at it should :
/* Remove xavps
* idx: <0 remove all xavps with the same name
* >=0 remove only the specified index xavp
* Returns number of xavps that were deleted
*/
For example when I do this :
LM_ERR("COUNT BEFORE: %d\n", xavp_count(rname, NULL));
int rm_count = xavp_rm_by_index(rname, 1, NULL); // TEST
LM_ERR("REMOVED: %d\n", rm_count);
LM_ERR("COUNT AFTER: %d\n", xavp_count(rname, NULL));
« rm_count » returned is 1 (which is expected). However, « count after » is decremented by 2.
And when I look at the contents of my xavp, I notice that the first two elements have been removed.
Likewise if xavp_rm_by_index is invoked with idx = 2 => the first 3 elements are removed.
So… do you think this is a bug ? or something I didn’t understand ?
Thanks for your help !
Regards,
Nicolas.
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
I am working to track concurrent channels with the dialog module, but I have run in to an issue. Due to the nature of my required configuration, I have a need to strip the record route headers from packets that are sent to the upstream proxy. This leaves no way for the dialog module to track the state of the call. I was hoping that DID_FALLBACK or DID_NONE modes would track by call id or some other constant, but it does not appear to.
So, before I start down the path of using htable to store and reinsert the did when a packet returns, is there something I am missing with dialog? Is there some more efficient way to do this?
- Charles
Hello,
Kamailio 5.4.3 has been installed from source.
"kamctl ping sip:10.10.10.10:5060" is sent from the command line.
Errors:
Jan 12 15:59:24 KAM-TEST /usr/local/kam/kamailio[66587]: ERROR: jsonrpcs
[jsonrpcs_mod.c:1352]: jsonrpc_exec_ex(): invalid json doc [[{"jsonrpc":
"2.0", "method": "tm.t_uac", "], "reply_name": "kamailio_receiver_85791",
"id": 85791}]].", "From:sip:daemon@KAM-TEST
Jan 12 15:59:24 KAM-TEST /usr/local/kam/kamailio[66587]: ERROR: jsonrpcs
[jsonrpcs_fifo.c:461]: jsonrpc_fifo_server(): failed to execute the json
document from fifo stream
This command is working in 4.4.
Has anyone tried using kamctl ping in 5.4?
Is it a bug in 5.4.3 ?
Thank you,
Julia.
Hi All,
Sorry for the intrusion and asking directly, but there’s so much information out there that I would spend years looking for the answer myself and spending equal amount of time in a lab playing. I do like the last idea but time is a little short.
I’m thinking of using Kamailio to overcome a few downfalls in the main SBC/PBX commercial product space that I’ve typically deployed and wanted to ask if it is possible to use as a stateful proxy and carry out the following header manipulation type scenario with a bit more dynamassium:
Use the FROM and TO header to create two value pairs that would be sent via a REST request to an external application, which will return two corresponding values to (a) supply a different value to update the original FROM header and (b) a full PAI sting to add on to the outgoing message.
If you have experience of this or if it’s a nonstarter I’d love to know.
There’s so many modules and great stuff that you have in your toy chest it is amazing and kudos to all you developers being so inventive out there: it leaves me to think I’ve been deploying SIP wrong all these years.
Thanks and keep safe and well, Mark
Hello,
I'm looking for a way to retrieve the number of rows stored in a xavp.
(Something better than manually iterating over the xavp)
Basically, I'd like to call xavp_count from the script.
Is that possible ?
Regards,
Nicolas.
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
Hello
have some questions about Kamailio HA + loadbalancers (dispatcher modules)
1. is posible to make HA for RTP media? maybe RTPEngine +redis? is not
possible to do this with RTProxy? where is some examples?
2. What do Kamailio db cluster module? it can replicate every DB query
record like normal DB cluster? or better is to use native MySQL cluster
mode?
3. How is working dispatcher modules in HA? how call is handled and
htable in memory between loadbalancers endpoint nodes etc... IS it
posible to do only with DMQ ?
Just need understand how to do basic Kamailio setup with HA and load
balancers in general, for example if will be 2 phisical servers, in
every server is virtualisation and every server has 2 VPS. 1 VPS for
frontend Kamailio loadbanancer, 1 VPS backend Kamailio app with
accounts, routing logic, LCR, RTP media app etc... between load
balancers i know maybe is possible to do floating ip, dns round
robinetc... and if one VPs server down, call will be dropet in every
situation? or call will not be droped and how to prevent it.
Just need to know in general schema and architecture how to do this real
HA in Kamailio and avoind sinlge point of failure and where to read and
learn it ho to make HA in real. In the internet no many docs about it,
many conference video how good it is, but no good examples with config,
i did not founded, so will be very glad for any help in these newbie
questions ;) with single kamailio is many answers, but is realy
difficult to understand how to do voip HA with Kamailio without single
point of failure.
Thanks for any answers...
Hello,
I am running kamailio 5.3.8 on Debian 9. Kamailio is installed via apt
package manager. I am trying to get apiban.org to work and it seems to be
having a problem with the http_client module. I have searched for the
kamailio modules and I am unable to find anything that resembles http. I
have also installed the extra module and no luck. What would be the
correct module to install?
kamailio: ERROR: <core> [core/sr_module.c:500]: load_module(): could not
find module <http_client> in </usr/lib/x86_64-linux-gnu/kamailio/modules/>
Hi everyone.
I wanted all of you to know, that I have made JavaScript stubs, for autocompletion in IDE’s, for those of you that use KEMI JavaScript.
Specifically tested on Jetbrains PHPStorm/Webstorm.
The stubs are available for free at my GitHub page.
The link is https://github.com/captainDuckay/Kamailio-javascript-stubs
My main language isn't typescript or JavaScript, and this is one of my first public releases.
With that said though, I am open for critics, or even guidance.
I hope it's usable for you.
// Nicki Bo Otte
Hi,
We noticed an issue with the way the Kamailio is handling certain messages being sent to them, specifically, the To header being relayed from Kamailio to the next hop is malformatted.
Any assistance is greatly appreciated
INVITE received by Kamailio:
Request: Invite
Request URI: sip:2053140346;isub=33343@72.31.12.137:5060;transport=udp
From: <sip:+13037819601@71.44.15.84;user=phone>;tag=gK00a85927
To: <sip:+12053140346@72.31.12.137>;tag=SDnpoa601-1c711123926
Call-ID: SDnpoa601-f1bc387aa5a486c1dd943d1b53ae8e6a-8q7og02
CSeq: 860668 INVITE
Contact: <sip:+13037819601@107.14.122.29:5060>
SDP IP: 0.0.0.0
SDP Port: 43126
INVITE forwarded by Kamailio:
Request: Invite
Request URI: sip:2053140346;isub=33343@72.31.12.137:5060;transport=udp
From: <sip:+13037819601@71.44.15.84;user=phone>;tag=gK00a85927
To: <sip:+120531403Oh.lc".3/+0]1..31.12.137>;tag=SDnpoa601-1c711123926
Call-ID: SDnpoa601-f1bc387aa5a486c1dd943d1b53ae8e6a-8q7og02
CSeq: 860668 INVITE
Contact: <sip:+13037819601@107.14.122.29:5060>
SDP IP: 0.0.0.0
SDP Port: 43126
Another example in BYE:
BYE received by Kamailio:
To: "WIRELESS CALLER" <sip:+18131111111@71.44.13.84>;tag=gK0a788ca6
BYE forwarded by Kamailio:
To: "WIRELESS CALLER" <sip:+18131112222A.++.+,-94
Thanks.
AL