[OpenSIPS-Users] tls_peer_subject_cn not set on wolfssl?

2023-10-26 Thread Gregory Massel via Users

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


Re: [OpenSIPS-Users] Handling REFER

2023-10-26 Thread Bogdan-Andrei Iancu
Well, maybe posting some network capture  + script snippet for the 
sequential requests will help here.


Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
  https://www.siphub.com

On 10/24/23 6:01 PM, nutxase wrote:
Strangely, when i put a loose_route() or record_route() then it does 
not even try transfer


This is a webrtc client going from opensips to asterisk/freeswitch 
with mid_registrar



Sent with Proton Mail  secure email.

--- Original Message ---
On Tuesday, October 24th, 2023 at 6:59 AM, Bogdan-Andrei Iancu 
 wrote:



:+1:

no lookup for sequential, just loose_route(). Again, you should do 
nothing special for REFER. If the BYE's work for you, the REFER 
should also.


Regards,
Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   https://www.opensips-solutions.com
   https://www.siphub.com
On 10/24/23 7:02 AM, Carlos Eduardo wrote:
It fails because you're sending a sequential request to another 
endpoint. As it doesn't have the dialog there, it will fail.


You should route the REFER as any other sequential request and then 
the other UA will handle it and transfer.


Em seg., 23 de out. de 2023 às 12:02, nutxase via Users 
mailto:users@lists.opensips.org>> escreveu:


So when using a webrtc client with mid_registrar it seems the
transfer does nothing
but if i put something like this

if ( has_totag() && is_method("REFER") ) {
mid_registrar_lookup("location","i","$tu:5060");
t_relay();
exit;
}
then a call transfers but doesnt drop the transferer's call


Sent with Proton Mail  secure email.

--- Original Message ---
On Monday, October 23rd, 2023 at 3:39 PM, Bogdan-Andrei Iancu
mailto:bog...@opensips.org>> wrote:


Hi,

The REFER is an in-dialog request like any other (re-INVITE and
BYE), so no special handling. What transfer scenario are you
currently failing ?

Regards,
Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   https://www.opensips-solutions.com  
   https://www.siphub.com  
On 10/16/23 5:49 PM, nutxase via Users wrote:

Hi All

I am using opensips as a mid_registrar for webrtc and
everything is working fine except call transfers, as i
understand they use refer, is there anything specific i need
to change to get them to work?
if you can point me to a module id appreciate it



Sent with Proton Mail  secure email.

___
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




--
*Carlos E. Wagner*
/Tecnólogo em Telecomunicações, Opensips Certified Professional/

*
*Fone:*+55 48 99981-0894
*
*E-mail:*kad...@gmail.com _
_
*LinkedIn:* 
https://www.linkedin.com/in/carlos-eduardo-wagner-96bbb433/ 



___
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


Re: [OpenSIPS-Users] I need some help in attr matching while forming the Branch .

2023-10-26 Thread Ben Newlin
Sasmita,

Apologies, I replied yesterday but the message is being held by the list as the 
quoted replies have made it too large. I’ve removed some of the quoted replies 
and I’m copying my response below:

Yes, a substring match means the exact complete string exists somewhere in the 
string being searched . In your example, the $avp(attr) does not contain any 
substring that matches $hdr(Call-Info), so it is correctly failing.

If you want to check for the presence of each element, you need to loop through 
the elements in $hdr(Call-Info) and check for each one in the $avp(attr) using 
the s.index mechanism.

The best options for looping on the header are probably s.select [1] or the csv 
tranformations [2].

[1] https://www.opensips.org/Documentation/Script-Tran-3-2#toc7
[2] https://www.opensips.org/Documentation/Script-Tran-3-2#toc82

Ben Newlin

From: Users  on behalf of Sasmita Panda 

Date: Thursday, October 26, 2023 at 8:46 AM
To: OpenSIPS users mailling list 
Subject: Re: [OpenSIPS-Users] I need some help in attr matching while forming 
the Branch .
 EXTERNAL EMAIL - Please use caution with links and attachments


Is there any update on this ?

On Wed, 25 Oct 2023, 19:27 Sasmita Panda, 
mailto:spa...@3clogic.com>> wrote:
Hi Ben ,

Please correct me if I am wrong .

$avp(attr) : sales,level20,en,true
$hdr(Call-Info) : sales,en

 if ($(avp(attr){s.index, $hdr(Call-Info)}) != NULL)
  {
   xlog("found $hdr(Call-Info)  in $avp(attr) \n");
if (next_branches()){
t_on_failure("1");
}
  }
 else {
   sl_send_reply(500,"Unable to load contacts");
exit;

 }

In this case , although $hdr(Call-Info) is a substring of $avp(attr) still it's 
going in the else block and giving me 500  Unable to load contacts  .

Does the substring must contain continuous values ?




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] I need some help in attr matching while forming the Branch .

2023-10-26 Thread Sasmita Panda
Is there any update on this ?

On Wed, 25 Oct 2023, 19:27 Sasmita Panda,  wrote:

> Hi Ben ,
>
> Please correct me if I am wrong .
>
> *$avp(attr) : sales,level20,en,true*
> *$hdr(Call-Info) : sales,en*
>
>
>
>
>
>
>
>
>
>
>
>
> * if ($(avp(attr){s.index, $hdr(Call-Info)}) != NULL)
> {   xlog("found $hdr(Call-Info)  in
> $avp(attr) \n");if (next_branches()){
>   t_on_failure("1");
> }  } else {
>sl_send_reply(500,"Unable to load contacts");
> exit; }*
>
> In this case , although $hdr(Call-Info) is a substring of $avp(attr) still
> it's going in the else block and giving me *500  Unable to load contacts*
> .
>
> Does the substring must contain continuous values ?
>
>
>
>
> *Thanks & Regards*
> *Sasmita Panda*
> *Senior Network Testing and Software Engineer*
> *3CLogic , ph:07827611765*
>
>
> On Mon, Oct 23, 2023 at 8:54 PM Sasmita Panda  wrote:
>
>> Thank u so much for the confirmation.
>>
>> Although I have tested this in the same way and it's working . Still
>> after you confirmation I am double sure that I am in the right track .
>>
>> Thank u once again .
>>
>> On Mon, 23 Oct 2023, 19:00 Ben Newlin,  wrote:
>>
>>> Yes, based on your description of the problem that transformation should
>>> work. We use that transformation to test a comma-separated list for the
>>> existence of a value in the same way.
>>>
>>>
>>>
>>> Ben Newlin
>>>
>>>
>>>
>>> *From: *Users  on behalf of Sasmita
>>> Panda 
>>> *Date: *Monday, October 23, 2023 at 2:13 AM
>>> *To: *OpenSIPS users mailling list 
>>> *Subject: *Re: [OpenSIPS-Users] I need some help in attr matching while
>>> forming the Branch .
>>>
>>> * EXTERNAL EMAIL - Please use caution with links and attachments *
>>>
>>>
>>> --
>>>
>>> There are some changes in the requirements now .
>>>
>>>
>>>
>>> Although I appreciate your suggestion, I will go with
>>> script transformation . But not in a different way . * In the register
>>> I will get set of comma separated values in Call-Info *
>>>
>>> *header and will save that in attr column . *
>>>
>>>
>>>
>>> Agent1: call-info : en,galileo,level1,true
>>>
>>> Agent2 : call-info : en,spanish,lenovo,true
>>>
>>> Agent3: call-info : en,galileo,sales,level1,true
>>>
>>>
>>>
>>> 1st Invite :
>>>
>>> *call-info : en,galileo,true*  (I have to match the contact in which
>>> this the substring of Registered contacts Attr . ex : Agent1 and Agent3
>>> will the matching agents here  )
>>>
>>>
>>>
>>> 2nd Invite :
>>>
>>> *call-info : en,true* (All there agents are matching this critaria )
>>>
>>>
>>>
>>> 3rd Invite :
>>>
>>> *call-info : spanish,lenovo,true *(Agent2 will match the criteria )
>>>
>>>
>>>
>>> This is kind of substring matching . Here the challenge for me is , the
>>> number of values in the Invite header is not fixed , That can be 2 , that
>>> can be 4 that can be 7 . If every comma separated value is present in the
>>> Attr field then that contact will get call else not .
>>>
>>>
>>>
>>>
>>>
>>> *#Test for existence of string in another if
>>> ($(var(strtosearch){s.index, $var(str)}) != NULL) xlog("found
>>> $var(sstr) in $var(strtosearch)\n");*
>>>
>>>
>>>
>>> *So will this help me  in this case ? *
>>>
>>>
>>>
>>>
>>> *Thanks & Regards*
>>>
>>> *Sasmita Panda*
>>>
>>> *Senior Network Testing and Software Engineer*
>>>
>>> *3CLogic , ph:07827611765*
>>>
>>>
>>>
>>>
>>>
>>> On Wed, Oct 18, 2023 at 7:10 PM Ben Newlin 
>>> wrote:
>>>
>>> Sasmita,
>>>
>>>
>>>
>>> Your examples all contain mixed use of semicolons and commas. Without
>>> any description or context, it’s very difficult to tell what or how you
>>> expect these to match.
>>>
>>>
>>>
>>> Having said that, I recommend making use of OpenSIPS transformations
>>> [1]. The parameters list transformations [2] specifically, as they operate
>>> on semicolon separated “key=value” pairs, just like you have.
>>>
>>>
>>>
>>> Depending on what operation you are expecting with respect to the
>>> commas, you may be able to combine that with the string select
>>> transformation [3] to get your desired outcome.
>>>
>>>
>>>
>>> [1] https://www.opensips.org/Documentation/Script-Tran-3-2
>>>
>>> [2] https://www.opensips.org/Documentation/Script-Tran-3-2#toc60
>>>
>>> [3] https://www.opensips.org/Documentation/Script-Tran-3-2#toc7
>>>
>>>
>>>
>>> Ben Newlin
>>>
>>>
>>>
>>> *From: *Users  on behalf of Sasmita
>>> Panda 
>>> *Date: *Wednesday, October 18, 2023 at 6:34 AM
>>> *To: *OpenSIPS users mailling list 
>>> *Subject: *Re: [OpenSIPS-Users] I need some help in attr matching while
>>> forming the Branch .
>>>
>>> * EXTERNAL EMAIL - Please use caution with links and attachments *
>>>
>>>
>>> --
>>>
>>> Hi All ,
>>>
>>>
>>>
>>> Any help on this ?
>>>
>>>
>>>
>>>
>>> *Thanks & Regards*
>>>
>>> *Sasmita 

Re: [OpenSIPS-Users] 3.2.15 installation

2023-10-26 Thread L S
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 <
> efes99...@gmail.com>
> *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 <
> efes99...@gmail.com>
> *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