Re: [OpenSIPS-Users] How to discover if OpenSIPS is connected to Internet, from the script.

2016-08-08 Thread Adrian Fretwell

Johan,

If your internet connection is going up and down regularly, you may be 
better off executing your test from a timer route:


timer_route[internet_check, 300] {
# -
# Timer Route every 5 minutes
# -

   exec("/usr/local/bin/some_check _script");
}

There are many different ways to check if you have an internet 
connection, the way you do it will depend on your environment and 
application, but here is a very simple shell script as an example:


#!/bin/bash
ping -c 2 8.8.8.8 > /dev/null
if [ $? -eq 0 ]; then
echo "Internet Alive $(date)";
else
echo "Internet Dead $(date)";
fi

Kind regards,

Adrian Fretwell

On 08/08/16 07:58, Johan De Clercq wrote:
create a start up route startup_route, the use module exec to f.e. get 
your pub ip with curl.


2016-08-04 15:21 GMT+02:00 Rodrigo Pimenta Carvalho >:


Hi.


How to discover if OpenSIPS is connected do Internet, from its
configuration script?


Sometimes the Internet Link is down and then just local calls will
work. If I can discover if OpenSIPS is "online" on Internet, I
will use this information to implement some specific logic in my
script.


Best regards.


RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200  RAMAL 979

___
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] t_replicate and dispatcher module to forward REGISTER messages

2016-08-08 Thread Jonathan Hunter
Issue opened on github, thanks Bogdan.
#943.
Jon

Subject: Re: [OpenSIPS-Users] t_replicate and dispatcher module to forward 
REGISTER messages
To: users@lists.opensips.org; hunter...@hotmail.com
From: bog...@opensips.org
Date: Sun, 7 Aug 2016 20:39:59 +0300


  

  
  
Hi Jonathan,

  

  Unfortunately this is a design problem - the t_replicate() is
  actually a t_reply() but without passing the received replies back
  to the caller. So t_replicate() behaves on parallel forking
  exactly as t_reply().

  

  Some additional work may be required to change this and have
  t_replicate() properly replicating to all destination. Could you
  please open a ticket on github about this ?

  

  Thanks and Regards,


Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 03.08.2016 19:15, Jonathan Hunter
  wrote:



  
  
Hi Guys,



We have an old platform we are looking to redesign but in
  the meantime we need to fix a problem we have.



Currently we have an opensips proxy/registrar with 2 x
  Asterisk boxes behind it.



Now currently we use t_replicate and the dispatcher module
  (ds_next_domain()) to send REGISTER requests in parallel to
  both Asterisk Servers so they can update their sip peers.



This works great but we sometimes (an issue we are
  investigating) dont always get a 200ok response back from one
  or both Asterisk servers for the REGISTER message.



Therefore I am looking to resend the REGISTER whenever this
  may happen.



This is fine using the fr timers should both Asterisk
  Servers not respond, however if only 1 Server doesnt respond,
  and the other does, this problem is lost, due to the parallel
  forking being applied to the t_replicate scenario.



I can capture 200 ok messages in onreply routes to confirm
  which Asterisk servers have responded, however I cannot
  t_relay again from this type of route.



Is there another way to do this? Whereby I can remain
  transaction stateful, and resend a REGISTER message if only
  one of the Asterisk Servers doesnt respond to a REGISTER
  message?



Thanks



Jon
  
  

  
  

  ___
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] Monitoring end to end solution.

2016-08-08 Thread Ziv Gabel
Hi,

I'm running several opensips servers and I want to monitor the health of the
servers.

I can check for service status and an open port, but what I'm looking for is
a way to make an "end to end test" that will include a registration, and a
call.

The test should check that

1.   Registration is working.

2.   Call goes through 

3.   Rtp (I use rtpengine) is flowing currectly.

 

Is there any known way to do that or should I figure out I way myself.

 

Ziv Gabel l Professional services l CommuniTake Technologies Ltd.

 

M: +972535265553 l Skype: ziv_gabel l E:  
z...@communitake.com

T: +972.4.696.8908 l F: +972.4.959.1654 l  
www.communitake.com

 

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


Re: [OpenSIPS-Users] Monitoring end to end solution.

2016-08-08 Thread SamyGo
Hi Ziv,
You should create scripts based on SIPP to execute these scenarios, and
based on results evaluate status of the servers.

Regards,
Sammy

On Aug 8, 2016 05:59, "Ziv Gabel"  wrote:

> Hi,
>
> I’m running several opensips servers and I want to monitor the health of
> the servers.
>
> I can check for service status and an open port, but what I’m looking for
> is a way to make an “end to end test” that will include a registration, and
> a call.
>
> The test should check that
>
> 1.   Registration is working.
>
> 2.   Call goes through
>
> 3.   Rtp (I use rtpengine) is flowing currectly.
>
>
>
> Is there any known way to do that or should I figure out I way myself.
>
>
>
> *Ziv Gabel *l Professional services l CommuniTake Technologies Ltd.
>
>
>
> *M*: +972535265553 l *Skype*: ziv_gabel l *E*: z...@communitake.com
>
> *T*: +972.4.696.8908 l *F*: +972.4.959.1654 l www.communitake.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] Monitoring end to end solution.

2016-08-08 Thread Johan De Clercq
Maybe you can script everything out in sipp ?

2016-08-08 11:58 GMT+02:00 Ziv Gabel :

> Hi,
>
> I’m running several opensips servers and I want to monitor the health of
> the servers.
>
> I can check for service status and an open port, but what I’m looking for
> is a way to make an “end to end test” that will include a registration, and
> a call.
>
> The test should check that
>
> 1.   Registration is working.
>
> 2.   Call goes through
>
> 3.   Rtp (I use rtpengine) is flowing currectly.
>
>
>
> Is there any known way to do that or should I figure out I way myself.
>
>
>
> *Ziv Gabel *l Professional services l CommuniTake Technologies Ltd.
>
>
>
> *M*: +972535265553 l *Skype*: ziv_gabel l *E*: z...@communitake.com
>
> *T*: +972.4.696.8908 l *F*: +972.4.959.1654 l www.communitake.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] Monitoring end to end solution.

2016-08-08 Thread Ziv Gabel
The problem with sipp is that it does not support 2 call-ids in the same script 
(register and invite).

 

Is it possible to have static registrations in opensips ?

I can then use one script for registration test and one for the invite.

 

From: users-boun...@lists.opensips.org 
[mailto:users-boun...@lists.opensips.org] On Behalf Of Johan De Clercq
Sent: יום ב 08 אוגוסט 2016 13:54
To: OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] Monitoring end to end solution.

 

Maybe you can script everything out in sipp ?

 

2016-08-08 11:58 GMT+02:00 Ziv Gabel :

Hi,

I’m running several opensips servers and I want to monitor the health of the 
servers.

I can check for service status and an open port, but what I’m looking for is a 
way to make an “end to end test” that will include a registration, and a call.

The test should check that

1.   Registration is working.

2.   Call goes through 

3.   Rtp (I use rtpengine) is flowing currectly.

 

Is there any known way to do that or should I figure out I way myself.

 

Ziv Gabel l Professional services l CommuniTake Technologies Ltd.

 

M: +972535265553   l Skype: ziv_gabel l E: 
z...@communitake.com

T: +972.4.696.8908   l F: +972.4.959.1654 
  l   www.communitake.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 to discover if OpenSIPS is connected to Internet, from the script.

2016-08-08 Thread Rodrigo Pimenta Carvalho
Thank all of you.

Regards.


RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979



De: users-boun...@lists.opensips.org  em nome 
de Adrian Fretwell 
Enviado: segunda-feira, 8 de agosto de 2016 04:27
Para: OpenSIPS users mailling list
Assunto: Re: [OpenSIPS-Users] How to discover if OpenSIPS is connected to 
Internet, from the script.


Johan,

If your internet connection is going up and down regularly, you may be better 
off executing your test from a timer route:

timer_route[internet_check, 300] {
# -
# Timer Route every 5 minutes
# -

   exec("/usr/local/bin/some_check _script");
}


There are many different ways to check if you have an internet connection, the 
way you do it will depend on your environment and application, but here is a 
very simple shell script as an example:

#!/bin/bash
ping -c 2 8.8.8.8 > /dev/null
if [ $? -eq 0 ]; then
echo "Internet Alive $(date)";
else
echo "Internet Dead $(date)";
fi

Kind regards,

Adrian Fretwell

On 08/08/16 07:58, Johan De Clercq wrote:
create a start up route startup_route, the use module exec to f.e. get your pub 
ip with curl.

2016-08-04 15:21 GMT+02:00 Rodrigo Pimenta Carvalho 
mailto:pime...@inatel.br>>:

Hi.


How to discover if OpenSIPS is connected do Internet, from its configuration 
script?


Sometimes the Internet Link is down and then just local calls will work. If I 
can discover if OpenSIPS is "online" on Internet, I will use this information 
to implement some specific logic in my script.


Best regards.


RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979

___
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] Monitoring end to end solution.

2016-08-08 Thread Faheem Muhammad
No, with SIPp you can create any type of call scenario including REGISTER +
INVITE scenarios.
Follow the below mentioned blog entry 'Scenario 2'.
I posted it few years back. Unfortunately original domain is no more
available, but archive link works.

http://web.archive.org/web/20130924010913/http://techvoiper.com/sipp-load-scenario-generation-overview/

Regards,
Muhammad Faheem

On Mon, Aug 8, 2016 at 4:02 PM, Ziv Gabel  wrote:

> The problem with sipp is that it does not support 2 call-ids in the same
> script (register and invite).
>
>
>
> Is it possible to have static registrations in opensips ?
>
> I can then use one script for registration test and one for the invite.
>
>
>
> *From:* users-boun...@lists.opensips.org [mailto:users-bounces@lists.
> opensips.org] *On Behalf Of *Johan De Clercq
> *Sent:* יום ב 08 אוגוסט 2016 13:54
> *To:* OpenSIPS users mailling list
> *Subject:* Re: [OpenSIPS-Users] Monitoring end to end solution.
>
>
>
> Maybe you can script everything out in sipp ?
>
>
>
> 2016-08-08 11:58 GMT+02:00 Ziv Gabel :
>
> Hi,
>
> I’m running several opensips servers and I want to monitor the health of
> the servers.
>
> I can check for service status and an open port, but what I’m looking for
> is a way to make an “end to end test” that will include a registration, and
> a call.
>
> The test should check that
>
> 1.   Registration is working.
>
> 2.   Call goes through
>
> 3.   Rtp (I use rtpengine) is flowing currectly.
>
>
>
> Is there any known way to do that or should I figure out I way myself.
>
>
>
> *Ziv Gabel *l Professional services l CommuniTake Technologies Ltd.
>
>
>
> *M*: +972535265553 l *Skype*: ziv_gabel l *E*: z...@communitake.com
>
> *T*: +972.4.696.8908 l *F*: +972.4.959.1654 l www.communitake.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] Monitoring end to end solution.

2016-08-08 Thread Faheem Muhammad
By the way,
You can do the same with NetSIP, a Perl library. This library can do the
same as SIPp, but it is very simple.
Try this below link.
http://web.archive.org/web/20130924023603/http://techvoiper.com/perl-netsip-sip-invite-example/

Regards,
Muhammad Faheem

On Mon, Aug 8, 2016 at 8:40 PM, Faheem Muhammad 
wrote:

> No, with SIPp you can create any type of call scenario including REGISTER
> + INVITE scenarios.
> Follow the below mentioned blog entry 'Scenario 2'.
> I posted it few years back. Unfortunately original domain is no more
> available, but archive link works.
>
> http://web.archive.org/web/20130924010913/http://techvoiper.com/sipp-load-
> scenario-generation-overview/
>
> Regards,
> Muhammad Faheem
>
> On Mon, Aug 8, 2016 at 4:02 PM, Ziv Gabel  wrote:
>
>> The problem with sipp is that it does not support 2 call-ids in the same
>> script (register and invite).
>>
>>
>>
>> Is it possible to have static registrations in opensips ?
>>
>> I can then use one script for registration test and one for the invite.
>>
>>
>>
>> *From:* users-boun...@lists.opensips.org [mailto:users-boun...@lists.op
>> ensips.org] *On Behalf Of *Johan De Clercq
>> *Sent:* יום ב 08 אוגוסט 2016 13:54
>> *To:* OpenSIPS users mailling list
>> *Subject:* Re: [OpenSIPS-Users] Monitoring end to end solution.
>>
>>
>>
>> Maybe you can script everything out in sipp ?
>>
>>
>>
>> 2016-08-08 11:58 GMT+02:00 Ziv Gabel :
>>
>> Hi,
>>
>> I’m running several opensips servers and I want to monitor the health of
>> the servers.
>>
>> I can check for service status and an open port, but what I’m looking for
>> is a way to make an “end to end test” that will include a registration, and
>> a call.
>>
>> The test should check that
>>
>> 1.   Registration is working.
>>
>> 2.   Call goes through
>>
>> 3.   Rtp (I use rtpengine) is flowing currectly.
>>
>>
>>
>> Is there any known way to do that or should I figure out I way myself.
>>
>>
>>
>> *Ziv Gabel *l Professional services l CommuniTake Technologies Ltd.
>>
>>
>>
>> *M*: +972535265553 l *Skype*: ziv_gabel l *E*: z...@communitake.com
>>
>> *T*: +972.4.696.8908 l *F*: +972.4.959.1654 l www.communitake.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] Monitoring end to end solution.

2016-08-08 Thread Ziv Gabel
10x,

Looks interesting.

I’ll test it and get back with the results

 

From: users-boun...@lists.opensips.org 
[mailto:users-boun...@lists.opensips.org] On Behalf Of Faheem Muhammad
Sent: יום ב 08 אוגוסט 2016 18:43
To: OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] Monitoring end to end solution.

 

By the way,

You can do the same with NetSIP, a Perl library. This library can do the same 
as SIPp, but it is very simple.

Try this below link.

http://web.archive.org/web/20130924023603/http://techvoiper.com/perl-netsip-sip-invite-example/
 

 

 

Regards,

Muhammad Faheem

 

On Mon, Aug 8, 2016 at 8:40 PM, Faheem Muhammad  wrote:

No, with SIPp you can create any type of call scenario including REGISTER + 
INVITE scenarios.

Follow the below mentioned blog entry 'Scenario 2'.

I posted it few years back. Unfortunately original domain is no more available, 
but archive link works.

 

http://web.archive.org/web/20130924010913/http://techvoiper.com/sipp-load-scenario-generation-overview/
 

 

 

Regards,

Muhammad Faheem

 

On Mon, Aug 8, 2016 at 4:02 PM, Ziv Gabel  wrote:

The problem with sipp is that it does not support 2 call-ids in the same script 
(register and invite).

 

Is it possible to have static registrations in opensips ?

I can then use one script for registration test and one for the invite.

 

From: users-boun...@lists.opensips.org 
[mailto:users-boun...@lists.opensips.org] On Behalf Of Johan De Clercq
Sent: יום ב 08 אוגוסט 2016 13:54
To: OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] Monitoring end to end solution.

 

Maybe you can script everything out in sipp ?

 

2016-08-08 11:58 GMT+02:00 Ziv Gabel :

Hi,

I’m running several opensips servers and I want to monitor the health of the 
servers.

I can check for service status and an open port, but what I’m looking for is a 
way to make an “end to end test” that will include a registration, and a call.

The test should check that

1.   Registration is working.

2.   Call goes through 

3.   Rtp (I use rtpengine) is flowing currectly.

 

Is there any known way to do that or should I figure out I way myself.

 

Ziv Gabel l Professional services l CommuniTake Technologies Ltd.

 

M: +972535265553   l Skype: ziv_gabel l E: 
z...@communitake.com

T: +972.4.696.8908   l F: +972.4.959.1654 
  l   www.communitake.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