Hi All,
I am running the kamailio for secure websocket (WSS). While running traffic
testing the kamailio is not able to take beyond 2300 connection. I am
getting below error.
45(12831) ERROR: tls [tls_server.c:243]: tls_fix_connection_unsafe(): tls:
ssl bug #1491 workaround: not enough memory for safe operation: 208
45(12831) ERROR: sl [../../forward.h:247]: msg_send(): tcp_send failed
45(12831) ERROR: websocket [ws_handshake.c:113]: ws_send_reply(): sending
reply
46(12832) ERROR: <core> [tcp_main.c:3577]: handle_ser_child(): received
CON_ERROR for 0x7f03e0b0fa18 (id 651), refcnt 3, flags 0x4018
45(12831) WARNING: <core> [tcp_read.c:1642]: handle_io(): F_TCPCONN
connection marked as bad: 0x7f03e0b0fa18 id 651 refcnt 1
44(12830) ERROR: tls [tls_server.c:154]: tls_complete_init(): tls: ssl bug
#1491 workaround: not enough memory for safe operation: 304
44(12830) ERROR: <core> [tcp_read.c:1326]: tcp_read_req(): ERROR:
tcp_read_req: error reading
I have seen below data in kamailio at the time of getting error.
shmem:fragments = 57
shmem:free_size = 16986416784
shmem:max_used_size = 193649976
shmem:real_used_size = 193452400
shmem:total_size = 17179869184
shmem:used_size = 188516920
Could you please suggest me how can I get more performance from kamailio
while using WSS ?
Thanks
Priyaranjan
Hello,
upon a process initiated before the summer during the IRC Devel Meeting,
when we started to look for refreshing the logo of Kamailio project, we
are now trying to finalize the decision and we are proposing a new logo
for Kamailio project.
The new proposed logo, as well as more details, can be seen at:
*
http://www.kamailio.org/w/2015/12/proposing-new-logo-for-kamailio-project/
We look forward to the feedback from community about this proposal - you
like it or not, is too similar with other logos, etc...
This announcement was sent to few of our mailing lists, but please reply
to sr-users(a)lists.sip-router.org, being something concerning the
community and definitely not something about development.
Cheers,
Daniel
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Book: SIP Routing With Kamailio - http://www.asipto.comhttp://miconda.eu
long time ago looked this problem but resolve it by sql queries directly
from confing file to location table.
So while remember
lookup(location) ofen can not find any contacts if its registers from
websocket.
it may work 10-15 times and then fails. So debug shows answer that is no
connections in location table.
Now at production system can not run this issue but at development system
want to do it today or tomorrow.
Hi all,
I'm trying to install 4.3 version from git as described here:
http://www.kamailio.org/wiki/install/4.3.x/git
As far as I understood latest stable version is 4.3.3, but after installing
from git I'm getting 4.3.4 version which is I believe is development
version.
kamailio -version
version: kamailio 4.3.4 (x86_64/linux) 583dc0
Could you please check this?
With kind regards,
Jurijs
Hi,
I'm using http_query to send a post request on a https URL. The weird part
is it crashes with segmentation fault when the response from the server is
200. If the response was a 500, it works and continues processing.
Here's the function:
http_query("https://notify.abcd.com/onnet/call", "$avp(devices)",
"Content-Type: application/json" "$var(response)");
xlog("L_INFO", "Response is $var(response)");
And here's the backtrace on crash:
0x00007f62f2bf8e38 in ?? ()
#1 0x00007f62ea22251b in http_query (_m=0x7f62f2c3a038,
_url=0x7f62f2bf3548 "\330\064\277\362b\177", _dst=0x7f62f2bf9250
"\030\215\277\362b\177", _post=0x7f62f2bf35c8 "\200r\277\362b\177",
_hdr=0x7f62f2bf91d0 "h\221\277\362b\177") at functions.c:226
#2 0x00007f62ea229e0b in w_http_query_post_hdr (_m=0x7f62f2c3a038,
_url=0x7f62f2bf3548 "\330\064\277\362b\177", _post=0x7f62f2bf35c8
"\200r\277\362b\177", _hdr=0x7f62f2bf91d0 "h\221\277\362b\177",
_result=0x7f62f2bf9250 "\030\215\277\362b\177") at utils.c:483
#3 0x000000000041f6b5 in do_action (h=0x7ffeb128c8c0, a=0x7f62f2bf8a58,
msg=0x7f62f2c3a038) at action.c:1079
#4 0x000000000042c2ea in run_actions (h=0x7ffeb128c8c0, a=0x7f62f2bf6fc0,
msg=0x7f62f2c3a038) at action.c:1549
#5 0x000000000041f3ce in do_action (h=0x7ffeb128c8c0, a=0x7f62f2bfb9b0,
msg=0x7f62f2c3a038) at action.c:1045
#6 0x000000000042c2ea in run_actions (h=0x7ffeb128c8c0, a=0x7f62f2bb9388,
msg=0x7f62f2c3a038) at action.c:1549
#7 0x000000000041bc28 in do_action (h=0x7ffeb128c8c0, a=0x7f62f2b8f248,
msg=0x7f62f2c3a038) at action.c:678
#8 0x000000000042c2ea in run_actions (h=0x7ffeb128c8c0, a=0x7f62f2b8e268,
msg=0x7f62f2c3a038) at action.c:1549
#9 0x000000000041f3ce in do_action (h=0x7ffeb128c8c0, a=0x7f62f2b91040,
msg=0x7f62f2c3a038) at action.c:1045
#10 0x000000000042c2ea in run_actions (h=0x7ffeb128c8c0, a=0x7f62f2b8b7a8,
msg=0x7f62f2c3a038) at action.c:1549
#11 0x000000000041bc28 in do_action (h=0x7ffeb128c8c0, a=0x7f62f2b3a2c0,
msg=0x7f62f2c3a038) at action.c:678
#12 0x000000000042c2ea in run_actions (h=0x7ffeb128c8c0, a=0x7f62f2b3a2c0,
msg=0x7f62f2c3a038) at action.c:1549
#13 0x000000000041f3ce in do_action (h=0x7ffeb128c8c0, a=0x7f62f2b47f00,
msg=0x7f62f2c3a038) at action.c:1045
#14 0x000000000042c2ea in run_actions (h=0x7ffeb128c8c0, a=0x7f62f2b37e80,
msg=0x7f62f2c3a038) at action.c:1549
#15 0x000000000041bc28 in do_action (h=0x7ffeb128c8c0, a=0x7f62f2b1c9c8,
msg=0x7f62f2c3a038) at action.c:678
#16 0x000000000042c2ea in run_actions (h=0x7ffeb128c8c0, a=0x7f62f2b1c9c8,
msg=0x7f62f2c3a038) at action.c:1549
#17 0x000000000041f3ce in do_action (h=0x7ffeb128c8c0, a=0x7f62f2b1cc28,
msg=0x7f62f2c3a038) at action.c:1045
#18 0x000000000042c2ea in run_actions (h=0x7ffeb128c8c0, a=0x7f62f2b170a0,
msg=0x7f62f2c3a038) at action.c:1549
#19 0x000000000042ca93 in run_top_route (a=0x7f62f2b170a0,
msg=0x7f62f2c3a038, c=0x0) at action.c:1635
#20 0x000000000051c115 in receive_msg (
buf=0xab7520 <buf> "INVITE
sip:bdbbf600000001b5b919d0@devsip.abcd.com:8321 SIP/2.0\r\nRecord-Route:
<sip:203.153.53.145:8300;r2=on;lr=on>\r\nRecord-Route:
<sip:203.153.53.145:8321;transport=tcp;r2=on;lr=on>\r\nVia:
SIP/2.0/UDP"..., len=1901, rcv_info=0x7ffeb128cc10) at receive.c:196
#21 0x000000000062d427 in udp_rcv_loop () at udp_server.c:495
#22 0x00000000004b28c1 in main_loop () at main.c:1593
#23 0x00000000004b9aa5 in main (argc=5, argv=0x7ffeb128d118) at main.c:2597
Can someone please confirm the crash so that I'll go ahead and report this
as an issue on the tracker. Basically when it crashes, kamailio doesn't
even execute the xlog function after the http_query call.
P.S. abcd.com is a changed domain for confidential reasons.
Thanks,
- Jayesh
Hi,
I had configured my pdb module to accept 5 number prefixes by doing:
In pdbt.c:
bufsize = slen + 1 + 1 + *4* + 1 + 1; // line buff
er (telephone number + colon + white space + carrier ID + newline + \0)
...
ret = snprintf(p,* 7*, "%d\n", node->carrier);
if (ret < 1 || ret > *6*) {
And in common.h:
#define MAX_PDB_CARRIERID *99999*
And i hadn't had any problem until now. I had rows in my .csv like:
0645052050;10122
And it worked. The problem I have now is with prefixes bigger than 40000. I
get segmentation fault when doiong a query with pdbt, however the pdbt
build works good without any error.
At first i thought of a buffer problem but eventhough testing with a .csv
of 2 rows with 50000 prefixes will not work. Another curious effect is that
for a prefix like 84238 the server changes the answer to 18754. I dont know
why...
Could anyone help me please?
Thanks and regards,
Igor.
We have some logic in a C function that we would like to execute from the Kamailio script. I see there are modules for calling functions in other languages. But, I don’t see anything for C. Is creating a module the only way to leverage this C function?
Thanks,
-Mack
Hi,
I have got two Asterisk servers and both are communicating with the SIP
Trunk provider (External Network) directly - the Asterisk servers are
connected with the Kamailio and then Kamailio with the Agent Phones.
I need some change in this architecture that I want Kamailio to communicate
with the SIP Trunk provider (External Network) directly.
Can any one please advise if this is possible and how ?
--
View this message in context: http://sip-router.1086192.n5.nabble.com/SIP-Trunking-Kamailio-directly-to-e…
Sent from the Users mailing list archive at Nabble.com.
Hello,
a short message to announces that the date and location for next
Kamailio World Conference were decided - May 18-20, 2016, in Berlin,
Germany.
Kamailio project is celebrating 15 years of development in 2016,
therefore we plan to have a special edition.
Website of the event and call for presentations will be launched very
soon. Meanwhile, if you haven't participated at a past edition, you can
check the previous edition website in order to get an idea about the
structure and content of the event:
- http://www.kamailioworld.com/k03/
Have a great week,
Daniel
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Book: SIP Routing With Kamailio - http://www.asipto.comhttp://miconda.eu
Hi all,
I try to authenticate my users via mod_radius, but I have problem.
FreeRadius server gives this error:
Auth: [digest] Cleartext-Password or Digest-HA1 is required for
authentication.
I think I need to send those attributes from kamailio but I couldn't figure
out how to do it.
Here is diff of my config with default config.
Thanks,
/Volkan
=====================
diff /etc/kamailio/kamailio.cfg /etc/kamailio/kamailio.cfg.original
< #!define WITH_DEBUG
294,297d292
< loadmodule "auth_radius.so"
< modparam("auth_radius", "radius_config",
"/etc/radiusclient/radiusclient.conf")
< loadmodule "avpops.so"
<
739,783c734,739
< if (is_method("REGISTER"))
< {
< avp_print();
< if (!radius_www_authorize("example.com")) {
< xlog("SCRIPT: www auth return code: $rc\n");
< switch ($rc) {
< case -7:
< send_reply("500", "Server Internal Error");
< exit;
< case -1:
< send_reply("400", "Bad Request");
< exit;
< default:
< };
< if (defined($avp(digest_challenge)) &&
< ($avp(digest_challenge) != "")) {
< append_to_reply("$avp(digest_challenge)");
< };
< send_reply("401", "Unauthorized");
< exit;
< };
< }
<
< if (from_uri==myself)
< {
< if (!radius_proxy_authorize("example.com", "$pU")) { #
Realm and URI user are taken
< switch ($rc) { # from
P-Preferred-Identity
< case -7: # header
field
< send_reply("500", "Server Internal
Error");
< exit;
< case -1:
< send_reply("400", "Bad Request");
< exit;
< default:
< };
< if (defined($avp(digest_challenge)) &&
< ($avp(digest_challenge) != "")) {
< append_to_reply("$avp(digest_challenge)");
< };
< send_reply("407", "Proxy Authentication Required");
< exit;
< };
<
< }
<
---
> #!ifdef WITH_IPAUTH
> if((!is_method("REGISTER")) && allow_source_address()) {
> # source IP allowed
> return;
> }
> #!endif
784a741,753
> if (is_method("REGISTER") || from_uri==myself)
> {
> # authenticate requests
> if (!auth_check("$fd", "subscriber", "1")) {
> auth_challenge("$fd", "0");
> exit;
> }
> # user authenticated - remove auth header
> if(!is_method("REGISTER|PUBLISH"))
> consume_credentials();
> }
> # if caller is not local subscriber, then check if it calls
> # a local destination, otherwise deny, not an open relay here