Dear list users,
I encounter an issue when reloading a hash table using FIFO command.
My hash is getting a list of "Username / Serial Number" from SQL for
each phone connecting to Kamailio. Then I use this hash to authenticate
the phone based on a X-SerialNumber attribute.
This hash has to be updated once or twice a day, to accomodate new users
or a change of the Phone.
I'm using the following command for reloading:
/opt/kamailio/sbin/kamctl fifo sht_reload hash_cpe_serial
Everything is working fine, but after 25-26 reload I have an error like
this:
500 ERROR Reloading data
The only way to recover is do a restart with ./kamctl restart
The hash size has approximatively 22 000 users.
The hash has been defined like this in the configuration file:
modparam("htable", "htable", "hash_cpe_serial=>size=14;dbtable=subscriber;")
When using kamcmd, i have this:
kamcmd> htable.listTables
{
name: ipban
dbtable:
dbmode: 0
expire: 300
updateexpire: 1
size: 256
}
{
name: hash_cpe_serial
dbtable: subscriber
dbmode: 0
expire: 0
updateexpire: 1
size: 16384
}
When trying to dump with kamcmd, I have an error:
kamcmd> htable.dump hash_cpe_serial
error: 500 - Internal server error processing '{': buffer too small
(overflow) (-2)
But it works fine with:
/opt/kamailio/sbin/kamctl fifo sht_dump hash_cpe_serial
I have upgraded from 3.2.2 to 4.0.0 to be sure that it was not relative
to the old version, but without success.
Any idea on how to correct this.
Kind regards,
rod
Hi all,
I installed Kamailio 4.0.0 from source an tried configuration from
Kamailio 3.3.2. problem is with km_append_branch function.
Not starting Kamailio400: invalid configuration file!
-e
0(20346) ERROR: <core> [cfg.y:3431]: cfg. parser: failed to find
command km_append_branch
0(20346) : <core> [cfg.y:3570]: parse error in config file
/usr/local/kamailio400/etc/kamailio/kamailio.cfg, line 2448, column
22: unknown command, missing loadmodule?
ERROR: bad config file (1 errors)
configuration:
------------------
mpath="/usr/local/kamailio400/lib64/kamailio/modules_k/:/usr/local/kamailio400/lib64/kamailio/modules/"
loadmodule "kex.so"
...
km_append_branch();
route(RELAY);
exit;
}
...
Please advise
Best regards
Pavel
Has anyone else noticed issues when adding a large number of contacts to your buddy list? I was using Jitsi and at about 40 contacts I was encountering issues in that the subsequent contacts would not get added to my buddy list.
Ttyl,
Dave
Hello.
First of all i just did a fresh install of Homer and this thing is
perfect only really missing the RTP analysis.
Anyway I have a Freeswitch PBX with several internal profiles and also
external profiles binded into external Ips ( Public not Private).
Capture on the private network profiles works flawlessly when i try to
track public interface , calls going into the VOIP Operators , there are
no entries ....
So :
Public call data inside the DB , No
Freeswitch sending data into Kamailio , Yes
TCPDUMP on Kamailio Shows SIP Data from the PBX Interface , Yes ,
Kamailio complains with
Mar 28 08:30:27 debian /usr/local/sbin/kamailio[23709]: ERROR: <core>
[parser/msg_parser.c:705]: ERROR: parse_msg: message=<#015#012>
Mar 28 08:30:27 debian /usr/local/sbin/kamailio[23709]: ERROR: <core>
[receive.c:146]: ERROR: receive_msg: parse_msg failed
Problem Scenario :
A call from a phone inside the network 1.1.1.0 Into the PBX 1.1.1.1 is
tracked by Homer a call from the external IP Binded into the PBX lets
say something like 80.0.80.8(External Public IP) , Call not tracked and
Kamailio complains with parse_msg_error.
Helper Data :
Uname
Linux debian 2.6.32-5-amd64 #1 SMP Mon Feb 25 00:26:11 UTC 2013 x86_64
GNU/Linux
LSB
Distributor ID: Debian
Description: Debian GNU/Linux 6.0.7 (squeeze)
Release: 6.0.7
Codename: squeeze
Kamailio as of TODAY from GIT
Homer as of TODAY from GIT
WebHomer 3.3.1 From GIT Also
Using the SOFIA SIPTRACE , problem shows both using the global sip trace
or individual profile siptrace.
Thanks for your time
Antonio
Hi guys
Maybe I missed something, but looks like there is no base64
encode/decode transformation in PV, right?
I think we're going to add one, as it might be handy to do such
transformations directly from within the config file.
One case where this could be used is that some UAs are picky in regards
to URIs as URI params, e.g.
P-Foo: <sip:alice@example.org;x='sip:1.2.3.4:1234'>
which could be changed into
P-Foo: <sip:alice@example.org;x=c2lwOjEuMi4zLjQ6MTIzNAo=>
which might be understood more easily (although it's still just a
work-around for broken UAs, but that's how life is).
Any objections against such a transformation?
Andreas
Hello,
Is there a maximum length/size defined for the From and To Tag?
The RFC states: "it MUST be globally unique and cryptographically random with at least 32 bits of randomness".
Though I can't find anything in the RFC about the maximum.
The sip_capture table stores the to_tag and from_tag in a varchar(64). Does this mean the max is 64?
Source: https://code.google.com/p/homer/source/browse/sql/create_sipcapture.sql
Thanks,
G
Hello everyone,
I am running Kamailio 3.3.2 server and I need to configure it to support RLS to avoid big amounts of SUBSCRIBE requests from clients.
By this moment I have managed to configure XCAP server and learned the XML structure for press-rules, rls-services and resource-list documents.
Also I have successfully put rls_update_subs and rls_handle_subscribe calls to kamailio.cfg, so now when I PUT new rls-services or resource-list document to XCAP I can see these calls triggered.
The problem is that on client side I always get empty notification XML:
<?xml version="1.0"?>
<list uri="sip:user1-list@sip.server" xmlns="urn:ietf:params:xml:ns:rlmi" version="1" fullState="true">
<resource uri="sip:user2@sip.server"/>
<resource uri="sip:user3@sip.server"/>
</list>
As I understand, user2 and user3 must have added user1 to pres-rules document? Correct? So it is…
I assume there should be a call to rls_handle_notify function somewhere in kamailio.cfg, but where exactly?
I have tried to add it after SUBSCRIBE condition, but it is never called in fact:
if( is_method("SUBSCRIBE"))
{
xlog("BEFORE rls_handle_subscribe");
$var(ret_code)= rls_handle_subscribe();
xlog("AFTER rls_handle_subscribe");
if($var(ret_code)== 10)
handle_subscribe();
t_release();
}
else
if (is_method("NOTIFY")) {
xlog("BEFORE rls_handle_notify");
rls_handle_notify();
xlog("AFTER rls_handle_notify");
}
Any comment would be appreciated!
Regards,
Alex.
Hello,
I am trying to build a list of SIP hardphones that have support for TLS
with client side certificate (i.e., import custom ssl certificate in the
phone specific for each SIP account).
Anyone that can report back the vendor and model (eventually the
minimum/current firmware version)?
Thanks,
Daniel
--
Daniel-Constantin Mierla - http://www.asipto.comhttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio World Conference, April 16-17, 2013, Berlin
- http://conference.kamailio.com -
Hello,
Any successful implementation of adding some customized security
(encryption) over sip and rtp in kamailio? (non TLS) Also looking for
assistance on the concept of rtp over tcp using kamailio and rtpproxy.
Warm Regards
Selvam
--
Sent from my mobile device
Didn't read the whole thread, but, in some clients you need to specify the transport is TLS and the port is 5061 (assuming you use the default).
Hth.
Ttyl,
Dave
-----Original Message-----
From: Khoa Pham <onmyway133(a)gmail.com>
Date: Thu, 21 Mar 2013 03:52:12
To: <sr-users(a)lists.sip-router.org>
Subject: Re: [SR-Users] How to enable TLS in Kamailio ?
@Moacir, thanks
1. You said that " then use "listen="my ip address" and all enabled services will be bound to the especified IP address." So which port does Kamailio listen for TCP and TLS? How does client know which port to connect to Kamailio ?
On Thu, Mar 21, 2013 at 12:41 AM, Moacir Ferreira <moacirferreira(a)hotmail.com <mailto:moacirferreira@hotmail.com> > wrote:
Hummm. When I start playing with Kamailio I had some problems that were related to the compilation process not really to the final product. Now, if you comment out the listen statement then all server interfaces will listen for all enabled services (SIP-UDP, SIP-TCP and SIP-TLS if you enabled it). AS a troubleshooting suggestion, just comment out the "listen" statement and all enabled services will bind to all available IP interfaces. If it works, then use "listen="my ip address" and all enabled services will be bound to the especified IP address.
Best regards,
Moacir
----------------
From: oej(a)edvina.net <mailto:oej@edvina.net>
Date: Wed, 20 Mar 2013 12:43:06 +0100
To: sr-users(a)lists.sip-router.org <mailto:sr-users@lists.sip-router.org>
Subject: Re: [SR-Users] How to enable TLS in Kamailio ?
20 mar 2013 kl. 10:33 skrev Khoa Pham <onmyway133(a)gmail.com <mailto:onmyway133@gmail.com> >:
Hi Olle,
I follow these 2 tutorials
1. http://nil.uniza.sk/network-security/tls/configuring-tls-support-kamailio-3…
which only describes to listen on tls
listen=tls:158.193.139.51:5061 <http://158.193.139.51:5061/>
2. http://www.kamailio.org/dokuwiki/doku.php/tls:create-certificates
which only describes to listen on udp and tcp
listen=udp:<ip-address-for-receiving-sip-requests>:5060 listen=tcp:<ip-address-for-receiving-sip-requests>:5060
It is not until I listen on both TCP and LTS does it work.
You document http://kamailio.org/docs/modules/4.0.x/modules/tls.html seems to lack of these "listen" Right.
But it's in the core cookbook. We should propably add the listen to the TLS docs too.
Thanks!
/O
On Wed, Mar 20, 2013 at 4:10 PM, Olle E. Johansson <oej(a)edvina.net <mailto:oej@edvina.net> > wrote:
20 mar 2013 kl. 07:55 skrev Daniel-Constantin Mierla <miconda(a)gmail.com <mailto:miconda@gmail.com> >:
Hello,
when tls module is installed, a self signed pair of certificate-private key is generated in /usr/local/etc/kamailio
If you need one that is signed by a trusted CA (e.g., Verisign), you will have to buy it.
Cheers,
Daniel
On 3/19/13 8:08 AM, Khoa Pham wrote:
Hi,
I want to enable TLS in Kamailio, as in here http://kamailio.org/docs/modules/stable/modules/tls.html
But how can I get the certificate and private key ?
The documentation for the TLS module actually includes a quick howto.
http://kamailio.org/docs/modules/4.0.x/modules/tls.html
What part of this needs clarification? Please help us make the documentation better if there are parts you do not undertand or isn't explained.
Thanks,
/O
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org <mailto:sr-users@lists.sip-router.org>
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Khoa Pham
HCMC University of Science
Faculty of Information Technology
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org <mailto:sr-users@lists.sip-router.org>
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users(a)lists.sip-router.org <mailto:sr-users@lists.sip-router.org> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org <mailto:sr-users@lists.sip-router.org>
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Khoa Pham
HCMC University of Science
Faculty of Information Technology