[SR-Users] Intermittent delays relaying BYE (up to 1s)

2022-08-31 Thread Lewis Hutchinson
ngs familiar ones sometimes cannot. Lewis From: Daniel-Constantin Mierla Sent: 31 August 2022 11:21 To: Kamailio (SER) - Users Mailing List ; Lewis Hutchinson Subject: Re: [SR-Users] Intermittent delays relaying BYE (up to 1s) First, most of the module functions return negative or posit

[SR-Users] Intermittent delays relaying BYE (up to 1s)

2022-08-31 Thread Lewis Hutchinson
Thanks Daniel, I have looked at that so many times and not noticed the missing > 0 and because it always looped RTPengine in I didn't see anything out of place... I did check the path it executed with debug logging which led me to this point, so I am happy I am on top of the issue Again,

Re: [SR-Users] Intermittent delays relaying BYE (up to 1s)

2022-08-31 Thread Daniel-Constantin Mierla
First, most of the module functions return negative or positive integer values, not boolean. You have to check with <0 for what's usually false in native kamailio.cfg if conditions and >0 for true. Then, also double check it does not execute it via a different config path, like the branch route

[SR-Users] Intermittent delays relaying BYE (up to 1s)

2022-08-31 Thread Lewis Hutchinson
Ok so making progress but still a little confused, hopefully this forum can shed some light on this behaviour. Using the hints provided (thanks all so far) and the latency logging from the cookbook I have managed to isolate the issue down to RTPengine introducing the delay. INFO: app_python3

Re: [SR-Users] Intermittent delays relaying BYE (up to 1s)

2022-08-26 Thread Daniel-Constantin Mierla
Hello, if the delay comes on some internal callback that is not due to a config function/action, the benchmark may not be much useful, but if it is about database, look at the core cookbook, there are latency related parameters for db operations and config actions, they might be more suitable to

Re: [SR-Users] Intermittent delays relaying BYE (up to 1s)

2022-08-26 Thread Alex Balashov
You’re very welcome! It may be that the DB operation for BYEs is different in nature and more latent than for INVITEs, as odd as that would seem. If the inherent latency of the operation is unavoidable as a matter of technical design or insurmountable realities of server performance or

[SR-Users] Intermittent delays relaying BYE (up to 1s)

2022-08-26 Thread Lewis Hutchinson
Thanks Alex and Kaufman, As you said there is an element of db blocking for accounting, but I don't see the same impact when the INVITE goes through and sets the accounting flags. I will look to disable accounting and see if it improves things. If not, I will have a look at benchmark to try

Re: [SR-Users] Intermittent delays relaying BYE (up to 1s)

2022-08-25 Thread Alex Balashov
Hi, While you have not said much about how your BYEs are processed, I would speculate that the operation in your config script does not consist purely of relaying these on the network, but also some sort of blocking database operation that is delaying execution of the config script. — Alex >

Re: [SR-Users] Intermittent delays relaying BYE (up to 1s)

2022-08-25 Thread Kaufman
-Users] Intermittent delays relaying BYE (up to 1s) I have a situation where I am seeing intermittently Kamailio having delays when relaying the BYE received from an external party This is only affecting the BYE We have 6 Kamailios stood up 3 linked to the SIP Providers (SBC) 3 for Registration

[SR-Users] Intermittent delays relaying BYE (up to 1s)

2022-08-25 Thread Lewis Hutchinson
I have a situation where I am seeing intermittently Kamailio having delays when relaying the BYE received from an external party This is only affecting the BYE We have 6 Kamailios stood up 3 linked to the SIP Providers (SBC) 3 for Registration (REG) Language KEMI | Python version: kamailio