Re: [OpenSIPS-Users] no TLS client domain found error

2022-05-17 Thread Jehanzaib Younis
Hi Bogdan,
That's the problem, when I try to add the client_domain I get an error.
Actually, I have a working config for webrtc but now I am adding a new
domain for MS teams direct route. In fact, any other domain gives an error.
If I disable MS Teams domain, the opensips do not give an error message and
my webrtc client can connect without any issue.

loadmodule "tls_mgm.so"
modparam("tls_mgm", "tls_library", "wolfssl")

 (WebRTC) Client
modparam("tls_mgm", "server_domain", "sip.mywebphone.xx")
modparam("tls_mgm", "certificate",
"[sip.mywebphone.xx]/etc/letsencrypt/live/sip.mywebphone.xx/cert.pem")
modparam("tls_mgm", "private_key",
"[sip.mywebphone.xx]/etc/letsencrypt/live/sip.mywebphone.xx/privkey.pem")
modparam("tls_mgm", "ca_list",
"[sip.mywebphone.xx]/etc/letsencrypt/live/sip.mywebphone.xx/fullchain.pem")
modparam("tls_mgm", "ca_dir",
"[sip.mywebphone.xx]/etc/letsencrypt/live/sip.mywebphone.xx")
modparam("tls_mgm", "tls_method", "[sip.mywebphone.xx]SSLv23")
modparam("tls_mgm", "verify_cert", "[sip.mywebphone.xx]1")
modparam("tls_mgm", "require_cert", "[sip.mywebphone.xx]1")

### This is for MS-Teams direct route
modparam("tls_mgm", "server_domain", "dom1.formsteams.com")
modparam("tls_mgm", "client_domain", "dom1.formsteams.com")
modparam("tls_mgm", "certificate", "[dom1.formsteams.com
]/etc/letsencrypt/live/dom1.formsteams.com/cert.pem")
modparam("tls_mgm", "private_key", "[dom1.formsteams.com
]/etc/letsencrypt/live/dom1.formsteams.com/privkey.pem")
modparam("tls_mgm", "ca_list", "[dom1.formsteams.com]/etc/letsencrypt/live/
dom1.formsteams.com/fullchain.pem")
modparam("tls_mgm", "ca_dir", "[dom1.formsteams.com]/etc/letsencrypt/live/
dom1.formsteams.com")
modparam("tls_mgm", "tls_method", "[dom1.formsteams.com]SSLv23")
modparam("tls_mgm", "verify_cert", "[dom1.formsteams.com]1")
modparam("tls_mgm", "require_cert", "[dom1.formsteams.com]1")
modparam("tls_mgm", "client_sip_domain_avp", "tls_sip_dom")

When i enable the MS-Teams direct route domain i get the below error:
no certificate for tls domain ' dom1.formsteams.com ' defined


Regards,
Jehanzaib


On Wed, May 18, 2022 at 3:04 AM Bogdan-Andrei Iancu 
wrote:

> Hi Jehanzaib,
>
> What are the TLS client domains you have defined in your tls_mgm module ?
>
> Regards,
>
> Bogdan-Andrei Iancu
>
> OpenSIPS Founder and Developer
>   https://www.opensips-solutions.com
> OpenSIPS eBootcamp 23rd May - 3rd June 2022
>   https://opensips.org/training/OpenSIPS_eBootcamp_2022/
>
> On 5/17/22 4:32 PM, Jehanzaib Younis wrote:
>
> Hi,
>
> I am having trouble to send/receive OPTIONS to ms teams.
> Using the dispatcher module. The socket is defined as tls:*mysbcip*:5061
> Looks like when my opensips (3.2.x) tries to send OPTIONS. it is giving me
> the following error
>
> ERROR:proto_tls:proto_tls_conn_init: no TLS client domain found
> ERROR:core:tcp_conn_create: failed to do proto 3 specific init for conn
> 0x7f00ef2a85a0
> ERROR:core:tcp_async_connect: tcp_conn_create failed
> ERROR:proto_tls:proto_tls_send: async TCP connect failed
> ERROR:tm:msg_send: send() to 52.114.76.76:5061 for proto tls/3 failed
> ERROR:tm:t_uac: attempt to send to '
> sip:sip3.pstnhub.microsoft.com:5061;transport:tls' failed
>
> I am setting the Contact as 
>
> Looks like the client domain is used for outgoing TLS connection but no
> idea which domain i need to add here. The socket is my opensips ip address.
>
> Has anyone seen a similar kind of behaviour?
>
> Thank you.
>
> Regards,
> Jehanzaib
>
> ___
> 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


Re: [OpenSIPS-Users] no TLS client domain found error

2022-05-17 Thread Ahmed Rehan
Hello Jehanzeb
You need to add your own domain name as client domain and server domain as
well . There will be two set of entries for tls_mgm , one set of entries
will be client_domain and one set of entries will be for Server_domain

Its flow is like , when an options is sent to MS servers, opensips is
acting as a client , and when a reply is sent from MS servers Opensips will
act as a server for your domain name

hope it clears

On Tue, May 17, 2022 at 6:32 PM Jehanzaib Younis 
wrote:

> Hi,
>
> I am having trouble to send/receive OPTIONS to ms teams.
> Using the dispatcher module. The socket is defined as tls:*mysbcip*:5061
> Looks like when my opensips (3.2.x) tries to send OPTIONS. it is giving me
> the following error
>
> ERROR:proto_tls:proto_tls_conn_init: no TLS client domain found
> ERROR:core:tcp_conn_create: failed to do proto 3 specific init for conn
> 0x7f00ef2a85a0
> ERROR:core:tcp_async_connect: tcp_conn_create failed
> ERROR:proto_tls:proto_tls_send: async TCP connect failed
> ERROR:tm:msg_send: send() to 52.114.76.76:5061 for proto tls/3 failed
> ERROR:tm:t_uac: attempt to send to 
> 'sip:sip3.pstnhub.microsoft.com:5061;transport:tls'
> failed
>
> I am setting the Contact as 
>
> Looks like the client domain is used for outgoing TLS connection but no
> idea which domain i need to add here. The socket is my opensips ip address.
>
> Has anyone seen a similar kind of behaviour?
>
> Thank you.
>
> Regards,
> Jehanzaib
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>


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


Re: [OpenSIPS-Users] Drouting relay issue

2022-05-17 Thread Volkan Oransoy
Hi Bogdan

Yes, TCP stack works as anticipated.

Thanks

Volkan Oransoy
On 17 May 2022 16:02 +0100, Bogdan-Andrei Iancu , wrote:
> Thanks on the follow up here. I guess you need to switch to TCP, right ?
>
> Regards,
> Bogdan-Andrei Iancu
>
> OpenSIPS Founder and Developer
> https://www.opensips-solutions.com
> OpenSIPS eBootcamp 23rd May - 3rd June 2022
> https://opensips.org/training/OpenSIPS_eBootcamp_2022/
> On 5/17/22 2:10 PM, Volkan Oransoy wrote:
> > Hi all,
> >
> > For further reference, the issue is related to UDP fragmentation. 
> > Digitalocean droplet network doesn’t route fragmented packets. I can see 
> > only the first part of the fragmented packet, not the subsequent one. So 
> > the destination fails with “ICMP ip reassembly time exceeded, length 556” 
> > at os network.
> >
> > Cheers
> >
> > Volkan Oransoy
> > On 11 May 2022 11:52 +0100, Volkan Oransoy , wrote:
> > > I think the screenshot has been discarded by the mailman. The sip traffic 
> > > is as follows. The proxy tries to retransmit and fails after three more 
> > > attempts.
> > >
> > > ──┬─ ──┬─ ──┬─
> > >  10:47:32.603828 │ INVITE (SDP) │ │
> > >  +0.000347 │ ──> │ │
> > >  10:47:32.604175 │ 100 Giving it a try │ │
> > >  +0.001474 │ <── │ │
> > >  10:47:32.605649 │ │ INVITE (SDP) │
> > >  +0.490742 │ │ ──> │
> > >  10:47:33.096391 │ │ INVITE (SDP) │
> > >  +1.001859 │ │ >>> │
> > >  10:47:34.098250 │ │ INVITE (SDP) │
> > >  +1.953642 │ │ >>> │
> > >  10:47:36.051892 │ │ INVITE (SDP) │
> > >  +1.603582 │ │ >>> │
> > >  10:47:37.655474 │ 408 Request Timeout │ │
> > >  +0.001615 │ <── │ │
> > >  10:47:37.657089 │ ACK │ │
> > >  │ ──> │ │
> > >
> > > Volkan Oransoy
> > > On 11 May 2022 11:14 +0100, Volkan Oransoy , wrote:
> > > > Hi all,
> > > >
> > > > I have an interesting issue with one of my test setups. I have a simple 
> > > > routing script which gets the gateway id directly from the header 
> > > > originating from a Freeswith box. The system finds and sets the request 
> > > > URL as anticipated. But even if I can see the request on the proxy, I 
> > > > can't see the traffic on the destination. Interestingly, the same proxy 
> > > > can register to the same destination with uac_registrant as a UAC. And 
> > > > I can receive calls from the same destination. Is there anything 
> > > > missing to route this traffic correctly?
> > > >
> > > > Thanks in advance.
> > > >
> > > > route[to_gateway] {
> > > >         if ( route_to_gw($hdr(X-GWID)) ) {
> > > >                 route(relay);
> > > >         }
> > > > }
> > > > route[relay] {
> > > >         if (is_method("INVITE")) {
> > > >                 t_on_branch("per_branch_ops");
> > > >                 t_on_reply("handle_nat");
> > > >                 t_on_failure("failure");
> > > >         }
> > > >         if (!t_relay()) {
> > > >                 send_reply(500,"Internal Error");
> > > >         }
> > > >         exit;
> > > > }
> > > >
> > > > The database structure is as follows;
> > > >
> > > > opensips=# select * from dr_gateways;
> > > >  id | gwid | type |           address            | strip | pri_prefix | 
> > > > attrs | probe_mode | state | socket | description
> > > > +--+--+--+---++---++---++-
> > > >   6 | 5    |    2 | sip:testgw.bulutfon.net:5060 |     0 |            | 
> > > >       |          0 |     0 |        | 5
> > > >
> > > > Here is the INVITE request sent to the destination, which fails as in 
> > > > the screenshot.
> > > >
> > > > INVITE sip:905551234...@testgw.bulutfon.net:5060 SIP/2.0
> > > > Record-Route: 
> > > > Via: SIP/2.0/UDP 2.2.2.2:5060;branch=z9hG4bK372.d935ecb2.0
> > > > Via: SIP/2.0/UDP 
> > > > 1.1.1.1:6080;received=1.1.1.1;rport=6080;branch=z9hG4bK99mtDaevmN7Nj
> > > > Max-Forwards: 67
> > > > From: "+90850885" 
> > > > ;tag=1jcyr93emrjDQ
> > > > To: 
> > > > Call-ID: aefb8c60-426b-123b-8ca8-82a722ba4f75
> > > > CSeq: 51067506 INVITE
> > > > Contact: 
> > > > Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, 
> > > > REGISTER, REFER, NOTIFY
> > > > Supported: timer, path, replaces
> > > > Allow-Events: talk, hold, conference, refer
> > > > Content-Type: application/sdp
> > > > Content-Disposition: session
> > > > Content-Length: 621
> > > > Remote-Party-ID: "+90850885" 
> > > > ;party=calling;screen=yes;privacy=off
> > > >
> > > > v=0
> > > > o=FreeSWITCH 1651210438 1651210439 IN IP4 1.1.1.1
> > > > s=FreeSWITCH
> > > > c=IN IP4 1.1.1.1
> > > > t=0 0 ...
> > > >
> > > > 
> > > > --
> > > >
> > > > Volkan Oransoy
> >
> > ___
> > Users mailing list
> > Users@lists.opensips.org
> > 

Re: [OpenSIPS-Users] no TLS client domain found error

2022-05-17 Thread Bogdan-Andrei Iancu

Hi Jehanzaib,

What are the TLS client domains you have defined in your tls_mgm module ?

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
OpenSIPS eBootcamp 23rd May - 3rd June 2022
  https://opensips.org/training/OpenSIPS_eBootcamp_2022/

On 5/17/22 4:32 PM, Jehanzaib Younis wrote:

Hi,

I am having trouble to send/receive OPTIONS to ms teams.
Using the dispatcher module. The socket is defined as tls:*mysbcip*:5061
Looks like when my opensips (3.2.x) tries to send OPTIONS. it is 
giving me the following error

*
*
ERROR:proto_tls:proto_tls_conn_init: no TLS client domain found
ERROR:core:tcp_conn_create: failed to do proto 3 specific init for 
conn 0x7f00ef2a85a0

ERROR:core:tcp_async_connect: tcp_conn_create failed
ERROR:proto_tls:proto_tls_send: async TCP connect failed
ERROR:tm:msg_send: send() to 52.114.76.76:5061 
 for proto tls/3 failed
ERROR:tm:t_uac: attempt to send to 
'sip:sip3.pstnhub.microsoft.com:5061;transport:tls' failed


I am setting the Contact as 

Looks like the client domain is used for outgoing TLS connection but 
no idea which domain i need to add here. The socket is my opensips ip 
address.


Has anyone seen a similar kind of behaviour?

Thank you.

Regards,
Jehanzaib

___
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] Drouting relay issue

2022-05-17 Thread Bogdan-Andrei Iancu

Thanks on the follow up here. I guess you need to switch to TCP, right ?

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
OpenSIPS eBootcamp 23rd May - 3rd June 2022
  https://opensips.org/training/OpenSIPS_eBootcamp_2022/

On 5/17/22 2:10 PM, Volkan Oransoy wrote:

Hi all,

For further reference, the issue is related to UDP fragmentation. 
Digitalocean droplet network doesn’t route fragmented packets. I can 
see only the first part of the fragmented packet, not the subsequent 
one. So the destination fails with “ICMP ip reassembly time exceeded, 
length 556” at os network.


Cheers

Volkan Oransoy
On 11 May 2022 11:52 +0100, Volkan Oransoy , wrote:
I think the screenshot has been discarded by the mailman. The sip 
traffic is as follows. The proxy tries to retransmit and fails after 
three more attempts.


──┬─ ──┬─ ──┬─
 10:47:32.603828 │ INVITE (SDP) │ │
 +0.000347 │ ──> │ │
 10:47:32.604175 │ 100 Giving it a try │ │
 +0.001474 │ <── │ │
 10:47:32.605649 │ │ INVITE (SDP) │
 +0.490742 │ │ ──> │
 10:47:33.096391 │ │ INVITE (SDP) │
 +1.001859 │ │ >>> │
 10:47:34.098250 │ │ INVITE (SDP) │
 +1.953642 │ │ >>> │
 10:47:36.051892 │ │ INVITE (SDP) │
 +1.603582 │ │ >>> │
 10:47:37.655474 │ 408 Request Timeout │ │
 +0.001615 │ <── │ │
 10:47:37.657089 │ ACK │ │
 │ ──> │ │

Volkan Oransoy
On 11 May 2022 11:14 +0100, Volkan Oransoy , wrote:

Hi all,

I have an interesting issue with one of my test setups. I have a 
simple routing script which gets the gateway id directly from the 
header originating from a Freeswith box. The system finds and sets 
the request URL as anticipated. But even if I can see the request on 
the proxy, I can't see the traffic on the destination. 
Interestingly, the same proxy can register to the same destination 
with uac_registrant as a UAC. And I can receive calls from the same 
destination. Is there anything missing to route this traffic correctly?


Thanks in advance.

route[to_gateway] {
        if ( route_to_gw($hdr(X-GWID)) ) {
 route(relay);
        }
}
route[relay] {
        if (is_method("INVITE")) {
 t_on_branch("per_branch_ops");
 t_on_reply("handle_nat");
 t_on_failure("failure");
        }
        if (!t_relay()) {
 send_reply(500,"Internal Error");
        }
        exit;
}

The database structure is as follows;

opensips=# select * from dr_gateways;
 id | gwid | type |           address        | strip | pri_prefix | 
attrs | probe_mode | state | socket | description

+--+--+--+---++---++---++-
  6 | 5    |    2 | sip:testgw.bulutfon.net:5060 
 |    0 |            |       |     
     0 |     0 |    | 5


Here is the INVITE request sent to the destination, which fails as 
in the screenshot.


INVITE sip:905551234...@testgw.bulutfon.net:5060 
 SIP/2.0

Record-Route: 
Via: SIP/2.0/UDP 2.2.2.2:5060;branch=z9hG4bK372.d935ecb2.0
Via: SIP/2.0/UDP 
1.1.1.1:6080;received=1.1.1.1;rport=6080;branch=z9hG4bK99mtDaevmN7Nj

Max-Forwards: 67
From: "+90850885" >;tag=1jcyr93emrjDQ
To: >

Call-ID: aefb8c60-426b-123b-8ca8-82a722ba4f75
CSeq: 51067506 INVITE
Contact: >
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, 
REGISTER, REFER, NOTIFY

Supported: timer, path, replaces
Allow-Events: talk, hold, conference, refer
Content-Type: application/sdp
Content-Disposition: session
Content-Length: 621
Remote-Party-ID: "+90850885" 
>;party=calling;screen=yes;privacy=off


v=0
o=FreeSWITCH 1651210438 1651210439 IN IP4 1.1.1.1
s=FreeSWITCH
c=IN IP4 1.1.1.1
t=0 0 ...


--

Volkan Oransoy


___
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 CP upgrade to 9.3.2

2022-05-17 Thread Bogdan-Andrei Iancu

Hi Bela,

Does you CDRviewer look like this ?



See the gear box in the right upper corner.

And be sure that the 9.3.2 version is indeed displayed in the left upper 
corner.


Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
OpenSIPS eBootcamp 23rd May - 3rd June 2022
  https://opensips.org/training/OpenSIPS_eBootcamp_2022/

On 5/17/22 10:55 AM, Bela H wrote:


Hello,

What is the best method to upgrade the control panel from 8.3.2 to 9.3.2?

I had some extra fields e.g. in CDR viewer and disappeared after 
9.3.2. It is in the file 
/var/www/html/opensips-cp/config/tools/system/cdrviewer/local.inc.php 
but not visible in the CDR viewer panel only in the detailed view for 
each call.


Also I don’t see this gear icon Bogdan mentioned in the blog: Each 
tool has its own Settings panel “accessible via the gear-icon in the 
right side of the tool header”.


Cheers,

Bela


___
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] no TLS client domain found error

2022-05-17 Thread Jehanzaib Younis
Hi,

I am having trouble to send/receive OPTIONS to ms teams.
Using the dispatcher module. The socket is defined as tls:*mysbcip*:5061
Looks like when my opensips (3.2.x) tries to send OPTIONS. it is giving me
the following error

ERROR:proto_tls:proto_tls_conn_init: no TLS client domain found
ERROR:core:tcp_conn_create: failed to do proto 3 specific init for conn
0x7f00ef2a85a0
ERROR:core:tcp_async_connect: tcp_conn_create failed
ERROR:proto_tls:proto_tls_send: async TCP connect failed
ERROR:tm:msg_send: send() to 52.114.76.76:5061 for proto tls/3 failed
ERROR:tm:t_uac: attempt to send to
'sip:sip3.pstnhub.microsoft.com:5061;transport:tls'
failed

I am setting the Contact as 

Looks like the client domain is used for outgoing TLS connection but no
idea which domain i need to add here. The socket is my opensips ip address.

Has anyone seen a similar kind of behaviour?

Thank you.

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


Re: [OpenSIPS-Users] Drouting relay issue

2022-05-17 Thread Volkan Oransoy
Hi all,

For further reference, the issue is related to UDP fragmentation. Digitalocean 
droplet network doesn’t route fragmented packets. I can see only the first part 
of the fragmented packet, not the subsequent one. So the destination fails with 
“ICMP ip reassembly time exceeded, length 556” at os network.

Cheers

Volkan Oransoy
On 11 May 2022 11:52 +0100, Volkan Oransoy , wrote:
> I think the screenshot has been discarded by the mailman. The sip traffic is 
> as follows. The proxy tries to retransmit and fails after three more attempts.
>
> ──┬─ ──┬─ ──┬─
>  10:47:32.603828 │ INVITE (SDP) │ │
>  +0.000347 │ ──> │ │
>  10:47:32.604175 │ 100 Giving it a try │ │
>  +0.001474 │ <── │ │
>  10:47:32.605649 │ │ INVITE (SDP) │
>  +0.490742 │ │ ──> │
>  10:47:33.096391 │ │ INVITE (SDP) │
>  +1.001859 │ │ >>> │
>  10:47:34.098250 │ │ INVITE (SDP) │
>  +1.953642 │ │ >>> │
>  10:47:36.051892 │ │ INVITE (SDP) │
>  +1.603582 │ │ >>> │
>  10:47:37.655474 │ 408 Request Timeout │ │
>  +0.001615 │ <── │ │
>  10:47:37.657089 │ ACK │ │
>  │ ──> │ │
>
> Volkan Oransoy
> On 11 May 2022 11:14 +0100, Volkan Oransoy , wrote:
> > Hi all,
> >
> > I have an interesting issue with one of my test setups. I have a simple 
> > routing script which gets the gateway id directly from the header 
> > originating from a Freeswith box. The system finds and sets the request URL 
> > as anticipated. But even if I can see the request on the proxy, I can't see 
> > the traffic on the destination. Interestingly, the same proxy can register 
> > to the same destination with uac_registrant as a UAC. And I can receive 
> > calls from the same destination. Is there anything missing to route this 
> > traffic correctly?
> >
> > Thanks in advance.
> >
> > route[to_gateway] {
> >         if ( route_to_gw($hdr(X-GWID)) ) {
> >                 route(relay);
> >         }
> > }
> > route[relay] {
> >         if (is_method("INVITE")) {
> >                 t_on_branch("per_branch_ops");
> >                 t_on_reply("handle_nat");
> >                 t_on_failure("failure");
> >         }
> >         if (!t_relay()) {
> >                 send_reply(500,"Internal Error");
> >         }
> >         exit;
> > }
> >
> > The database structure is as follows;
> >
> > opensips=# select * from dr_gateways;
> >  id | gwid | type |           address            | strip | pri_prefix | 
> > attrs | probe_mode | state | socket | description
> > +--+--+--+---++---++---++-
> >   6 | 5    |    2 | sip:testgw.bulutfon.net:5060 |     0 |            |     
> >   |          0 |     0 |        | 5
> >
> > Here is the INVITE request sent to the destination, which fails as in the 
> > screenshot.
> >
> > INVITE sip:905551234...@testgw.bulutfon.net:5060 SIP/2.0
> > Record-Route: 
> > Via: SIP/2.0/UDP 2.2.2.2:5060;branch=z9hG4bK372.d935ecb2.0
> > Via: SIP/2.0/UDP 
> > 1.1.1.1:6080;received=1.1.1.1;rport=6080;branch=z9hG4bK99mtDaevmN7Nj
> > Max-Forwards: 67
> > From: "+90850885" 
> > ;tag=1jcyr93emrjDQ
> > To: 
> > Call-ID: aefb8c60-426b-123b-8ca8-82a722ba4f75
> > CSeq: 51067506 INVITE
> > Contact: 
> > Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, 
> > REFER, NOTIFY
> > Supported: timer, path, replaces
> > Allow-Events: talk, hold, conference, refer
> > Content-Type: application/sdp
> > Content-Disposition: session
> > Content-Length: 621
> > Remote-Party-ID: "+90850885" 
> > ;party=calling;screen=yes;privacy=off
> >
> > v=0
> > o=FreeSWITCH 1651210438 1651210439 IN IP4 1.1.1.1
> > s=FreeSWITCH
> > c=IN IP4 1.1.1.1
> > t=0 0 ...
> >
> > 
> > --
> >
> > Volkan Oransoy
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Need some help in clusterer table and its use in opensips 3.2 .

2022-05-17 Thread Răzvan Crainea
No, there is no setting to identify a node based on cluster_id + 
node_id. Only the node_id is the identifier, so if you are using 
different servers, you should be using different node ids.


Best regards,

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

On 5/17/22 12:43, Sasmita Panda wrote:

Hi,

I am using location clustering .

Only the location table data is getting synched in the cluster .

My concern is , when I am saving the node information in clusterer table 
, is there a way I can define the cluster ID in config ?
So , if I have 2 different clusterer then my node could identify itself 
through cluster_id and node_id combination .



In opensips 2.2 , there is a parameter cluster_id to set in config . But 
in 3.2 this parameter is not present .



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


On Tue, May 17, 2022 at 1:32 PM Răzvan Crainea > wrote:


Hi, Sasmita!

I don't fully understand your use case - you said it is using node 1 in
cluster 1 - it is using it for what?
A cluster is used for a specific replication feature (i.e. dialog
replication, ratelimit pipes replication). When you specify you want to
do a specific replication, that's where you specify the cluster (i.e.
dialog replication [1]). So what kind of replication feature are you
using, that is not properly identifying the nodes?

[1]

https://opensips.org/docs/modules/3.2.x/dialog.html#param_dialog_replication_cluster



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

On 5/12/22 11:43, Sasmita Panda wrote:
 > Hi ,
 >
 > my_node_id parameter is to define that particular node id . But
how will
 > I define the cluster_id parameter? I want to differentiate both
clusters .
 > I have added my_node_id parameter already . But by default its
looking
 > for cluster_id:1 . But in the database I have defined cluster_id :2 .
 >
 > modparam("clusterer", "my_node_id", 1)
 >
 > How will I associate the database and config ?
 >
 > */Thanks & Regards/*
 > /Sasmita Panda/
 > /Senior Network Testing and Software Engineer/
 > /3CLogic , ph:07827611765/
 >
 >
 > On Thu, May 12, 2022 at 1:20 PM Chester Lee mailto:ches...@zigbang.com>
 > >> wrote:
 >
 >     Hi,
 >
 >     You can specify cluster id in the config. please refer to
 >
https://opensips.org/docs/modules/3.2.x/clusterer.html#param_my_node_id

 >   
  >

 >
 >     I hope this helps.
 >
 >     Regards
 >     Chester
 >
 >
 >     2022년 5월 12일 (목) 오후 4:06, Sasmita Panda
mailto:spa...@3clogic.com>
 >     >>님이
작성:
 >
 >         Hi All ,
 >
 >         I have 2 opesips cluster each cluster has 2 opensips node . I
 >         want to define all the cluster node information in a single
 >         opensips database .
 >
 >         My clusterer table looks like below .
 >
 >   
  +++-+---+---+-+--+--+---++

 >         | id | cluster_id | node_id | url                   | state |
 >         no_ping_retries | priority | sip_addr | flags |
description    |
 >   
  +++-+---+---+-+--+--+---++

 >         |  1 |          1 |       1 | bin:1.1.1.1:

 >         > |     1 |
           3 |       50 |

 >         NULL     | seed  | Node A         |
 >         |  2 |          1 |       2 | bin:2.2.2.2:

 >         >  |     1 |  
             3 |       50 |

 >         NULL     | seed  | Node B         |
 >         |  3 |          2 |       1 | bin:3.3.3.3:

 >         > |     1 |
           3 |       50 |

 >         NULL     | NULL  | cluster2 Node1 |
 >         |  4 |          2 |       2 | bin:4.4.4.4:

 >         > |     1 |
           3 |       50 |

 >         NULL     | NULL  | 

Re: [OpenSIPS-Users] Need some help in clusterer table and its use in opensips 3.2 .

2022-05-17 Thread Sasmita Panda
Hi,

I am using location clustering .

Only the location table data is getting synched in the cluster .

My concern is , when I am saving the node information in clusterer table ,
is there a way I can define the cluster ID in config ?
So , if I have 2 different clusterer then my node could identify itself
through cluster_id and node_id combination .


In opensips 2.2 , there is a parameter cluster_id to set in config . But in
3.2 this parameter is not present .


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


On Tue, May 17, 2022 at 1:32 PM Răzvan Crainea  wrote:

> Hi, Sasmita!
>
> I don't fully understand your use case - you said it is using node 1 in
> cluster 1 - it is using it for what?
> A cluster is used for a specific replication feature (i.e. dialog
> replication, ratelimit pipes replication). When you specify you want to
> do a specific replication, that's where you specify the cluster (i.e.
> dialog replication [1]). So what kind of replication feature are you
> using, that is not properly identifying the nodes?
>
> [1]
>
> https://opensips.org/docs/modules/3.2.x/dialog.html#param_dialog_replication_cluster
>
> Răzvan Crainea
> OpenSIPS Core Developer
> http://www.opensips-solutions.com
>
> On 5/12/22 11:43, Sasmita Panda wrote:
> > Hi ,
> >
> > my_node_id parameter is to define that particular node id . But how will
> > I define the cluster_id parameter? I want to differentiate both clusters
> .
> > I have added my_node_id parameter already . But by default its looking
> > for cluster_id:1 . But in the database I have defined cluster_id :2 .
> >
> > modparam("clusterer", "my_node_id", 1)
> >
> > How will I associate the database and config ?
> >
> > */Thanks & Regards/*
> > /Sasmita Panda/
> > /Senior Network Testing and Software Engineer/
> > /3CLogic , ph:07827611765/
> >
> >
> > On Thu, May 12, 2022 at 1:20 PM Chester Lee  > > wrote:
> >
> > Hi,
> >
> > You can specify cluster id in the config. please refer to
> >
> https://opensips.org/docs/modules/3.2.x/clusterer.html#param_my_node_id
> > <
> https://opensips.org/docs/modules/3.2.x/clusterer.html#param_my_node_id>
> >
> > I hope this helps.
> >
> > Regards
> > Chester
> >
> >
> > 2022년 5월 12일 (목) 오후 4:06, Sasmita Panda  > >님이 작성:
> >
> > Hi All ,
> >
> > I have 2 opesips cluster each cluster has 2 opensips node . I
> > want to define all the cluster node information in a single
> > opensips database .
> >
> > My clusterer table looks like below .
> >
> >
>  
> +++-+---+---+-+--+--+---++
> > | id | cluster_id | node_id | url   | state |
> > no_ping_retries | priority | sip_addr | flags | description|
> >
>  
> +++-+---+---+-+--+--+---++
> > |  1 |  1 |   1 | bin:1.1.1.1:
> >  | 1 |   3 |   50 |
> > NULL | seed  | Node A |
> > |  2 |  1 |   2 | bin:2.2.2.2:
> >   | 1 |   3 |   50 |
> > NULL | seed  | Node B |
> > |  3 |  2 |   1 | bin:3.3.3.3:
> >  | 1 |   3 |   50 |
> > NULL | NULL  | cluster2 Node1 |
> > |  4 |  2 |   2 | bin:4.4.4.4:
> >  | 1 |   3 |   50 |
> > NULL | NULL  | cluster2 Node2 |
> >
>  
> +++-+---+---+-+--+--+---++
> >
> > In pensips 3.2 there is no cluster_id parameter to define in the
> > config . In the config I don't want to add the IP in the config
> > . For cluster 2 , when I am defining node 1 , its taking the
> > value of node 1 of cluster 1 .
> >
> > Is this possible anyhow or I have to save the data in a
> > different database ?
> >
> >
> > */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
> > 
> >
> >
> >
> > --
> > __
> >
> >
> > 이 기 원 CTO실 / 매니저
> > (주)직방 | 010.6479.1321 | ches...@zigbang.com
> > 
> > 
> > 

[OpenSIPS-Users] Wildcard domain certificate for tls

2022-05-17 Thread ideanet help
Hi Dear community members,

I have a few client domains for TLS. Is there any way I can use a wildcard
domain like *.mytestdomain.com and use that in the certificate? This way I
do not have to create a certificate for each domain.

My config works fine with single domain which i am using like this:

modparam("tls_mgm", "certificate",
"[sip.tls.xx.xx]/etc/letsencrypt/live/sip.tls.xx.xx/cert.pem")

I am using wolfssl as tls_library.

Opensips version is 3.3


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


Re: [OpenSIPS-Users] Need some help in clusterer table and its use in opensips 3.2 .

2022-05-17 Thread Răzvan Crainea

Hi, Sasmita!

I don't fully understand your use case - you said it is using node 1 in 
cluster 1 - it is using it for what?
A cluster is used for a specific replication feature (i.e. dialog 
replication, ratelimit pipes replication). When you specify you want to 
do a specific replication, that's where you specify the cluster (i.e. 
dialog replication [1]). So what kind of replication feature are you 
using, that is not properly identifying the nodes?


[1] 
https://opensips.org/docs/modules/3.2.x/dialog.html#param_dialog_replication_cluster


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

On 5/12/22 11:43, Sasmita Panda wrote:

Hi ,

my_node_id parameter is to define that particular node id . But how will 
I define the cluster_id parameter? I want to differentiate both clusters .
I have added my_node_id parameter already . But by default its looking 
for cluster_id:1 . But in the database I have defined cluster_id :2 .


modparam("clusterer", "my_node_id", 1)

How will I associate the database and config ?

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


On Thu, May 12, 2022 at 1:20 PM Chester Lee > wrote:


Hi,

You can specify cluster id in the config. please refer to
https://opensips.org/docs/modules/3.2.x/clusterer.html#param_my_node_id


I hope this helps.

Regards
Chester


2022년 5월 12일 (목) 오후 4:06, Sasmita Panda mailto:spa...@3clogic.com>>님이 작성:

Hi All ,

I have 2 opesips cluster each cluster has 2 opensips node . I
want to define all the cluster node information in a single
opensips database .

My clusterer table looks like below .


+++-+---+---+-+--+--+---++
| id | cluster_id | node_id | url                   | state |
no_ping_retries | priority | sip_addr | flags | description    |

+++-+---+---+-+--+--+---++
|  1 |          1 |       1 | bin:1.1.1.1:
 |     1 |               3 |       50 |
NULL     | seed  | Node A         |
|  2 |          1 |       2 | bin:2.2.2.2:
  |     1 |               3 |       50 |
NULL     | seed  | Node B         |
|  3 |          2 |       1 | bin:3.3.3.3:
 |     1 |               3 |       50 |
NULL     | NULL  | cluster2 Node1 |
|  4 |          2 |       2 | bin:4.4.4.4:
 |     1 |               3 |       50 |
NULL     | NULL  | cluster2 Node2 |

+++-+---+---+-+--+--+---++

In pensips 3.2 there is no cluster_id parameter to define in the
config . In the config I don't want to add the IP in the config 
. For cluster 2 , when I am defining node 1 , its taking the

value of node 1 of cluster 1 .

Is this possible anyhow or I have to save the data in a
different database ?


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




-- 
__



이 기 원 CTO실 / 매니저
(주)직방 | 010.6479.1321 | ches...@zigbang.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


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


[OpenSIPS-Users] OpenSIPS CP upgrade to 9.3.2

2022-05-17 Thread Bela H

Hello,

What is the best method to upgrade the control panel from 8.3.2 to 9.3.2?
I had some extra fields e.g. in CDR viewer and disappeared after 9.3.2. It is 
in the file 
/var/www/html/opensips-cp/config/tools/system/cdrviewer/local.inc.php but not 
visible in the CDR viewer panel only in the detailed view for each call.

Also I don’t see this gear icon Bogdan mentioned in the blog: Each tool has its 
own Settings panel “accessible via the gear-icon in the right side of the tool 
header”.

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


Re: [OpenSIPS-Users] Cli and DB path

2022-05-17 Thread Răzvan Crainea

Hi, Ali!

Setting the database_schema_path should do the trick. Can you set it 
again and provide the logs?


Best regards,

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

On 5/14/22 02:30, Ali Alawi wrote:

Dear all,

When I install opensips3.2 using APT packages, the cli point correctly 
to mysql (mariadb) through /usr/share/opensips (Everything work fine)


However, when  installation done using git clone --recursive, the cli 
point to /usr/share/opensips  but in this time the cli doesn't find 
mysql when i try to:

opensips-cli -x database create
ERROR: path '/usr/share/opensips' to OpenSIPS DB scripts does not exist!

I notice that mysql is resides inside '/usr/local/share/opensips' 
instead of '/usr/share/opensips'
I try to include the corrected path in the default.cfg and also try 
|opensips-cli -o database_schema_path=|

|But I come up with no success|
|Any suggestions please? |

Regards,
Ali

___
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