Re: [OpenSIPS-Users] SDP

2024-03-21 Thread Prathibha B
3.4

Sent from Outlook for Android

From: Users  on behalf of Bogdan-Andrei Iancu 

Sent: Thursday, March 21, 2024 9:59:51 PM
To: Stefan Carlsson ; users@lists.opensips.org 

Subject: Re: [OpenSIPS-Users] SDP

Hi,

What OpenSIPS version are you using?

Regards,

Bogdan-Andrei Iancu

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

On 21.03.2024 00:09, Stefan Carlsson wrote:

Hi !

I sincerely apologize that I not read thru all the modules before my orginal 
post , I’ve found that textops module can search and replace

the text in both the header and the body. (which I mailed to the requester)



I’ve tried some of the exported functions but:



orginal snap:  o=root 276479022 276479022 IN IP4 172.24.7.20





$avp(reinv_sess_id) = “12345678”;# Got this from  $avp(reinv_oline) = 
$(rb{sdp.line,o})   and some regex tweeking and  
$(avp(reinv_result){s.select,1,;})





$avp(reinv_sess_ver) = “276479022”;



replace_body("$avp(reinv_sess_ver)","$avp(reinv_sess_id)");



This seemed not to work …



but this did:



Original text snap:a=sendrecv



replace_body("a=sendrecv", "a=sendonly");   # Indicate call hold according 
RFC3264







// Regards …

Stefan





From: Bogdan-Andrei Iancu 
Sent: Wednesday, 20 March, 2024 14:44
To: OpenSIPS users mailling list 
; Stefan Carlsson 

Subject: Re: [OpenSIPS-Users] SDP



Nothing is impossible as time as you search in the right place (aka the 
Manual). See my reply on your thread.

Regards,


Bogdan-Andrei Iancu



OpenSIPS Founder and Developer

  https://www.opensips-solutions.com

  https://www.siphub.com

On 14.03.2024 09:50, Stefan Carlsson wrote:

Hi !



You can use the module sipmsgops to view and change some of the ADP fields such 
as codecs and streams … but unfortunately you don’t have

complete control of the SDP compared to what it seems could be done on the 
Kamailio SIP router



I need to change the a=sendrecv field and it seems to be impossible  ☹



Regards …

_

Stefan Carlsson



From: Users 
 On 
Behalf Of Prathibha B
Sent: Thursday, 14 March, 2024 05:16
To: OpenSIPS users mailling list 

Subject: [OpenSIPS-Users] SDP



How to see the SDP in opensips?



--

Regards,

B.Prathibha



___

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] OPENSIP 3.4 send_reply and tight matching failed

2024-03-21 Thread Bogdan-Andrei Iancu

HI Alan,

I suspect a scripting issue, making the received hop-by-hop ACK (for 
negative replies) to be "handled" by the dialog module, which treats it 
as a end-2-end ACK (for 200 OK reply).


I guess your script lacks this block 
https://github.com/OpenSIPS/opensips/blob/master/etc/opensips.cfg#L112 
when comes to sequential requests; this block needs to be before the 
loose_route or any dialog/TH matching.


Regards,

Bogdan-Andrei Iancu

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

On 21.03.2024 12:29, Alain Bieuzent wrote:


Hi bogdan,

Find attached the sip traces where we have this error log:

Mar 21 11:24:13 lbsip-rtpe-test opensips[3108]: 
WARNING:dialog:dlg_onroute: tight matching failed for ACK with 
callid='6a543fbd6eabdc7b797dfd6d56db1568@10.101.180.176:5060'/52, 
ftag='as5625de52'/10, ttag='b5a7-94b8b0d1dd76318f3d174a911be4ece2'/37 
and direction=1


Mar 21 11:24:13 lbsip-rtpe-test opensips[3108]: 
WARNING:dialog:dlg_onroute: dialog identification elements are 
callid='6a543fbd6eabdc7b797dfd6d56db1568@10.101.180.176:5060'/52, 
caller tag='as5625de52'/10, callee tag='3920005391-2017127892'/21


*De : *Bogdan-Andrei Iancu 
*Date : *mercredi 20 mars 2024 à 16:45
*À : *Alain Bieuzent , OpenSIPS users mailling 
list 
*Objet : *Re: [OpenSIPS-Users] OPENSIP 3.4 send_reply and tight 
matching failed


Not the logs, but the trace/ SIP capture - I need to see the sip 
traffic to understand the context of the issue.



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

On 20.03.2024 17:14, Alain Bieuzent wrote:

Bellow the link to the traces :

https://www.transfernow.net/dl/20240320jzEA98Vz

*De : *Bogdan-Andrei Iancu 

*Date : *mercredi 20 mars 2024 à 14:29
*À : *OpenSIPS users mailling list 
, Alain Bieuzent
 
*Objet : *Re: [OpenSIPS-Users] OPENSIP 3.4 send_reply and tight
matching failed

Hi,

The script snippet has nothing to do with the matching - it is
about a 200-ok ACK to be matched by the dialog module and the
TO-tag does not match at all.

The link to the trace expired, if you could repost.

Regards,


Bogdan-Andrei Iancu

  


OpenSIPS Founder and Developer

   https://www.opensips-solutions.com

   https://www.siphub.com

On 12.03.2024 14:57, Alain Bieuzent wrote:

Hi all,

I am in the process of migrating my proxies from 3.3.9 to 3.4.4.

In 3.4 I find myself with a fault when I try to rewrite a
final cause.

if (t_check_status("500"))

 {

send_reply(503,"Service Unavailable");

exit;

}

with 3.3 version, this code works perfectly, since 3.4 I have
this error:

WARNING:dialog:dlg_onroute: tight matching failed for ACK with
callid='67457c401e9ea52e2750100979253a7a@10.101.180.177:5060'/52,
ftag='as5328cea7'/10, ttag='b5a7-2a346bb9d510da893a
ee7cda850584cb'/37 and direction=1

WARNING:dialog:dlg_onroute: dialog identification elements are
callid='67457c401e9ea52e2750100979253a7a@10.101.180.177:5060'/52,
caller tag='as5328cea7'/10, callee tag='3919223738-770090972'/ 20

Has anyone encountered this error before?

Complete traces here :
https://www.transfernow.net/dl/20240312qvAFfIAL.

Regards




___

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] Need some help on opensips error for wss handshek .

2024-03-21 Thread Bogdan-Andrei Iancu

Just try the pointed patch, to see if it solves your problem..

Regards,

Bogdan-Andrei Iancu

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

On 21.03.2024 08:37, Sasmita Panda wrote:
We are using webrtc Client integrated with browsers using sipml5 
client library . I think this is a common library used across the glob .
Every customer that has this same client running with webrtc Server 
(having opensips) is common .

But the error I have seen is for one or two agents only .


So the error is for the client or the network ? If it can be the 
network then I may suggest the customer to change the network while 
using webrtc client .



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


On Wed, Mar 20, 2024 at 7:55 PM Bogdan-Andrei Iancu 
 wrote:


Hi,

There is a fix (to tolerate different version numbers there) but
only in OpenSIPS 3.5 [1] (the devel version), not yet backported
to stable 3.4 and 3.2. You can try to do the backport by yourself.

BTW, what WS client & browser are you using ?? It is pretty
unusual what you report here.

[1]

https://github.com/OpenSIPS/opensips/commit/e30a355397b285a5140ebb25a485bed7134de7ee

Bogdan-Andrei Iancu

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

On 20.03.2024 15:30, Sasmita Panda wrote:

Hi Bogdan,
I appreciate your reply .

How can I suggest modifying this header ? Because I have seen
this for some remote agents who run in the browser . I don't have
access to the browser .
The browser which got connected successfully I couldn't see such
types of logs  .

What causes this header version in the wss connection ?


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


On Wed, Mar 20, 2024 at 6:51 PM Bogdan-Andrei Iancu
 wrote:

Hi,

OpenSIPS does not like that 1.1 version in the VIA hdr - it
expects 2.0 (the SIP version).

Regards,

Bogdan-Andrei Iancu

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

On 12.03.2024 10:57, Sasmita Panda wrote:

Hi All ,

1"  :callID 080a9ef8-3911-6c41-689c-fbb5d02e3aae
Mar 12 08:23:11 localhost /usr/sbin/opensips[12987]:
ERROR:core:parse_via: bad char <1> on state 100
Mar 12 08:23:11 localhost /usr/sbin/opensips[12987]:
ERROR:core:parse_via:  <1.1 p1wsa01.rivagecapital.com:80

(Cisco-WSA/12.5.4-011)#015#012#015#012>
Mar 12 08:23:11 localhost /usr/sbin/opensips[12987]:
ERROR:core:parse_via: via parse failed
Mar 12 08:23:11 localhost /usr/sbin/opensips[12987]:
ERROR:core:get_hdr_field: bad via
Mar 12 08:23:11 localhost /usr/sbin/opensips[12987]:
INFO:core:parse_headers: bad header field
Mar 12 08:23:11 localhost /usr/sbin/opensips[12987]:
ERROR:proto_wss:ws_parse_req_handshake: cannot parse
headers#012Upgrade: websocket#015#012Connection:
Upgrade#015#012Host: ir-webrtc2.3ccloud.com#015#012Pragma
:
no-cache#015#012Cache-Control: no-cache#015#012User-Agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/122.0.0.0 
Safari/537.36 Edg/122.0.0.0#015#012Origin
:
https://ir-static.3ccloud.com#015#012Sec-WebSocket-Version
:
13#015#012Accept-Encoding: gzip, br#015#012Accept-Language:
en-GB,en;q=0.9,en-US;q=0.8#015#012Sec-WebSocket-Key:
I/8XqtXyBCAGorZYjnTYQA==#015#012Sec-WebSocket-Extensions:
permessage-deflate;
client_max_window_bits#015#012Sec-WebSocket-Protocol:
sip#015#012X-IMForwards: 20#015#012Via: 1.1
p1wsa01.rivagecapital.com:80

(Cisco-WSA/12.5.4-011)#015#012#015#012


 I am getting this error on my opensips server where I am
running webrtc . What is this error for ?


*/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




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


Re: [OpenSIPS-Users] SDP

2024-03-21 Thread Bogdan-Andrei Iancu

Hi,

What OpenSIPS version are you using?

Regards,

Bogdan-Andrei Iancu

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

On 21.03.2024 00:09, Stefan Carlsson wrote:


Hi !

I sincerely apologize that I not read thru all the modules before my 
orginal post , I’ve found that textops module can search and replace


the text in both the header and the body. (which I mailed to the 
requester)


I’ve tried some of the exported functions but:

orginal snap:  o=root 276479022 276479022 IN IP4 172.24.7.20

$avp(reinv_sess_id) = “12345678”;    # Got this from  
$avp(reinv_oline) = $(rb{sdp.line,o})   and some regex tweeking and 
 $(avp(reinv_result){s.select,1,;})


$avp(reinv_sess_ver) = “276479022”;

replace_body("$avp(reinv_sess_ver)","$avp(reinv_sess_id)");

This seemed not to work …

but this did:

Original text snap:    a=sendrecv

replace_body("a=sendrecv", "a=sendonly");   # Indicate call hold 
according RFC3264


// Regards …

Stefan

*From:* Bogdan-Andrei Iancu 
*Sent:* Wednesday, 20 March, 2024 14:44
*To:* OpenSIPS users mailling list ; Stefan 
Carlsson 

*Subject:* Re: [OpenSIPS-Users] SDP

Nothing is impossible as time as you search in the right place (aka 
the Manual). See my reply on your thread.


Regards,

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

On 14.03.2024 09:50, Stefan Carlsson wrote:

Hi !

You can use the module sipmsgops to view and change some of the
ADP fields such as codecs and streams … but unfortunately you
don’t have

complete control of the SDP compared to what it seems could be
done on the Kamailio SIP router

I need to change the a=sendrecv field and it seems to be impossible ☹

Regards …

_

Stefan Carlsson

*From:* Users 
 *On Behalf Of *Prathibha B
*Sent:* Thursday, 14 March, 2024 05:16
*To:* OpenSIPS users mailling list 

*Subject:* [OpenSIPS-Users] SDP

How to see the SDP in opensips?

-- 


Regards,

B.Prathibha



___

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] Can't locate Opensips-cli package's location on Ubuntu22.04

2024-03-21 Thread rvg
check the location of the fifo file in opensips.cfg it should be in /var... as 
the same in opensips-cli.cfg. 2 cfg file shoud be pointing to the same file



March 21, 2024 at 3:11 PM, "Alain Bieuzent"  wrote:


> 
> Did you run an apt update before apt install opensips-cli ?
> 
> **De : **Users  au nom de Li Cai 
> 
> **Répondre à : **OpenSIPS users mailling list 
> **Date : **jeudi 21 mars 2024 à 14:37
> **À : **"users@lists.opensips.org" 
> **Objet : **[OpenSIPS-Users] Can't locate Opensips-cli package's location on 
> Ubuntu22.04
> 
> Hi All,
> 
> I’m doing migrating from OpenSIPs 2.X to 3.0 on Ubuntu22.04. Here I met a 
> problem to install Opensips-cli on Ubuntu22.
> 
> After successfully executing the steps from the installation instruction, 
> like this –
> 
> The command of ‘sudo apt-get install opensip-cli’ still can’t work, the 
> output is –
> 
> The command complains that it can’t locate the package opensips-cli.
> 
> Can anyone help with this issue? Any hint will be highly appreciated.
> 
> Thanks,
> 
> Li
> 
> ___ 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] [WG-IMS] Build an IMS using OpenSIPS 3.5 – S-CSCF

2024-03-21 Thread Răzvan Crainea



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

On 3/21/24 16:54, Giovanni Maruzzelli wrote:

On Thu, Mar 21, 2024 at 1:15 PM Răzvan Crainea  wrote:



Check out our latest blog post to find out about the latest features
we've developed for OpenSIPS 3.5, and how you can use them to build a
fully fledged S-CSCF IMS solution:


https://blog.opensips.org/2024/03/21/build-an-ims-using-opensips-3-5-s-cscf-part-1/



a small feat for such a man, a very big achievement for our community!

CONGRATULATIONS RAZVAN !!!


Thanks, Giovanni! But stay tuned, other surprises are on the way :)

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


Re: [OpenSIPS-Users] [WG-IMS] Build an IMS using OpenSIPS 3.5 – S-CSCF

2024-03-21 Thread Giovanni Maruzzelli
On Thu, Mar 21, 2024 at 1:15 PM Răzvan Crainea  wrote:

>
> Check out our latest blog post to find out about the latest features
> we've developed for OpenSIPS 3.5, and how you can use them to build a
> fully fledged S-CSCF IMS solution:
>
>
> https://blog.opensips.org/2024/03/21/build-an-ims-using-opensips-3-5-s-cscf-part-1/
>
>
a small feat for such a man, a very big achievement for our community!

CONGRATULATIONS RAZVAN !!!

-giovanni

--
Sincerely,

Giovanni Maruzzelli
OpenTelecom.IT
cell: +39 347 266 56 18
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Can't locate Opensips-cli package's location on Ubuntu22.04

2024-03-21 Thread Alain Bieuzent
Did you run an apt update before apt install opensips-cli ?

 

De : Users  au nom de Li Cai 

Répondre à : OpenSIPS users mailling list 
Date : jeudi 21 mars 2024 à 14:37
À : "users@lists.opensips.org" 
Objet : [OpenSIPS-Users] Can't locate Opensips-cli package's location on 
Ubuntu22.04

 

Hi All,

 

I’m doing migrating from OpenSIPs 2.X to 3.0 on Ubuntu22.04. Here I met a 
problem to install Opensips-cli on Ubuntu22.

After successfully executing the steps from the installation instruction, like 
this –

 

The command of ‘sudo apt-get install opensip-cli’ still can’t work, the output 
is –

 

The command complains that it can’t locate the package opensips-cli.

 

Can anyone help with this issue? Any hint will be highly appreciated.

 

 

Thanks,

Li

___ 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


[OpenSIPS-Users] Can't locate Opensips-cli package's location on Ubuntu22.04

2024-03-21 Thread Li Cai
Hi All,

I'm doing migrating from OpenSIPs 2.X to 3.0 on Ubuntu22.04. Here I met a 
problem to install Opensips-cli on Ubuntu22.
After successfully executing the steps from the installation instruction, like 
this -
[cid:image001.png@01DA7B72.F6AECCF0]

The command of 'sudo apt-get install opensip-cli' still can't work, the output 
is -
[cid:image002.png@01DA7B72.F6AECCF0]

The command complains that it can't locate the package opensips-cli.

Can anyone help with this issue? Any hint will be highly appreciated.


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


Re: [OpenSIPS-Users] fetch username from the URI

2024-03-21 Thread M S
A wise man once said, the online manual should be your bible here :)
openSIPS | Documentation / Core Variables - 3.4



On Thu, Mar 21, 2024 at 1:09 PM Prathibha B 
wrote:

> I am getting the source and destination URI from $fu and $ru.  How to
> fetch the SIP username from the source and destination URI.
>
> What I've tried and not working:
> # Extract destination URI from the R-URI (Request-URI)
> $var(destination_uri) = $(ru);
>
> # Find the position of "@" character in the URI
> $var(at_position) = strstr($(ru), "@");
>
> # If "@" is found, extract the substring before it as the SIP
> username
> if ($var(at_position) != -1) {
> $var(destination_username) = substr($var(destination_uri),
> 4, $var(at_position) - 5);
> } else {
> $var(destination_username) = "Unknown";
> }
>
> --
> Regards,
> B.Prathibha
> ___
> 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] fetch username from the URI

2024-03-21 Thread Prathibha B
Issue resolved

Sent from Outlook for Android

From: Prathibha B 
Sent: Thursday, March 21, 2024 5:36:47 PM
To: OpenSIPS users mailling list 
Subject: fetch username from the URI

I am getting the source and destination URI from $fu and $ru.  How to fetch the 
SIP username from the source and destination URI.

What I've tried and not working:
# Extract destination URI from the R-URI (Request-URI)
$var(destination_uri) = $(ru);

# Find the position of "@" character in the URI
$var(at_position) = strstr($(ru), "@");

# If "@" is found, extract the substring before it as the SIP 
username
if ($var(at_position) != -1) {
$var(destination_username) = substr($var(destination_uri), 4, 
$var(at_position) - 5);
} else {
$var(destination_username) = "Unknown";
}

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


[OpenSIPS-Users] Build an IMS using OpenSIPS 3.5 – S-CSCF

2024-03-21 Thread Răzvan Crainea

Hi, everyone!

Check out our latest blog post to find out about the latest features 
we've developed for OpenSIPS 3.5, and how you can use them to build a 
fully fledged S-CSCF IMS solution:


https://blog.opensips.org/2024/03/21/build-an-ims-using-opensips-3-5-s-cscf-part-1/

Happy hacking!

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

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


[OpenSIPS-Users] fetch username from the URI

2024-03-21 Thread Prathibha B
I am getting the source and destination URI from $fu and $ru.  How to fetch
the SIP username from the source and destination URI.

What I've tried and not working:
# Extract destination URI from the R-URI (Request-URI)
$var(destination_uri) = $(ru);

# Find the position of "@" character in the URI
$var(at_position) = strstr($(ru), "@");

# If "@" is found, extract the substring before it as the SIP
username
if ($var(at_position) != -1) {
$var(destination_username) = substr($var(destination_uri),
4, $var(at_position) - 5);
} else {
$var(destination_username) = "Unknown";
}

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


Re: [OpenSIPS-Users] OPENSIP 3.4 send_reply and tight matching failed

2024-03-21 Thread Alain Bieuzent
Hi bogdan,

 

Find attached the sip traces where we have this error log:

 

Mar 21 11:24:13 lbsip-rtpe-test opensips[3108]: WARNING:dialog:dlg_onroute: 
tight matching failed for ACK with 
callid='6a543fbd6eabdc7b797dfd6d56db1568@10.101.180.176:5060'/52, 
ftag='as5625de52'/10, ttag='b5a7-94b8b0d1dd76318f3d174a911be4ece2'/37 and 
direction=1

Mar 21 11:24:13 lbsip-rtpe-test opensips[3108]: WARNING:dialog:dlg_onroute: 
dialog identification elements are 
callid='6a543fbd6eabdc7b797dfd6d56db1568@10.101.180.176:5060'/52, caller 
tag='as5625de52'/10, callee tag='3920005391-2017127892'/21

 

De : Bogdan-Andrei Iancu 
Date : mercredi 20 mars 2024 à 16:45
À : Alain Bieuzent , OpenSIPS users mailling list 

Objet : Re: [OpenSIPS-Users] OPENSIP 3.4 send_reply and tight matching failed

 

Not the logs, but the trace/ SIP capture - I need to see the sip traffic to 
understand the context of the issue.


Bogdan-Andrei Iancu
 
OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
  https://www.siphub.com
On 20.03.2024 17:14, Alain Bieuzent wrote:

Bellow the link to the traces : 

 

https://www.transfernow.net/dl/20240320jzEA98Vz

 

De : Bogdan-Andrei Iancu 
Date : mercredi 20 mars 2024 à 14:29
À : OpenSIPS users mailling list , Alain Bieuzent 

Objet : Re: [OpenSIPS-Users] OPENSIP 3.4 send_reply and tight matching failed

 

Hi,

The script snippet has nothing to do with the matching - it is about a 200-ok 
ACK to be matched by the dialog module and the TO-tag does not match at all. 

The link to the trace expired, if you could repost.

Regards,


Bogdan-Andrei Iancu
 
OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
  https://www.siphub.com
On 12.03.2024 14:57, Alain Bieuzent wrote:

Hi all,

 

I am in the process of migrating my proxies from 3.3.9 to 3.4.4.

In 3.4 I find myself with a fault when I try to rewrite a final cause.

 

if (t_check_status("500"))

 {

  send_reply(503,"Service Unavailable");

 exit;

  }

 

with 3.3 version, this code works perfectly, since 3.4 I have this error:

 

WARNING:dialog:dlg_onroute: tight matching failed for ACK with 
callid='67457c401e9ea52e2750100979253a7a@10.101.180.177:5060'/52, 
ftag='as5328cea7'/10, ttag='b5a7-2a346bb9d510da893a ee7cda850584cb'/37 and 
direction=1

WARNING:dialog:dlg_onroute: dialog identification elements are 
callid='67457c401e9ea52e2750100979253a7a@10.101.180.177:5060'/52, caller 
tag='as5328cea7'/10, callee tag='3919223738-770090972'/ 20

 

Has anyone encountered this error before?

 

Complete traces here : https://www.transfernow.net/dl/20240312qvAFfIAL.

 

Regards




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









6a543fbd6eabdc7b797dfd6d56db1568@10.101.180.176 5060.pcap
Description: Binary data
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Need some suggestion or help in case of webrtc connection with opensips .

2024-03-21 Thread Ihor Olkhovskyi
Hi,
Just use drop() function in a case of reaching the limit.

Le mer. 20 mars 2024 à 13:49, Sasmita Panda  a écrit :

> Hi ,
>
> Thank you for your suggestion . I will try that . just to clarify did you
> mean that will drop the wss connection of that user ?
>
>
> *Thanks & Regards*
> *Sasmita Panda*
> *Senior Network Testing and Software Engineer*
> *3CLogic , ph:07827611765*
>
>
> On Wed, Mar 20, 2024 at 6:05 PM Ihor Olkhovskyi 
> wrote:
>
>> Hi!
>>
>> You can try to use something like cachedb module (for autoexpiry) with
>> name of the key like "username_timestamp" and increment it in a case of
>> value exists. And if value is above some threshold - drop further
>> connections.
>>
>> Cheers,
>> Ihor
>>
>> Le mar. 19 mars 2024 à 12:05, Sasmita Panda  a
>> écrit :
>>
>>> Hi All ,
>>>
>>> I have opensips 3.2 version with webrtc configured . I just got an issue
>>> in production that one browser is trying to establish multiple connections
>>> frequently which overloads my server which has the impact that other
>>> browsers are not able to establish a single connection at some points .
>>>
>>> Is this possible? I can limit the number of websocket connections per
>>> user (here the user has a unique username which I used to save as contact
>>> in the location table ) so that the server will reject the connection above
>>> that ?
>>>
>>> Please do suggest . Your help is appreciated .
>>>
>>> *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
>>>
>>
>>
>> --
>> Best regards,
>> Ihor (Igor)
>> ___
>> 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
>


-- 
Best regards,
Ihor (Igor)
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Need some help on opensips error for wss handshek .

2024-03-21 Thread Sasmita Panda
We are using webrtc Client integrated with browsers using sipml5 client
library . I think this is a common library used across the glob .
Every customer that has this same client running with webrtc Server (having
opensips) is common .
But the error I have seen is for one or two agents only .


So the error is for the client or the network ? If it can be the network
then I may suggest the customer to change the network while using webrtc
client .


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


On Wed, Mar 20, 2024 at 7:55 PM Bogdan-Andrei Iancu 
wrote:

> Hi,
>
> There is a fix (to tolerate different version numbers there) but only in
> OpenSIPS 3.5 [1] (the devel version), not yet backported to stable 3.4 and
> 3.2. You can try to do the backport by yourself.
>
> BTW, what WS client & browser are you using ?? It is pretty unusual what
> you report here.
>
> [1]
> https://github.com/OpenSIPS/opensips/commit/e30a355397b285a5140ebb25a485bed7134de7ee
>
> Bogdan-Andrei Iancu
>
> OpenSIPS Founder and Developer
>   https://www.opensips-solutions.com
>   https://www.siphub.com
>
> On 20.03.2024 15:30, Sasmita Panda wrote:
>
> Hi Bogdan,
> I appreciate your reply .
>
> How can I suggest modifying this header ? Because I have seen this for
> some remote agents who run in the browser . I don't have access to the
> browser .
> The browser which got connected successfully I couldn't see such types of
> logs  .
>
> What causes this header version in the wss connection ?
>
>
> *Thanks & Regards*
> *Sasmita Panda*
> *Senior Network Testing and Software Engineer*
> *3CLogic , ph:07827611765*
>
>
> On Wed, Mar 20, 2024 at 6:51 PM Bogdan-Andrei Iancu 
> wrote:
>
>> Hi,
>>
>> OpenSIPS does not like that 1.1 version in the VIA hdr - it expects 2.0
>> (the SIP version).
>>
>> Regards,
>>
>> Bogdan-Andrei Iancu
>>
>> OpenSIPS Founder and Developer
>>   https://www.opensips-solutions.com
>>   https://www.siphub.com
>>
>> On 12.03.2024 10:57, Sasmita Panda wrote:
>>
>> Hi All ,
>>
>> 1"  :callID 080a9ef8-3911-6c41-689c-fbb5d02e3aae
>> Mar 12 08:23:11 localhost /usr/sbin/opensips[12987]:
>> ERROR:core:parse_via: bad char <1> on state 100
>> Mar 12 08:23:11 localhost /usr/sbin/opensips[12987]:
>> ERROR:core:parse_via:  <1.1 p1wsa01.rivagecapital.com:80
>> (Cisco-WSA/12.5.4-011)#015#012#015#012>
>> Mar 12 08:23:11 localhost /usr/sbin/opensips[12987]:
>> ERROR:core:parse_via: via parse failed
>> Mar 12 08:23:11 localhost /usr/sbin/opensips[12987]:
>> ERROR:core:get_hdr_field: bad via
>> Mar 12 08:23:11 localhost /usr/sbin/opensips[12987]:
>> INFO:core:parse_headers: bad header field
>> Mar 12 08:23:11 localhost /usr/sbin/opensips[12987]: ERROR:proto_
>> wss:ws_parse_req_handshake: cannot parse headers#012Upgrade:
>> websocket#015#012Connection: Upgrade#015#012Host:
>> ir-webrtc2.3ccloud.com#015#012Pragma
>> :
>> no-cache#015#012Cache-Control: no-cache#015#012User-Agent: Mozilla/5.0
>> (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/
>> 122.0.0.0 Safari/537.36 Edg/122.0.0.0#015#012Origin
>> :
>> https://ir-static.3ccloud.com#015#012Sec-WebSocket-Version:
>> 13#015#012Accept-Encoding: gzip, br#015#012Accept-Language:
>> en-GB,en;q=0.9,en-US;q=0.8#015#012Sec-WebSocket-Key:
>> I/8XqtXyBCAGorZYjnTYQA==#015#012Sec-WebSocket-Extensions:
>> permessage-deflate; client_max_window_bits#015#012Sec-WebSocket-Protocol:
>> sip#015#012X-IMForwards: 20#015#012Via: 1.1 p1wsa01.rivagecapital.com:80
>> (Cisco-WSA/12.5.4-011)#015#012#015#012
>>
>>
>>  I am getting this error on my opensips server where I am running webrtc
>> . What is this error for ?
>>
>>
>> *Thanks & Regards*
>> *Sasmita Panda*
>> *Senior Network Testing and Software Engineer*
>> *3CLogic , ph:07827611765*
>>
>> ___
>> Users mailing 
>> listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>>
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users