Re: [OpenSIPS-Users] RabbitMQ high availability

2019-03-13 Thread Gerwin van de Steeg
Ahmed,

In theory:

You can configure RabbitMQ as a 2+ node (although i'd start with 3 nodes)
highly available cluster, and depending on how you configure it you can get
it to the point where it doesn't matter about which node you publish to to
get the message into the right exchange, all you need to do then is consume
from it.
If you then stick an HA Proxy based (or other type of network load
balancer) load balancer in front then you have a single point you can
connect to and the HA Proxy will load balance the connection from OpenSIPS
through to a running RabbitMQ broker.

That should work, but you may have to try it and find out how that all
works.




On Thu, 14 Mar 2019 at 00:37, Răzvan Crainea  wrote:

> Hi, Ahmed!
>
> None of the module supports this by themselves, but you can achieve this
> for each of them using existing tools:
> * for event_rabbitmq, you can put multiple rabbitmq subscribers in an
> event_virtual handler
> * for rabbitmq you can test in the script if the command was
> successfully sent
> Note that for both modules you need to run in synchronous mode to
> support this feature.
>
> Best regards,
> Răzvan
>
> On 3/12/19 12:54 PM, Ahmed Shabana wrote:
> > Dears ,Does any of the rabbitmq 2 modules supported at opensip 2.4.x
> support high availability mode i.e. fallback to second rabbitmq if the
> first one not working properly ?
> >
> > Also if it fail to send to the rabbmitmq does the script fail ?
> >
> >
> > ___
> > Users mailing list
> > Users@lists.opensips.org
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> >
>
> --
> Răzvan Crainea
> OpenSIPS Core Developer
>http://www.opensips-solutions.com
> Meet the OpenSIPS team at the next OpenSIPS Summit:
>https://www.opensips.org/events
>
> ___
> 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] Hide local IPs from SDP

2019-03-13 Thread Ahmed Shabana
Dears, First sorry it you received the below content of this email with wrong 
subject

The issue we face with some of our sip peers complaint that we sent in our SDP 
contains two 'c='

v=0.
o=- 1552491282093 1 IN IP4 192.168.104.200.
s=Our Local Private Media Server.
c=IN IP4 **192.168.104.200.**
t=0 0.
m=audio 36356 RTP/AVP 8 0 101.
c=IN IP4 **Public.Interface.RTPPRoxy.**
a=sendrecv.
a=rtcp:36357 IN IP4 Public.Interface.RTPPRoxy.
a=ptime:20.
a=rtpmap:0 pcmu/8000.
a=rtpmap:101 telephone-event/8000.
a=rtpmap:8 pcma/8000.

I am using RTPProxy inside the script just like below
rtpproxy_offer("nt60T60", "$avp(advertised_address)", "$avp(mediaSet)",)
rtpproxy_answer("ocnt50T50", "{{ ips.opensips }}","$avp(mediaSet)" , ) ;

how could I hide private IPs in above SDP that reach our trunk side ?

Best regards ,
Shabana

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


[OpenSIPS-Users] Recall: RabbitMQ high availability

2019-03-13 Thread Ahmed Shabana
Ahmed Shabana would like to recall the message, "RabbitMQ high availability ".
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] RabbitMQ high availability

2019-03-13 Thread Ahmed Shabana
Dears, some of our sip peers complaint that we sent in our SDP contains two 'c='

v=0.
o=- 1552491282093 1 IN IP4 192.168.104.200.
s=Our Local Private Media Server.
c=IN IP4 **192.168.104.200.**
t=0 0.
m=audio 36356 RTP/AVP 8 0 101.
c=IN IP4 **Public.Interface.RTPPRoxy.**
a=sendrecv.
a=rtcp:36357 IN IP4 Public.Interface.RTPPRoxy.
a=ptime:20.
a=rtpmap:0 pcmu/8000.
a=rtpmap:101 telephone-event/8000.
a=rtpmap:8 pcma/8000.

I am using RTPProxy inside the script just like below
rtpproxy_offer("nt60T60", "$avp(advertised_address)", "$avp(mediaSet)",)
rtpproxy_answer("ocnt50T50", "{{ ips.opensips }}","$avp(mediaSet)" , ) ;

how could I hide private IPs in above SDP that reach our trunk side ?

Best regards ,
Shabana

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


Re: [OpenSIPS-Users] Segfault in 2.4.5

2019-03-13 Thread Bogdan-Andrei Iancu

Fair enough, why not.

Regards,

Bogdan-Andrei Iancu

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

On 03/13/2019 11:48 AM, Dmitry wrote:


Hi Bogdan-Andrei,

The main point is got help with resolving the issue ASAP. I’m sorry if 
it sounds boring, but the issue is critical for me. And I understand 
that guys in the project very busy, so I try to get user’s helps.


Have a good day.

*From:*Bogdan-Andrei Iancu 
*Sent:* Wednesday, March 13, 2019 10:33 AM
*To:* OpenSIPS users mailling list ; Dmitry 


*Subject:* Re: [OpenSIPS-Users] Segfault in 2.4.5

Hi Dimitry,

What is the point of this email ? I see the ticket is opened some time 
ago and there is someone already working on it .


Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
   https://www.opensips-solutions.com
OpenSIPS Summit 2019
   https://www.opensips.org/events/Summit-2019Amsterdam/

On 03/12/2019 07:28 PM, Dmitry wrote:

Hi There,

I get segfault in opensips 2.4.5 every ~5 minutes. Could you help to fix 
it? Debug in attachment. I'm ready to give additional information if needed.

The issue on githubhttps://github.com/OpenSIPS/opensips/issues/1624

Thanks




___

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] NOTIFY BLF

2019-03-13 Thread Bogdan-Andrei Iancu

Great !

Bogdan-Andrei Iancu

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

On 03/13/2019 02:30 PM, Slava Bendersky wrote:

Hello Bogdan,
Issue has being resolved.
NOTIFY is routed properly right now. Thank you for insight

if (loose_route()) {
if(is_method("REFER")) {
# Fix contact for REFER in dialog
route(HANDLE_NAT_FIX);
}

# BYE rtpengine_delete()
route(RTP_MANAGE);

route(RELAY);
exit;
} else {
if(is_method("NOTIFY")) {
xlog("L_INFO", "[$rm] Sending to client\n");
t_relay();
exit;
}


volga629


*From: *"Bogdan-Andrei Iancu" 
*To: *"Slava Bendersky" , users@lists.opensips.org
*Sent: *Wednesday, March 13, 2019 4:46:30 AM
*Subject: *Re: [OpenSIPS-Users] NOTIFY BLF

Hi Slava,

I see this is a sequential NOTIFY, so probably part of a SUBSCRIBE'ing 
session. If so, you need to route it as a generic sequential request 
via loose_route() + t_relay().


Does the SUBSCRIBE go via your OpenSIPS ? do you do record_route() for 
it ?


Regards,
Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   https://www.opensips-solutions.com
OpenSIPS Summit 2019
   https://www.opensips.org/events/Summit-2019Amsterdam/
On 03/13/2019 05:24 AM, Slava Bendersky wrote:

Hello Everyone,
Having some trouble to handle NOTIFY for BLF send by Freeswitch to
opensips.
How I should handle it ? Do I need t_relay to the client ?


2019/03/12 21:40:57.281140 10.100.104.12:5160 -> 10.100.104.7:5060
NOTIFY sip:45201@47.185.53.190:12428;nat=yes;transport=TCP SIP/2.0
Via: SIP/2.0/UDP 10.100.104.12:5160;rport;branch=z9hG4bKjDtU5Zt1ey70a
Max-Forwards: 70
From: ;tag=054Zqq8YyZTA
To: "45201" ;tag=1948650230
Call-ID: 0_1579912862@192.168.1.32
CSeq: 306302851 NOTIFY
Contact: 
User-Agent: FreeSWITCH
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE,
REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
Event: dialog
Allow-Events: talk, hold, conference, presence, as-feature-event,
dialog, line-seize, call-info, sla, include-session-description,
presence.winfo, message-summary, refer
Subscription-State: active;expires=530
Content-Type: application/dialog-info+xml
Content-Length: 551




confirmed

sip:45...@dev.ait.local





sip:*9...@dev.ait.local






volga629


___
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] lb_list shows an incorrect load in load balancer

2019-03-13 Thread Rocio Walias
Hi,

this is the fallback to the next destination in my script:

failure_route[GW_FAILOVER] {
if (t_was_cancelled()) {
xlog("L_INF","*** Was cancelled \n");
exit;
}

# failure detection with redirect to next available trunk
if (t_check_status("(408)|([56][0-9][0-9])")) {
xlog("L_INF","Failed trunk $rd/$du->$avp(du_lb) detected
\n");
if ( lb_next() ) {
xlog("L_INF","Failed trunk detected, load balancer
to next $rd/$du \n");
$avp(du_lb)=$du;
t_on_failure("GW_FAILOVER");
t_relay();
exit;
}

send_reply("500","All GW are down");
xlog("L_INF"," All GW are down \n ");

}
}

Thank you very much

Rocío

El mar., 5 mar. 2019 a las 16:44, Bogdan-Andrei Iancu ()
escribió:

> Hi Rocio,
>
> How do you script the fallback to the next destination ? I guess via
> failure route, but could you post here the exact call of lb_next() ? also
> how the initial LB triggering looks like ?
>
> Regards,
>
> Bogdan-Andrei Iancu
>
> OpenSIPS Founder and Developer
>   https://www.opensips-solutions.com
> OpenSIPS Summit 2019
>   https://www.opensips.org/events/Summit-2019Amsterdam/
>
> On 02/28/2019 09:16 AM, Rocio Walias wrote:
>
> Hello,
>
>
>
> I need a little help regarding a load balancer issue.
>
> I have two destinations (A.X.X.X and B.X.X.X) in the load balancer group. 
> A.X.X.X is working fine but  sometimes B.X.X.X is not responding in time and 
> a 408 response is received. In that case I am doing a lb_next() and load 
> balancer send it to A.X.X.X but in “opensips fifo lb_list“ is showing that 
> B.X.X.X load is 1 and I think it must be 0 because in A.X.X.X load is 2 and 
> there is only 2 dialogs.
>
>
>
> Destination:: sip:33@A.X.X.X:5080 id=96 group=1 enabled=yes
> auto-reenable=on
>
> Resources::
>
> Resource:: channel max=10 *load*=2
>
> Destination:: sip:33@B.X.X.X:5080 id=98 group=1 enabled=yes
> auto-reenable=on
>
> Resources::
>
> Resource:: channel max=10 *load=*1
>
>
>
> I’m trying to remove that “load=1”  but if I use lb_count_call to undo :
>
> if (lb_is_destination(“B.X.X.X", "5080", "1","1"))
>
> {
>
> lb_count_call("B.X.X.X","5080","1","channel","1");
>
> }
>
>
>
> This error happens:
>
> Feb 21 13:05:18 [11033] ERROR:load_balancer:lb_route: sequential call of
> LB - failed to remove from profile [lbXchannel]->[62]
>
>
>
> Is there any way to decrease the load of B.X.X.X or how can it not be 
> considered in load count in a failure_route? I’m saving load data to 
> statistics purpose  and it  doesn’t match with the number of dialogues.
>
> I’m using Opensips 2.4.2
>
>
>
> Thank you very much.
>
>
>
>
> ___
> 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] RabbitMQ high availability

2019-03-13 Thread Răzvan Crainea

Hi, Ahmed!

None of the module supports this by themselves, but you can achieve this 
for each of them using existing tools:
* for event_rabbitmq, you can put multiple rabbitmq subscribers in an 
event_virtual handler
* for rabbitmq you can test in the script if the command was 
successfully sent
Note that for both modules you need to run in synchronous mode to 
support this feature.


Best regards,
Răzvan

On 3/12/19 12:54 PM, Ahmed Shabana wrote:

Dears ,Does any of the rabbitmq 2 modules supported at opensip 2.4.x support 
high availability mode i.e. fallback to second rabbitmq if the first one not 
working properly ?

Also if it fail to send to the rabbmitmq does the script fail ?


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



--
Răzvan Crainea
OpenSIPS Core Developer
  http://www.opensips-solutions.com
Meet the OpenSIPS team at the next OpenSIPS Summit:
  https://www.opensips.org/events

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


Re: [OpenSIPS-Users] Segfault in 2.4.5

2019-03-13 Thread Dmitry
Hi Bogdan-Andrei,

The main point is got help with resolving the issue ASAP. I’m sorry if it 
sounds boring, but the issue is critical for me. And I understand that guys in 
the project very busy, so I try to get user’s helps.

Have a good day.

 

From: Bogdan-Andrei Iancu  
Sent: Wednesday, March 13, 2019 10:33 AM
To: OpenSIPS users mailling list ; Dmitry 

Subject: Re: [OpenSIPS-Users] Segfault in 2.4.5

 

Hi Dimitry,

What is the point of this email ? I see the ticket is opened some time ago and 
there is someone already working on it .

Regards,



Bogdan-Andrei Iancu
 
OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
OpenSIPS Summit 2019
  https://www.opensips.org/events/Summit-2019Amsterdam/

On 03/12/2019 07:28 PM, Dmitry wrote:

Hi There,
I get segfault in opensips 2.4.5 every ~5 minutes. Could you help to fix it? 
Debug in attachment. I'm ready to give additional information if needed.
The issue on github https://github.com/OpenSIPS/opensips/issues/1624
Thanks






___
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] NOTIFY BLF

2019-03-13 Thread Bogdan-Andrei Iancu

Hi Slava,

I see this is a sequential NOTIFY, so probably part of a SUBSCRIBE'ing 
session. If so, you need to route it as a generic sequential request via 
loose_route() + t_relay().


Does the SUBSCRIBE go via your OpenSIPS ? do you do record_route() for it ?

Regards,

Bogdan-Andrei Iancu

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

On 03/13/2019 05:24 AM, Slava Bendersky wrote:

Hello Everyone,
Having some trouble to handle NOTIFY for BLF send by Freeswitch to 
opensips.

How I should handle it ? Do I need t_relay to the client ?


2019/03/12 21:40:57.281140 10.100.104.12:5160 -> 10.100.104.7:5060
NOTIFY sip:45201@47.185.53.190:12428;nat=yes;transport=TCP SIP/2.0
Via: SIP/2.0/UDP 10.100.104.12:5160;rport;branch=z9hG4bKjDtU5Zt1ey70a
Max-Forwards: 70
From: ;tag=054Zqq8YyZTA
To: "45201" ;tag=1948650230
Call-ID: 0_1579912862@192.168.1.32
CSeq: 306302851 NOTIFY
Contact: 
User-Agent: FreeSWITCH
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, 
REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE

Supported: timer, path, replaces
Event: dialog
Allow-Events: talk, hold, conference, presence, as-feature-event, 
dialog, line-seize, call-info, sla, include-session-description, 
presence.winfo, message-summary, refer

Subscription-State: active;expires=530
Content-Type: application/dialog-info+xml
Content-Length: 551


state="full" entity="sip:45...@dev.ait.local">


confirmed

sip:45...@dev.ait.local





sip:*9...@dev.ait.local






volga629


___
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] Segfault in 2.4.5

2019-03-13 Thread Bogdan-Andrei Iancu

Hi Dimitry,

What is the point of this email ? I see the ticket is opened some time 
ago and there is someone already working on it .


Regards,

Bogdan-Andrei Iancu

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

On 03/12/2019 07:28 PM, Dmitry wrote:

Hi There,
I get segfault in opensips 2.4.5 every ~5 minutes. Could you help to fix it? 
Debug in attachment. I'm ready to give additional information if needed.
The issue on github https://github.com/OpenSIPS/opensips/issues/1624
Thanks


___
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