Re: [OpenSIPS-Users] OpenSIPs 3.1 New install ERROR in Logs rtpproxy

2021-02-10 Thread Donat Zenichev
Good day Rick.

It looks like your OpenSIPS instance is complaining due to the absence of
RTPproxy daemon.
Or at least a socket, which OpenSIPS tries to use, is not reachable for
some reason (udp:localhost:12221).

Have you compiled the RTPproxy already?
And also could you share your configuration of rtpproxy.so ?

Best regards

On Thu, Feb 11, 2021 at 9:28 AM Rick McGill - ₪  wrote:

> Dear OpenSIPs Community,
>
> I have a fresh install of OpenSIPs 3.1 on Debian 10.7
> I have done the basic install but it is yet to be configured with any
> gateways and only has a few test users setup on it.
> I'm new to OpenSIPs.
>
> The ERROR issue I'm seeing in the log files seems related to rtpproxy.
> I’m not familiar yet with OpenSIPs so if someone could at least point in
> the
> right direction to start to solve this error it might save me a lot of time
> Googling.
>
> -
> Feb 11 13:32:03 sip /usr/sbin/opensips[1704]: WARNING:rtpproxy:rtpp_test:
> support for RTP proxy  has been disabled temporarily
> Feb 11 13:32:03 sip /usr/sbin/opensips[1703]:
> ERROR:rtpproxy:send_rtpp_command: can't send (#2 iovec buffers) command to
> a
> RTP proxy (111:Connection refused)
> Feb 11 13:32:03 sip /usr/sbin/opensips[1703]:
> ERROR:rtpproxy:send_rtpp_command: proxy  does not
> respond, disable it
> Feb 11 13:32:03 sip /usr/sbin/opensips[1703]: WARNING:rtpproxy:rtpp_test:
> can't get version of the RTP proxy
> -
>
>
>
> 
> 
> Rick McGill – CEO
> r...@netrovoip.com | r...@netropolitanworks.com
> Thailand: +66-2105-4262  x1001  |   USA: +1-737-237-2030   |Mobile:
> +66-85557-3000
> Support:: +66-97047-2000  |  SKYPE & LINE ID:  NetroVOIP  |
> supp...@netrovoip.com
>   ₪  www.NetroVOIP.com  Telecommunications / Video Consulting & Solutions
> Provider
>
> 
> --
>
>
>
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>


-- 

Best regards,
Donat Zenichev
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] OpenSIPs 3.1 New install ERROR in Logs rtpproxy

2021-02-10 Thread Rick McGill - ₪
Dear OpenSIPs Community,

I have a fresh install of OpenSIPs 3.1 on Debian 10.7
I have done the basic install but it is yet to be configured with any
gateways and only has a few test users setup on it.
I'm new to OpenSIPs.

The ERROR issue I'm seeing in the log files seems related to rtpproxy.
I’m not familiar yet with OpenSIPs so if someone could at least point in the
right direction to start to solve this error it might save me a lot of time
Googling.

-
Feb 11 13:32:03 sip /usr/sbin/opensips[1704]: WARNING:rtpproxy:rtpp_test:
support for RTP proxy  has been disabled temporarily
Feb 11 13:32:03 sip /usr/sbin/opensips[1703]:
ERROR:rtpproxy:send_rtpp_command: can't send (#2 iovec buffers) command to a
RTP proxy (111:Connection refused)
Feb 11 13:32:03 sip /usr/sbin/opensips[1703]:
ERROR:rtpproxy:send_rtpp_command: proxy  does not
respond, disable it
Feb 11 13:32:03 sip /usr/sbin/opensips[1703]: WARNING:rtpproxy:rtpp_test:
can't get version of the RTP proxy
-




Rick McGill – CEO
r...@netrovoip.com | r...@netropolitanworks.com 
Thailand: +66-2105-4262  x1001  |   USA: +1-737-237-2030   |Mobile:
+66-85557-3000
Support:: +66-97047-2000  |  SKYPE & LINE ID:  NetroVOIP  |
supp...@netrovoip.com 
  ₪  www.NetroVOIP.com  Telecommunications / Video Consulting & Solutions
Provider

--   




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


Re: [OpenSIPS-Users] OpenSIPs w/ Fail2Ban - Config ERROR cannot restart OpenSIPS after changes to OpenSIPs.cfg

2021-02-10 Thread Liviu Chircu

On 11.02.2021 09:16, Rick McGill - ₪ wrote:

I have tried to enter it as '0" as per the instructions
in URL link above but that is when it then causes OpenSIPS to not be able to
restart.


Hi, Rick!

It seems that the Fail2ban tutorial is compatible with OpenSIPS 2.4 at 
best, rather than "any ver", as it said.  I've changed the wiki to 
reflect this, thanks!


In 3.1, the equivalent of www_challenge("", "0") is www_challenge("", 
"auth") indeed, as you suggested.


PS: once you get this working, you are free to create a wiki account and 
create/edit the 
https://www.opensips.org/Documentation/Tutorials-Fail2Ban-3-1 updated 
tutorial page and link it in the tutorials list, for others to use in 
the future!  If you need help with linking it alongside "ver 2.4", let 
me know!


Regards,

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


[OpenSIPS-Users] OpenSIPs w/ Fail2Ban - Config ERROR cannot restart OpenSIPS after changes to OpenSIPs.cfg

2021-02-10 Thread Rick McGill - ₪
Dear OpenSIPs Community,

My goal for this topic is to get Fail2Ban working with OpenSIPs log files.
Same like the instructions in URL link below.

I have tried to follow the directions in this link but the code to edit the
logging of OpenSIPs looks at bit different on my new fresh install of
OpenSIPs 3.1 on Debian 10.7.
https://www.opensips.org/Documentation/Tutorials-Fail2Ban

The is what is in the link above:

---
from:

--

 if (!www_authorize("", "subscriber")) {
www_challenge("", "0");
exit;
}




To:

-

$var(auth_code) = www_authorize("", "subscriber");
if ( $var(auth_code) == -1 || $var(auth_code) == -2 ) {
xlog("L_NOTICE","Auth error for $fU@$fd from $si cause
$var(auth_code)");
}
if ( $var(auth_code) < 0 ) {
www_challenge("", "0");
exit;
}



The issue is that my new install of OpenSIP has code a bit different.
Instead of "0" it has "AUTH".
And when I change the Code like the TO: section above OpenSIPS will not
start because it says Error in Config File it cannot load opensips.


This is what the default code looks like in the opensips.cfg for OpenSIPS
3.1 after a new fresh install like I have:   Notice that www_challenger is
"auth" and not "0"   I have tried to enter it as '0" as per the instructions
in URL link above but that is when it then causes OpenSIPS to not be able to
restart.


if (is_method("REGISTER")) {
# authenticate the REGISTER requests
if (!www_authorize("", "subscriber")) {
www_challenge("", "auth");
exit;
}



Rick McGill – CEO
r...@netrovoip.com | r...@netropolitanworks.com 
Thailand: +66-2105-4262  x1001  |   USA: +1-737-237-2030   |Mobile:
+66-85557-3000
Support:: +66-97047-2000  |  SKYPE & LINE ID:  NetroVOIP  |
supp...@netrovoip.com 
  ₪  www.NetroVOIP.com  Telecommunications / Video Consulting & Solutions
Provider

LetSi.NetroVOIP.com

Video Conference Solution that works with Windows, MAC, Android, and iPhone.
Secure alternative to Zoom for NetroVOIP Cloud PBX customers.   




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


Re: [OpenSIPS-Users] API Question

2021-02-10 Thread Yuri Ritvin
Please check this out:
https://blog.opensips.org/2020/06/11/calls-management-using-the-new-call-api-tool/
https://github.com/OpenSIPS/call-api


On Wed, Feb 10, 2021 at 11:53 AM  wrote:

> Send Users mailing list submissions to
> users@lists.opensips.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> or, via email, send a message with subject or body 'help' to
> users-requ...@lists.opensips.org
>
> You can reach the person managing the list at
> users-ow...@lists.opensips.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Users digest..."
>
>
> Today's Topics:
>
>1. Re: Retrieving parameters from file (Gerwin van de Steeg)
>2. Re: Retrieving parameters from file (Johan De Clercq)
>3. API Question (Alexander Perkins)
>4. Re: API Question (Gregory Massel)
>
>
> --
>
> Message: 1
> Date: Wed, 10 Feb 2021 17:26:10 +1300
> From: Gerwin van de Steeg 
> To: OpenSIPS users mailling list 
> Subject: Re: [OpenSIPS-Users] Retrieving parameters from file
> Message-ID:
> <
> cajs0f15lunxefronrpfqqzbudhjnnwyrvy8avl6scsq9t4a...@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Or you could use a sane and legible templating language.  I like the look
> of consul-template, but there are many others out there as the article
> suggests.. like Jinja2 or ERB.
>
> On Wed, 10 Feb 2021 at 00:00, Johan De Clercq  wrote:
>
> > Interesting, speaking for myself, it is absolutely team that I add m4
> > support.
> >
> >
> > Op di 9 feb. 2021 om 11:35 schreef Liviu Chircu :
> >
> >> On 09.02.2021 05:53, Dinesh Krishnamurthy via Users wrote:
> >> > For example i would need to keep the IP Address/Port of the API
> >> > Gateway which i communicate via rest_get without hardcoding as they
> >> > would change based on the environment i am working with i.e.. staging,
> >> > dev or production
> >> >
> >> > Please advise the way to do this.
> >>
> >> Hi,
> >>
> >> Sounds to me like your opensips.cfg file needs templating. If you are
> >> using a 3.0 or newer OpenSIPS, this process is even further simplified,
> >> as OpenSIPS natively integrates with any preprocessor that's out there.
> >> See this guide [1] for more details.
> >>
> >> Regards,
> >>
> >> [1]: https://www.opensips.org/Documentation/Templating-Config-Files-3-2
> >>
> >> --
> >> 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
> >>
> > ___
> > Users mailing list
> > Users@lists.opensips.org
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> >
> -- next part --
> An HTML attachment was scrubbed...
> URL: <
> http://lists.opensips.org/pipermail/users/attachments/20210210/aa3664bb/attachment-0001.html
> >
>
> --
>
> Message: 2
> Date: Wed, 10 Feb 2021 07:00:43 +
> From: Johan De Clercq 
> To: OpenSIPS users mailling list 
> Subject: Re: [OpenSIPS-Users] Retrieving parameters from file
> Message-ID:
> <
> pr1pr06mb46834dc07bb3cc6152868e08a7...@pr1pr06mb4683.eurprd06.prod.outlook.com
> >
>
> Content-Type: text/plain; charset="utf-8"
>
> Gerwin, I will have a look.
>
> Outlook voor iOS<https://aka.ms/o0ukef> downloaden
> 
> Van: Users  namens Gerwin van de Steeg <
> gerwin.van.de.st...@vadacom.com>
> Verzonden: Wednesday, February 10, 2021 5:26:10 AM
> Aan: OpenSIPS users mailling list 
> Onderwerp: Re: [OpenSIPS-Users] Retrieving parameters from file
>
> Or you could use a sane and legible templating language.  I like the look
> of consul-template, but there are many others out there as the article
> suggests.. like Jinja2 or ERB.
>
> On Wed, 10 Feb 2021 at 00:00, Johan De Clercq  jo...@democon.be>> wrote:
> Interesting, speaking for myself, it is absolutely team that I add m4
> support.
>
>
> Op di 9 feb. 2021 om 11:35 schreef Liviu Chircu  <mailto:li...@opensips.org>>:
> On 09.02.2021 05:53, Dinesh Krishnamurthy via Users

Re: [OpenSIPS-Users] API Question

2021-02-10 Thread Gregory Massel

MI: https://www.opensips.org/Documentation/Interface-MI-3-1

On 2021-02-10 16:44, Alexander Perkins wrote:
Hi All.  I have what may appear to be a silly question.  Does OpenSIPS 
have some sort of way to interact with it via an API?  For example 
(very simplistic) something where I can consume a URL of the OpenSIPS 
server and pass it a to and from number and it can send me the 
result?  Like 200, etc?


I know this sounds overly simplified, but I just need a point in the 
right direction.


Thanks, All!

Alex

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

--
Regards
*Gregory Massel*
*T* +27 87 550 
*F* +27 11 783 4877
*W* www.switchtel.co.za 
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] API Question

2021-02-10 Thread Alexander Perkins
Hi All.  I have what may appear to be a silly question.  Does OpenSIPS have
some sort of way to interact with it via an API?  For example (very
simplistic) something where I can consume a URL of the OpenSIPS server and
pass it a to and from number and it can send me the result?  Like 200, etc?

I know this sounds overly simplified, but I just need a point in the right
direction.

Thanks, All!

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