[OpenSIPS-Users] async(wait_for_event()) statement in a branch_route[]

2018-11-01 Thread Vitalii Aleksandrov
Hi, I'm a bit new to opensips, while have some experience with kamailio. Trying to figure out whether it's possible to use async() statement from branch_route[]. From the documentation I understood that async() functionality is tightly connected to the TM module and creates some context

Re: [OpenSIPS-Users] async(wait_for_event()) statement in a branch_route[]

2018-11-02 Thread Vitalii Aleksandrov
Iancu OpenSIPS Founder and Developer   http://www.opensips-solutions.com OpenSIPS Bootcamp 2018   http://opensips.org/training/OpenSIPS_Bootcamp_2018/ On 11/01/2018 01:46 PM, Vitalii Aleksandrov wrote: Hi, I'm a bit new to opensips, while have some experience with kamailio. Trying to figure out

[OpenSIPS-Users] EBR and wait_for_event() timeout

2018-11-14 Thread Vitalii Aleksandrov
Hi, event_routing module provides the great async function wait_for_event().  If script subscribes for a event and received it it calls some "resume_route". What I can't understand is what happens with a transaction if wait_for_event() never catches an event and reaches its timeout. Is the

[OpenSIPS-Users] Remove usrloc record after terminating a tcp connection.

2018-11-09 Thread Vitalii Aleksandrov
Hi, Wonder if it's possible to delete a user location contact when opensips detects a connenction failure? Couldn't find either "unregister" function to remove a contact from a failure_route or an event_route called when opensips core detects connection failure. Is there any good way to

Re: [OpenSIPS-Users] Remove usrloc record after terminating a tcp connection.

2018-11-09 Thread Vitalii Aleksandrov
Thanks. Had to search better before asking... This is close to what I want. I would be great to remove a contact immediately after opensips detects a closed socket. Anyhow definitely better than wait for a contact expiration. Hi Vitalii, You need just enable contact pinging and delete dead by

Re: [OpenSIPS-Users] EBR and wait_for_event() timeout

2018-11-16 Thread Vitalii Aleksandrov
-solutions.com OpenSIPS Bootcamp 2018   http://opensips.org/training/OpenSIPS_Bootcamp_2018/ On 11/14/2018 03:17 PM, Vitalii Aleksandrov wrote: Hi, event_routing module provides the great async function wait_for_event().  If script subscribes for a event and received it it calls some "resume_route&q

Re: [OpenSIPS-Users] Not enough memory to sync cluster data

2018-12-06 Thread Vitalii Aleksandrov
This seems to be more clean, efficient, and if you don't need it, the OS will not even allocate it (due to the demand-paging mechanism). So I don't see where you reservations for setting a higher value of the -M parameter come from. Best regards, Răzvan Just my 2 cents about PKG mem.

[OpenSIPS-Users] t_on_reply() behavior

2018-11-23 Thread Vitalii Aleksandrov
Hi, TM documentation mentions that it's possible to call t_on_reply() from a branch_route and it will set a branch specific reply route. I understood that if t_on_reply() is set for a branch it overwrites the global reply_route and the global one won't be called for that branch anymore. Test

Re: [OpenSIPS-Users] EBR and wait_for_event() timeout

2018-11-27 Thread Vitalii Aleksandrov
  http://opensips.org/training/OpenSIPS_Bootcamp_2018/ On 11/16/2018 07:07 PM, Vitalii Aleksandrov wrote: Thanks for the information. Have one more related question. What If I call somewhere, opensips calls wait_for_event() and before the event happens or async timeout (will create a bug report

Re: [OpenSIPS-Users] strange TCP handling in opensips 2.4

2019-03-26 Thread Vitalii Aleksandrov
"tcp_send_timeout" configures the time TCP worker process can stay blocked in "write()" syscall. In your case opensips successfuly wrote data into socket and OS accepted it and put into tcp socket's outgoing queue. Since OPTIONS wasn't delivered (no TCP level ACK from A), kernel doesn't try to

Re: [OpenSIPS-Users] CRLF support over TLS

2019-03-25 Thread Vitalii Aleksandrov
Thanks a lot. It helped! I was searching for a global para and completely forgot about proto_tls module. Hi, Vitalii! Did you try to tune your tls_crlf_* parameters? https://opensips.org/html/docs/modules/2.4.x/proto_tls.html#param_tls_crlf_drop Best regards, Răzvan

[OpenSIPS-Users] CRLF support over TLS

2019-03-22 Thread Vitalii Aleksandrov
Hi, One of my SIP endpoints send CRLF (0x0d 0x0a) messages over TLS connections to opensips. Opensips drops TLS a connection to this phone after "tcp_max_msg_time" seconds. The same client works fine over TCP and CRLF messages are just ignored by a proxy. rfc3261 section 7.5 says:

Re: [OpenSIPS-Users] rtpengine_manage() fails when called from failure_route[] with additional flags.

2019-02-18 Thread Vitalii Aleksandrov
Hi Razvan, It's not a memory issue. If you check a few lines higher before my patch you'll find this:     if (op == OP_OFFER || op == OP_ANSWER) {     ng_flags.flags = bencode_list(bencbuf);                 ...         } ng_flags.flags bencode list is created only for

Re: [OpenSIPS-Users] rtpengine_manage() fails when called from failure_route[] with additional flags.

2019-02-18 Thread Vitalii Aleksandrov
eone might need them. Best regards, Razvan On 2/13/19 3:09 PM, Vitalii Aleksandrov wrote: Hi, I use only rtpengine_manage() function of rtpengine_{offer,answer,delete} and it is called from different locations like request_route, onreply_route, failure_route. To have everything in one pl

[OpenSIPS-Users] rtpengine_manage() fails when called from failure_route[] with additional flags.

2019-02-13 Thread Vitalii Aleksandrov
Hi, I use only rtpengine_manage() function of rtpengine_{offer,answer,delete} and it is called from different locations like request_route, onreply_route, failure_route. To have everything in one place I call a route[RTPENGINE_MANAGE] which in its turn prepares rtpengine parameters string

[OpenSIPS-Users] empty reply for db_http

2019-01-25 Thread Vitalii Aleksandrov
Hi, Using db_http and permission modules and can't figure out what exactly should be returned from an HTTP API when 'address' table is empty and SELECT returns no results. Here is what I tried with no luck: 1.     Status:         200 OK     Body:        

[OpenSIPS-Users] Removing a node from a cluster

2019-05-31 Thread Vitalii Aleksandrov
Hi, What is the correct way of removing a cluster node? I have a cluster with a number of proxies. Removed one of them from a DB and called "opensipsctl fifo clusterer_reload" on all proxies. Then checked "fifo clusterer_list" and removed node is still there since it was learned from other

[OpenSIPS-Users] User location fields access

2019-06-07 Thread Vitalii Aleksandrov
Hi, Every contact of an AOR has a bunch of fields like Callid, Flags, Socket. Is there any way to reaf those additional fields of a contact after lookup()? ___ Users mailing list Users@lists.opensips.org

Re: [OpenSIPS-Users] opensips and multiple rtpengine instances

2019-06-10 Thread Vitalii Aleksandrov
Hi, The RTPengine module in OpenSIPS simply instructs the server to start/stop the sessions, and adds a few control flags. It does not, by any means, handle the RTP packets order. Sure. It's an rtpengine's problem. Had a talk with Richard Fuchs and he explained what exactly happens in

[OpenSIPS-Users] (v2.4, v3.0) Bug in per TCP worker active connection counter

2019-05-20 Thread Vitalii Aleksandrov
Hi, I've created a pull request #1701 to fix the issue in 2.4 branch. Made a quick 3.0 branch review and it looks like the problem is still there. Could you take a look at this PR. Would be nice to fix it at least in 3.0 since stable release is coming soon.

[OpenSIPS-Users] opensips and multiple rtpengine instances

2019-04-26 Thread Vitalii Aleksandrov
Hello opensips users, has anybody tried to configure opensips with multiple rtpengine sockets? Logically thinking offer/answer from initial INVITE/OK and from all in-dialog messages must go to the same instance and opensips can load balance only initial INVITEs. I briefly compared

[OpenSIPS-Users] async() and config actions call stack

2019-04-09 Thread Vitalii Aleksandrov
Hi opensips team and community,     Want to share one headache I have which might be converted into a feature request. It's about async() implementation. I use it, like probably many of us, for db operations and http requests and it's so complicated to insert an async() call so some already

Re: [OpenSIPS-Users] opensips and multiple rtpengine instances

2019-04-26 Thread Vitalii Aleksandrov
from opensips. But it looks like not with the current opensips/rtpengine module. I remember that somebody from smartvox  opened an issue on this (it was either Pete Kelly or John Quick). Pete,John do you recall ? Op vr 26 apr. 2019 om 15:15 schreef Vitalii Aleksandrov mailto:vitalik.v

Re: [OpenSIPS-Users] UDP workers consume 100% CPU

2019-08-12 Thread Vitalii Aleksandrov
but in the libssl/libcrypto - what versions are you using for these libs ? Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer   https://www.opensips-solutions.com OpenSIPS Summit 2019   https://www.opensips.org/events/Summit-2019Amsterdam/ On 08/05/2019 09:13 PM, Vitalii Aleksandrov

Re: [OpenSIPS-Users] UDP workers consume 100% CPU

2019-08-12 Thread Vitalii Aleksandrov
IPS Summit 2019   https://www.opensips.org/events/Summit-2019Amsterdam/ On 08/05/2019 09:13 PM, Vitalii Aleksandrov wrote: Hi, I have a test opensips 2.4.6 (last week's checkout from 2.4 branch) and after short load testing it started to consume all CPU resources. Here is what opensips floods

Re: [OpenSIPS-Users] UDP workers consume 100% CPU

2019-08-14 Thread Vitalii Aleksandrov
]: LM_INFO("initialized mutex over OpenSIPS\n"); [1] https://github.com/OpenSIPS/opensips/blob/master/modules/tls_mgm/tls_mgm.c#L1525 Best regards, Răzvan On 8/12/19 7:20 PM, Vitalii Aleksandrov wrote: Checked the tls_mgm.c code and found that I wasn't right. I've just downgra

Re: [OpenSIPS-Users] UDP workers consume 100% CPU

2019-08-14 Thread Vitalii Aleksandrov
12:58 PM, Vitalii Aleksandrov wrote: Ok, I'll check when finish load testing with libssl-1.0. Hi, Vitalii! Just to double check you are using the right overwritten functions, can you add some debugging in the tls_mgm code, recompile, and run the test again? I'm thinking to add something like

[OpenSIPS-Users] mhomed=1 and force_send_socket()

2019-07-30 Thread Vitalii Aleksandrov
Hi, Have a problem with a multihomed proxy which doesn't select outgoing interface correctly. Found similar topics where people discussed usage of force_send_socket() when they want to force opensips to use some interface. As far as I understood "mhomed=1" is the option which forces

Re: [OpenSIPS-Users] mhomed=1 and force_send_socket()

2019-07-31 Thread Vitalii Aleksandrov
use force_send_socket when I a have a mixed environment (e.g users that register, connection to provider without registration, etc). these are my 2 drops of wisdom :-) as for BIN, that I can't explain as I never used that type of interface. . Op di 30 jul. 2019 om 17:16 schreef Vitalii

Re: [OpenSIPS-Users] UDP workers consume 100% CPU

2019-08-07 Thread Vitalii Aleksandrov
://www.opensips.org/events/Summit-2019Amsterdam/ On 08/05/2019 09:13 PM, Vitalii Aleksandrov wrote: Hi, I have a test opensips 2.4.6 (last week's checkout from 2.4 branch) and after short load testing it started to consume all CPU resources. Here is what opensips floods to syslog: Aug  3 13:25

[OpenSIPS-Users] UDP workers consume 100% CPU

2019-08-05 Thread Vitalii Aleksandrov
Hi, I have a test opensips 2.4.6 (last week's checkout from 2.4 branch) and after short load testing it started to consume all CPU resources. Here is what opensips floods to syslog: Aug  3 13:25:01 l /opensips[4774]: WARNING:core:utimer_ticker: utimer task already scheduled for 114023190 ms

Re: [OpenSIPS-Users] Feature request - pseudo-variable for destination IP address

2019-07-18 Thread Vitalii Aleksandrov
Hi, Original question was about different thing but the destination IP of a request or reply is not hard to get. I wrote a small module which extracts the destination uri from ru (du) for requests and from via for replies, makes a dns resolve if it's a domain name and then detects the

Re: [OpenSIPS-Users] is_request(), is_reply() functions in OpenSips

2020-02-25 Thread Vitalii Aleksandrov
I'm also used to have is_request()/is_reply() and when switched to opensips started to use following helpers: route[IS_REQUEST] {     if (route(IS_REPLY))     return(-1);     else     return(1); } route[IS_REPLY] {     if ($mb =~ "^SIP/2\.0")    

Re: [OpenSIPS-Users] 2.4.7 To header without <>

2020-01-23 Thread Vitalii Aleksandrov
ithub issue with all collected info. Just wanted to let you know and probably fix it before the upcoming 2.4.7. On 23.01.2020 15:55, Vitalii Aleksandrov wrote: After updating my proxy from the latest 2.4 repository I've got a new problem with "To" header uri. Somehow opensips receive

[OpenSIPS-Users] 2.4.7 To header without <>

2020-01-23 Thread Vitalii Aleksandrov
After updating my proxy from the latest 2.4 repository I've got a new problem with "To" header uri. Somehow opensips received BYE with correct "To" uri and forwards it with an URI without "<>". Checked latest commits and this one: > commit de7606dfb2deeb0ebb07e329511164b784970e6c > Author:

[OpenSIPS-Users] Possible crash in opensips 2.4

2020-01-24 Thread Vitalii Aleksandrov
Yesterday I've mentioned that has reproduces one more crash. Reverted my fix and wanted to reproduce the problem and create properly filled crash report, but unfortunately failed. Can you just check the part of code I've seen in core dumps? fake_req() in modules/tm/t_msgbuilder.h clones