[OpenSIPS-Users] IMPORTANT: OpenSIPS Summit 2020 - what's next ?

2020-03-13 Thread Bogdan-Andrei Iancu

Hello all,

In the context of the COVID-19 pandemic, we reach back to you, the 
community, to understand what people expect from the upcoming OpenSIPS 
Summit May 2020, Amsterdam.


Safety of people is first and there is no trade off here. There are 
risks of infection and also risks of traveling with more and more 
borders being closed and flights canceled. Nevertheless life goes on, 
the community still needs the OpenSIPS value/knowledge and we are still 
committed to provide it. So, the dilemma is how should we balance both.


By filling in the next form, you will let us know your opinion on this 
delicate matter, concerning both us and you, so please help us to make 
the right choice.


http://bit.ly/2IKgmtm

And do not forget, your safely and your opinion matter to us !

Best regards,

--
Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
OpenSIPS Summit, Amsterdam, May 2020
  https://www.opensips.org/events/Summit-2020Amsterdam/

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


[OpenSIPS-Users] Active-Pasive Dialog Replication

2020-03-13 Thread Social Boh

Hello,

I'm testing Active-Pasive dialog replication with Virtual IP so the idea 
is if Active node go down, the Pasive begin Active and take the Active 
sharing tag to manage the active dialogs. On the DIALOG Module, i'm using:


node 1 (Active)

modparam("dialog", "db_mode", 0)
modparam("dialog", "dlg_sharing_tag", "vip=active")
modparam("dialog", "dialog_replication_cluster", 3)

node 2 (Pasive)

modparam("dialog", "db_mode", 0)
modparam("dialog", "dlg_sharing_tag", "vip=backup")
modparam("dialog", "dialog_replication_cluster", 3)

My test is very simple. Make a call between two user, answer and then 
stop Active OpenSIPs. I'm using Keepalived to transfer Virtual IP and 
sharing tag from the Active OpenSIPs to Pasive. The audio still 
funcioning because RTPENGINE is on another server. The problem is with 
Dialog Termination. If a user hangup, the BYE go from the user to VIP 
but the Pasive OpenSIPs does not answer although the tag is correctly 
traslate to this Server.


Any hint, please?

--
---
I'm SoCIaL, MayBe


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


Re: [OpenSIPS-Users] Active-Pasive Dialog Replication [SOLVED]

2020-03-13 Thread Social Boh

Was a VPS Provider routing problem.

Thank you

---
I'm SoCIaL, MayBe

El 13/03/2020 a las 10:09, Social Boh escribió:

Hello,

I'm testing Active-Pasive dialog replication with Virtual IP so the 
idea is if Active node go down, the Pasive begin Active and take the 
Active sharing tag to manage the active dialogs. On the DIALOG Module, 
i'm using:


node 1 (Active)

modparam("dialog", "db_mode", 0)
modparam("dialog", "dlg_sharing_tag", "vip=active")
modparam("dialog", "dialog_replication_cluster", 3)

node 2 (Pasive)

modparam("dialog", "db_mode", 0)
modparam("dialog", "dlg_sharing_tag", "vip=backup")
modparam("dialog", "dialog_replication_cluster", 3)

My test is very simple. Make a call between two user, answer and then 
stop Active OpenSIPs. I'm using Keepalived to transfer Virtual IP and 
sharing tag from the Active OpenSIPs to Pasive. The audio still 
funcioning because RTPENGINE is on another server. The problem is with 
Dialog Termination. If a user hangup, the BYE go from the user to VIP 
but the Pasive OpenSIPs does not answer although the tag is correctly 
traslate to this Server.


Any hint, please?



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


Re: [OpenSIPS-Users] Active-Pasive Dialog Replication

2020-03-13 Thread Sharad Kumar via Users

Hi,

Can you show us that how you are creating dialogs ? and where are you 
setting your sharing tag, like this -


set_dlg_sharing_tag("vip");

Thank you


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


[OpenSIPS-Users] opensips + rtpengine

2020-03-13 Thread volga629 via Users

  
  
Hello Everyone,
Might be  somebody can point me to right
place.
Under load Rtpengine on server with 12
core can't pass 400 channels/sessions.
Mar 13 18:14:53 CentOS-77-64-minimal
rtpengine[14588]: WARNING:
[1b17077c-654e-11ea-bd31-87b1c8fc-849]: Protocol error in packet
from 136.243.43.23:47763: Ran out of ports [d3:sdp289:
WARNING:
[1be05a46-654e-11ea-b136-573b6201-849]: Protocol error in packet
from 136.243.43.23:55847: Unknown call-id [d3:sdp250:
  
It like it not closing calls properly, but
I am running  rtpengine_delete()  in loose _route on BYE or
CANCEL.

  
Here are more details

  https://github.com/sipwise/rtpengine/issues/946

  
# Handle requests within SIP dialogs
route[handle_sequential] {
    if (has_totag()) {
    if (loose_route()) {
    # BYE rtpengine_delete()
    if (is_method("BYE|CANCEL")) {
    xlog("LOOSE_ROUTE:DBG: [$rm] trying
delete rtpengine\n");
    rtpengine_delete();
    xlog("Average MOS of the entire call is
$rtpstat(MOS-average)\r\n");
    xlog("Average MOS of caller is
$(rtpstat(MOS-average)[$ft])\r\n");
    xlog("Average MOS of callee is
$(rtpstat(MOS-average)[$tt])\r\n");
    xlog("Min MOS of caller is
$(rtpstat(MOS-min)[$ft]) reported at
$(rtpstat(MOS-min-at)[$ft])\r\n");
    }
    t_relay();
    exit;

  
volga629
  
  


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


Re: [OpenSIPS-Users] Active-Pasive Dialog Replication

2020-03-13 Thread Social Boh

Hello,

I'm using Keealived for configuration:

OpensSIPs1 IP 1.2.3.4

OpenSIPs2 IP 5.6.7.8

Virtual IP: 10.11.12.13


OpenSIPs1:

*keepalived.conf*

vrrp_script check_sip {
*script "/etc/keepalived/node01.sh"*
  interval 3
  fall 2
  rise 2
}

vrrp_instance VI_OS {
  state MASTER
  interface eth0
  virtual_router_id 1
  advert_int 1
*notify /etc/keepalived/opensips.sh*
  virtual_ipaddress {
   10.11.12.13 dev eth0
  }
  track_script {
    check_sip
  }
}

each time there is a change in the servers status, keepalived ejecute 
opensips.sh script


*node01.sh*

#!/bin/bash

node01=1.2.3.4
node02=5.6.7.8
*return_code=0*
timeout 2 sipsak -s sip:$node01:5060
exit_status=$?
if [[ $exit_status -eq 0 ]]; then
  echo "sip ping successful to node01 [$node01]"
  exit $return_code
fi
timeout 2 sipsak -s sip:$node02:5060
exit_status=$?
if [[ $exit_status -eq 0 ]]; then
  echo "sip ping successful to node02 [$node02]"
  return_code=1
fi
echo "return code [$return_code]"
exit $return_code

*opensips.sh*

#!/bin/bash

TYPE=$1
NAME=$2
STATE=$3

case $STATE in
    "MASTER") /usr/sbin/opensipsctl fifo dlg_set_sharing_tag_active vip
  /usr/sbin/opensipsctl fifo nh_enable_ping 1
  exit 0
  ;;
    "BACKUP") /usr/sbin/opensipsctl fifo dlg_list_sharing_tags
  /usr/sbin/opensipsctl fifo nh_enable_ping 0
  exit 0
  ;;
    "FAULT")  /usr/sbin/opensipsctl fifo dlg_list_sharing_tags
  /usr/sbin/opensipsctl fifo nh_enable_ping 0
  exit 0
  ;;
    *)    echo "unknown state"
  exit 1
  ;;
esac

in this file I move the sharing tag and pinging NAT in the MASTER status 
and remove in BAKCUP and FAULT status


OpenSIPs2:

*keepalived.conf*

vrrp_script check_sip {
  script "/etc/keepalived/node02.sh"
  interval 3
  fall 2
  rise 2
}
vrrp_instance VI_OS {
  state BACKUP
  interface eth0
  virtual_router_id 1
  advert_int 1
  notify /etc/keepalived/opensips.sh

  virtual_ipaddress {
   10.11.12.13 dev eth0
  }
  track_script {
    check_sip
  }
}

*node02.sh*

#!/bin/bash

node01=1.2.3.4
node02=5.6.7.8
*return_code=1*
timeout 2 sipsak -s sip:$node01:5060
exit_status=$?
if [[ $exit_status -eq 0 ]]; then
  echo "sip ping successful to node01 [$node01]"
  exit $return_code
fi
timeout 2 sipsak -s sip:$node02:5060
exit_status=$?
if [[ $exit_status -eq 0 ]]; then
  echo "sip ping successful to node02 [$node02]"
  return_code=0
fi
echo "return code [$return_code]"
exit $return_code

*opensips.sh*

#!/bin/bash

TYPE=$1
NAME=$2
STATE=$3

case $STATE in
    "MASTER") /usr/sbin/opensipsctl fifo dlg_set_sharing_tag_active vip
  /usr/sbin/opensipsctl fifo nh_enable_ping 1
  exit 0
  ;;
    "BACKUP") /usr/sbin/opensipsctl fifo dlg_list_sharing_tags
  /usr/sbin/opensipsctl fifo nh_enable_ping 0
  exit 0
  ;;
    "FAULT")  /usr/sbin/opensipsctl fifo dlg_list_sharing_tags
  /usr/sbin/opensipsctl fifo nh_enable_ping 0
  exit 0
  ;;
    *)    echo "unknown state"
  exit 1
  ;;
esac

Then you have to install sipsak and change your iptables configuration.

opensips.cfg

OpenSIPs1:

listen=udp:1.2.3.4:5060
listen=udp:10.11.12.13:5060

 DIALOG module
loadmodule "dialog.so"
modparam("dialog", "dlg_match_mode", 1)
modparam("dialog", "default_timeout", 21600)
modparam("dialog", "db_mode", 0)
modparam("dialog", "dlg_sharing_tag", "vip=active")
modparam("dialog", "dialog_replication_cluster", 3)
modparam("dialog", "db_url","mysql://opensips:password@localhost/opensips")

if (is_method("INVITE")) {
    route(AUTH);
    create_dialog();
    set_dlg_sharing_tag("vip");
    do_accounting("db","cdr");
    if (isbflagset(NAT)) setflag(NAT);
    }

OpenSIPs2:

listen=udp:5.6.7.8:5060
listen=udp:10.11.12.13:5060

 DIALOG module
loadmodule "dialog.so"
modparam("dialog", "dlg_match_mode", 1)
modparam("dialog", "default_timeout", 21600)
modparam("dialog", "db_mode", 0)
modparam("dialog", "dlg_sharing_tag", "vip=backup")
modparam("dialog", "dialog_replication_cluster", 3)
modparam("dialog", "db_url","mysql://opensips:password@localhost/opensips")

same INVITE block

https://blog.voipxswitch.com/2017/12/26/kamailio-high-availability-using-keepalived/

Regards


---
I'm SoCIaL, MayBe

El 13/03/2020 a las 12:20, Sharad Kumar via Users escribió:

Hi,

Can you show us that how you are creating dialogs ? and where are you 
setting your sharing tag, like this -


set_dlg_sharing_tag("vip");

Thank you


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

Re: [OpenSIPS-Users] Active-Pasive Dialog Replication

2020-03-13 Thread Sharad Kumar via Users

Hi,

Your keepalived configuration looks good. But you need to remove 
set_dlg_sharing_tag("vip") form invite block on second opensips server.


Follow these steps to troubleshoot your issue -

1. Remove set_dlg_sharing_tag("vip") from OpenSIPS 2nd.

2. Before making a test call make sure OpenSIPS 1 has a active tag

3. Make a test call, and check dialog - opensipsctl fifo dlg_list_ctx

And make sure your dialog has a TAG attach to it.

4. Check the tag on opensips 2nd server.

5. Stop opensips service on 1st server.

6. Check tag on 2nd Opensips server. If active tag is not there then you 
need to troubleshoot keepalived.


Let me know how it goes.


Thanks you


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


Re: [OpenSIPS-Users] Active-Pasive Dialog Replication

2020-03-13 Thread Social Boh
I thin the OpenSIPs 2 need vip tag because when change to Active, he 
needs to put his tag on the Dialogs


The problem was a routing error on the VPS provider side. Now all look fine.

Thank you

Regards

---
I'm SoCIaL, MayBe

El 13/03/2020 a las 13:33, Sharad Kumar via Users escribió:

Hi,

Your keepalived configuration looks good. But you need to remove 
set_dlg_sharing_tag("vip") form invite block on second opensips server.


Follow these steps to troubleshoot your issue -

1. Remove set_dlg_sharing_tag("vip") from OpenSIPS 2nd.

2. Before making a test call make sure OpenSIPS 1 has a active tag

3. Make a test call, and check dialog - opensipsctl fifo dlg_list_ctx

And make sure your dialog has a TAG attach to it.

4. Check the tag on opensips 2nd server.

5. Stop opensips service on 1st server.

6. Check tag on 2nd Opensips server. If active tag is not there then 
you need to troubleshoot keepalived.


Let me know how it goes.


Thanks 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


[OpenSIPS-Users] ERROR:tm:w_t_relay: t_forward_nonack failed

2020-03-13 Thread Oleg Podguyko via Users

Hi
 
Sometimes I see at log
 
Mar 11 17:04:05 xx-spx-2 /usr/sbin/opensips[5577]: ERROR:tm:w_t_relay: 
t_forward_nonack failed
 
 
What does it mean?
 
--
Oleg Podguyko___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] cachedb_memcached multiple servers

2020-03-13 Thread Calvin Ellison
Does OpenSIPS support using multiple memcached servers to distribute keys
for a single cachedb_url prefix? I'd like to pool the spare memory of my
OpenSIPS servers to make more efficient use of them.


Regards,

*Calvin Ellison*
Senior Voice Operations Engineer
calvin.elli...@voxox.com
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] cachedb_memcached multiple servers

2020-03-13 Thread Jon Abrams
Look at mcrouter from Facebook. You can do a bunch of nifty things with it
sitting between OpenSIPs and the memcached servers.

- Jon Abrams

On Fri, Mar 13, 2020 at 5:22 PM Calvin Ellison 
wrote:

> Does OpenSIPS support using multiple memcached servers to distribute keys
> for a single cachedb_url prefix? I'd like to pool the spare memory of my
> OpenSIPS servers to make more efficient use of them.
>
>
> Regards,
>
> *Calvin Ellison*
> Senior Voice Operations Engineer
> calvin.elli...@voxox.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] cachedb_memcached multiple servers

2020-03-13 Thread Brett Nemeroff
I'm not aware of any way to specify a way to do this. You can however
specify multiple memcache servers and perhaps use some sort of hashing alg
to pick which one you want to use. Else you could use Jon's suggestion to
use something a little more sophisticated than vanilla memcache.

Just be sure you really know where memcache's strengths are. It's really
super fantastic.
-Brett


On Fri, Mar 13, 2020 at 5:22 PM Calvin Ellison 
wrote:

> Does OpenSIPS support using multiple memcached servers to distribute keys
> for a single cachedb_url prefix? I'd like to pool the spare memory of my
> OpenSIPS servers to make more efficient use of them.
>
>
> Regards,
>
> *Calvin Ellison*
> Senior Voice Operations Engineer
> calvin.elli...@voxox.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] cachedb_memcached multiple servers

2020-03-13 Thread Calvin Ellison
I used the following and I see connections to both of those hosts. Maybe
libmemcached is distributing keys automatically?

modparam("cachedb_memcached","cachedb_url","memcached:lrn://lrn-a,lrn-b/")

Regards,

*Calvin Ellison*
Senior Voice Operations Engineer
calvin.elli...@voxox.com
+1 (213) 285-0555

---
*voxox.com  *
5825 Oberlin Drive, Suite 5
San Diego, CA 92121
[image: Voxox]


On Fri, Mar 13, 2020 at 3:32 PM Brett Nemeroff  wrote:

> I'm not aware of any way to specify a way to do this. You can however
> specify multiple memcache servers and perhaps use some sort of hashing alg
> to pick which one you want to use. Else you could use Jon's suggestion to
> use something a little more sophisticated than vanilla memcache.
>
> Just be sure you really know where memcache's strengths are. It's really
> super fantastic.
> -Brett
>
>
> On Fri, Mar 13, 2020 at 5:22 PM Calvin Ellison 
> wrote:
>
>> Does OpenSIPS support using multiple memcached servers to distribute keys
>> for a single cachedb_url prefix? I'd like to pool the spare memory of my
>> OpenSIPS servers to make more efficient use of them.
>>
>>
>> Regards,
>>
>> *Calvin Ellison*
>> Senior Voice Operations Engineer
>> calvin.elli...@voxox.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


Re: [OpenSIPS-Users] Active-Pasive Dialog Replication

2020-03-13 Thread Sharad Kumar via Users
 That's great if problem got solved. And yes you may right we need to 
add active tag on 2nd opensips server too.


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