Re: [OpenSIPS-Users] Re-Invites being ignored

2023-02-02 Thread Răzvan Crainea

Hi, Michael!

You can't (and shouldn't, at least not in an easy way) respond to 
re-INVITE from a proxy - your best chance is to route the re-INVITE down 
to the endpoint - he is the one that should respond.


Best regards,

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

On 2/3/23 01:24, Saint Michael wrote:

The Customer is unable to keep calls open past 15 minutes.
If the duration of the call was a multiple of 15 minutes, please make
sure that you can properly respond to the keep-alive RE-INVITE that
the carrier sends every 15 minutes.
How do I make sure that Opensips responds to any REINVITES?

___
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] Re-Invites being ignored

2023-02-02 Thread Saint Michael
The Customer is unable to keep calls open past 15 minutes.
If the duration of the call was a multiple of 15 minutes, please make
sure that you can properly respond to the keep-alive RE-INVITE that
the carrier sends every 15 minutes.
How do I make sure that Opensips responds to any REINVITES?

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


Re: [OpenSIPS-Users] outbound routing distinguish

2023-02-02 Thread Răzvan Crainea

Hi, Pat!

Then create a logic to detect whether the call should be sent to 
dispatcher and call that route only for those calls, and call lookup for 
the others.


Best regards,

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

On 2/2/23 16:19, Pat M via Users wrote:

Hi Razvan

When i put it there then it does not allow calls between the uac - uac again 
and tries to send all calls to the dispatcher :(




Sent with Proton Mail secure email.

--- Original Message ---
On Thursday, February 2nd, 2023 at 12:35 PM, Răzvan Crainea 
 wrote:



Yes, that's one valid option.

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

On 2/2/23 13:33, Pat M via Users wrote:


Hi Razvan,

Do you mean here?

route[relay] {
# for INVITEs enable some additional helper routes
if (is_method("INVITE")) {

t_on_branch("per_branch_ops");
t_on_reply("handle_nat");
t_on_failure("missed_call");
route(DISPATCH_OUT);
}

Sent with Proton Mail secure email.

--- Original Message ---
On Thursday, February 2nd, 2023 at 11:27 AM, Răzvan Crainea raz...@opensips.org 
wrote:


Hi, Pat!

What do you mean by "internal calls fail"? If you don't want to route
calls between extensions, I would expect the DISPATCH_OUT to be called
in the main route, rather on branch route.

Best regards,

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

On 2/1/23 17:41, Pat M via Users wrote:


Konichiwa

I have some extensions registered to opensips and i want to route calls
to dispatcher but not calls between extensions

but when i enable dispatcher internal calls fail
so if i uncomment #route(DISPATCH_OUT); it will try send any call to
dispatcher
here is my code, what am i missing?

Please help

if (!lookup("location","m")) {
t_reply(404, "Not Found");
exit;
}
}

# when routing via usrloc, log the missed calls also
do_accounting("log","missed");
route(relay);
}
route[relay] {
# for INVITEs enable some additional helper routes
if (is_method("INVITE")) {

t_on_branch("per_branch_ops");
t_on_reply("handle_nat");
t_on_failure("missed_call");
route(DISPATCH_OUT);
}

if (!t_relay()) {
send_reply(500,"Internal Error");
}
exit;
}

branch_route[per_branch_ops] {
xlog("new branch at $ru\n");
#route(DISPATCH_OUT);
}

route[DISPATCH_OUT] {
if (!ds_select_dst(1, 0)) {
xlog("ERROR: no active destinations found!\n");
send_reply(503, "Service Unavailable");
exit;
}

t_relay();
exit;
}

Sent with Proton Mail https://proton.me/ 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


___
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


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


Re: [OpenSIPS-Users] outbound routing distinguish

2023-02-02 Thread Pat M via Users
Hi Razvan

When i put it there then it does not allow calls between the uac - uac again 
and tries to send all calls to the dispatcher :(




Sent with Proton Mail secure email.

--- Original Message ---
On Thursday, February 2nd, 2023 at 12:35 PM, Răzvan Crainea 
 wrote:


> Yes, that's one valid option.
> 
> Răzvan Crainea
> OpenSIPS Core Developer
> http://www.opensips-solutions.com
> 
> On 2/2/23 13:33, Pat M via Users wrote:
> 
> > Hi Razvan,
> > 
> > Do you mean here?
> > 
> > route[relay] {
> > # for INVITEs enable some additional helper routes
> > if (is_method("INVITE")) {
> > 
> > t_on_branch("per_branch_ops");
> > t_on_reply("handle_nat");
> > t_on_failure("missed_call");
> > route(DISPATCH_OUT);
> > }
> > 
> > Sent with Proton Mail secure email.
> > 
> > --- Original Message ---
> > On Thursday, February 2nd, 2023 at 11:27 AM, Răzvan Crainea 
> > raz...@opensips.org wrote:
> > 
> > > Hi, Pat!
> > > 
> > > What do you mean by "internal calls fail"? If you don't want to route
> > > calls between extensions, I would expect the DISPATCH_OUT to be called
> > > in the main route, rather on branch route.
> > > 
> > > Best regards,
> > > 
> > > Răzvan Crainea
> > > OpenSIPS Core Developer
> > > http://www.opensips-solutions.com
> > > 
> > > On 2/1/23 17:41, Pat M via Users wrote:
> > > 
> > > > Konichiwa
> > > > 
> > > > I have some extensions registered to opensips and i want to route calls
> > > > to dispatcher but not calls between extensions
> > > > 
> > > > but when i enable dispatcher internal calls fail
> > > > so if i uncomment #route(DISPATCH_OUT); it will try send any call to
> > > > dispatcher
> > > > here is my code, what am i missing?
> > > > 
> > > > Please help
> > > > 
> > > > if (!lookup("location","m")) {
> > > > t_reply(404, "Not Found");
> > > > exit;
> > > > }
> > > > }
> > > > 
> > > > # when routing via usrloc, log the missed calls also
> > > > do_accounting("log","missed");
> > > > route(relay);
> > > > }
> > > > route[relay] {
> > > > # for INVITEs enable some additional helper routes
> > > > if (is_method("INVITE")) {
> > > > 
> > > > t_on_branch("per_branch_ops");
> > > > t_on_reply("handle_nat");
> > > > t_on_failure("missed_call");
> > > > route(DISPATCH_OUT);
> > > > }
> > > > 
> > > > if (!t_relay()) {
> > > > send_reply(500,"Internal Error");
> > > > }
> > > > exit;
> > > > }
> > > > 
> > > > branch_route[per_branch_ops] {
> > > > xlog("new branch at $ru\n");
> > > > #route(DISPATCH_OUT);
> > > > }
> > > > 
> > > > route[DISPATCH_OUT] {
> > > > if (!ds_select_dst(1, 0)) {
> > > > xlog("ERROR: no active destinations found!\n");
> > > > send_reply(503, "Service Unavailable");
> > > > exit;
> > > > }
> > > > 
> > > > t_relay();
> > > > exit;
> > > > }
> > > > 
> > > > Sent with Proton Mail https://proton.me/ 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
> > 
> > ___
> > 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


Re: [OpenSIPS-Users] outbound routing distinguish

2023-02-02 Thread Răzvan Crainea

Yes, that's one valid option.

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

On 2/2/23 13:33, Pat M via Users wrote:

Hi Razvan,

Do you mean here?

route[relay] {
# for INVITEs enable some additional helper routes
  if (is_method("INVITE")) {
  
  t_on_branch("per_branch_ops");

  t_on_reply("handle_nat");
t_on_failure("missed_call");
 route(DISPATCH_OUT);
  }




Sent with Proton Mail secure email.

--- Original Message ---
On Thursday, February 2nd, 2023 at 11:27 AM, Răzvan Crainea 
 wrote:



Hi, Pat!

What do you mean by "internal calls fail"? If you don't want to route
calls between extensions, I would expect the DISPATCH_OUT to be called
in the main route, rather on branch route.

Best regards,

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

On 2/1/23 17:41, Pat M via Users wrote:


Konichiwa

I have some extensions registered to opensips and i want to route calls
to dispatcher but not calls between extensions

but when i enable dispatcher internal calls fail
so if i uncomment #route(DISPATCH_OUT); it will try send any call to
dispatcher
here is my code, what am i missing?

Please help

if (!lookup("location","m")) {
t_reply(404, "Not Found");
exit;
}
}

# when routing via usrloc, log the missed calls also
do_accounting("log","missed");
route(relay);
}
route[relay] {
# for INVITEs enable some additional helper routes
if (is_method("INVITE")) {

t_on_branch("per_branch_ops");
t_on_reply("handle_nat");
t_on_failure("missed_call");

 route(DISPATCH_OUT);

}

if (!t_relay()) {
send_reply(500,"Internal Error");
}
exit;
}

branch_route[per_branch_ops] {
xlog("new branch at $ru\n");
#route(DISPATCH_OUT);
}

route[DISPATCH_OUT] {
if (!ds_select_dst(1, 0)) {
xlog("ERROR: no active destinations found!\n");
send_reply(503, "Service Unavailable");
exit;
}

t_relay();
exit;
}

Sent with Proton Mail https://proton.me/ 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


___
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] outbound routing distinguish

2023-02-02 Thread Pat M via Users
Hi Razvan,

Do you mean here?

route[relay] {
# for INVITEs enable some additional helper routes
 if (is_method("INVITE")) {
 
 t_on_branch("per_branch_ops");
 t_on_reply("handle_nat");
t_on_failure("missed_call");
route(DISPATCH_OUT);
 }




Sent with Proton Mail secure email.

--- Original Message ---
On Thursday, February 2nd, 2023 at 11:27 AM, Răzvan Crainea 
 wrote:


> Hi, Pat!
> 
> What do you mean by "internal calls fail"? If you don't want to route
> calls between extensions, I would expect the DISPATCH_OUT to be called
> in the main route, rather on branch route.
> 
> Best regards,
> 
> Răzvan Crainea
> OpenSIPS Core Developer
> http://www.opensips-solutions.com
> 
> On 2/1/23 17:41, Pat M via Users wrote:
> 
> > Konichiwa
> > 
> > I have some extensions registered to opensips and i want to route calls
> > to dispatcher but not calls between extensions
> > 
> > but when i enable dispatcher internal calls fail
> > so if i uncomment #route(DISPATCH_OUT); it will try send any call to
> > dispatcher
> > here is my code, what am i missing?
> > 
> > Please help
> > 
> > if (!lookup("location","m")) {
> > t_reply(404, "Not Found");
> > exit;
> > }
> > }
> > 
> > # when routing via usrloc, log the missed calls also
> > do_accounting("log","missed");
> > route(relay);
> > }
> > route[relay] {
> > # for INVITEs enable some additional helper routes
> > if (is_method("INVITE")) {
> > 
> > t_on_branch("per_branch_ops");
> > t_on_reply("handle_nat");
> > t_on_failure("missed_call");
route(DISPATCH_OUT);
> > }
> > 
> > if (!t_relay()) {
> > send_reply(500,"Internal Error");
> > }
> > exit;
> > }
> > 
> > branch_route[per_branch_ops] {
> > xlog("new branch at $ru\n");
> > #route(DISPATCH_OUT);
> > }
> > 
> > route[DISPATCH_OUT] {
> > if (!ds_select_dst(1, 0)) {
> > xlog("ERROR: no active destinations found!\n");
> > send_reply(503, "Service Unavailable");
> > exit;
> > }
> > 
> > t_relay();
> > exit;
> > }
> > 
> > Sent with Proton Mail https://proton.me/ 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

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


Re: [OpenSIPS-Users] outbound routing distinguish

2023-02-02 Thread Răzvan Crainea

Hi, Pat!

What do you mean by "internal calls fail"? If you don't want to route 
calls between extensions, I would expect the DISPATCH_OUT to be called 
in the main route, rather on branch route.


Best regards,

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

On 2/1/23 17:41, Pat M via Users wrote:

Konichiwa

I have some extensions registered to opensips and i want to route calls 
to dispatcher but not calls between extensions


but when i enable dispatcher internal calls fail
so if i uncomment #route(DISPATCH_OUT); it will try send any call to 
dispatcher

here is my code, what am i missing?

Please help

if (!lookup("location","m")) {
                 t_reply(404, "Not Found");
                 exit;
         }
}



         # when routing via usrloc, log the missed calls also
         do_accounting("log","missed");
         route(relay);
}
route[relay] {
         # for INVITEs enable some additional helper routes
         if (is_method("INVITE")) {



                 t_on_branch("per_branch_ops");
                 t_on_reply("handle_nat");
                 t_on_failure("missed_call");
         }


         if (!t_relay()) {
                 send_reply(500,"Internal Error");
         }
         exit;
}




branch_route[per_branch_ops] {
         xlog("new branch at $ru\n");
#route(DISPATCH_OUT);
}

route[DISPATCH_OUT] {
         if (!ds_select_dst(1, 0)) {
         xlog("ERROR: no active destinations found!\n");
         send_reply(503, "Service Unavailable");
         exit;
}

         t_relay();
         exit;
}




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


Re: [OpenSIPS-Users] opensips keeps restarting every 1:30 min on Centos7

2023-02-02 Thread Răzvan Crainea

Are you using the default systemd script in OpenSIPS[1].

[1] 
https://github.com/OpenSIPS/opensips/blob/master/packaging/redhat_fedora/opensips.service


Best regards,

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

On 1/18/23 13:40, Stefan Tobé wrote:

Hi,
I have an issue with Centos 7 running Opensips 3.2

*problem: *
Opensips is restarting 1:30 min after
the following command:
#sudo systemctl restart opensips

note: note: In between this interval  the server works fine


*logs*:
I keep observing these logs every 1:30 min exactly in /var/log/messages:


Jan 18 12:35:36 pmnlscscf02 opensips: Jan 18 12:35:35 [25370] 
DBG:db_mysql:db_mysql_connect: server version is 
10.6.8-MariaDB-1:10.6.8+maria~focal-log
Jan 18 12:35:36 pmnlscscf02 opensips: Jan 18 12:35:35 [25370] 
DBG:core:db_do_init: connection 0x7f479264b5a8 inserted in pool as 
0x7f479264b870
Jan 18 12:35:36 pmnlscscf02 opensips: Jan 18 12:35:35 [25370] 
DBG:core:init_mod_child: type=CHILD, rank=7, module=rest_client
Jan 18 12:35:36 pmnlscscf02 opensips: Jan 18 12:35:35 [25370] 
DBG:core:init_mod_child: type=CHILD, rank=7, module=json
Jan 18 12:35:36 pmnlscscf02 opensips: Jan 18 12:35:35 [25370] 
DBG:core:init_mod_child: type=CHILD, rank=7, module=cachedb_local
*Jan 18 12:37:05 pmnlscscf02 systemd: opensips.service start operation 
timed out. Terminating.
Jan 18 12:37:05 pmnlscscf02 opensips: Jan 18 12:37:05 [25359] 
DBG:core:handle_sigs: SIGTERM received, program terminates
*Jan 18 12:37:05 pmnlscscf02 opensips: Jan 18 12:37:05 [25359] 
DBG:core:shutdown_opensips: Asking process 1 [MI FIFO] to terminate
Jan 18 12:37:05 pmnlscscf02 opensips: Jan 18 12:37:05 [25359] 
DBG:core:shutdown_opensips: Asking process 4 [SIP receiver 
udp:10.130.2.141:5062 ] to terminate
Jan 18 12:37:05 pmnlscscf02 opensips: Jan 18 12:37:05 [25359] 
DBG:core:shutdown_opensips: Asking process 5 [SIP receiver 
udp:10.130.2.141:5062 ] to terminate
Jan 18 12:37:05 pmnlscscf02 opensips: Jan 18 12:37:05 [25368] 
INFO:core:sig_usr: signal 15 received
Jan 18 12:37:05 pmnlscscf02 opensips: Jan 18 12:37:05 [25359] 
DBG:core:shutdown_opensips: Asking process 6 [SIP receiver 
udp:10.130.2.141:5062 ] to terminate
Jan 18 12:37:05 pmnlscscf02 opensips: Jan 18 12:37:05 [25359] 
DBG:core:shutdown_opensips: Asking process 7 [SIP receiver 
udp:10.130.2.141:5062 ] to terminate
Jan 18 12:37:05 pmnlscscf02 opensips: Jan 18 12:37:05 [25359] 
DBG:core:shutdown_opensips: Asking process 8 [TCP receiver] to terminate
Jan 18 12:37:05 pmnlscscf02 opensips: Jan 18 12:37:05 [25359] 
DBG:core:shutdown_opensips: Asking process 9 [TCP receiver] to terminate
Jan 18 12:37:05 pmnlscscf02 opensips: Jan 18 12:37:05 [25359] 
DBG:core:shutdown_opensips: Asking process 10 [Timer handler] to terminate
Jan 18 12:37:05 pmnlscscf02 opensips: Jan 18 12:37:05 [25359] 
DBG:core:shutdown_opensips: Asking process 11 [TCP main] to terminate

Jan 18 12:37:05 pmnlscscf02 opensips: Listening on

*analysis*:
can it have something to do with process forking and default Centos 7 
1:30 min timeout in systemd?



--
mvg
Stefan Tobé


PM Factory B.V.
Bolderweg 2
1332 AT Almere
tel: 06 21 26 59 68
email: stefan.t...@pmfactory.nl 
PGP public key: click here to download 





___
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] rabbitMq_publish (async ?)

2023-02-02 Thread Răzvan Crainea
rabbitmq_publish currently only runs in blocking mode, you cannot make 
async requests with it. Unless the command is async at the protocol 
level, i.e. you are not waiting for the response.


Best regards,

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

On 1/17/23 23:30, Wadii ELMAJDI | Evenmedia wrote:

Hello,

I am using the new rabbitmq module to send some informations as AMQP 
messages to a rabbitmq server. Mostly fraud detection + CDR.


I wanted to know if rabbitmq_publish is considered a blocking function? 
for example in the case of fraud detection warning, my use case is to 
publish the message to rabbitmq server and continue the sip routing 
decision without hanging up the call.


Should i use the launch statement , or is rabbitmq_publish not a 
blocking function already ?


Ex : launch(rabbitmq_publish(...));

Thank you

___
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] Re-invite on mid_registrar

2023-02-02 Thread Răzvan Crainea
I am pretty sure you don't actually need a re-INVITE here, but rather an 
actual INVITE to Asterisk. Check out how push notifications should be 
handled in OpenSIPS:

https://blog.opensips.org/tag/push-notification/

Best regards,

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

On 1/4/23 16:37, nutxase via Users wrote:

Hi All!

I am trying to get opensips to send a re-invite to asterisk on incoming 
calls

my scenario is

  * Call comes to opensips
  * Opensips runs a custom script to wake up a device
  * Device sends a new registration to asterisk
  * Opensips needs to send a re-invite to asterisk(need help here)
  * Opensips Looks up the location with the below and sends the call


if (!mid_registrar_lookup("location")) {
            t_reply(404, "Not Found");
exit;
}

       t_relay();

      exit;
  }

my complete code is:

if (is_method("INVITE|MESSAGE")  {
         if (exec("/etc/opensips/pusher.sh $tu", , $var(out))) {
         xlog ("we pushed");
  } else {
         xlog("no  push happened");
}
         t_reply(100, "SUSPEND");

         route(push);

route[push] {


    xlog("suspending transaction");

sleep(5);
t_reply(100,"RESUME");
route (resume_route);


}
route[resume_route] {

   xlog("resuming transaction");


if (!mid_registrar_lookup("location")) {
            t_reply(404, "Not Found");
exit;
}

       t_relay();

      exit;
  }



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


Re: [OpenSIPS-Users] Suspending a transaction

2023-02-02 Thread Răzvan Crainea
Not sure how t_suspend works, but if you're trying to run a script and 
fetch the output, then continue processing, you can use the exec async 
functions[1].


[1] https://opensips.org/docs/modules/3.3.x/exec.html#afunc_exec

Best regards,

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

On 12/30/22 18:12, nutxase via Users wrote:

Hi Guys

How do i suspend a transaction then run a script then resume it similar 
to how kamailio does t_suspend?




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


Re: [OpenSIPS-Users] Opensips stops responding to TLS

2023-02-02 Thread Răzvan Crainea

Hello!

Does it stop to any TLS operation, even for new ones? What TLS lib are 
you using, openssl or wolfssl?

Are there any errors in the logs related to TLS?

Best regards,

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

On 12/30/22 16:00, L S wrote:

One more thing:

log_level=4
open_files_limit=32768

At the time Opensips stops responding to TLS, it seems like it stops 
writing to log file too even though it continues handling the non-TLS SIP.


Thanks.

On Thu, Dec 29, 2022, 5:51 PM L S > wrote:


Just wanted to add the traffic between the client and Opensips
below. It seems Opensips keeps on sending RESET.

We have the tcp_max_connections at default value. That value (2048)
works fine in 1.11.5.

Thanks.

client opensipsSSL142Client Hello
client opensipsSSL142[TCP Retransmission] Client Hello
opensipsclient TCP54sips > 5071 [RST] Seq=1 Win=0 Len=0
client opensipsSSL142[TCP Retransmission] Client Hello
opensipsclient TCP54sips > 5064 [RST] Seq=1 Win=0 Len=0
client opensipsTCP74[TCP Port numbers reused] 5071 > sips [SYN]
Seq=0 Win=8192 Len=0 MSS=1460 WS=1
opensipsclient TCP54sips > 5071 [RST, ACK] Seq=1 Ack=1 Win=0 Len=0
client opensipsTCP74[TCP Port numbers reused] 5064 > sips [SYN]
Seq=0 Win=8192 Len=0 MSS=1460 WS=1
opensipsclient TCP54sips > 5064 [RST, ACK] Seq=1 Ack=1 Win=0 Len=0
client opensipsTCP74[TCP Port numbers reused] 5080 > sips [SYN]
Seq=0 Win=8192 Len=0 MSS=1460 WS=1

On Thu, Dec 29, 2022, 9:27 AM L S mailto:efes99...@gmail.com>> wrote:

Hi,

We are in the process of migrating from 1.11.5 tls to 3.2.9, and
we are running into an issue with TLS.

Opensips stops handling TLS within a few minutes after it is
started; e.g. stops responding to Client Hellos. There is no
more outgoing TLS traffic from the Opensips server. When we
restart Opensips, it goes back to normal for a while, then stops
responding to TLS requests again.

I don't see any errors in logs.
The server runs Centos 7,  openssl 1.1.1q.

1.11.5 works fine.

Can this be a memory issue? We use S_memory 512 and P_memory 8.
Opensips 1.11.5 works fine with the same settings. TCP
parameters have their default values.

How can we debug this? Any suggestions would be appreciated.

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


Re: [OpenSIPS-Users] invalid contact wss

2023-02-02 Thread Răzvan Crainea

Make sure you fix the WSS client's contact using fix_nated_contact();

Best regards,

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

On 1/19/23 20:27, nutxase via Users wrote:

Hi guys

So i notice when i register a WSS client to opensips the contact shows 
something like

Contact": "sip:62dntqm1@rwtjcrhyne3j.invalid;transport=wss",

which causes inbound calls to not route and show 476 unresolvable 
destination.


any tips of where to look here?


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