[OpenSIPS-Users] Multidomain TLS with opensips 3.1 part 2

2020-07-08 Thread xaled
Hi,



I got server and client tls config working in opensips.cfg and now trying to
get it running with mysql DB.



I tried to use the latest opensips-cp (I know that 3.1 is not officially
supported) to import client certificate data that I created using
opensips-cli and getting a segfault.



Maybe I should try importing client cert from cli? What would be the correct
way to import certificate in to mysql from linux shell?



9 02:29:30 test /usr/sbin/opensips[8551]: INFO:tls_mgm:init_tls_dom:
Processing TLS domain 'test-cli'

Jul  9 02:29:30 test /usr/sbin/opensips[8551]: DBG:tls_mgm:init_tls_dom: no
DH params file for tls domain 'test-cli' defined, using default '(null)'

Jul  9 02:29:30 test /usr/sbin/opensips[8551]: NOTICE:tls_mgm:init_tls_dom:
No EC curve defined

Jul  9 02:29:30 test /usr/sbin/opensips[8551]: DBG:tls_mgm:init_tls_dom:
cipher list null ... setting default

Jul  9 02:29:30 test /usr/sbin/opensips[8551]:
INFO:tls_mgm:get_ssl_ctx_verify_mode: server verification activated.

Jul  9 02:29:30 test /usr/sbin/opensips[8551]: NOTICE:tls_mgm:init_tls_dom:
no CA dir for tls 'test-cli' defined, using default '/etc/pki/CA/'

Jul  9 02:29:30 test /usr/sbin/opensips[8551]: NOTICE:tls_mgm:init_tls_dom:
no crl for tls, using none

Jul  9 02:29:30 test /usr/sbin/opensips[8551]: DBG:core:count_module_procs:
modules require 2 extra processes

Jul  9 02:29:30 test /usr/sbin/opensips[8551]: CRITICAL:core:sig_usr:
segfault in attendant (starter) process!



Thanks,

Xaled

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


Re: [OpenSIPS-Users] multi domain TLS in opensips 3.1

2020-07-08 Thread xaled
Thank you Răzvan, that solved it!


In OpenSIPS 3.1, the tls_handshake_timeout is no longer specified in the 
tls_module, but in each module that uses tls[1].
Therefore, most likely, you are looking at this parameter[2].

[1] https://www.opensips.org/Documentation/Migration-3-0-0-to-3-1-0#toc15
[2] 
https://opensips.org/docs/modules/3.1.x/proto_tls.html#param_tls_handshake_timeout

Best regards,


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


Re: [OpenSIPS-Users] Modules not inheriting db_default_url

2020-07-08 Thread Liviu Chircu

On 08.04.2020 14:15, Mark Farmer wrote:

Hi Liviu

That sounds good to me. Do you need me to do anything in order to get 
this implemented?


Mark.


Hey, Mark!

The remaining 'db_default_url' inheritance issues are now fixed on 
latest OpenSIPS '3.1' and 'master' branches, per [1]. If you could give 
it a test and let me know if you spot any issues around this topic, that 
would be awesome!


Thank you,

[1]: https://github.com/OpenSIPS/opensips/issues/2117#issuecomment-655592712

--
Liviu Chircu
www.twitter.com/liviuchircu | www.opensips-solutions.com


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


Re: [OpenSIPS-Users] How should we represent empty parameters in MI Datagram JSON

2020-07-08 Thread Adrian Fretwell

Vlad,

Thank you , that makes sense, and seems so obvious now you have said 
it!  Switch from positional to named parameters.  Works perfectly.



Kind regards,

Adrian Fretwell

Sibthorpe
Nottinghamshire

UK.

On 08/07/2020 15:28, Vlad Patrascu wrote:


Hi Adrian,

In the cases (like 'pua_publish') where there are multiple optional 
parameters that cannot be simply identified by position in the array, 
the 'params' member in the JSON-RPC request should be an Object with 
named parameters.


As such, you should have:

"params": {

    "presentity_uri": "sip:system@192.168.2.132",

    "expires": 3600,

    [...]

}

Regards,

On 06.07.2020 22:47, Adrian Fretwell wrote:


Hello,

What is the correct way to specify empty parameters in an MI call 
using JSON?


For example this call to pua_publish has two unused parameters; ETag 
and extra_headers, in the old way they were represented by a dot, but 
if I try that now I get an invalid etag message:


Pua_publish:


 
 
    - body type if body of a type different from 
default event content-type or .
 - ETag that publish should match or . if 
no ETag

 - extra headers to be added to the request or .
   - may not be present in case of update for expire

Example:

:pua_publish:fifo_reply
sip:system@192.168.2.132
3600
presence
application/pidf+xml
.
.
xmlns:dm='urn:ietf:params:xml:ns:pidf:data-model'... etc.


Would someone point me in the right direction please.


Kind regards,

Adrian Fretwell
Sibthorpe
Nottinghamshire
UK.


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

--
Vlad Patrascu
OpenSIPS Developer
http://www.opensips-solutions.com

___
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] How should we represent empty parameters in MI Datagram JSON

2020-07-08 Thread Vlad Patrascu

Hi Adrian,

In the cases (like 'pua_publish') where there are multiple optional 
parameters that cannot be simply identified by position in the array, 
the 'params' member in the JSON-RPC request should be an Object with 
named parameters.


As such, you should have:

"params": {

    "presentity_uri": "sip:system@192.168.2.132",

    "expires": 3600,

    [...]

}

Regards,

On 06.07.2020 22:47, Adrian Fretwell wrote:


Hello,

What is the correct way to specify empty parameters in an MI call 
using JSON?


For example this call to pua_publish has two unused parameters; ETag 
and extra_headers, in the old way they were represented by a dot, but 
if I try that now I get an invalid etag message:


Pua_publish:


 
 
    - body type if body of a type different from 
default event content-type or .
 - ETag that publish should match or . if no 
ETag

 - extra headers to be added to the request or .
   - may not be present in case of update for expire

Example:

:pua_publish:fifo_reply
sip:system@192.168.2.132
3600
presence
application/pidf+xml
.
.
xmlns:dm='urn:ietf:params:xml:ns:pidf:data-model'... etc.


Would someone point me in the right direction please.


Kind regards,

Adrian Fretwell
Sibthorpe
Nottinghamshire
UK.


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


--
Vlad Patrascu
OpenSIPS Developer
http://www.opensips-solutions.com

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


Re: [OpenSIPS-Users] Load Balancer Hooks

2020-07-08 Thread Chandan PR
Thanks for the info, Ben. Let me have a look.

On Wed, Jul 8, 2020 at 7:34 PM Ben Newlin  wrote:

> I don’t know if there is anything in 1.9, which is quite old, but in 2.0+
> there is an event that you can subscribe to.
>
>
>
>
> https://opensips.org/docs/modules/2.4.x/load_balancer.html#event_E_LOAD_BALANCER_STATUS
>
>
>
> Ben Newlin
>
>
>
> *From: *Users  on behalf of Chandan PR <
> chandan...@webshar.org>
> *Reply-To: *OpenSIPS users mailling list 
> *Date: *Wednesday, July 8, 2020 at 10:00 AM
> *To: *OpenSIPS users mailling list 
> *Cc: *Naveen Kumar 
> *Subject: *[OpenSIPS-Users] Load Balancer Hooks
>
>
>
> Hi,
>
>
>
> Is it possible to add hooks to notify an endpoint
>
>- when a particular destination is disabled (via lb_disable())
>- when a particular destination is enabled after a successful probing
>
> This is needed for us to slow down the requests to OpenSips when few
> destinations are down. Without this feedback loop, we won't be knowing if
> we need to limit the number of calls we need to send.
>
>
>
> We are currently on Opensips 1.9.
>
> --
>
>
>
> Regards,
>
> Chandan Ravishankar 
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>


-- 

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


Re: [OpenSIPS-Users] Load Balancer Hooks

2020-07-08 Thread Ben Newlin
I don’t know if there is anything in 1.9, which is quite old, but in 2.0+ there 
is an event that you can subscribe to.

https://opensips.org/docs/modules/2.4.x/load_balancer.html#event_E_LOAD_BALANCER_STATUS

Ben Newlin

From: Users  on behalf of Chandan PR 

Reply-To: OpenSIPS users mailling list 
Date: Wednesday, July 8, 2020 at 10:00 AM
To: OpenSIPS users mailling list 
Cc: Naveen Kumar 
Subject: [OpenSIPS-Users] Load Balancer Hooks

Hi,

Is it possible to add hooks to notify an endpoint

  *   when a particular destination is disabled (via lb_disable())
  *   when a particular destination is enabled after a successful probing
This is needed for us to slow down the requests to OpenSips when few 
destinations are down. Without this feedback loop, we won't be knowing if we 
need to limit the number of calls we need to send.

We are currently on Opensips 1.9.
--

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


[OpenSIPS-Users] Load Balancer Hooks

2020-07-08 Thread Chandan PR
Hi,

Is it possible to add hooks to notify an endpoint

   - when a particular destination is disabled (via lb_disable())
   - when a particular destination is enabled after a successful probing

This is needed for us to slow down the requests to OpenSips when few
destinations are down. Without this feedback loop, we won't be knowing if
we need to limit the number of calls we need to send.

We are currently on Opensips 1.9.
-- 

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


[OpenSIPS-Users] nat helper ping

2020-07-08 Thread Slava Bendersky via Users
Hello Everyone, 
Based on this conversation 

[ https://groups.google.com/forum/#!topic/jssip/1D3n2_MJrf8 | 
https://groups.google.com/forum/#!topic/jssip/1D3n2_MJrf8 ] 

Opensips is not set user name portion in request uri for NAT helper OPTIONS 
packet. I found RFC for proxy layer that user name portion is not required, but 
I can't find any information about UA. 

Is possible clarify what behavior should be for UA. 

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


[OpenSIPS-Users] Regarding opensips 3.0.0 logging .

2020-07-08 Thread Sasmita Panda
Hi ,

I am using below version of opensips .
version: opensips 3.0.0-beta (x86_64/linux)
flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, Q_MALLOC,
F_MALLOC, HP_MALLOC, DBG_MALLOC, CC_O0, 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.
svn revision: 3651:3664M
main.c compiled on 12:08:17 Jul 15 2019 with gcc 5.4.0

*I am running my config with log_level=3 , but in a single day it creates a
16GB log file . *


WARNING:core:timer_ticker: timer task  already
scheduled 464275150 ms ago (now 464305720 ms), delaying execution
 WARNING:core:timer_ticker: timer task  already scheduled
464275150 ms ago (now 464305720 ms), delaying execution
WARNING:core:timer_ticker: timer task  already scheduled
464275150 ms ago (now 464305720 ms), delaying execution
WARNING:core:timer_ticker: timer task  already scheduled
464275150 ms ago (now 464305720 ms), skipping execution

*Continuously this message is getting printed .  Is this a crash or what .
Please help . *

*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] OpenSIPS - Log Facility partial working

2020-07-08 Thread Valli A. Vallimamod - SIP Solutions
Hi,

You need to put the following in your rsyslog.conf:

LOCAL1.*  /var/log/opensips.log
& stop


Hope this helps.


Best Regards,
-- 
Valli A. Vallimamod
SIP Solutions
vma@sip.solutions
linkedin.com/in/vallimamod
.


> On 8 Jul 2020, at 02:18, Sharad Kumar via Users  
> wrote:
> 
> Hey guys, 
> 
> We configured the opensips server to send the logs to log facility 1 
> (opensips.log), it's working fine but at the same time it's also writing logs 
> to log facility0 (syslog).
> 
> opensips.cfg -- 
> log_level=3
> log_stderror=no
> log_facility=LOG_LOCAL1
> log_name="osips-1"
> 
> 
> rsyslog.conf - 
> LOCAL1.*  /var/log/opensips.log
> 
> opensips -v 
> 
> 
> version: opensips 2.4.7 (x86_64/linux)
> flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, F_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: 0f7cd0a7d
> main.c compiled on 07:56:19 Feb 25 2020 with gcc 6.3.0
> 
> Any help or suggestions will be highly appreciated.
> 
> Thank you
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users



Best Regards,
-- 
Valli A. Vallimamod
SIP Solutions
vma@sip.solutions
linkedin.com/in/vallimamod
.



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


[OpenSIPS-Users] Opensips & media server

2020-07-08 Thread John Tuxies
For some time now i am using an Asterisk server to register all the
internal members of the office for services. I would like to experiment
with Opensips and add in front an Opensips server with control panel. So in
total it will be an Opensips server and 2-3 Asterisk servers to distribute
the load of media services. The overall idea is Opensips to get all the
registrations on port 5060, allow users to talk to each other and once
I followed the guide of
http://www.powerpbx.org/content/opensips-v30-debian-v10-mariadb-apache-v1
and Opensips is up and running and managed to created a few users
(extensions 3000-3500) to register on it. They have payload and call seems
to be fine and the system load is really low! That's a good thing.
I would like to connect the Opensips with Asterisk and i would like some
help please. i bought the book Building telephony systems with Opensips 2nd
edition and i have seen a few things about the configuration of the
opensips but i did not manage to add in the game the Asterisk(s) servers.

Struggling with it for some time, without getting any further and i would
like to ask for some help please.
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users