[OpenSIPS-Users] Async rest_client timeout

2023-10-31 Thread Callum Guy
Hi All,

I'm seeing a small number of sessions reporting timeouts for async
rest_client post requests. These occur at peak times for system load
and present the following error:

ERROR:rest_client:_resume_async_http_req: connected, but transfer timed out (5s)

The return code is -3 and HTTP response arrives as 0. My web server
itself shows that the requests complete in <200ms. The
_resume_async_http_req errors arrive ~400ms after the request was
issued.

I suspect that something is exhausted (i.e. too many async or curl
sessions) however I am not aware of any configuration options that
would help.

The following settings are employed:

 modparam("rest_client", "connection_timeout", 4)
 modparam("rest_client", "curl_timeout", 5)
 modparam("rest_client", "max_async_transfers", 250)
 modparam("rest_client", "ssl_verifyhost", 0)

Can anyone offer advice on where I should be looking to resolve this issue?

version: opensips 3.2.10 (x86_64/linux)
libcurl-7.76.1-23.el9_2.1.x86_64

Many thanks,

Callum

-- 


Voting link  (it 
takes less than 20 seconds!)





*0333 332   |  x-on.co.uk 
  |   **    
    **  |  
**Practice Index Reviews *

*Our new 
office address: 22 Riduna Park, Melton IP12 1QT.*

X-on
is a trading name 
of X-on Health Ltd a limited company registered in
England and Wales.

Registered Office : Glebe Farm, Down Street, Dummer, Basingstoke, 
Hampshire, England RG25 2AD. Company Registration No. 2578478.

The 
information in this e-mail is confidential and for use by the addressee(s)
only. If you are not the intended recipient, please notify X-on immediately 
on +44(0)333 332  and delete the
message from your computer. If you are 
not a named addressee you must not use,
disclose, disseminate, distribute, 
copy, print or reply to this email. Views
or opinions expressed by an 
individual
within this email may not necessarily
reflect the views of X-on 
or its associated companies. Although X-on routinely
screens for viruses, 
addressees should scan this email and any attachments
for
viruses. X-on 
makes no representation or warranty as to the absence of viruses
in this 
email or any attachments.









___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Need some information regarding accounting module .

2023-10-31 Thread Ben Newlin
Sasmita,

A negative response to an in-dialog request does not automatically terminate 
the call. If the rejection of the re-INVITE is not acceptable to either party, 
they must still send a BYE if they desire to disconnect the call.

After the 500 response, it is correct that there are no transactions as the 
re-INVITE transaction has been responded and closed. But the lack of active 
transactions does not mean the dialog/call is not still active.

Based on your description the accounting seems correct. Any UAs involved that 
believed the call was disconnected based on the 500 response are not operating 
correctly.

Ben Newlin

From: Users  on behalf of Sasmita Panda 

Date: Tuesday, October 31, 2023 at 4:21 AM
To: OpenSIPS users mailling list 
Subject: [OpenSIPS-Users] Need some information regarding accounting module .
 EXTERNAL EMAIL - Please use caution with links and attachments


Hi All ,

I just got an wired call example on which the ACC information is not as for my 
expectation .

I have Opensips 1.11 version .

Example :
Call started at : Oct 17 19:24:40:512
Re-Invite on this session : Oct 17 19:24:40:810

For the Re-Invite The client got " 500 Server Internal Error " which Opensips 
gave . After that there was no transaction in the session . The call got 
disconnected  due to the error message .

But The ACC info for that call : Oct 18 07:33:32 (After 12 hr )

Although Opensips created the 500 error message still the session did not get 
cleaned and Acc was printed after so long with a bigger talktime : 
duration=43729 . Which is totally beyond my expectation .

 I have attached the opensips config file as well . I am not sure . Do I need 
to call drop_accounting while in an error scenario ?

Thanks & Regards
Sasmita Panda
Senior Network Testing and Software Engineer
3CLogic , ph:07827611765
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] 3.2.15 installation

2023-10-31 Thread Liviu Chircu

Hi!

It seems there was an issue related to the tarball packing introduced in 
the source tree a couple weeks *before* release day which confused me, 
as I thought I was just building the tarball incorrectly on release day 
(e.g. maybe due to a dirty directory or a bad script, etc.).


A fix is now available and all opensips.org tarballs have been rebuilt.  
Still, if you were to download the latest stable git tag and run "make 
tar" yourself, of course you'd run into the same bug again (/no change 
there, the git tag hasn't been moved/)... but that will also get 
resolved on the next stable release round in a month or so.


Best regards,

On 26.10.2023 09:53, L S wrote:
Thanks. We are having issues compiling from source on Centos (error 
because of a patch related to wolfssl). Will try again.




On Wed, Oct 25, 2023, 4:41 PM Knee Oh via Users 
 wrote:


Yes, compiled from source on Ubuntu 22.04. About to move to
production.



On Oct 25, 2023, at 4:35 PM, Joseph Jackson
 wrote:


We have but we use the debian packages and we installed it on
release day.




*From:* Users  on behalf of L S

*Sent:* Wednesday, October 25, 2023 12:46 AM
*To:* OpenSIPS users mailling list 
*Subject:* [OpenSIPS-Users] 3.2.15 installation
Has anyone successfully installed 3.2.15 (revised on Oct 20th)?

Thanks,
Matt


*From:* Users  on behalf of L S

*Sent:* Wednesday, October 25, 2023 12:46 AM
*To:* OpenSIPS users mailling list 
*Subject:* [OpenSIPS-Users] 3.2.15 installation
Has anyone successfully installed 3.2.15 (revised on Oct 20th)?

Thanks,
Matt
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



--
Liviu Chircu
www.twitter.com/liviuchircu  |www.opensips-solutions.com
OpenSIPS eBootcamp, Nov 6-17 |www.opensips.org/training
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] fifo not found

2023-10-31 Thread A A
Sometimes a .fifo file is removed by Operating System from /tmp.

This manual [1] may be helpful to you.

[1]. https://alexeyka.zantsev.com/?p=1252

--
BR, Alexey

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Correct syntax with statement if

2023-10-31 Thread Dmitry Ponomaryov
Hello Liviu


I created a separate topic where I indicated the condensed syntax of
my lines, but a separate question was created there... I’m still
learning how to respond to a message in the mail list, sorry for this
:)


Initially I thought that the brackets, on the contrary, indicate that
the text is easy to read, I will definitely look at your link to the
code styling, thank you.

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Correct syntax with statement if

2023-10-31 Thread Liviu Chircu

Hi, Dmitry!


how different will this expression be from: ### example 2


They are identical, regardless of the presence/absence of any code below.


To what extent is it correct to use one or another type of if statement?

It's not about correctness, rather readability.  Example 1 uses 3 LoC, 
while example 2 uses only LoC and it more readable, thanks to the 
absence of the braces.


I understand that if we have to use else, then only the first option 
will suit us, but here it’s more about a single if.. thanks


I recommend going through the Linux kernel coding style 
 
docs, there is a "placing braces and spaces" section, which includes 
several if-statement examples, with braces, "else" blocks, etc.  Why not 
borrow the same ideas for our own /opensips.cfg/ coding style? :-)


Best,

--
Liviu Chircu
www.twitter.com/liviuchircu  |www.opensips-solutions.com
OpenSIPS eBootcamp, Nov 6-17 |www.opensips.org/training
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] fix scrubbed text

2023-10-31 Thread Dmitry Ponomaryov

### example 1

if ( has_body("application/sdp") ) {
rtpengine_offer();
}

### example 2

if ( has_body("application/sdp") ) rtpengine_offer();
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Correct syntax with statement if

2023-10-31 Thread Dmitry Ponomaryov
Have a nice day, everyone, there are cases in routing when in if there is
only one command, for example:

### example 1 if ( has_body("application/sdp") ) {

rtpengine_offer();

}

In this case, how different will this expression be from: ### example 2 if
( has_body("application/sdp") ) rtpengine_offer();

To what extent is it correct to use one or another type of if statement? I
understand that if we have to use else, then only the first option will
suit us, but here it’s more about a single if.. thanks
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Need some information regarding accounting module .

2023-10-31 Thread Sasmita Panda
Hi All ,

I just got an wired call example on which the ACC information is not as for
my expectation .

I have Opensips 1.11 version .

Example :
Call started at : *Oct 17 19:24:40:512 *
Re-Invite on this session : *Oct 17 19:24:40:810*

For the Re-Invite The client got " 500 Server Internal Error " which
Opensips gave . After that there was no transaction in the session . The
call got disconnected  due to the error message .

But The ACC info for that call : *Oct 18 07:33:32 (After 12 hr )*

Although Opensips created the 500 error message still the session did not
get cleaned and Acc was printed after so long with a bigger talktime
: duration=43729 . Which is totally beyond my expectation .

 I have attached the opensips config file as well . I am not sure . Do I
need to call drop_accounting while in an error scenario ?

*Thanks & Regards*
*Sasmita Panda*
*Senior Network Testing and Software Engineer*
*3CLogic , ph:07827611765*


carrier-config.cfg
Description: Binary data
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] tls_peer_subject_cn not set on wolfssl?

2023-10-31 Thread Răzvan Crainea

Hi, Gregory!

This looks like a bug - please open a ticket on our GitHub tracker[1] to 
keep track of this issue.


[1] https://github.com/OpenSIPS/opensips/issues

Best regards,

Răzvan Crainea
OpenSIPS Core Developer / SIPhub CTO
http://www.opensips-solutions.com / https://www.siphub.com

On 10/26/23 18:03, Gregory Massel via Users wrote:

Hello

I'm using OpenSIPS 3.4.2.

When using tls_wolfssl.so, $tls_peer_subject_cn appears to always be .

However, when changing to tls_openssl.so, $tls_peer_subject_cn is then 
set correctly.


Is this an issue within tls_wolfssl, or, is $tls_peer_subject_cn only 
meant to work with OpenSSL?


--
Regards
*Gregory Massel*
*T* +27 87 550 
*F* +27 11 783 4877
*W* www.switchtel.co.za 

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users