Re: [OpenSIPS-Users] How to send multiple parameters to event handlers?

2018-03-28 Thread Mundkowsky, Robert
Well, after getting the json module to work in opensips 2.2, found it properly 
lot easier to concatenate parameters with some delimiter and then separate them 
on the event handler side.

Robert Mundkowsky

From: Mundkowsky, Robert
Sent: Wednesday, March 28, 2018 11:33 AM
To: 'OpenSIPS users mailling list' <users@lists.opensips.org>
Subject: RE: How to send multiple parameters to event handlers?

Maybe it is possible to pack parameters together using the JSON library?

http://www.opensips.org/html/docs/modules/2.2.x/json.html#idp93456


Robert Mundkowsky

From: Mundkowsky, Robert
Sent: Wednesday, March 28, 2018 11:16 AM
To: 'OpenSIPS users mailling list' 
<users@lists.opensips.org<mailto:users@lists.opensips.org>>
Subject: RE: How to send multiple parameters to event handlers?

I just looked at the actual data being sent via tcpdump and openSIPS is not 
sending multiple values, just the last values set.

Is there some easy way to send multiple values over XMLRPC?

Robert

From: Mundkowsky, Robert
Sent: Wednesday, March 28, 2018 11:00 AM
To: OpenSIPS users mailling list 
<users@lists.opensips.org<mailto:users@lists.opensips.org>>
Subject: How to send multiple parameters to event handlers?


I am using openSIPS 2.2.3 to send events to an external handler via XMLRPC.

The external handler is a XMLRPC daemon written in Python.

The events are sent correctly, but you can only send two parameters based on 
the "raise_event" function 
(https://www.opensips.org/Documentation/Script-CoreFunctions-2-2#toc28) .

I tried using AVP variables to pass multiple parameters, but the python handler 
only sees the last variable set.

For example, in the opensips.cfg file I have:

startup_route {
subscribe_event("E_SOME_EVENT", "xmlrpc:127.0.0.1:8000:e_dummy_h");
}
...
$avp(attr-val) = NULL;
$avp(attr-val) = "BBB";
$avp(attr-val) = "DDD";
$avp(attr-name) = NULL;
$avp(attr-name) = "AAA";
$avp(attr-name) = "CCC";
raise_event("E_SOME_EVENT", $avp(attr-name), $avp(attr-val));

But the python script only receives the last set values ("DDD" and "CCC").



This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it from your 
system. Any other use of this e-mail is prohibited.


Thank you for your compliance.


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


Re: [OpenSIPS-Users] How to send multiple parameters to event handlers?

2018-03-28 Thread Mundkowsky, Robert
Maybe it is possible to pack parameters together using the JSON library?

http://www.opensips.org/html/docs/modules/2.2.x/json.html#idp93456


Robert Mundkowsky

From: Mundkowsky, Robert
Sent: Wednesday, March 28, 2018 11:16 AM
To: 'OpenSIPS users mailling list' <users@lists.opensips.org>
Subject: RE: How to send multiple parameters to event handlers?

I just looked at the actual data being sent via tcpdump and openSIPS is not 
sending multiple values, just the last values set.

Is there some easy way to send multiple values over XMLRPC?

Robert

From: Mundkowsky, Robert
Sent: Wednesday, March 28, 2018 11:00 AM
To: OpenSIPS users mailling list 
<users@lists.opensips.org<mailto:users@lists.opensips.org>>
Subject: How to send multiple parameters to event handlers?


I am using openSIPS 2.2.3 to send events to an external handler via XMLRPC.

The external handler is a XMLRPC daemon written in Python.

The events are sent correctly, but you can only send two parameters based on 
the "raise_event" function 
(https://www.opensips.org/Documentation/Script-CoreFunctions-2-2#toc28) .

I tried using AVP variables to pass multiple parameters, but the python handler 
only sees the last variable set.

For example, in the opensips.cfg file I have:

startup_route {
subscribe_event("E_SOME_EVENT", "xmlrpc:127.0.0.1:8000:e_dummy_h");
}
...
$avp(attr-val) = NULL;
$avp(attr-val) = "BBB";
$avp(attr-val) = "DDD";
$avp(attr-name) = NULL;
$avp(attr-name) = "AAA";
$avp(attr-name) = "CCC";
raise_event("E_SOME_EVENT", $avp(attr-name), $avp(attr-val));

But the python script only receives the last set values ("DDD" and "CCC").



This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it from your 
system. Any other use of this e-mail is prohibited.


Thank you for your compliance.


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


Re: [OpenSIPS-Users] How to send multiple parameters to event handlers?

2018-03-28 Thread Mundkowsky, Robert
I just looked at the actual data being sent via tcpdump and openSIPS is not 
sending multiple values, just the last values set.

Is there some easy way to send multiple values over XMLRPC?

Robert

From: Mundkowsky, Robert
Sent: Wednesday, March 28, 2018 11:00 AM
To: OpenSIPS users mailling list <users@lists.opensips.org>
Subject: How to send multiple parameters to event handlers?


I am using openSIPS 2.2.3 to send events to an external handler via XMLRPC.

The external handler is a XMLRPC daemon written in Python.

The events are sent correctly, but you can only send two parameters based on 
the "raise_event" function 
(https://www.opensips.org/Documentation/Script-CoreFunctions-2-2#toc28) .

I tried using AVP variables to pass multiple parameters, but the python handler 
only sees the last variable set.

For example, in the opensips.cfg file I have:

startup_route {
subscribe_event("E_SOME_EVENT", "xmlrpc:127.0.0.1:8000:e_dummy_h");
}
...
$avp(attr-val) = NULL;
$avp(attr-val) = "BBB";
$avp(attr-val) = "DDD";
$avp(attr-name) = NULL;
$avp(attr-name) = "AAA";
$avp(attr-name) = "CCC";
raise_event("E_SOME_EVENT", $avp(attr-name), $avp(attr-val));

But the python script only receives the last set values ("DDD" and "CCC").



This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it from your 
system. Any other use of this e-mail is prohibited.


Thank you for your compliance.


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


[OpenSIPS-Users] How to send multiple parameters to event handlers?

2018-03-28 Thread Mundkowsky, Robert

I am using openSIPS 2.2.3 to send events to an external handler via XMLRPC.

The external handler is a XMLRPC daemon written in Python.

The events are sent correctly, but you can only send two parameters based on 
the "raise_event" function 
(https://www.opensips.org/Documentation/Script-CoreFunctions-2-2#toc28) .

I tried using AVP variables to pass multiple parameters, but the python handler 
only sees the last variable set.

For example, in the opensips.cfg file I have:

startup_route {
subscribe_event("E_SOME_EVENT", "xmlrpc:127.0.0.1:8000:e_dummy_h");
}
...
$avp(attr-val) = NULL;
$avp(attr-val) = "BBB";
$avp(attr-val) = "DDD";
$avp(attr-name) = NULL;
$avp(attr-name) = "AAA";
$avp(attr-name) = "CCC";
raise_event("E_SOME_EVENT", $avp(attr-name), $avp(attr-val));

But the python script only receives the last set values ("DDD" and "CCC").



This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it from your 
system. Any other use of this e-mail is prohibited.


Thank you for your compliance.


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


Re: [OpenSIPS-Users] Prefered Media Proxy or RTP Proxy

2018-02-13 Thread Mundkowsky, Robert
I am curious about this too.

I am guessing from this webpage 
(https://www.voip-info.org/wiki/view/MediaProxy+Comparison) and some others web 
pages that:
- rtpproxy is the oldest
- mediaproxy and rtpengine (formerly named mediaproxy-ng ) likely are newer and 
have more features and rtpengine seems to have the most documentation (that I 
can find)



Robert

-Original Message-
From: Users [mailto:users-boun...@lists.opensips.org] On Behalf Of 
Bogdan-Andrei Iancu
Sent: Tuesday, February 13, 2018 4:56 AM
To: OpenSIPS users mailling list ; abisai matangira 

Subject: Re: [OpenSIPS-Users] Prefered Media Proxy or RTP Proxy

Hi,

All three engines are stable and properly work:
 rtpproxy
 mediaproxy
 rtpengine

it is up to you to pick the one that does the job for you (in terms of 
fulfilling your needs).

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.opensips-solutions.com=02%7C01%7Crmundkowsky%40ets.org%7C3e67609ec71a453c4bf908d572c83017%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636541126500103944=Zt%2FAD0tfCYRra7POnZUKdDtzlE8EMvXP%2F5BFaTNjetA%3D=0
OpenSIPS Summit 2018
   
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.opensips.org%2Fevents%2FSummit-2018Amsterdam=02%7C01%7Crmundkowsky%40ets.org%7C3e67609ec71a453c4bf908d572c83017%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636541126500103944=L15jQmVGf0%2FbLOlE604N7kvjeP99VNM0S6Q9OmGcEHY%3D=0

On 02/13/2018 08:51 AM, abisai matangira wrote:
> Hi
>
> Which is the preferred or stable Media proxy for Opensips from below
>
> RTP Proxy
>
> Media Proxy
>
>
>
> ___
> Users mailing list
> Users@lists.opensips.org
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.
> opensips.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fusers=02%7C01%7Crmu
> ndkowsky%40ets.org%7C3e67609ec71a453c4bf908d572c83017%7C0ba6e9b760b34f
> ae92f37e6ddd9e9b65%7C0%7C0%7C636541126500103944=55y1%2BpK%2B0Ku1
> hmghUTEQI4vfN32lpk4WSjig3Y9AT3U%3D=0


___
Users mailing list
Users@lists.opensips.org
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.opensips.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fusers=02%7C01%7Crmundkowsky%40ets.org%7C3e67609ec71a453c4bf908d572c83017%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636541126500103944=55y1%2BpK%2B0Ku1hmghUTEQI4vfN32lpk4WSjig3Y9AT3U%3D=0



This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it from your 
system. Any other use of this e-mail is prohibited.


Thank you for your compliance.


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


Re: [OpenSIPS-Users] opensips on Ubuntu >= 16.04

2017-11-06 Thread Mundkowsky, Robert

I installed it on Ubuntu 16.04.2.  The normal installation worked fine. Only 
think I did manually was to create a boot script for it.


From: Users  on behalf of Khalil Khamlichi 

Sent: Monday, November 6, 2017 4:02 AM
To: OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] opensips on Ubuntu >= 16.04

http://apt.opensips.org/packages.php?v=2.3

Sent via mobile, please forgive typos and brevity

On Nov 6, 2017 8:53 AM, "Martin Horne" 
> wrote:

Hi I have opensips built for arm64 (opensip-cp is working); has anybody got a 
cook book for installing opensips on Ubuntu 16.04?

Would also be very interested if anybody has it building on Alpine.

Thanks





Martin Horne

Developer Advocate  |

System Architect| Arm

. . . . . . . . . . . . . . . . . . . . . . . . . . .

m. +1 (925) 519 3056

Arm.com



IMPORTANT NOTICE: The contents of this email and any attachments are 
confidential and may also be privileged. If you are not the intended recipient, 
please notify the sender immediately and do not disclose the contents to any 
other person, use it for any purpose, or store or copy the information in any 
medium. Thank you.

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




This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it from your 
system. Any other use of this e-mail is prohibited.


Thank you for your compliance.


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


Re: [OpenSIPS-Users] opensips 2.2.5 stop responding/processing requests. - Centos 6.5

2017-10-30 Thread Mundkowsky, Robert

This might help with debugging it.

https://blog.opensips.org/2017/09/20/troubleshooting-opensips-script/
[https://blogopensips.files.wordpress.com/2017/09/troubleshooting.jpg]

Troubleshooting OpenSIPS script – Drops of wisdom 
...
blog.opensips.org
What makes OpenSIPS such an attractive and powerful SIP solutions is its high 
level of programmability, thanks to its C-like configuration script.





From: Users  on behalf of Jonathan Hunter 

Sent: Monday, October 30, 2017 2:25 PM
To: OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] opensips 2.2.5 stop responding/processing 
requests. - Centos 6.5


Hi Johan,


Thanks for the response I appreciate it.


We do use radius for accounting and fire all the information to a central 
server, but it appears all that was fine and connectivity/configuration was 
good at the time of the issue.


Anywhere in particular it could break things? I have seen it when opensips cant 
reach radius it starts to be none responsive, is that a scenario you have seen?


Many thanks


Jon



From: Users  on behalf of Johan De Clercq 

Sent: 30 October 2017 17:53
To: OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] opensips 2.2.5 stop responding/processing 
requests. - Centos 6.5

If you use acc with radius, check radius config.

Br

On 30 Oct 2017 18:33, "Jonathan Hunter" 
> wrote:

Hi Guys,

Has anyone had the following behaviour with this release of opensips?

It has been running fine for a number of months, and then suddenly today the 
server which was running as the primary suddenly stopped responding to SIP 
requests, or stopped processing them, or there was a long pause in a sequence 
completing.

So in some cases, INVITES or REGISTER messages were ignored and the initial 
requests werent always logged in the opensips log file (even though we do this 
for all messages), however the SIP requests were hitting the server as I was 
tracing them.

In the logs I can see the following warnings we havent seen before;

Oct 30 13:31:25 sgw6 VU-SIP-Proxy[11159]: WARNING:core:utimer_ticker: utimer 
task  already scheduled for 9639891650 ms (now 9639891850 ms), it 
may overlap.
Oct 30 13:52:48 sgw6 VU-SIP-Proxy[11159]: WARNING:core:timer_ticker: timer task 
 already scheduled for 9640994180 ms (now 9641175280 ms), it may 
overlap..
Oct 30 13:52:48 sgw6 VU-SIP-Proxy[11159]: WARNING:core:timer_ticker: timer task 
 already scheduled for 9640980270 ms (now 9641175280 ms), it may 
overlap..

A restart of the opensips application didnt help, and service was only restored 
fully when I failed over to the secondary server.

Has anyone had these issues before? There are no obvious server level issues, 
and as I mentioned the logs dont contain anything too unusual.

Any help appreciated.

Many thanks

Jon


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




This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it from your 
system. Any other use of this e-mail is prohibited.


Thank you for your compliance.


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


Re: [OpenSIPS-Users] [OpenSIPS-Devel] [Blog] Running OpenSIPS in the Cloud

2017-10-25 Thread Mundkowsky, Robert
Nice info. There might be some more complex AWS setups people might want to 
use, but I really do not know from a telephony architecture if they are viable 
or useful:

- AWS Nat gateway (basically a NAT for a subnet of AWS instances rather than 
1-to-1 NAT instances)
- Use of AWS ELB: AWS can assign multiple IPs to a AWS ELB per explicit request 
to AWS to allow for scaling the ELB (hence you might have multiple external IPs 
mapping to your private IP).
- I vaguely remember there are some settings for low latency subnet, maybe 
called "placement groups"
- I vaguely remember some AMIs are better for low latency (I think AWS makes 
some)
- Might want to use larger instances to reduce change of instance being shared 
or directly request dedicated instances or dedicated hosts


Robert Mundkowsky

-Original Message-
From: Devel [mailto:devel-boun...@lists.opensips.org] On Behalf Of 
Bogdan-Andrei Iancu
Sent: Wednesday, October 25, 2017 12:09 PM
To: users@lists.opensips.org; developensips ; 
n...@lists.opensips.org
Subject: [OpenSIPS-Devel] [Blog] Running OpenSIPS in the Cloud

Cloud computing is a more and more viable option for running and providing SIP 
services. The question is how compatible are the SIP services with the Cloud 
environment ? So let’s have a look at this compatibility from the most 
sensitive (for SIP protocol) perspective – the IP network topology...

https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fblog.opensips.org%2F2017%2F10%2F25%2Frunning-opensips-in-the-cloud%2F=02%7C01%7Crmundkowsky%40ets.org%7Ca66deb49abc54e8cdabd08d51bc2cfff%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636445445883234322=M3OoLvj%2FDMa3EObuSCJE%2Bc6dXKTu9uPF0z6o3emZ7iw%3D=0

Enjoy,

--
Bogdan-Andrei Iancu
   OpenSIPS Founder and Developer
   
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.opensips-solutions.com=02%7C01%7Crmundkowsky%40ets.org%7Ca66deb49abc54e8cdabd08d51bc2cfff%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636445445883234322=vCNnjcu7looYZrRLLX7z%2Bx%2FMVp9YAYIa9WiUDnMlGTo%3D=0


___
Devel mailing list
de...@lists.opensips.org
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.opensips.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fdevel=02%7C01%7Crmundkowsky%40ets.org%7Ca66deb49abc54e8cdabd08d51bc2cfff%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636445445883234322=ejreMLqLRE39GWjs6qrZP6krj9y4T0PFyYUkLa6nUc0%3D=0



This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it from your 
system. Any other use of this e-mail is prohibited.


Thank you for your compliance.


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


Re: [OpenSIPS-Users] Configure Install Prefix

2017-10-20 Thread Mundkowsky, Robert
Usually people do not try to install in "/" which is the root directory.  Which 
technically likely has no prefix.

You usually want to install application in their own subdirectory if you are 
using a prefix for easier management. For example:

/opensips-2.2.3 or /apps/opensips-2.2.3 or ...

Otherwise you want to let it install in the normal locations for a specific OS 
(e.g. libs like go to /usr/local/lib, configs into /etc ,).

Robert


-Original Message-
From: Users [mailto:users-boun...@lists.opensips.org] On Behalf Of Social Boh
Sent: Friday, October 20, 2017 2:16 PM
To: users@lists.opensips.org
Subject: [OpenSIPS-Users] Configure Install Prefix

Hello,

OpenSIPs 2.3

On make menuconfig -> Configure Compile Options -> Configure Install Prefix if 
I configure /  only, the installation happen on /usr/local

If I choose /usr it's OK.

On 2.2 version this not happens.

Any hint?

Regards

--
---
I'm SoCIaL, MayBe


___
Users mailing list
Users@lists.opensips.org
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.opensips.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fusers=02%7C01%7Crmundkowsky%40ets.org%7Ccac0512948924e432ef108d517e6d9b4%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636441202635858519=%2FeSR6XS1oi37JTvfxLPVvVInCofjFwtP3GPMoxGt%2FsI%3D=0



This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it from your 
system. Any other use of this e-mail is prohibited.


Thank you for your compliance.


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


Re: [OpenSIPS-Users] OpenSIPS winning the Google Open Source Peer Bonus

2017-10-09 Thread Mundkowsky, Robert
Wow, congrads!

Any idea what they use it for?

Robert

From: Users [mailto:users-boun...@lists.opensips.org] On Behalf Of Nabeel
Sent: Monday, October 9, 2017 9:50 AM
To: OpenSIPS users mailling list 
Subject: Re: [OpenSIPS-Users] OpenSIPS winning the Google Open Source Peer Bonus

Congrats to OpenSIPS.

On 9 October 2017 at 12:05, Bogdan-Andrei Iancu 
> wrote:

We are all proud to announce that the OpenSIPS project is a winner of the 
Google Open Source Peer Bonus - this is an official recognition from Google in 
terms of the OSS they use.

"We’re excited to announce 2017’s second round of Open Source Peer Bonus 
winners. Google Open 
Source
 established this program six years ago to encourage Googlers to recognize and 
celebrate the external developers contributing to the open source ecosystem 
Google depends on."

https://opensource.googleblog.com/2017/10/more-open-source-peer-bonus-winners.html

Thank you Google,


--

Bogdan-Andrei Iancu

  OpenSIPS Founder and Developer

  
http://www.opensips-solutions.com

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




This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it from your 
system. Any other use of this e-mail is prohibited.


Thank you for your compliance.


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


Re: [OpenSIPS-Users] OpenSIPs Dispatcher checking different ports for Activeness

2017-09-29 Thread Mundkowsky, Robert
Use ds_set_state  to manually mark as active and inactive, or if your backend 
support SIP OPTIONS, you can use probing to have it automatically enable and 
disable.


The MI command (ds_set_state) can be sent via command line tool (opensipsctl) 
or other ways (XML rpc,…).

http://www.opensips.org/html/docs/modules/2.4.x/dispatcher.html#idp5772400
http://www.opensips.org/Documentation/Interface-MI-2-4


Robert

From: Users [mailto:users-boun...@lists.opensips.org] On Behalf Of Richard 
Parker
Sent: Thursday, September 28, 2017 5:55 PM
To: users@lists.opensips.org
Subject: [OpenSIPS-Users] OpenSIPs Dispatcher checking different ports for 
Activeness

Hello,
This may sound convoluted and I am somewhat at a loss as to how to go about 
this.
I have a device that is on a old Windows platform that has a SIP Stack on it.
It is fronted by OpenSIPs (which does very well I might add).
I have 4 UDP SIP ports that I am using on the Windows box to dispatch to.
The SIP Stack brings up these 4 ports at boot up. (5060, 5070, 5080 and 5090).
The SIP Stack hands off to another app which takes a LONG time to come up 
(Various libraries).

When this app is up, it advertises on 4 other UDP ports (5064, 5074, 5084, 
5094) another UDP SIP to be able to make sure that all is well.

The problem is, I need to know how to make all dispatched ports as “Inactive” 
to send to the common ports (5060, 5070, 5080, 5090) UNTIL the Checked ports 
(5064, 5074, 5084, 5094) are up.

Has anyone done this before?
Thanks,

--
Rick



This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it from your 
system. Any other use of this e-mail is prohibited.


Thank you for your compliance.


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


Re: [OpenSIPS-Users] trying to understand the E_DLG_STATE_CHANGED

2017-09-26 Thread Mundkowsky, Robert
Glad your other solution works, but just wanted to mention other approach in 
case people don’t want to setup and store CDR data.  Two more notes, the 
solution I suggested would be best if you used event listener that is a 
separate daemon than is subscribed to events rather than polling.  Also SIP OK 
(200) does not always mean a call is established. For example, can be returned 
after a CANCEL, but I assume you are filtering based on INVITE.

Robert

From: Users [mailto:users-boun...@lists.opensips.org] On Behalf Of Khalil 
Khamlichi
Sent: Tuesday, September 19, 2017 4:10 PM
To: OpenSIPS users mailling list <users@lists.opensips.org>
Subject: Re: [OpenSIPS-Users] trying to understand the E_DLG_STATE_CHANGED

Hi Robert,

Thanks for your idea, the only issue is that it involves polling the server and 
I don't want to go that path. actually with my solution the results were quite 
good and precise, the reason is that a 200 OK is always an established call and 
an E_ACC_CDR is always an end to a successful call and never to another status 
of a call, and on both places we have access to all dialog variables and/or 
acc_extra variables.

Again, Thanks for your idea.

On Tue, Sep 19, 2017 at 3:26 PM, Mundkowsky, Robert 
<rmundkow...@ets.org<mailto:rmundkow...@ets.org>> wrote:
Using E_DLG_STATE_CHANGED to keep a count of active dialogs seems reasonable.  
If you want the callerID, you would use the “hash_id of dialog” and the “b= 
hash_entry of dialog” to look up the dialog in the table and get more info like 
the callerid.  You use the dlg_list command to look up data in the table. I 
don’t know if you could do this in the openSIPS config file alone, you likely 
have to have a script that is called to query the table, parse the data you 
want, ….

Looks like the key is of the form:

:< hash_entry> like “1527:459551172” below

Example of details from dlg_list:

rmundkowsky: ~$ /export/Apps/opensips/sbin/opensipsctl fifo dlg_list
database engine 'MYSQL' loaded
Control engine 'FIFO' loaded
entering fifo_cmd dlg_list
dialog::  hash=1527:459551172 dialog_id=6558874612164
state:: 3
user_flags:: 0
timestart:: 1505826879
datestart:: 2017-09-19 09:14:39
timeout:: 1505848479
dateout:: 2017-09-19 15:14:39
callid:: 
28456fb41ba510f57257de424e73e...@xx.xx.xx.xx:5060<mailto:28456fb41ba510f57257de424e73e...@xx.xx.xx.xx:5060>
from_uri:: sip:opens...@xx.xxx.xx.xx
to_uri:: sip:7...@xx.xx.xx.xx:5060
caller_tag:: as7e7bed90
caller_contact:: sip:ZZZ@ XX.XX.XX.XX:5060
callee_cseq:: 0
caller_route_set::
caller_bind_addr:: udp:XX.XX.XX.XX:5060
caller_sdp::
CALLEES::
callee::
callee_tag:: 255851520
callee_contact:: sip:YYY@ XX.XX.XX.XX:5090;transport=udp
caller_cseq:: 102
callee_route_set::
callee_bind_addr:: udp: XX.XX.XX.XX:5060
callee_sdp::
FIFO command was:
:dlg_list:osips_rply_e7e14d04

Robert

From: Users 
[mailto:users-boun...@lists.opensips.org<mailto:users-boun...@lists.opensips.org>]
 On Behalf Of Khalil Khamlichi
Sent: Tuesday, September 19, 2017 8:54 AM
To: OpenSIPS users mailling list 
<users@lists.opensips.org<mailto:users@lists.opensips.org>>
Subject: Re: [OpenSIPS-Users] trying to understand the E_DLG_STATE_CHANGED

Hi Răzvan,

Thanks for your answer.

I ended up using onreply_route and checking if ($rs == "200") to increment 
connect_calls and then event_route[E_ACC_CDR]  to decrement connected_calls.

multiple local tests are giving expected behavior, will need to test on 
production to confirm though.

Thanks a lot for your help.

On Mon, Sep 18, 2017 at 9:47 AM, Răzvan Crainea 
<raz...@opensips.org<mailto:raz...@opensips.org>> wrote:
Hi, Khalil!

To be honest, I think this event was initially made to be used with the MI 
dlg_end_dlg command, which only terminates a dialog. However, you could run 
'opensipsctl fifo dlg_list' and match the hash_id and hash_entry against the 
returned values, and then identify the callid.

If you would also like to receive the callid in the event, please open a 
feature request[1].

[1] 
https://github.com/OpenSIPS/opensips/issues<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FOpenSIPS%2Fopensips%2Fissues=02%7C01%7Crmundkowsky%40ets.org%7Cf9c8eab9cdfd4fae4aa608d4ff5dedd6%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636414226270892544=FECgaKsHHG0bJ27vaswQ3Kv8mIs%2B%2FEIWA0BhlexCT5w%3D=0>

Best regards,

Răzvan Crainea

OpenSIPS Developer

www.opensips-solutions.com<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.opensips-solutions.com=02%7C01%7Crmundkowsky%40ets.org%7Cf9c8eab9cdfd4fae4aa608d4ff5dedd6%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636414226270892544=Ffi

Re: [OpenSIPS-Users] timeout settings

2017-09-22 Thread Mundkowsky, Robert
My guess is the timeout I am referring to happens before a dialog is started.

Robert Mundkowsky

From: Users [mailto:users-boun...@lists.opensips.org] On Behalf Of Khalil 
Khamlichi
Sent: Friday, September 22, 2017 4:14 PM
To: OpenSIPS users mailling list <users@lists.opensips.org>
Subject: Re: [OpenSIPS-Users] timeout settings

Did you look at the documention of the dialog module ?
Sent from my Samsung Note

On Sep 22, 2017 8:52 PM, "Mundkowsky, Robert" 
<rmundkow...@ets.org<mailto:rmundkow...@ets.org>> wrote:
I assume openSIPS is following the SIP RFC for timeout settings, but is it 
possible to reduce the timeouts for things like INVITEs?

Robert





This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it from your 
system. Any other use of this e-mail is prohibited.


Thank you for your compliance.



___
Users mailing list
Users@lists.opensips.org<mailto:Users@lists.opensips.org>
http://lists.opensips.org/cgi-bin/mailman/listinfo/users<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.opensips.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fusers=02%7C01%7Crmundkowsky%40ets.org%7C5eaeae2f9b52454241bf08d501f6a59d%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636417081209271938=TZ2utiPaBWCpVHRV%2F6L0TmN6Nh7k1X5vhyKqIERjEqQ%3D=0>



This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it from your 
system. Any other use of this e-mail is prohibited.


Thank you for your compliance.


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


Re: [OpenSIPS-Users] timeout settings

2017-09-22 Thread Mundkowsky, Robert
I think I found the settings (fr_timeout and fr_inv_timeout). Not quite sure 
how these differ?

Robert Mundkowsky

From: Mundkowsky, Robert
Sent: Friday, September 22, 2017 3:51 PM
To: 'OpenSIPS users mailling list' <users@lists.opensips.org>
Subject: RE: timeout settings

I should note that this is in the context of failing over to other destinations 
via load balancing.


Can this be handle via  modparam("tm", "fr_timer", xxx)?


Robert Mundkowsky

From: Mundkowsky, Robert
Sent: Friday, September 22, 2017 3:48 PM
To: OpenSIPS users mailling list 
<users@lists.opensips.org<mailto:users@lists.opensips.org>>
Subject: timeout settings

I assume openSIPS is following the SIP RFC for timeout settings, but is it 
possible to reduce the timeouts for things like INVITEs?

Robert





This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it from your 
system. Any other use of this e-mail is prohibited.


Thank you for your compliance.


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


Re: [OpenSIPS-Users] timeout settings

2017-09-22 Thread Mundkowsky, Robert
I should note that this is in the context of failing over to other destinations 
via load balancing.


Can this be handle via  modparam("tm", "fr_timer", xxx)?


Robert Mundkowsky

From: Mundkowsky, Robert
Sent: Friday, September 22, 2017 3:48 PM
To: OpenSIPS users mailling list <users@lists.opensips.org>
Subject: timeout settings

I assume openSIPS is following the SIP RFC for timeout settings, but is it 
possible to reduce the timeouts for things like INVITEs?

Robert





This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it from your 
system. Any other use of this e-mail is prohibited.


Thank you for your compliance.


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


[OpenSIPS-Users] timeout settings

2017-09-22 Thread Mundkowsky, Robert
I assume openSIPS is following the SIP RFC for timeout settings, but is it 
possible to reduce the timeouts for things like INVITEs?

Robert





This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it from your 
system. Any other use of this e-mail is prohibited.


Thank you for your compliance.


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


Re: [OpenSIPS-Users] trying to understand the E_DLG_STATE_CHANGED

2017-09-19 Thread Mundkowsky, Robert
Using E_DLG_STATE_CHANGED to keep a count of active dialogs seems reasonable.  
If you want the callerID, you would use the “hash_id of dialog” and the “b= 
hash_entry of dialog” to look up the dialog in the table and get more info like 
the callerid.  You use the dlg_list command to look up data in the table. I 
don’t know if you could do this in the openSIPS config file alone, you likely 
have to have a script that is called to query the table, parse the data you 
want, ….

Looks like the key is of the form:

:< hash_entry> like “1527:459551172” below

Example of details from dlg_list:

rmundkowsky: ~$ /export/Apps/opensips/sbin/opensipsctl fifo dlg_list
database engine 'MYSQL' loaded
Control engine 'FIFO' loaded
entering fifo_cmd dlg_list
dialog::  hash=1527:459551172 dialog_id=6558874612164
state:: 3
user_flags:: 0
timestart:: 1505826879
datestart:: 2017-09-19 09:14:39
timeout:: 1505848479
dateout:: 2017-09-19 15:14:39
callid:: 28456fb41ba510f57257de424e73e...@xx.xx.xx.xx:5060
from_uri:: sip:opens...@xx.xxx.xx.xx
to_uri:: sip:7...@xx.xx.xx.xx:5060
caller_tag:: as7e7bed90
caller_contact:: sip:ZZZ@ XX.XX.XX.XX:5060
callee_cseq:: 0
caller_route_set::
caller_bind_addr:: udp:XX.XX.XX.XX:5060
caller_sdp::
CALLEES::
callee::
callee_tag:: 255851520
callee_contact:: sip:YYY@ XX.XX.XX.XX:5090;transport=udp
caller_cseq:: 102
callee_route_set::
callee_bind_addr:: udp: XX.XX.XX.XX:5060
callee_sdp::
FIFO command was:
:dlg_list:osips_rply_e7e14d04

Robert

From: Users [mailto:users-boun...@lists.opensips.org] On Behalf Of Khalil 
Khamlichi
Sent: Tuesday, September 19, 2017 8:54 AM
To: OpenSIPS users mailling list 
Subject: Re: [OpenSIPS-Users] trying to understand the E_DLG_STATE_CHANGED

Hi Răzvan,

Thanks for your answer.

I ended up using onreply_route and checking if ($rs == "200") to increment 
connect_calls and then event_route[E_ACC_CDR]  to decrement connected_calls.

multiple local tests are giving expected behavior, will need to test on 
production to confirm though.

Thanks a lot for your help.

On Mon, Sep 18, 2017 at 9:47 AM, Răzvan Crainea 
> wrote:
Hi, Khalil!

To be honest, I think this event was initially made to be used with the MI 
dlg_end_dlg command, which only terminates a dialog. However, you could run 
'opensipsctl fifo dlg_list' and match the hash_id and hash_entry against the 
returned values, and then identify the callid.

If you would also like to receive the callid in the event, please open a 
feature request[1].

[1] 
https://github.com/OpenSIPS/opensips/issues

Best regards,


Răzvan Crainea

OpenSIPS Developer

www.opensips-solutions.com
On 09/15/2017 10:46 PM, Khalil Khamlichi wrote:
Hi everyone,

I am trying to understand dialog module eventing system.

I have added this route :


event_route[E_DLG_STATE_CHANGED] {

fetch_event_params("$avp(a);$avp(b);$avp(c);$avp(d);$avp(e);$avp(f)");

cache_raw_query("redis:0", "PUBLISH serv1 
fetch_event_params=$avp(a),$avp(b),$avp(c),$avp(d),$avp(e),$avp(f)", 
"$avp(res)");

}


so for each event I can watch an entry

1505503997.413642 [0 
127.0.0.1:39734]
 "PUBLISH" "serv1" "fetch_event_params=3917,339471624,1,3,,"
1505503997.524535 [0 
127.0.0.1:39762]
 "PUBLISH" "serv1" "fetch_event_params=3917,339471624,3,4,,"
1505504018.809746 [0 

Re: [OpenSIPS-Users] event subscribe forever?

2017-09-13 Thread Mundkowsky, Robert
Thanks, that seems to work.

Robert Mundkowsky

From: Users [mailto:users-boun...@lists.opensips.org] On Behalf Of xiaofeng
Sent: Wednesday, September 13, 2017 5:53 AM
To: OpenSIPS users mailling list <users@lists.opensips.org>
Subject: Re: [OpenSIPS-Users] event subscribe forever?



On Wed, Sep 13, 2017 at 7:43 AM, Mundkowsky, Robert 
<rmundkow...@ets.org<mailto:rmundkow...@ets.org>> wrote:
Is there a way to subscribe to event forever?

Seems the default is 1 hour (for event_subscribe), so I guess you have to 
constantly re-subscribe to events?

You probably can subscribe an event in the opensips config script.

http://www.opensips.org/Documentation/Tutorials-EventInterface#toc5<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.opensips.org%2FDocumentation%2FTutorials-EventInterface%23toc5=02%7C01%7Crmundkowsky%40ets.org%7Cd089a2e0286344e1178008d4fa8dc4e9%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636408934193285935=pvE2Y7DW75DBFNhTASDyrg%2BKbEBRnAqLtnhYrgIKqvI%3D=0>


Robert



This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it from your 
system. Any other use of this e-mail is prohibited.


Thank you for your compliance.



___
Users mailing list
Users@lists.opensips.org<mailto:Users@lists.opensips.org>
http://lists.opensips.org/cgi-bin/mailman/listinfo/users<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.opensips.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fusers=02%7C01%7Crmundkowsky%40ets.org%7Cd089a2e0286344e1178008d4fa8dc4e9%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636408934193285935=rUafQQLoZ0yFNQJI5gMWw1GXDZeMV9E2ZtoPn3DUFbM%3D=0>



--
xiaofeng

--
gpg key fingerprint:
2048R/5E63005B
C84F 671F 70B7 7330 4726  5EC8 02BC CBA2 5E63 005B
--
trans-zh_cn mailing list
trans-zh...@lists.fedoraproject.org<mailto:trans-zh...@lists.fedoraproject.org>
https://admin.fedoraproject.org/mailman/listinfo/trans-zh_cn<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fadmin.fedoraproject.org%2Fmailman%2Flistinfo%2Ftrans-zh_cn=02%7C01%7Crmundkowsky%40ets.org%7Cd089a2e0286344e1178008d4fa8dc4e9%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636408934193285935=qDsAGYYORJTR44EEGMVaQLU%2BsmWd4c1IBPADS6eoWEU%3D=0>



This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it from your 
system. Any other use of this e-mail is prohibited.


Thank you for your compliance.


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


Re: [OpenSIPS-Users] event subscribe forever?

2017-09-13 Thread Mundkowsky, Robert
But thanks for your inputs!  Was starting to think I was the only one on the 
forum.

Robert Mundkowsky

From: Mundkowsky, Robert
Sent: Wednesday, September 13, 2017 9:15 AM
To: users@lists.opensips.org
Subject: RE: [OpenSIPS-Users] event subscribe forever?

I was referring to subscribing to openSIPS events, not the SIP SUBSCRIBE 
message.

I believe I found the answer which is, you can subscribe in the openSIPS config 
file and then the subscribe is permanent by default where as if you try to 
subscribe via XMLRPC or such then the events must expire.  And trying to 
re-subscribe from XMLRPC has a few problems including seems openSIPS does not 
like you to have duplicate subscriptions, so you would have to unsubscribe and 
then re-subscribe and you might miss events between these actions.

Robert Mundkowsky

From: Users [mailto:users-boun...@lists.opensips.org] On Behalf Of Richard 
Phernambucq
Sent: Wednesday, September 13, 2017 2:01 AM
To: users@lists.opensips.org<mailto:users@lists.opensips.org>
Subject: Re: [OpenSIPS-Users] event subscribe forever?

Hi Robert,

Yes, you have to refresh your subscription periodically.

RFC 6665 3.1.1:

SUBSCRIBE requests SHOULD contain an "Expires" header field (defined

in 
[RFC3261<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftools.ietf.org%2Fhtml%2Frfc3261=02%7C01%7Crmundkowsky%40ets.org%7C50036eda55c34132602c08d4fa6d122b%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636408793756459224=spQV3PRjuq%2BIKZ4DUJtZ6hLVTt5OOtN1uC9mBUeIDFk%3D=0>]).
  This expires value indicates the duration of the

subscription.  In order to keep subscriptions effective beyond the

duration communicated in the "Expires" header field, subscribers need

to refresh subscriptions on a periodic basis using a new SUBSCRIBE

request on the same dialog as defined in 
[RFC3261<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftools.ietf.org%2Fhtml%2Frfc3261=02%7C01%7Crmundkowsky%40ets.org%7C50036eda55c34132602c08d4fa6d122b%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636408793756459224=spQV3PRjuq%2BIKZ4DUJtZ6hLVTt5OOtN1uC9mBUeIDFk%3D=0>].
Greetz,
Richard
On 13-9-2017 01:43, Mundkowsky, Robert wrote:
Is there a way to subscribe to event forever?

Seems the default is 1 hour (for event_subscribe), so I guess you have to 
constantly re-subscribe to events?

Robert



This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it from your 
system. Any other use of this e-mail is prohibited.


Thank you for your compliance.





___

Users mailing list

Users@lists.opensips.org<mailto:Users@lists.opensips.org>

http://lists.opensips.org/cgi-bin/mailman/listinfo/users<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.opensips.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fusers=02%7C01%7Crmundkowsky%40ets.org%7C50036eda55c34132602c08d4fa6d122b%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636408793756459224=LEGUGolDjawjru1oWGVdcEGqLLONBYGEXvR3bIeALwg%3D=0>




This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it from your 
system. Any other use of this e-mail is prohibited.


Thank you for your compliance.


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


Re: [OpenSIPS-Users] event subscribe forever?

2017-09-13 Thread Mundkowsky, Robert
I was referring to subscribing to openSIPS events, not the SIP SUBSCRIBE 
message.

I believe I found the answer which is, you can subscribe in the openSIPS config 
file and then the subscribe is permanent by default where as if you try to 
subscribe via XMLRPC or such then the events must expire.  And trying to 
re-subscribe from XMLRPC has a few problems including seems openSIPS does not 
like you to have duplicate subscriptions, so you would have to unsubscribe and 
then re-subscribe and you might miss events between these actions.

Robert Mundkowsky

From: Users [mailto:users-boun...@lists.opensips.org] On Behalf Of Richard 
Phernambucq
Sent: Wednesday, September 13, 2017 2:01 AM
To: users@lists.opensips.org
Subject: Re: [OpenSIPS-Users] event subscribe forever?

Hi Robert,

Yes, you have to refresh your subscription periodically.

RFC 6665 3.1.1:

SUBSCRIBE requests SHOULD contain an "Expires" header field (defined

in 
[RFC3261<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftools.ietf.org%2Fhtml%2Frfc3261=02%7C01%7Crmundkowsky%40ets.org%7C50036eda55c34132602c08d4fa6d122b%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636408793756459224=spQV3PRjuq%2BIKZ4DUJtZ6hLVTt5OOtN1uC9mBUeIDFk%3D=0>]).
  This expires value indicates the duration of the

subscription.  In order to keep subscriptions effective beyond the

duration communicated in the "Expires" header field, subscribers need

to refresh subscriptions on a periodic basis using a new SUBSCRIBE

request on the same dialog as defined in 
[RFC3261<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftools.ietf.org%2Fhtml%2Frfc3261=02%7C01%7Crmundkowsky%40ets.org%7C50036eda55c34132602c08d4fa6d122b%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636408793756459224=spQV3PRjuq%2BIKZ4DUJtZ6hLVTt5OOtN1uC9mBUeIDFk%3D=0>].
Greetz,
Richard
On 13-9-2017 01:43, Mundkowsky, Robert wrote:
Is there a way to subscribe to event forever?

Seems the default is 1 hour (for event_subscribe), so I guess you have to 
constantly re-subscribe to events?

Robert



This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it from your 
system. Any other use of this e-mail is prohibited.


Thank you for your compliance.






___

Users mailing list

Users@lists.opensips.org<mailto:Users@lists.opensips.org>

http://lists.opensips.org/cgi-bin/mailman/listinfo/users<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.opensips.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fusers=02%7C01%7Crmundkowsky%40ets.org%7C50036eda55c34132602c08d4fa6d122b%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636408793756459224=LEGUGolDjawjru1oWGVdcEGqLLONBYGEXvR3bIeALwg%3D=0>




This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it from your 
system. Any other use of this e-mail is prohibited.


Thank you for your compliance.


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


[OpenSIPS-Users] event subscribe forever?

2017-09-12 Thread Mundkowsky, Robert
Is there a way to subscribe to event forever?

Seems the default is 1 hour (for event_subscribe), so I guess you have to 
constantly re-subscribe to events?

Robert



This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it from your 
system. Any other use of this e-mail is prohibited.


Thank you for your compliance.


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


[OpenSIPS-Users] what to reset after crash

2017-09-12 Thread Mundkowsky, Robert
I am running a single openSIPS instance.  I noticed if there is a dialog and 
openSIPS crashes then the dialog state is still set to active for a load 
balancer destination even if the call ended when openSIPS was down.

I am guessing db_mode should be set to 0 for all modules (e.g. dialog) if you 
run a single openSIPS instance?  Or are there some settings that need to be 
reset after a crash?
In other words, saving the states of modules in the database is only a good 
idea if openSIPS is run in a cluster where hopefully there is at least one 
instance up all the time.

Robert









This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it from your 
system. Any other use of this e-mail is prohibited.


Thank you for your compliance.


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


[OpenSIPS-Users] determine if load balancer disabled by probe or MI

2017-09-11 Thread Mundkowsky, Robert
I am guessing that the "auto-reenable" field return by the "lb_list" MI 
function determines if the load balancer destination was disabled by a probe or 
by MI command?

Robert



This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it from your 
system. Any other use of this e-mail is prohibited.


Thank you for your compliance.


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


Re: [OpenSIPS-Users] compile with openssl version

2017-07-11 Thread Mundkowsky, Robert
Why hardcode it, just use LD_LIBRARY_PATH


Robert

From: Users [mailto:users-boun...@lists.opensips.org] On Behalf Of Liviu Chircu
Sent: Tuesday, July 11, 2017 3:46 PM
To: users@lists.opensips.org
Subject: Re: [OpenSIPS-Users] compile with openssl version


It looks like your distro's libssl still has priority over the custom one. To 
avoid both uninstalling libssl and forcing all apps to use the newest library, 
I suggest you compile a hardcoded search path into tls_mgm.so.

Just make a small modification in modules/tls_mgm/Makefile, like in this 
example:

LIBS += -Wl,-rpath /home/liviu/lib $(shell $(SSL_BUILDER) --libs)

Compile the tls_mgm, and if all goes well, the linker should spot the custom 
libssl first:

[liviu ◄ Y510P opensips (master)]$ ldd modules/tls_mgm/tls_mgm.so
linux-vdso.so.1 =>  (0x7040d000)
libssl.so.1.0.0 => /home/liviu/lib/libssl.so.1.0.0 (0x7fd9cde0a000) 
< the forced "runtime path" is working!
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x7fd9cda21000)
libcrypto.so.1.0.0 => /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 
(0x7fd9cd5dc000)
/lib64/ld-linux-x86-64.so.2 (0x55a69a1b7000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x7fd9cd3d8000)

Another solution could be:

echo "/usr/local/lib" > /etc/ld.so.conf.d/libssl.conf; ldconfig

But note that this will "upgrade" the library for all apps in your system that 
require it.

Liviu Chircu

OpenSIPS Developer

http://www.opensips-solutions.com
On 11.07.2017 21:58, Tito Cumpen wrote:
Group,


I've updated openssl in order to use opensips 2.3 but I am having issues after 
compiling and running


 openssl version -a
OpenSSL 1.0.2k  26 Jan 2017
built on: reproducible build, date unspecified
platform: linux-x86_64
options:  bn(64,64) rc4(8x,int) des(idx,cisc,16,int) idea(int) blowfish(idx)
compiler: gcc -I. -I.. -I../include  -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN 
-DHAVE_DLFCN_H -Wa,--noexecstack -m64 -DL_ENDIAN -O3 -Wall -DOPENSSL_IA32_SSE2 
-DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DRC4_ASM 
-DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM 
-DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -DECP_NISTZ256_ASM
OPENSSLDIR: "/usr/local/ssl"


but when I run opensips I get

 ERROR:tls_mgm:mod_init: unable to set the memory allocation functions
Jul 11 18:52:56 cloud-server-06 /sbin/opensips[32421]: ERROR:tls_mgm:mod_init: 
NOTE: check if you are using openssl 1.0.1e-fips, (or other FIPS version of 
openssl, as this is known to be broken; if so, you need to upgrade or downgrade 
to a different openssl version!
Jul 11 18:52:56 cloud-server-06 /sbin/opensips[32421]: ERROR:tls_mgm:mod_init: 
current version: OpenSSL 1.0.1e-fips 11 Feb 2013


How so I force opensips to use the newer version??

Thanks,
Tito




___

Users mailing list

Users@lists.opensips.org

http://lists.opensips.org/cgi-bin/mailman/listinfo/users




This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it from your 
system. Any other use of this e-mail is prohibited.


Thank you for your compliance.


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


Re: [OpenSIPS-Users] [Blog] Traffic balancing – load, weights, round robin ??

2017-06-30 Thread Mundkowsky, Robert
Yeah, saw that. Looks real good.

Robert Mundkowsky

-Original Message-
From: Bogdan-Andrei Iancu [mailto:bog...@opensips.org]
Sent: Wednesday, June 28, 2017 3:43 PM
To: Mundkowsky, Robert <rmundkow...@ets.org>; OpenSIPS devel mailling list 
<de...@lists.opensips.org>; OpenSIPS users mailling list 
<users@lists.opensips.org>
Cc: busin...@lists.opensips.org; n...@lists.opensips.org
Subject: Re: [OpenSIPS-Users] [Blog] Traffic balancing – load, weights, round 
robin ??

Hi Robert,

See the new blog post about how a balancer should be inserted into the SIP flow:

https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fblog.opensips.org%2F2017%2F06%2F28%2Ftraffic-balancing-the-insertion-into-the-sip-flow%2F=02%7C01%7Crmundkowsky%40ets.org%7C82012f772567476f77a308d4be5ddf7d%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C63634275029125=xseFlfBeoa0hoS1sp01WsrFIeO71etgACzp9BPj6KcY%3D=0

Thanks for the idea of the post ;)

Bogdan-Andrei Iancu
   OpenSIPS Founder and Developer
   
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.opensips-solutions.com=02%7C01%7Crmundkowsky%40ets.org%7C82012f772567476f77a308d4be5ddf7d%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C63634275029125=SfQLAan3rPA%2FfN%2Ftyr8c0WfvFKQ%2BAv1P2rGvQLlYig0%3D=0

OpenSIPS Bootcamp 2017, Houston, US
   
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fopensips.org%2Ftraining%2FOpenSIPS_Bootcamp_2017.html=02%7C01%7Crmundkowsky%40ets.org%7C82012f772567476f77a308d4be5ddf7d%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C63634275029125=M6Ms4t4ks5P3Ex228Ye6iDagl%2BT7%2FrfnG%2Fg4BM5xD8c%3D=0

On 06/16/2017 07:52 PM, Mundkowsky, Robert wrote:
> Thanks.
>
> FYI, the main reason we decided to use openSIPS is that is a lot more 
> documentation than other solutions.
>
> Anyways, I have read lot of the books ("Building Telephony..2nd and 1.6"), 
> some of the website (modules, how to, ); and the major missing things are:
> 1 - Need a "openSIPS CookBook of recipes" that has more route examples
> (e.g. how to setup user authentication, how to do HA, security (drop
> ghost calls, ...), setup to work with RTP proxies,  ...)
> 2 - module documentation needs better details on how to pass in and pass out 
> values. For example, some modules do not expand variables, so it is really 
> hard to pass in values.
>
>
>
> Robert Mundkowsky
>
> -Original Message-
> From: Devel [mailto:devel-boun...@lists.opensips.org] On Behalf Of
> Bogdan-Andrei Iancu
> Sent: Friday, June 16, 2017 10:47 AM
> To: OpenSIPS users mailling list <users@lists.opensips.org>
> Cc: busin...@lists.opensips.org; n...@lists.opensips.org; OpenSIPS
> devel mailling list <de...@lists.opensips.org>
> Subject: Re: [OpenSIPS-Devel] [OpenSIPS-Users] [Blog] Traffic balancing – 
> load, weights, round robin ??
>
> Hi Robert,
>
> All the time there is space for more :). This blog post is the first from a 
> set of docs trying to explain the routing with OpenSIPS.
>
> Including some feedback from you, I can draft as following chapters:
>   1) how to insert a balancer in your SIP traffic - like dialog statefull 
> proxy, transaction statefull proxy, stateless proxy, etc
>   2) routing modules in opensips, like dispatcher versus drouting versus 
> load-balancer..
>
>
> In your classification, I noticed many missing features for Dynamic Routing:
>   - in memory matching with prefix-tree - O(prefix_len)
>   - has gui in Control Panel
>   - destination pinging, failover, re-enable
>   - clustering capabilities for the state of the GW/destinations
>   - rule fallback (on matching)
>   ..
>
> Again, any feedback is more the welcome as it will give us some ideas about 
> the hot topics from the user perspective.
>
> Best regards,
>
> Bogdan-Andrei Iancu
> OpenSIPS Founder and Developer
>
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.op
> ensips-solutions.com=02%7C01%7Crmundkowsky%40ets.org%7Ccb9609d327
> 0b4091081108d4b4c6c079%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C63
> 6332213102517343=ejvSuDmud%2FPcsYLuGhCjfEX3Zug1WSCwBmWblGUTcus%3
> D=0
>
> OpenSIPS Bootcamp 2017, Houston, US
>
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fopensi
> ps.org%2Ftraining%2FOpenSIPS_Bootcamp_2017.html=02%7C01%7Crmundko
> wsky%40ets.org%7Ccb9609d3270b4091081108d4b4c6c079%7C0ba6e9b760b34fae92
> f37e6ddd9e9b65%7C0%7C0%7C636332213102517343=30yqvccNVQZmoeGjEWkj
> WQC2n7CZ7KgzccZxoRtPBek%3D=0
>
> On 06/15/2017 09:36 PM, Mundkowsky, Robert wrote:
>> This is helpful. But would like a little more details there. Such as:
>>
>> 1) openSIPS when it actions as a Load Balancer is always a SIP proxy during 
>&g

Re: [OpenSIPS-Users] Opensips as SIP Proxy and WebRTC Media Gateway

2017-06-28 Thread Mundkowsky, Robert
Curious, why would you want to use OpenSIPS and Kamailio?

There both SIP proxies.

Robert

From: Users [mailto:users-boun...@lists.opensips.org] On Behalf Of Alex 
Megalokonomos
Sent: Wednesday, June 28, 2017 5:47 AM
To: users@lists.opensips.org
Subject: [OpenSIPS-Users] Opensips as SIP Proxy and WebRTC Media Gateway

[https://mailtrack.io/trace/mail/3c783866054bc5242de3e7df06ab3a49285c0f0b.png?u=1422671]Hello,

We have the following scenario: our office call center is an Alcatel OmniPCX 
Office setup.

This handles most of our needs and also provides 4 SIP extensions.

These are provided by what appears to be a Kamailio SIP server v 3.2.2 (no 
webrtc or websockets support)

What we would like to do is set up an OpenSIPS instance to handle WebRTC and 
proxy everything to this Kamailio SIP server.

The idea is to allow a web client (using sip js or something similar) to 
register / make / receive calls as one of the Kamailio extensions.


I think half of the configuration is this : 
http://www.opensips.org/Documentation/Tutorials-WebSocket-2-1

which I've already completed and indeed, clients can register to opensips and 
chat/make calls over websockets between them.

How do I go about proxying registrations/invites/etc to the kamailio server 
instead?

best regards



This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it from your 
system. Any other use of this e-mail is prohibited.


Thank you for your compliance.


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


Re: [OpenSIPS-Users] [OpenSIPS-Devel] [Blog] Traffic balancing – load, weights, round robin ??

2017-06-16 Thread Mundkowsky, Robert
Thanks.

FYI, the main reason we decided to use openSIPS is that is a lot more 
documentation than other solutions.

Anyways, I have read lot of the books ("Building Telephony..2nd and 1.6"), some 
of the website (modules, how to, ); and the major missing things are:
1 - Need a "openSIPS CookBook of recipes" that has more route examples (e.g. 
how to setup user authentication, how to do HA, security (drop ghost calls, 
...), setup to work with RTP proxies,  ...)
2 - module documentation needs better details on how to pass in and pass out 
values. For example, some modules do not expand variables, so it is really hard 
to pass in values.



Robert Mundkowsky

-Original Message-
From: Devel [mailto:devel-boun...@lists.opensips.org] On Behalf Of 
Bogdan-Andrei Iancu
Sent: Friday, June 16, 2017 10:47 AM
To: OpenSIPS users mailling list <users@lists.opensips.org>
Cc: busin...@lists.opensips.org; n...@lists.opensips.org; OpenSIPS devel 
mailling list <de...@lists.opensips.org>
Subject: Re: [OpenSIPS-Devel] [OpenSIPS-Users] [Blog] Traffic balancing – load, 
weights, round robin ??

Hi Robert,

All the time there is space for more :). This blog post is the first from a set 
of docs trying to explain the routing with OpenSIPS.

Including some feedback from you, I can draft as following chapters:
 1) how to insert a balancer in your SIP traffic - like dialog statefull 
proxy, transaction statefull proxy, stateless proxy, etc
 2) routing modules in opensips, like dispatcher versus drouting versus 
load-balancer..


In your classification, I noticed many missing features for Dynamic Routing:
 - in memory matching with prefix-tree - O(prefix_len)
 - has gui in Control Panel
 - destination pinging, failover, re-enable
 - clustering capabilities for the state of the GW/destinations
 - rule fallback (on matching)
 ..

Again, any feedback is more the welcome as it will give us some ideas about the 
hot topics from the user perspective.

Best regards,

Bogdan-Andrei Iancu
   OpenSIPS Founder and Developer
   
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.opensips-solutions.com=02%7C01%7Crmundkowsky%40ets.org%7Ccb9609d3270b4091081108d4b4c6c079%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636332213102517343=ejvSuDmud%2FPcsYLuGhCjfEX3Zug1WSCwBmWblGUTcus%3D=0

OpenSIPS Bootcamp 2017, Houston, US
   
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fopensips.org%2Ftraining%2FOpenSIPS_Bootcamp_2017.html=02%7C01%7Crmundkowsky%40ets.org%7Ccb9609d3270b4091081108d4b4c6c079%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636332213102517343=30yqvccNVQZmoeGjEWkjWQC2n7CZ7KgzccZxoRtPBek%3D=0

On 06/15/2017 09:36 PM, Mundkowsky, Robert wrote:
> This is helpful. But would like a little more details there. Such as:
>
> 1) openSIPS when it actions as a Load Balancer is always a SIP proxy during 
> the complete dialog. In other words, the caller RTP is direct connected 
> backend gateway, but openSIPS is always between them for the SIP traffic.
> 2) Some information for the traffic distributions modules is stored in
> the database, but some info is only in memory (e.g. which gateway is
> enabled, count of active dialogs)
>
> This might be naïve details for most telecom folks, but helpful for naïve 
> users like myself.
>
> I haven't played with "Carrier Route","Dispatcher", and "Dynamic Routing", 
> but similar notes for those would be helpful too.
>
> The following video was very helpful in describing the different traffic 
> distributions modules openSIPS supports:
>
> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.y
> outube.com%2Fwatch%3Fv%3DyTLPs1-X0SM=02%7C01%7Crmundkowsky%40ets.
> org%7Ccb9609d3270b4091081108d4b4c6c079%7C0ba6e9b760b34fae92f37e6ddd9e9
> b65%7C0%7C0%7C636332213102517343=mDlSlzbtLQ%2FL3uDq67VkOa%2B8FPG
> 20nNx4AZ9duHVi1s%3D=0
>
> Not sure if my notes are helpful, but they are below.
>
> Routing modules:
> Carrier Route
> - old module and not maintained, but seems to work
> - features: routing, load balancing, blacklisting
> - not installed by default
> - no web GUI
>
> - performs longest prefix matching
> - you use longest preefix to pull "least cost" route out of database
> table
> - strips prefix, adds prefix/suffix
> - probabilities to load balancer
>
>
> Load Balancer
> - light weight
> - balancing based on load
> - can config via GUI
> - single database table
>
> - features:
> - no prefix/suffix changing
> - with version 1.8, you can keep counters in database
>
> - docs:
> Tutorial
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.op
> ensips.org%2FDocumentation%2FTutorials-LoadBalancing-1-9=02%7C01%
> 7Crmundkowsky%40ets.org%7Ccb9609d3270b4091081108d4b4c6c079

Re: [OpenSIPS-Users] [OpenSIPS-Devel] [Blog] Traffic balancing – load, weights, round robin ??

2017-06-15 Thread Mundkowsky, Robert
This is helpful. But would like a little more details there. Such as:

1) openSIPS when it actions as a Load Balancer is always a SIP proxy during the 
complete dialog. In other words, the caller RTP is direct connected backend 
gateway, but openSIPS is always between them for the SIP traffic.
2) Some information for the traffic distributions modules is stored in the 
database, but some info is only in memory (e.g. which gateway is enabled, count 
of active dialogs)

This might be naïve details for most telecom folks, but helpful for naïve users 
like myself.

I haven't played with "Carrier Route","Dispatcher", and "Dynamic Routing", but 
similar notes for those would be helpful too.

The following video was very helpful in describing the different traffic 
distributions modules openSIPS supports:

https://www.youtube.com/watch?v=yTLPs1-X0SM

Not sure if my notes are helpful, but they are below.

Routing modules:
Carrier Route
- old module and not maintained, but seems to work
- features: routing, load balancing, blacklisting
- not installed by default
- no web GUI

- performs longest prefix matching
- you use longest preefix to pull "least cost" route out of database table
- strips prefix, adds prefix/suffix
- probabilities to load balancer


Load Balancer
- light weight
- balancing based on load
- can config via GUI
- single database table

- features:
- no prefix/suffix changing
- with version 1.8, you can keep counters in database

- docs:
Tutorial
http://www.opensips.org/Documentation/Tutorials-LoadBalancing-1-9
DB schema:
https://www.opensips.org/Documentation/Install-DBSchema-2-2#AEN6455
module
http://www.opensips.org/html/docs/modules/2.2.x/load_balancer.html

Dispatcher
- computes hash over parts of request and selects an address from the 
destination list
- can config via GUI
- CallerID, From URI, To URI, Request URI
- via config file or databaseas
- does not strip or append prefix/suffix
- out of service destinations detected by probing
- can mark as out of service
- can mark as in service when gateway comes back online

Dynamic Routing
- heavy weight
- multiple criteria to determine route
- prefix, caller, group, time, priority
- databse only
4 tables (groups, rules, carriers, gateways)

- functions
- do_routing() uses all 4 tables
- route_to_carrier uses carriers & gateways tables
- route_to_gateway - uses gateways table




Robert Mundkowsky


-Original Message-
From: Devel [mailto:devel-boun...@lists.opensips.org] On Behalf Of 
Bogdan-Andrei Iancu
Sent: Thursday, June 15, 2017 2:01 PM
To: users@lists.opensips.org; developensips ; 
n...@lists.opensips.org; busin...@lists.opensips.org
Subject: [OpenSIPS-Devel] [Blog] Traffic balancing – load, weights, round robin 
??

Many times, during discussion about various OpenSIPS based solutions, I noticed 
that people make a confusion when comes to the meaning of “load balancing”.

https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fblog.opensips.org%2F2017%2F06%2F15%2Ftraffic-balancing-load-weights-round-robin%2F=02%7C01%7Crmundkowsky%40ets.org%7Ce9218868262d4ce369ac08d4b4189373%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636331465027654678=0acaS2xE6vYbvzOIyBIJC48oMhOLKF7j3YqKnDp98nI%3D=0

Enjoy the reading :)

--
Bogdan-Andrei Iancu
   OpenSIPS Founder and Developer
   
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.opensips-solutions.com=02%7C01%7Crmundkowsky%40ets.org%7Ce9218868262d4ce369ac08d4b4189373%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636331465027664682=lUNkjOnT%2FEZ%2FR%2Fvr%2B9wyPoECMq3B%2FFwU4OjzvlwN7yY%3D=0

OpenSIPS Bootcamp 2017, Houston, US
   
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fopensips.org%2Ftraining%2FOpenSIPS_Bootcamp_2017.html=02%7C01%7Crmundkowsky%40ets.org%7Ce9218868262d4ce369ac08d4b4189373%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636331465027664682=uT%2FNvQ3PfVFHXwSzRvis9FUw08RP%2Fwa5Uz0cj6by1Ec%3D=0


___
Devel mailing list
de...@lists.opensips.org
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.opensips.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fdevel=02%7C01%7Crmundkowsky%40ets.org%7Ce9218868262d4ce369ac08d4b4189373%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636331465027664682=Vx7JpSMTsxpa2hgUL%2FR1poHxfIYTJJ83iK6v0RqVU2U%3D=0



This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it from your 
system. Any other use of this e-mail is prohibited.


Thank you for your compliance.


___
Users mailing list
Users@lists.opensips.org

Re: [OpenSIPS-Users] How can I prevent Opensips to cache DNS queries.

2017-05-15 Thread Mundkowsky, Robert
Weird. Only think I can think of is if openSIPS is getting IP from internal 
database table somehow or if it has special DNS resolution code, which I doubt.

Robert

From: Users [mailto:users-boun...@lists.opensips.org] On Behalf Of Stefan 
Carlsson
Sent: Friday, May 12, 2017 8:42 AM
To: OpenSIPS users mailling list <users@lists.opensips.org>
Subject: Re: [OpenSIPS-Users] How can I prevent Opensips to cache DNS queries.

No nameserver (eg. bind) installed.

The file resolv.conf is there but with no entries.  So  I've hardcoded the 
ip/names in the hosts file.
But as I wrote,  the strange thing is that the system got the fact that no dns 
was found,  but OpenSIPS still nows the "bad addresses" from somewhere.  
(earlier DNS queries)
A restart of the OpenSIP's solved the problem, and this is very odd !!!

Thanks for setting your time on this matter ...

// Stefan

From: Users [mailto:users-boun...@lists.opensips.org] On Behalf Of Mundkowsky, 
Robert
Sent: den 12 maj 2017 00:42
To: OpenSIPS users mailling list 
<users@lists.opensips.org<mailto:users@lists.opensips.org>>
Subject: Re: [OpenSIPS-Users] How can I prevent Opensips to cache DNS queries.

Also you can try removing "dns" from your nsswitch.conf file or hard coding the 
bad server name in the hosts file (remember to use ipv4 and ipv6 if needed).

Robert

From: Users [mailto:users-boun...@lists.opensips.org] On Behalf Of Mundkowsky, 
Robert
Sent: Thursday, May 11, 2017 6:39 PM
To: OpenSIPS users mailling list 
<users@lists.opensips.org<mailto:users@lists.opensips.org>>
Subject: Re: [OpenSIPS-Users] How can I prevent Opensips to cache DNS queries.

Is there a name server running on your box?


man7.org/linux/man-pages/man5/resolv.conf.5.html says "If this file does not 
exist, only the name server on the local machine will be queried
"

Robert

From: Users [mailto:users-boun...@lists.opensips.org] On Behalf Of Stefan 
Carlsson
Sent: Thursday, May 11, 2017 4:50 AM
To: OpenSIPS users mailling list 
<users@lists.opensips.org<mailto:users@lists.opensips.org>>
Subject: Re: [OpenSIPS-Users] How can I prevent Opensips to cache DNS queries.

Hi !

Thanks for your reply.

I did the following.


1)  I've checked my nsswitch.conf file and it says 'files  dns' as in 
default , so no change there.

2)  I "disabled the resolver" but simply commented out the dns servers in 
resolv.conf, checked the resolver by a simple ping to 
www.google.com<http://www.google.com>, got the response: 'unknown host' as it 
should.

3)  Then I've put our SIP operators ip-name pairs in the hosts file, EXCEPT 
the one that causes us problem , checked with ping , got hits on all of them, 
and the one that where the problem responded with 'unknown host',

so the system looks up the hosts file correctly.

4)  But STILL Opensips uses the faulty one , the IP is not in the hosts 
file, no dns servers is in the resolv.conf.

5)  Restarts the Opensips, now it works as expected.

Can anyone out there give me an explanation that causes this behavior ?


Again, thank you for your attend at this matter.


Kind Regards / Vänligen ...

Stefan Carlsson


From: Users [mailto:users-boun...@lists.opensips.org] On Behalf Of Mundkowsky, 
Robert
Sent: den 10 maj 2017 15:13
To: OpenSIPS users mailling list 
<users@lists.opensips.org<mailto:users@lists.opensips.org>>
Subject: Re: [OpenSIPS-Users] How can I prevent Opensips to cache DNS queries.

What do you mean you "disabled the resolver"?

I haven't play with this in a long time, but I think the /etc/nsswitch.conf 
file defines if you use /etc/hosts file or/and DNS for looking up host names, 
and might allow nis+ as well, but I can't remember.

So might want to check if you happen to have your hostname defined in the hosts 
file.  Also seems people note that /etc/resolv.conf might be overwrite at boot 
based on using NetworkManager.  So maybe your settings are being over written.

Robert

From: Users [mailto:users-boun...@lists.opensips.org] On Behalf Of Stefan 
Carlsson
Sent: Tuesday, May 9, 2017 5:36 AM
To: Users@lists.opensips.org<mailto:Users@lists.opensips.org>
Subject: [OpenSIPS-Users] How can I prevent Opensips to cache DNS queries.

Hi !

It seems that the Opensip 2.2 caches DNS queries !!!

Even after I disabled the resolver in Centos, the OpenSIPs seems to "remember" 
old queries. (eg. IP's)
after a Opensip restart, the old stuff was gone.

If so, how can I disable the DNS caching in the Opensips, I want the system to 
always make a new , fresh
query.


Kind Regards / Vänligen ...

Stefan Carlsson




This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclos

Re: [OpenSIPS-Users] How can I prevent Opensips to cache DNS queries.

2017-05-11 Thread Mundkowsky, Robert
Also you can try removing "dns" from your nsswitch.conf file or hard coding the 
bad server name in the hosts file (remember to use ipv4 and ipv6 if needed).

Robert

From: Users [mailto:users-boun...@lists.opensips.org] On Behalf Of Mundkowsky, 
Robert
Sent: Thursday, May 11, 2017 6:39 PM
To: OpenSIPS users mailling list <users@lists.opensips.org>
Subject: Re: [OpenSIPS-Users] How can I prevent Opensips to cache DNS queries.

Is there a name server running on your box?


man7.org/linux/man-pages/man5/resolv.conf.5.html says "If this file does not 
exist, only the name server on the local machine will be queried
"

Robert

From: Users [mailto:users-boun...@lists.opensips.org] On Behalf Of Stefan 
Carlsson
Sent: Thursday, May 11, 2017 4:50 AM
To: OpenSIPS users mailling list 
<users@lists.opensips.org<mailto:users@lists.opensips.org>>
Subject: Re: [OpenSIPS-Users] How can I prevent Opensips to cache DNS queries.

Hi !

Thanks for your reply.

I did the following.


1)  I've checked my nsswitch.conf file and it says 'files  dns' as in 
default , so no change there.

2)  I "disabled the resolver" but simply commented out the dns servers in 
resolv.conf, checked the resolver by a simple ping to 
www.google.com<http://www.google.com>, got the response: 'unknown host' as it 
should.

3)  Then I've put our SIP operators ip-name pairs in the hosts file, EXCEPT 
the one that causes us problem , checked with ping , got hits on all of them, 
and the one that where the problem responded with 'unknown host',

so the system looks up the hosts file correctly.

4)  But STILL Opensips uses the faulty one , the IP is not in the hosts 
file, no dns servers is in the resolv.conf.

5)  Restarts the Opensips, now it works as expected.

Can anyone out there give me an explanation that causes this behavior ?


Again, thank you for your attend at this matter.


Kind Regards / Vänligen ...

Stefan Carlsson


From: Users [mailto:users-boun...@lists.opensips.org] On Behalf Of Mundkowsky, 
Robert
Sent: den 10 maj 2017 15:13
To: OpenSIPS users mailling list 
<users@lists.opensips.org<mailto:users@lists.opensips.org>>
Subject: Re: [OpenSIPS-Users] How can I prevent Opensips to cache DNS queries.

What do you mean you "disabled the resolver"?

I haven't play with this in a long time, but I think the /etc/nsswitch.conf 
file defines if you use /etc/hosts file or/and DNS for looking up host names, 
and might allow nis+ as well, but I can't remember.

So might want to check if you happen to have your hostname defined in the hosts 
file.  Also seems people note that /etc/resolv.conf might be overwrite at boot 
based on using NetworkManager.  So maybe your settings are being over written.

Robert

From: Users [mailto:users-boun...@lists.opensips.org] On Behalf Of Stefan 
Carlsson
Sent: Tuesday, May 9, 2017 5:36 AM
To: Users@lists.opensips.org<mailto:Users@lists.opensips.org>
Subject: [OpenSIPS-Users] How can I prevent Opensips to cache DNS queries.

Hi !

It seems that the Opensip 2.2 caches DNS queries !!!

Even after I disabled the resolver in Centos, the OpenSIPs seems to "remember" 
old queries. (eg. IP's)
after a Opensip restart, the old stuff was gone.

If so, how can I disable the DNS caching in the Opensips, I want the system to 
always make a new , fresh
query.


Kind Regards / Vänligen ...

Stefan Carlsson




This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it from your 
system. Any other use of this e-mail is prohibited.


Thank you for your compliance.





This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it from your 
system. Any other use of this e-mail is prohibited.


Thank you for your compliance.





This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it fr

Re: [OpenSIPS-Users] How can I prevent Opensips to cache DNS queries.

2017-05-11 Thread Mundkowsky, Robert
Is there a name server running on your box?


man7.org/linux/man-pages/man5/resolv.conf.5.html says "If this file does not 
exist, only the name server on the local machine will be queried
"

Robert

From: Users [mailto:users-boun...@lists.opensips.org] On Behalf Of Stefan 
Carlsson
Sent: Thursday, May 11, 2017 4:50 AM
To: OpenSIPS users mailling list <users@lists.opensips.org>
Subject: Re: [OpenSIPS-Users] How can I prevent Opensips to cache DNS queries.

Hi !

Thanks for your reply.

I did the following.


1)  I've checked my nsswitch.conf file and it says 'files  dns' as in 
default , so no change there.

2)  I "disabled the resolver" but simply commented out the dns servers in 
resolv.conf, checked the resolver by a simple ping to 
www.google.com<http://www.google.com>, got the response: 'unknown host' as it 
should.

3)  Then I've put our SIP operators ip-name pairs in the hosts file, EXCEPT 
the one that causes us problem , checked with ping , got hits on all of them, 
and the one that where the problem responded with 'unknown host',

so the system looks up the hosts file correctly.

4)  But STILL Opensips uses the faulty one , the IP is not in the hosts 
file, no dns servers is in the resolv.conf.

5)  Restarts the Opensips, now it works as expected.

Can anyone out there give me an explanation that causes this behavior ?


Again, thank you for your attend at this matter.


Kind Regards / Vänligen ...

Stefan Carlsson


From: Users [mailto:users-boun...@lists.opensips.org] On Behalf Of Mundkowsky, 
Robert
Sent: den 10 maj 2017 15:13
To: OpenSIPS users mailling list 
<users@lists.opensips.org<mailto:users@lists.opensips.org>>
Subject: Re: [OpenSIPS-Users] How can I prevent Opensips to cache DNS queries.

What do you mean you "disabled the resolver"?

I haven't play with this in a long time, but I think the /etc/nsswitch.conf 
file defines if you use /etc/hosts file or/and DNS for looking up host names, 
and might allow nis+ as well, but I can't remember.

So might want to check if you happen to have your hostname defined in the hosts 
file.  Also seems people note that /etc/resolv.conf might be overwrite at boot 
based on using NetworkManager.  So maybe your settings are being over written.

Robert

From: Users [mailto:users-boun...@lists.opensips.org] On Behalf Of Stefan 
Carlsson
Sent: Tuesday, May 9, 2017 5:36 AM
To: Users@lists.opensips.org<mailto:Users@lists.opensips.org>
Subject: [OpenSIPS-Users] How can I prevent Opensips to cache DNS queries.

Hi !

It seems that the Opensip 2.2 caches DNS queries !!!

Even after I disabled the resolver in Centos, the OpenSIPs seems to "remember" 
old queries. (eg. IP's)
after a Opensip restart, the old stuff was gone.

If so, how can I disable the DNS caching in the Opensips, I want the system to 
always make a new , fresh
query.


Kind Regards / Vänligen ...

Stefan Carlsson




This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it from your 
system. Any other use of this e-mail is prohibited.


Thank you for your compliance.





This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it from your 
system. Any other use of this e-mail is prohibited.


Thank you for your compliance.


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


Re: [OpenSIPS-Users] How can I prevent Opensips to cache DNS queries.

2017-05-10 Thread Mundkowsky, Robert
What do you mean you "disabled the resolver"?

I haven't play with this in a long time, but I think the /etc/nsswitch.conf 
file defines if you use /etc/hosts file or/and DNS for looking up host names, 
and might allow nis+ as well, but I can't remember.

So might want to check if you happen to have your hostname defined in the hosts 
file.  Also seems people note that /etc/resolv.conf might be overwrite at boot 
based on using NetworkManager.  So maybe your settings are being over written.

Robert

From: Users [mailto:users-boun...@lists.opensips.org] On Behalf Of Stefan 
Carlsson
Sent: Tuesday, May 9, 2017 5:36 AM
To: Users@lists.opensips.org
Subject: [OpenSIPS-Users] How can I prevent Opensips to cache DNS queries.

Hi !

It seems that the Opensip 2.2 caches DNS queries !!!

Even after I disabled the resolver in Centos, the OpenSIPs seems to "remember" 
old queries. (eg. IP's)
after a Opensip restart, the old stuff was gone.

If so, how can I disable the DNS caching in the Opensips, I want the system to 
always make a new , fresh
query.


Kind Regards / Vänligen ...

Stefan Carlsson




This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it from your 
system. Any other use of this e-mail is prohibited.


Thank you for your compliance.


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


Re: [OpenSIPS-Users] Ghost calls 1001

2017-04-20 Thread Mundkowsky, Robert
User authentication at SIP level as well.

Robert

From: Users [mailto:users-boun...@lists.opensips.org] On Behalf Of Aqs Younas
Sent: Thursday, April 20, 2017 4:55 PM
To: OpenSIPS users mailling list 
Subject: Re: [OpenSIPS-Users] Ghost calls 1001

iptables, fail2ban and ip authentication if your users have static ips.

On 21 April 2017 at 01:46, Uzair Hassan 
> wrote:
Hello all,

I have setup a opensips 2.3 on a new server and I'm getting ghost calls into my 
system. How do I stop these ghost call? The opensips server is brand new. the 
install is clean and nothing has been touched after the initial simple 
residential script setup. What can I do to defend myself from these ghost calls.

Thank you so much.


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




This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it from your 
system. Any other use of this e-mail is prohibited.


Thank you for your compliance.


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


[OpenSIPS-Users] python module - bug and questions

2017-04-19 Thread Mundkowsky, Robert

Hi,

This email should likely go to your other dev forum, but I don't have access 
yet.

I am using openSIPS 2.2.3 on Ubuntu 16.04.2 LTS.

I am using the python module.  The python script called works fine when called 
from outside openSIPS and it works fine when called inside openSIPS, if it is 
triggered once at a time.

But if the python script is triggered twice by two phone calls or more or even 
one call after another in short order, then there are weird errors which show 
up in different places in the code like:

ERROR:python:python_handle_exception: #011TypeError: an integer is required

I am guessing the openSIP python module has some problem/s related to threading.


Questions:

1)  I am guessing that OpenSIPS uses a multi-threaded architecture?

2)  Is the python module meant to be a single thread? Or multi-threaded?

a.   If it is meant to be single threaded then why use python library 
thread functions? Just use python library without multi-threaded stuff.

b.  If it is meant to be multi-threaded then why is there only one call to 
PyThreadState_New and myThreadState is a global used everywhere?

   i.  I would 
think a thread per call to python_exec would make more sense and make the code 
easier to understand?

3)  Also why is there no clean up code (PyThreadState_Clear, 
PyThreadState_Delete, Py_Finalize)?

a.   I am guessing the idea is you do not need clean up, because it only 
happens when openSIPS is turned off.

Robert


For reference:
https://www.codeproject.com/articles/11805/embedding-python-in-c-c-part-i
http://www.awasu.com/weblog/embedding-python/threads/
http://stackoverflow.com/questions/26061298/python-multi-thread-multi-interpreter-c-api




This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it from your 
system. Any other use of this e-mail is prohibited.


Thank you for your compliance.


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


Re: [OpenSIPS-Users] $du not expanded/evaluated?

2017-04-12 Thread Mundkowsky, Robert
Wow, that is really bizarre. I don't think I have ever see any languages where 
variable expansion is based on which function they are passed to.

Anyways, I think your documentation needs to be updated, I don't see anything 
in your document stating expansion does not take place for the extra_args in 
python_exec(method_name [, extra_args]).  Also would be nice if you noted only 
Python 2 is supported

One more question, is it not possible to run threads in the python script 
called?  I am getting an odd error when I try to run a thread, but that script 
works fine when called for command line.

Robert Mundkowsky


-Original Message-
From: Bogdan-Andrei Iancu [mailto:bog...@opensips.org]
Sent: Wednesday, April 12, 2017 9:50 AM
To: OpenSIPS users mailling list <users@lists.opensips.org>; Mundkowsky, Robert 
<rmundkow...@ets.org>
Subject: Re: [OpenSIPS-Users] $du not expanded/evaluated?

Hi Robert,

According to the docs, the second parameter does not expands possible variables.

Have you check if the dst URI is accessible via the SIPMsg class ?
http://www.opensips.org/html/docs/modules/2.2.x/python.html#idp54288

Regards,

Bogdan-Andrei Iancu
   OpenSIPS Founder and Developer
   http://www.opensips-solutions.com

OpenSIPS Summit May 2017 Amsterdam
   http://www.opensips.org/events/Summit-2017Amsterdam.html

On 04/11/2017 08:04 PM, robert wrote:
> I am using the following in the opensips.cfg file.
>
> $du correctly evaluates to a real value (e.g. "sip:XX.XX.XX.XX:5060" )
> in the xlog, but inside the python_exec, it does not.
>
> On the python side the incrementMissedCallsCount function gets the
> value "$du" rather than "sip:XX.XX.XX.XX:5060"
>
>
> code:
>
> xlog("REPORT: LB destination $du failed with code $T_reply_code\n");
> python_exec('incrementMissedCallsCount',"$du");
>
>
>
>
> --
> View this message in context:
> http://opensips-open-sip-server.1449251.n2.nabble.com/du-not-expanded-
> evaluated-tp7606924.html Sent from the OpenSIPS - Users mailing list
> archive at Nabble.com.
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users




This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it from your 
system. Any other use of this e-mail is prohibited.


Thank you for your compliance.


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


Re: [OpenSIPS-Users] set environment variables for system - opensipsctl?

2017-04-05 Thread Mundkowsky, Robert
No. That is set correctly. If it was not, then it would not work for both ways 
to start the server.

Regardless, I think I had something configured incorrectly.  Seems to work now.

Thanks,

Robert Mundkowsky

-Original Message-
From: Bogdan-Andrei Iancu [mailto:bog...@opensips.org]
Sent: Wednesday, April 5, 2017 4:07 AM
To: Mundkowsky, Robert <rmundkow...@ets.org>; OpenSIPS users mailling list 
<users@lists.opensips.org>
Subject: Re: [OpenSIPS-Users] set environment variables for system - 
opensipsctl?

Hi Robert,

I think the difference is not about env vars but about the current path.
As per your error, OpenSIPS (the python module) is not able to locate the 
python file due a wrong basename for the file (given by the script_name module 
parameter).

Regards,

Bogdan-Andrei Iancu
   OpenSIPS Founder and Developer
   http://www.opensips-solutions.com

OpenSIPS Summit May 2017 Amsterdam
   http://www.opensips.org/events/Summit-2017Amsterdam.html

On 04/05/2017 04:42 AM, Mundkowsky, Robert wrote:
> Well, seems to work now. I think I had something wrong in the opensipsctlrc 
> file.
>
> Might have been that PID_FILE needed to be explicitly set, because I am not 
> running as root and using a "prefix" install location.
>
> BTW, is it reasonable to set PYTHONPATH in the opensipsctlrc file?
>
>
>
>
> Robert Mundkowsky
>
> -Original Message-
> From: Mundkowsky, Robert
> Sent: Tuesday, April 4, 2017 2:16 PM
> To: 'Bogdan-Andrei Iancu' <bog...@opensips.org>; OpenSIPS users
> mailling list <users@lists.opensips.org>
> Subject: RE: [OpenSIPS-Users] set environment variables for system - 
> opensipsctl?
>
> I am using opensips python module.  I am using PYTHONPATH env variable.
>
> System starts without errors via "opensips start", but fails via " 
> opensipsctl start" and it complains about the python module. Error messages 
> are:
>
> Apr  4 18:14:32 ip-10-61-81-170
> /export/Apps/opensips/2.2.3/sbin/opensips[25723]:
> ERROR:python:mod_init: cannot import callbackFromOpenSIPS Apr  4
> 18:14:32 ip-10-61-81-170
> /export/Apps/opensips/2.2.3/sbin/opensips[25723]: ERROR:core:init_mod:
> failed to initialize module python Apr  4 18:14:32 ip-10-61-81-170
> /export/Apps/opensips/2.2.3/sbin/opensips[25723]: ERROR:core:main:
> error while initializing modules
>
>
> Robert Mundkowsky
>
> -Original Message-----
> From: Bogdan-Andrei Iancu [mailto:bog...@opensips.org]
> Sent: Tuesday, April 4, 2017 1:52 PM
> To: OpenSIPS users mailling list <users@lists.opensips.org>;
> Mundkowsky, Robert <rmundkow...@ets.org>
> Subject: Re: [OpenSIPS-Users] set environment variables for system - 
> opensipsctl?
>
> Hi Robert,
>
> The opensipsctl tool starts OpenSIPS directly by using the opensips binary - 
> nothing special.
>
> What are the env vars you have problems with ?
>
> Regards,
>
> Bogdan-Andrei Iancu
> OpenSIPS Founder and Developer
> http://www.opensips-solutions.com
>
> OpenSIPS Summit May 2017 Amsterdam
> http://www.opensips.org/events/Summit-2017Amsterdam.html
>
> On 04/04/2017 08:14 PM, robert wrote:
>> If I start opensips via:
>>
>> opensips start
>>
>> It seems to pickup the environment variables from current session
>> correctly, but if use:
>>
>> opensipsctl start
>>
>> It does not pickup the environment variables from current session.
>>
>> Is there some configuration file where I can set environment
>> variables for the system regardless of the way I start opensips?
>>
>>
>>
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://opensips-open-sip-server.1449251.n2.nabble.com/set-environment
>> - variables-for-system-opensipsctl-tp7606807.html
>> Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
>>
>> ___
>> Users mailing list
>> Users@lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
> 
>
> This e-mail and any files transmitted with it may contain privileged or 
> confidential information. It is solely for use by the individual for whom it 
> is intended, even if addressed incorrectly. If you received this e-mail in 
> error, please notify the sender; do not disclose, copy, distribute, or take 
> any action in reliance on the contents of this information; and delete it 
> from your system. Any other use of this e-mail is prohibited.
>
>
> Thank you for your compliance.
>
> 


__

Re: [OpenSIPS-Users] set environment variables for system - opensipsctl?

2017-04-04 Thread Mundkowsky, Robert
Well, seems to work now. I think I had something wrong in the opensipsctlrc 
file.

Might have been that PID_FILE needed to be explicitly set, because I am not 
running as root and using a "prefix" install location.

BTW, is it reasonable to set PYTHONPATH in the opensipsctlrc file?




Robert Mundkowsky

-Original Message-----
From: Mundkowsky, Robert
Sent: Tuesday, April 4, 2017 2:16 PM
To: 'Bogdan-Andrei Iancu' <bog...@opensips.org>; OpenSIPS users mailling list 
<users@lists.opensips.org>
Subject: RE: [OpenSIPS-Users] set environment variables for system - 
opensipsctl?

I am using opensips python module.  I am using PYTHONPATH env variable.

System starts without errors via "opensips start", but fails via " opensipsctl 
start" and it complains about the python module. Error messages are:

Apr  4 18:14:32 ip-10-61-81-170 
/export/Apps/opensips/2.2.3/sbin/opensips[25723]: ERROR:python:mod_init: cannot 
import callbackFromOpenSIPS Apr  4 18:14:32 ip-10-61-81-170 
/export/Apps/opensips/2.2.3/sbin/opensips[25723]: ERROR:core:init_mod: failed 
to initialize module python Apr  4 18:14:32 ip-10-61-81-170 
/export/Apps/opensips/2.2.3/sbin/opensips[25723]: ERROR:core:main: error while 
initializing modules


Robert Mundkowsky

-Original Message-
From: Bogdan-Andrei Iancu [mailto:bog...@opensips.org]
Sent: Tuesday, April 4, 2017 1:52 PM
To: OpenSIPS users mailling list <users@lists.opensips.org>; Mundkowsky, Robert 
<rmundkow...@ets.org>
Subject: Re: [OpenSIPS-Users] set environment variables for system - 
opensipsctl?

Hi Robert,

The opensipsctl tool starts OpenSIPS directly by using the opensips binary - 
nothing special.

What are the env vars you have problems with ?

Regards,

Bogdan-Andrei Iancu
   OpenSIPS Founder and Developer
   http://www.opensips-solutions.com

OpenSIPS Summit May 2017 Amsterdam
   http://www.opensips.org/events/Summit-2017Amsterdam.html

On 04/04/2017 08:14 PM, robert wrote:
> If I start opensips via:
>
> opensips start
>
> It seems to pickup the environment variables from current session
> correctly, but if use:
>
> opensipsctl start
>
> It does not pickup the environment variables from current session.
>
> Is there some configuration file where I can set environment variables
> for the system regardless of the way I start opensips?
>
>
>
>
>
>
>
> --
> View this message in context:
> http://opensips-open-sip-server.1449251.n2.nabble.com/set-environment-
> variables-for-system-opensipsctl-tp7606807.html
> Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users




This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it from your 
system. Any other use of this e-mail is prohibited.


Thank you for your compliance.


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


Re: [OpenSIPS-Users] How do you get list of dialog ids that are active for load balancer id?

2017-03-23 Thread Mundkowsky, Robert
Thanks for the response, but I think dlg_list  does not contain any information 
to know which load balancer gateway the dialog is using?

Basically trying to do this:

1)  Disable one of the gateways a load balancer is using

2)  Then wait a reasonable amount of time for all active calls over that 
gateway to finish

3)  Then if some calls are still active for that gateway, end them and make 
sure both sides get SIP BYE

Robert Mundkowsky

From: Bogdan-Andrei Iancu [mailto:bog...@opensips.org]
Sent: Wednesday, March 22, 2017 4:47 PM
To: OpenSIPS users mailling list <users@lists.opensips.org>; Mundkowsky, Robert 
<rmundkow...@ets.org>
Subject: Re: [OpenSIPS-Users] How do you get list of dialog ids that are active 
for load balancer id?

Hi Robert,

The dlg_end_dlg MI function ( 
http://www.opensips.org/html/docs/modules/2.2.x/dialog.html#dlg_end_dlg ) can 
be triggered via any of the MI backends.

Also, instead of looking in the "dialog" table (which has older information), 
better use the "dlg_list" MI function to get the realtime list of ongoing calls.

Regards,


Bogdan-Andrei Iancu

  OpenSIPS Founder and Developer

  http://www.opensips-solutions.com



OpenSIPS Summit May 2017 Amsterdam

  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 03/08/2017 10:28 PM, Mundkowsky, Robert wrote:
Argh, but there is no way to call dlg_end_dlg since it is not an MI function?

Robert Mundkowsky

From: Mundkowsky, Robert
Sent: Wednesday, March 8, 2017 3:22 PM
To: 'OpenSIPS users mailling list' 
<users@lists.opensips.org><mailto:users@lists.opensips.org>
Subject: RE: How do you get list of dialog ids that are active for load 
balancer id?

Think I figured it out. Info is in Dialog table in database in to_uri column

Robert Mundkowsky

From: Mundkowsky, Robert
Sent: Wednesday, March 8, 2017 2:24 PM
To: 'OpenSIPS users mailling list' 
<users@lists.opensips.org<mailto:users@lists.opensips.org>>
Subject: RE: How do you get list of dialog ids that are active for load 
balancer id?

Forgot to mention I am trying to do this from Python script using XMLRPC to 
OpenSIPS server.

Robert Mundkowsky

From: Mundkowsky, Robert
Sent: Wednesday, March 8, 2017 1:24 PM
To: OpenSIPS users mailling list 
<users@lists.opensips.org<mailto:users@lists.opensips.org>>
Subject: How do you get list of dialog ids that are active for load balancer id?

How do you get list of dialog ids that are active for load balancer id?


For example, if I want to end a call on a specific load balancer gateway, I 
want to invoke “dlg_end_dlg(dlg_id).  But I don’t see any information that can 
help me get mapping between dlg_id  and Load Balancer gateway id.


Robert Mundkowsky



This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it from your 
system. Any other use of this e-mail is prohibited.


Thank you for your compliance.






___

Users mailing list

Users@lists.opensips.org<mailto:Users@lists.opensips.org>

http://lists.opensips.org/cgi-bin/mailman/listinfo/users




This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it from your 
system. Any other use of this e-mail is prohibited.


Thank you for your compliance.


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


Re: [OpenSIPS-Users] Monitoring Mediaproxy

2017-03-16 Thread Mundkowsky, Robert
Sorry, I don't know much about telephony.

Curious what I had wrong?

Is it that only media is sent to Mediaproxy without SIP?

Robert


-Original Message-
From: Users [mailto:users-boun...@lists.opensips.org] On Behalf Of Dan Pascu
Sent: Thursday, March 16, 2017 9:41 AM
To: OpenSIPS users mailling list <users@lists.opensips.org>
Subject: Re: [OpenSIPS-Users] Monitoring Mediaproxy

Lol, what?!?

On 15 Mar 2017, at 23:03, Mundkowsky, Robert wrote:

> SIP Options is used as a “SIP ping”. You likely can have an time event 
> trigger route that can send one and then based on that disable/enable 
> accordingly.  Hopefully mediaproxy will not respond to the “SIP ping” if 
> frozen.
>
> Robert
>
> From: Users [mailto:users-boun...@lists.opensips.org] On Behalf Of Daniel 
> Zanutti
> Sent: Wednesday, March 15, 2017 4:55 PM
> To: OpenSIPS users mailling list <users@lists.opensips.org>
> Subject: Re: [OpenSIPS-Users] Monitoring Mediaproxy
>
> How can this be done?
>
> Or do you mean SIP options?
>
> On Wed, Mar 15, 2017 at 5:45 PM, Johan De Clercq <jo...@democon.be> wrote:
> Send options.
>
> On 15 Mar 2017 11:48 PM, "Daniel Zanutti" <daniel.zanu...@gmail.com> wrote:
> Hi
>
> What's the best way to check if a mediaproxy is running fine? Monit is 
> monitoring PID but how can I check the process has is not frozen?
>
> 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
>
>
>
> This e-mail and any files transmitted with it may contain privileged or 
> confidential information. It is solely for use by the individual for whom it 
> is intended, even if addressed incorrectly. If you received this e-mail in 
> error, please notify the sender; do not disclose, copy, distribute, or take 
> any action in reliance on the contents of this information; and delete it 
> from your system. Any other use of this e-mail is prohibited.
>
>
> Thank you for your compliance.
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users


--
Dan





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



This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it from your 
system. Any other use of this e-mail is prohibited.


Thank you for your compliance.


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


Re: [OpenSIPS-Users] Monitoring Mediaproxy

2017-03-15 Thread Mundkowsky, Robert
SIP Options is used as a “SIP ping”. You likely can have an time event trigger 
route that can send one and then based on that disable/enable accordingly.  
Hopefully mediaproxy will not respond to the “SIP ping” if frozen.

Robert

From: Users [mailto:users-boun...@lists.opensips.org] On Behalf Of Daniel 
Zanutti
Sent: Wednesday, March 15, 2017 4:55 PM
To: OpenSIPS users mailling list 
Subject: Re: [OpenSIPS-Users] Monitoring Mediaproxy

How can this be done?

Or do you mean SIP options?

On Wed, Mar 15, 2017 at 5:45 PM, Johan De Clercq 
> wrote:
Send options.

On 15 Mar 2017 11:48 PM, "Daniel Zanutti" 
> wrote:
Hi

What's the best way to check if a mediaproxy is running fine? Monit is 
monitoring PID but how can I check the process has is not frozen?

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




This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it from your 
system. Any other use of this e-mail is prohibited.


Thank you for your compliance.


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


Re: [OpenSIPS-Users] How do you get list of dialog ids that are active for load balancer id?

2017-03-08 Thread Mundkowsky, Robert
Argh, but there is no way to call dlg_end_dlg since it is not an MI function?

Robert Mundkowsky

From: Mundkowsky, Robert
Sent: Wednesday, March 8, 2017 3:22 PM
To: 'OpenSIPS users mailling list' <users@lists.opensips.org>
Subject: RE: How do you get list of dialog ids that are active for load 
balancer id?

Think I figured it out. Info is in Dialog table in database in to_uri column

Robert Mundkowsky

From: Mundkowsky, Robert
Sent: Wednesday, March 8, 2017 2:24 PM
To: 'OpenSIPS users mailling list' 
<users@lists.opensips.org<mailto:users@lists.opensips.org>>
Subject: RE: How do you get list of dialog ids that are active for load 
balancer id?

Forgot to mention I am trying to do this from Python script using XMLRPC to 
OpenSIPS server.

Robert Mundkowsky

From: Mundkowsky, Robert
Sent: Wednesday, March 8, 2017 1:24 PM
To: OpenSIPS users mailling list 
<users@lists.opensips.org<mailto:users@lists.opensips.org>>
Subject: How do you get list of dialog ids that are active for load balancer id?

How do you get list of dialog ids that are active for load balancer id?


For example, if I want to end a call on a specific load balancer gateway, I 
want to invoke “dlg_end_dlg(dlg_id).  But I don’t see any information that can 
help me get mapping between dlg_id  and Load Balancer gateway id.


Robert Mundkowsky



This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it from your 
system. Any other use of this e-mail is prohibited.


Thank you for your compliance.


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


Re: [OpenSIPS-Users] How do you get list of dialog ids that are active for load balancer id?

2017-03-08 Thread Mundkowsky, Robert
Think I figured it out. Info is in Dialog table in database in to_uri column

Robert Mundkowsky

From: Mundkowsky, Robert
Sent: Wednesday, March 8, 2017 2:24 PM
To: 'OpenSIPS users mailling list' <users@lists.opensips.org>
Subject: RE: How do you get list of dialog ids that are active for load 
balancer id?

Forgot to mention I am trying to do this from Python script using XMLRPC to 
OpenSIPS server.

Robert Mundkowsky

From: Mundkowsky, Robert
Sent: Wednesday, March 8, 2017 1:24 PM
To: OpenSIPS users mailling list 
<users@lists.opensips.org<mailto:users@lists.opensips.org>>
Subject: How do you get list of dialog ids that are active for load balancer id?

How do you get list of dialog ids that are active for load balancer id?


For example, if I want to end a call on a specific load balancer gateway, I 
want to invoke “dlg_end_dlg(dlg_id).  But I don’t see any information that can 
help me get mapping between dlg_id  and Load Balancer gateway id.


Robert Mundkowsky



This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it from your 
system. Any other use of this e-mail is prohibited.


Thank you for your compliance.


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


Re: [OpenSIPS-Users] How do you get list of dialog ids that are active for load balancer id?

2017-03-08 Thread Mundkowsky, Robert
Forgot to mention I am trying to do this from Python script using XMLRPC to 
OpenSIPS server.

Robert Mundkowsky

From: Mundkowsky, Robert
Sent: Wednesday, March 8, 2017 1:24 PM
To: OpenSIPS users mailling list <users@lists.opensips.org>
Subject: How do you get list of dialog ids that are active for load balancer id?

How do you get list of dialog ids that are active for load balancer id?


For example, if I want to end a call on a specific load balancer gateway, I 
want to invoke “dlg_end_dlg(dlg_id).  But I don’t see any information that can 
help me get mapping between dlg_id  and Load Balancer gateway id.


Robert Mundkowsky



This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it from your 
system. Any other use of this e-mail is prohibited.


Thank you for your compliance.


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


[OpenSIPS-Users] How do you get list of dialog ids that are active for load balancer id?

2017-03-08 Thread Mundkowsky, Robert
How do you get list of dialog ids that are active for load balancer id?


For example, if I want to end a call on a specific load balancer gateway, I 
want to invoke “dlg_end_dlg(dlg_id).  But I don’t see any information that can 
help me get mapping between dlg_id  and Load Balancer gateway id.


Robert Mundkowsky



This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it from your 
system. Any other use of this e-mail is prohibited.


Thank you for your compliance.


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


Re: [OpenSIPS-Users] OpenSIPS at ClueCon Weekly

2017-02-28 Thread Mundkowsky, Robert
What time?

Robert Mundkowsky

From: Users [mailto:users-boun...@lists.opensips.org] On Behalf Of 
Bogdan-Andrei Iancu
Sent: Tuesday, February 28, 2017 1:15 PM
To: users@lists.opensips.org; developensips ; 
n...@lists.opensips.org
Subject: [OpenSIPS-Users] OpenSIPS at ClueCon Weekly

Hey all,

Tomorrow, 1st of March, OpenSIPS project will have the floor at ClueCon weekly 
conference, talking about the latest cool stuff in OpenSIPS 2.3 - and the most 
important is the FreeSWITCH integration, of course.

More the the conference access:

https://freeswitch.org/confluence/display/FREESWITCH/ClueCon+Weekly+Conference+call

Or watch live https://youtu.be/Fe757wdmqHA 

Regards,


--

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer

http://www.opensips-solutions.com



This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it from your 
system. Any other use of this e-mail is prohibited.


Thank you for your compliance.


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


Re: [OpenSIPS-Users] MI fifo commands for multiple opensips instances

2017-02-21 Thread Mundkowsky, Robert
If there is no reason to share the fifo file, then you config OpenSIPS to use a 
different fifo file per instance.  I actually wonder if a fifo file can be 
shared with multiple instances or if you have to use a database if you want a 
cluster of them, but guess I can read the book if I need that.

Robert


-Original Message-
From: Users [mailto:users-boun...@lists.opensips.org] On Behalf Of Husnain 
Taseer
Sent: Tuesday, February 21, 2017 2:28 PM
To: users@lists.opensips.org
Subject: [OpenSIPS-Users] MI fifo commands for multiple opensips instances

Hi Folks!

I am little curious to know that If we have multiple instances of opensips 
(single installation) running on a machine with two different configurations 
(opensips.cfg files). How we can run MI fifo commands on both opensips 
instances to get statistic ( like active dialogs, rcv_requests, rcv_responses 
etc) on each of the running instances separately.

Regards,
Husnain Taseer - VoIP Professional




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



This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it from your 
system. Any other use of this e-mail is prohibited.


Thank you for your compliance.


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


Re: [OpenSIPS-Users] preferred OS and version for OpenSIPS?

2017-02-21 Thread Mundkowsky, Robert
What version is preferred (e.g. for making the Control Panel work)?



Robert Mundkowsky

From: Users [mailto:users-boun...@lists.opensips.org] On Behalf Of Razvan 
Crainea
Sent: Tuesday, February 21, 2017 9:13 AM
To: users@lists.opensips.org
Subject: Re: [OpenSIPS-Users] preferred OS and version for OpenSIPS?

Hi, Robert!

The OpenSIPS project focuses on Debian and CentOS based distributions, but it 
can run without any problems on other distributions too.
OpenSIPS CP should also run on any distribution. If you encounter any issues, 
please open a ticket about it[1].

[1] https://github.com/OpenSIPS/opensips-cp/issues

Best regards,


Răzvan Crainea

OpenSIPS Solutions

www.opensips-solutions.com<http://www.opensips-solutions.com>
On 02/21/2017 04:08 PM, Mundkowsky, Robert wrote:
What is the preferred OS and version for OpenSIPS?

I installed it on newer version Ubtunu, but and it seems to work, but the 
Control Panel does not.  The Control Panel I am guessing expects an older 
version of Debian.


Robert Mundkowsky



This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it from your 
system. Any other use of this e-mail is prohibited.


Thank you for your compliance.






___

Users mailing list

Users@lists.opensips.org<mailto:Users@lists.opensips.org>

http://lists.opensips.org/cgi-bin/mailman/listinfo/users




This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it from your 
system. Any other use of this e-mail is prohibited.


Thank you for your compliance.


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


[OpenSIPS-Users] preferred OS and version for OpenSIPS?

2017-02-21 Thread Mundkowsky, Robert
What is the preferred OS and version for OpenSIPS?

I installed it on newer version Ubtunu, but and it seems to work, but the 
Control Panel does not.  The Control Panel I am guessing expects an older 
version of Debian.


Robert Mundkowsky



This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it from your 
system. Any other use of this e-mail is prohibited.


Thank you for your compliance.


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


Re: [OpenSIPS-Users] Change 200 OK of BYE message

2017-02-06 Thread Mundkowsky, Robert
I am really new to OpenSIPS and SIPS routing, so your question is beyond me 
now. ☹

I am guessing your SIP client is a miss behaving client.  If OpenSIPS is acting 
as a proxy, I think there might be a way to hide the backend topology, so that 
client has no way to know how to send messages without going thru OpenSIPS.


Robert Mundkowsky

From: Users [mailto:users-boun...@lists.opensips.org] On Behalf Of Daniel 
Zanutti
Sent: Monday, February 6, 2017 3:44 PM
To: OpenSIPS users mailling list <users@lists.opensips.org>
Subject: Re: [OpenSIPS-Users] Change 200 OK of BYE message

Hi Robert

Yes, all messages are passing through the proxy, but when I receive the 200 OK 
of the BYE message, it doesn't go to Main Route or Reply Route. It just go to 
the destination and I cannot change anything on it.

Any idea?



On Mon, Feb 6, 2017 at 6:14 PM, Mundkowsky, Robert 
<rmundkow...@ets.org<mailto:rmundkow...@ets.org>> wrote:
Did you use “record_route”?

For reference:
http://www.iptel.org/sip/intro/scenarios/rr


Robert Mundkowsky

From: Users 
[mailto:users-boun...@lists.opensips.org<mailto:users-boun...@lists.opensips.org>]
 On Behalf Of Daniel Zanutti
Sent: Monday, February 6, 2017 3:01 PM
To: OpenSIPS users mailling list 
<users@lists.opensips.org<mailto:users@lists.opensips.org>>
Subject: [OpenSIPS-Users] Change 200 OK of BYE message

Hi

I need to change something on the 200 OK of BYE message. Tried everything on 
Opensips but looks like this message doesn't follow standard message path. 
Neither Main Route or Reply route pass this message.

Is there any way to do it?

Thanks



This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it from your 
system. Any other use of this e-mail is prohibited.


Thank you for your compliance.



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




This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it from your 
system. Any other use of this e-mail is prohibited.


Thank you for your compliance.


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


Re: [OpenSIPS-Users] Change 200 OK of BYE message

2017-02-06 Thread Mundkowsky, Robert
Did you use “record_route”?

For reference:
http://www.iptel.org/sip/intro/scenarios/rr


Robert Mundkowsky

From: Users [mailto:users-boun...@lists.opensips.org] On Behalf Of Daniel 
Zanutti
Sent: Monday, February 6, 2017 3:01 PM
To: OpenSIPS users mailling list 
Subject: [OpenSIPS-Users] Change 200 OK of BYE message

Hi

I need to change something on the 200 OK of BYE message. Tried everything on 
Opensips but looks like this message doesn't follow standard message path. 
Neither Main Route or Reply route pass this message.

Is there any way to do it?

Thanks



This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it from your 
system. Any other use of this e-mail is prohibited.


Thank you for your compliance.


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


Re: [OpenSIPS-Users] FreeSWITCH at FOSDEM, SIP and WebRTC Load Balancing and High Availability

2017-02-03 Thread Mundkowsky, Robert
Are these only live or recorded as well?


Robert Mundkowsky

From: Users [mailto:users-boun...@lists.opensips.org] On Behalf Of Giovanni 
Maruzzelli
Sent: Friday, February 3, 2017 8:52 AM
To: freeswitch-us...@lists.freeswitch.org; OpenSIPS users mailling list 
; Kamailio (SER) - Users Mailing List 
; homer-disc...@googlegroups.com
Subject: [OpenSIPS-Users] FreeSWITCH at FOSDEM, SIP and WebRTC Load Balancing 
and High Availability

See you all, in person or in the intertube, at:

https://fosdem.org/2017/schedule/event/freeswitch/


sent from mobile
cell: +39 347 266 56 18
Giovanni Maruzzelli
OpenTelecom.IT



This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it from your 
system. Any other use of this e-mail is prohibited.


Thank you for your compliance.


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


[OpenSIPS-Users] Load-Balancer Module - status destinations in database?

2017-01-24 Thread Mundkowsky, Robert
Is there a way to get the status (enabled or disabled) of load balancer 
destinations in database?

Or is lb_list MI only way?





This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it from your 
system. Any other use of this e-mail is prohibited.


Thank you for your compliance.



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