Re: [OpenSIPS-Users] SIP/2.0 500 Server error occurred (6/SL)

2022-10-27 Thread Kneeoh via Users
 I think we're running out of branches.. I believe the default is 12. Would 
this result in an internal 500 6/SL? What would I need to change and recompile 
to increase this?
ERROR:tm:add_uac: maximum number of branches exceeded
ERROR:tm:t_forward_nonack: failure to add branches
On Thursday, October 27, 2022, 12:29:26 PM EDT, Bogdan-Andrei Iancu 
 wrote:  
 
  Hi,
 
 Do you see any error logs ?
 
 Regards,
  Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
OpenSIPS Bootcamp 5-16 Dec 2022, online
  https://www.opensips.org/training/OpenSIPS_eBootcamp_2022/ On 10/27/22 6:51 
PM, Kneeoh via Users wrote:
  
 
 Hi all, i'm trying to track down the root cause of a SIP/2.0 500 Server error 
occurred (6/SL) response from Opensips and can't find any definition for what 
type of issue would cause this. It seems to happen after receiving several 503s 
from downstream endpoints, then this internal error is generated and sent. Any 
guidance is appreciated, Thanks in advance.  
  ___
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


[OpenSIPS-Users] SIP/2.0 500 Server error occurred (6/SL)

2022-10-27 Thread Kneeoh via Users
Hi all, i'm trying to track down the root cause of a SIP/2.0 500 Server error 
occurred (6/SL) response from Opensips and can't find any definition for what 
type of issue would cause this. It seems to happen after receiving several 503s 
from downstream endpoints, then this internal error is generated and sent. Any 
guidance is appreciated, Thanks in advance.___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Fwd: STIR/Shaken payload issue.

2021-05-24 Thread Kneeoh via Users
 Sunil, 
I was having a similar issue... it looks like part 2 of the base64 string 
decodes to:
{"attest"8""Â&FW7B#§²'Fâ#¥²#““S333ƒ#sR%×ÒÂ&–B#£c#“ssrÂ&÷&–r#§²'Fâ#¢#““S333ƒ#sb'ÒÂ&÷&–v–B#¢&G6F66fG2ÖG6F6B×5ds"}


My problem was that I was using sngrep to find my identity header and it 
appears to have been truncating my string. upon using ngrep to get the raw 
packet data I found the identity string was totally different and decoded 
properly. 
On Monday, May 24, 2021, 02:13:08 AM EDT, Sunil More 
 wrote:  
 
 Hello All,
I tried the same with Opensips version 3.1.2 , Still the same result. The 
Payload is not a valid JSON.

version: opensips 3.1.2 (x86_64/linux)
flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, Q_MALLOC, 
F_MALLOC, HP_MALLOC, DBG_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, 
MAX_URI_SIZE 1024, BUF_SIZE 65535
poll method support: poll, epoll, sigio_rt, select.
git revision: 539ab0b3a
main.c compiled on 05:43:20 May 24 2021 with gcc 7
Regards,Sunil More
-- Forwarded message -
From: Sunil More 
Date: Thu, 20 May 2021 at 15:55
Subject: STIR/Shaken payload issue.
To: users@lists.opensips.org 



Hello All, 

 

I was working to use stir shaken module. The certificates are put in place and 
Identity Header is also created. However the Identity when tried to put on 
JWT.io for validation , I can observe that the payload is not good.  

Here is the identity Heade
Identity: 
eyJhbGciOiJFUzI1NiIsInBwdCI6InNoYWtlbiIsInR5cCI6InBhc3Nwb3J0IiwieDV1IjoiaHR0cHM6Ly9hcHBzLnNhbWVzcGFjZS5jb20vc2VydmVyLmNydCJ9.eyJhdHRlc3QiOCIiwiZGVzdCI6eyJ0biI6WyI5MTk1MDMzMzgyNzUiXX0sImlhdCI6MTYyMDkxMDc3Nywib3JpZyI6eyJ0biI6IjkxOTUwMzMzODI3NiJ9LCJvcmlnaWQiOiJkc2FkYXNhc2Zkcy1kc2FkYXNkLXNWRzIn0.JzYHlbStXK7gpmRWVZY_IC8VmeZfaKWBzGTOfGU82OQ3w28lctaYv-YAzBdjqjUGJKISid327KSzUGGvpXYBSg;info=;ppt="shaken"




After JWT.io 
Header for algorithm and token type  looks ok ..
{

  "alg": "ES256",

  "ppt": "shaken",

  "typ": "passport",

  "x5u": "https://apps.samespace.com/server.crt";

}



However payload looks like this which is probably some invalid JSON, I am not 
sure what could cause this.

"{\"attest\"8\"\"�&FW7B#��'F�#��#�\u0013�S\u000�#sR%���&�\u0017B#�\u0013c#\u0003�\u0013\u0003ssr�&�&�r#��'F�#�#�\u0013�S\u000�#sb'��&�&�v�B#�&G6\u0016F\u00176\u00176fG2�G6\u0016F\u00176B�5ds\"}"



Here is the code snippet used .




stir_shaken_auth("B", $var(origid),$var(cert), 
$var(privKey),"https://apps.samespace.com/server.crt","919503338276","919503338275";);
 



 

I am using opensips version as below 

 

version: opensips 3.1.1 (x86_64/linux)

flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, Q_MALLOC, 
F_MALLOC, HP_MALLOC, DBG_MALLOC, FAST_LOCK-ADAPTIVE_WAIT

ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, 
MAX_URI_SIZE 1024, BUF_SIZE 65535

poll method support: poll, epoll, sigio_rt, select.

git revision: 229ec0793

main.c compiled on 11:50:44 Jan 15 2021 with gcc 7

 

Kindly let me know if there is something wrong that I could be doing. I checked 
the sample from https://transnexus.com/whitepapers/understanding-stir-shaken/

The Identity from this example shows a good payload. 

 

 

Regards,

Sunil More

Phone : 919503338275

Sent from Mail for Windows 10

 
___
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] Stir/Shaken Certificate Failed to Load

2021-05-20 Thread Kneeoh via Users
Hi, following the docs and blog post here:
https://opensips.org/docs/modules/3.1.x/stir_shaken.html and here:
https://blog.opensips.org/2020/01/23/shaken-not-stirred/

I'm getting an error regarding certificate parsing and loading. I'm guessing
it's got to do with how I'm loading the certs. I just want to see if I can
make it add the identity header and this is a test run so it's just a simple
hard code:

 # Do Stir/Shaken Signing
$var(cert) = "/home/homey/key.pem-public.pem";
$var(privKey) = "/home/homey/private_key.pem";
stir_shaken_auth("A", "$ci", "$var(cert)", "$var(privKey)",
"https://certs.example.org/cert.pem";);

results in no identity header and the following in the logs:
May 20 18:16:10 stir-shaken /usr/local/sbin/opensips[65744]:
ERROR:stir_shaken:load_cert: Failed to parse certificate
May 20 18:16:10 stir-shaken /usr/local/sbin/opensips[65744]:
ERROR:stir_shaken:w_stir_auth: Failed to load certificate

Any guidance would be appreciated.



--
Sent from: 
http://opensips-open-sip-server.1449251.n2.nabble.com/OpenSIPS-Users-f1449235.html

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


[OpenSIPS-Users] siptrace trace_dialog() not capturing ACKs or other replies 1.11.11

2018-06-13 Thread Kneeoh via Users
I've followed the documentation for using the siptrace module to capture 
packets and transmit them to a sipcapture node. Things are kind of working, 
however, I'm not getting ACKs or other replies in the capture node. I'm using 
the following in my script. Any ideas or pointers on what I might be doing 
wrong?
 SIP Trace moduleloadmodule "siptrace.so"modparam("siptrace", "db_url", 
"mysql://user:passwd@host/dbname")modparam("siptrace", "duplicate_uri", 
"sip:10.10.61.191:9060")modparam("siptrace", "duplicate_with_hep", 
1)modparam("siptrace", "trace_to_database", 0)modparam("siptrace", 
"enable_ack_trace", 1)modparam("siptrace", "trace_on", 1)modparam("siptrace", 
"trace_flag", "TRACE_FLAG")modparam("siptrace", "hep_version", 2)

# create dialog with timeout and hide topology if ( !create_dialog("B") ) { 
xlog("L_INFO", "Unable to create dialog \n"); send_reply("500","Internal Server 
Error"); exit;
 } else {
 # We have a dialog, Lets hide the topology from where the call originated 
topology_hiding(); $T_fr_timeout = 5; }


# Trace this dialog setflag(TRACE_FLAG); #sip_trace(); trace_dialog();___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] RabbitMQ Heartbeat issue

2017-08-07 Thread Kneeoh via Users
kneeoh: Hello, I'm trying to chase down an issue where opensips simply breaks 
it's connection with rabbitmq, howerver opensipsctl fifo subscribers_list shows 
3 active subscriptions. Rabbitmq shows NO connections, I even have a timer 
route that runs every 30 seconds that executes even subscribe. I have heartbeat 
set: modparam("event_rabbitmq", "heartbeat", 3) and rabbitmq is running on the 
localhost. Has anyone ever dealt with this? [5:56pm] kneeoh: opensipsctl fifo 
subscribers_list[5:56pm] kneeoh: Event:: E_ACC_EVENT id=4[5:56pm] kneeoh:  
Subscriber::  socket=rabbitmq:rabbit@localhost/whsl_cdrs expire=never[5:56pm] 
kneeoh: Event:: E_ACC_CDR id=5[5:56pm] kneeoh:  Subscriber::  
socket=rabbitmq:rabbit@localhost/whsl_cdrs expire=never[5:56pm] kneeoh: Event:: 
E_ACC_MISSED_EVENT id=6[5:56pm] kneeoh:  Subscriber::  
socket=rabbitmq:rabbit@localhost/whsl_missed expire=never[6:10pm] kneeoh: 
opensipsctl fifo version[6:10pm] kneeoh: Server:: OpenSIPS (1.11.3-notls 
(x86_64/linux))[6:10pm] kneeoh: librabbitmq-dev                        0.4.1-1 
I also re-compiled to 1.11.11 and am still getting connections closed. I had to 
remove the heartbeat modparam to get this working, but I'm still concerned that 
threads will lock if there is an issue writing to rabbitmq.___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users