[OpenSIPS-Users] IP OPS Module

2017-12-08 Thread Nathan Baker
Hi Everyone,

I've come across a few instances where it would be nice to check if the URI
is an IP address or domain, or check if an IP address is a private (RFC
1918) address, and a few other things.  I don't see an easy way to do these
things in OpenSIPS, but I do see a Kamailio module called IPOPS that does
these sort of things.  I'm just wondering, is it possible to use the
Kamailio module in OpenSIPS (either drop in the compiled module, or compile
it)?  Or is there an easier way to do similar things in OpenSIPS?

If not, it looks like the licenses are compatible, is it possible to pull
that module into OpenSIPS?  Sorry if this has come up before, I couldn't
find it when searching.

Thanks!

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


Re: [OpenSIPS-Users] Solution to storing a lot of siptrace

2017-12-08 Thread Giovanni Maruzzelli
The guys at Homer/Sipcapture have built some impressive big things for
carriers.

They sure can help you.

mailto: supp...@sipcapture.org

Sent via mobile, please forgive typos and brevity.

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

On Dec 8, 2017 9:47 PM, "Arsen"  wrote:

> +1 for Homer. Nosql also seems a good idea.
>
>
>
> Arsen Semionov
> www.eurolan.info
> cell: +442035198881 <+44%2020%203519%208881>
>
> On Fri, Dec 8, 2017 at 10:21 PM, Jon Abrams  wrote:
>
>> You might try using TokuDB table storage for MySql/MariaDB without
>> compression. The penalty for indexing is much reduced over InnoDB.
>>
>> You might also replicate the sip traces off your live proxy to another
>> OpenSIPs capture node and let that node handle the inserts. Take a look at
>> Web Homer as well.
>>
>> On Fri, Dec 8, 2017 at 1:43 PM, Daniel Zanutti 
>> wrote:
>>
>>> Hi
>>>
>>> I have around 2000 simultaneous calls, 50 CPS and would like to store
>>> sip trace for all of them.
>>>
>>> Storing on MySQL is not working. If you have some indexes on the table,
>>> after 1M register it starts to slow down the whole server. If no indexes,
>>> it's not searchable.
>>>
>>> Do you guys have a good solution to store a lot of sip trace on
>>> Opensips? Like 200 GB.
>>>
>>> It needs to be searchable almost real-time (a few minutes is fine).
>>>
>>> I was thinking on store on a flat text file and move to a NOSQL
>>> solution, what do you guys think?
>>>
>>> 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
>>
>>
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Solution to storing a lot of siptrace

2017-12-08 Thread Arsen
+1 for Homer. Nosql also seems a good idea.



Arsen Semionov
www.eurolan.info
cell: +442035198881

On Fri, Dec 8, 2017 at 10:21 PM, Jon Abrams  wrote:

> You might try using TokuDB table storage for MySql/MariaDB without
> compression. The penalty for indexing is much reduced over InnoDB.
>
> You might also replicate the sip traces off your live proxy to another
> OpenSIPs capture node and let that node handle the inserts. Take a look at
> Web Homer as well.
>
> On Fri, Dec 8, 2017 at 1:43 PM, Daniel Zanutti 
> wrote:
>
>> Hi
>>
>> I have around 2000 simultaneous calls, 50 CPS and would like to store sip
>> trace for all of them.
>>
>> Storing on MySQL is not working. If you have some indexes on the table,
>> after 1M register it starts to slow down the whole server. If no indexes,
>> it's not searchable.
>>
>> Do you guys have a good solution to store a lot of sip trace on Opensips?
>> Like 200 GB.
>>
>> It needs to be searchable almost real-time (a few minutes is fine).
>>
>> I was thinking on store on a flat text file and move to a NOSQL solution,
>> what do you guys think?
>>
>> 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
>
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Solution to storing a lot of siptrace

2017-12-08 Thread Jon Abrams
You might try using TokuDB table storage for MySql/MariaDB without
compression. The penalty for indexing is much reduced over InnoDB.

You might also replicate the sip traces off your live proxy to another
OpenSIPs capture node and let that node handle the inserts. Take a look at
Web Homer as well.

On Fri, Dec 8, 2017 at 1:43 PM, Daniel Zanutti 
wrote:

> Hi
>
> I have around 2000 simultaneous calls, 50 CPS and would like to store sip
> trace for all of them.
>
> Storing on MySQL is not working. If you have some indexes on the table,
> after 1M register it starts to slow down the whole server. If no indexes,
> it's not searchable.
>
> Do you guys have a good solution to store a lot of sip trace on Opensips?
> Like 200 GB.
>
> It needs to be searchable almost real-time (a few minutes is fine).
>
> I was thinking on store on a flat text file and move to a NOSQL solution,
> what do you guys think?
>
> 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


[OpenSIPS-Users] Solution to storing a lot of siptrace

2017-12-08 Thread Daniel Zanutti
Hi

I have around 2000 simultaneous calls, 50 CPS and would like to store sip
trace for all of them.

Storing on MySQL is not working. If you have some indexes on the table,
after 1M register it starts to slow down the whole server. If no indexes,
it's not searchable.

Do you guys have a good solution to store a lot of sip trace on Opensips?
Like 200 GB.

It needs to be searchable almost real-time (a few minutes is fine).

I was thinking on store on a flat text file and move to a NOSQL solution,
what do you guys think?

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


Re: [OpenSIPS-Users] OpenXCAP on Debian...

2017-12-08 Thread Dan Pascu

On 6 Dec 2017, at 19:11, Boris via Users wrote:

> I just tried to install OpenXCAP on Debian Stretch and was having issues 
> because of missing dependencies (python-twisted-web2).

It seems debian stretch decided to not ship this package. You can ask them why, 
because the package is present in wheezy (old old stable), jessie (old stable) 
and it is still present in unstable. They just seem to have skipped stretch.

https://packages.debian.org/search?keywords=python-twisted-web2

> I then tried on both Jessie and Wheezy, but each of those were exposing 
> different dependency problems.

You'll most likely need the jessie-backports repository for jessie. I won't 
recommend wheezy as it's too old.

--
Dan





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


Re: [OpenSIPS-Users] OpenXCAP on Debian...

2017-12-08 Thread Adrian Georgescu
Can you paste the full output of your commands?

Regards,
Adrian


> On 6 Dec 2017, at 14:11, Boris via Users  wrote:
> 
> I just tried to install OpenXCAP on Debian Stretch and was having issues 
> because of missing dependencies (python-twisted-web2). I then tried on both 
> Jessie and Wheezy, but each of those were exposing different dependency 
> problems.
> 
> Was anybody successful recently in installing OpenXCAP on Debian? Not from 
> source but from binary packages?
> 
> Thanks
> Boris
> 
> 
> 
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users



signature.asc
Description: Message signed with OpenPGP
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] DBTEXT not properly working with opensips 2.3

2017-12-08 Thread Aqs Younas
Apologies, Sorry for the fuss. Working perfectly.

Thanks.

On 8 December 2017 at 15:36, Bogdan-Andrei Iancu 
wrote:

> The "state" column is of integer type, see:
> https://github.com/OpenSIPS/opensips/blob/2.3/scripts/
> dbtext/opensips/dispatcher
>
> Why do you have it as "string" in your file ???
>
> Regard,
>
> Bogdan-Andrei Iancu
>   OpenSIPS Founder and Developer
>   http://www.opensips-solutions.com
>
> On 12/08/2017 11:55 AM, Aqs Younas wrote:
>
> Never thought there would be such parameter, this leaves me with the 3rd
> error.  Upon dispatcher reload I see this CRITICAL log.
>
> Dec  7 20:00:41 sbc2 /usr/local/opensips/sbin/opensips[2441]:
> CRITICAL:dispatcher:add_dest2list: BUG: unknown state -1953657376 for
> destination sip:172.31.0.107:5080
>
> dispatcher table.
>
> id(int,auto) setid(int) destination(string) socket(string) state(string)
> weight(int) priority(string) attrs(string) description(string)
> 1:21:sip\:172.31.0.107\:5080:udp\:172.31.0.188\:5060:0:50:1:
> backend=pbx.test.co-pbx.test.co:first
>
> On 8 December 2017 at 14:23, Bogdan-Andrei Iancu 
> wrote:
>
>> Hi,
>>
>> What db_mode do you have in the dbtext module ?
>>
>> Regards,
>>
>> Bogdan-Andrei Iancu
>>   OpenSIPS Founder and Developer
>>   http://www.opensips-solutions.com
>>
>> On 12/07/2017 10:09 PM, Aqs Younas wrote:
>>
>> Greetings of the day,
>>
>> I am having the following issues by using DBTEXT with opensips 2.3.2
>> (x86_64/linux).
>>
>> 1. If I add anything(new domain) through openipsctl it does not reflect
>> in DBTEXT.
>> 2. If I manually insert entries in DBTEXT, reload command does not work.
>> I had to restart opensips to make changes effective.
>> 3. I see this error on opensips restart no matter whatever value I set in
>> 'state' column of the dispatcher.
>>
>> Dec  7 20:00:41 sbc2 /usr/local/opensips/sbin/opensips[2441]:
>> CRITICAL:dispatcher:add_dest2list: BUG: unknown state -1953657376 for
>> destination sip:172.31.0.107:5080
>>
>> dispatcher table.
>>
>> id(int,auto) setid(int) destination(string) socket(string) state(string)
>> weight(int) priority(string) attrs(string) description(string)
>> 1:21:sip\:172.31.0.107\:5080:udp\:172.31.0.188\:5060:0:50:1:
>> backend=pbx.test.co-pbx.test.co:first
>>
>>
>> Any help would be much appreciated.
>>
>> Best Regards,
>>
>>
>> ___
>> Users mailing 
>> listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>>
>
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] DBTEXT not properly working with opensips 2.3

2017-12-08 Thread Bogdan-Andrei Iancu

The "state" column is of integer type, see:
https://github.com/OpenSIPS/opensips/blob/2.3/scripts/dbtext/opensips/dispatcher

Why do you have it as "string" in your file ???

Regard,

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

On 12/08/2017 11:55 AM, Aqs Younas wrote:
Never thought there would be such parameter, this leaves me with the 
3rd error.  Upon dispatcher reload I see this CRITICAL log.


Dec  7 20:00:41 sbc2 /usr/local/opensips/sbin/opensips[2441]: 
CRITICAL:dispatcher:add_dest2list: BUG: unknown state -1953657376 for 
destination sip:172.31.0.107:5080 


dispatcher table.

id(int,auto) setid(int) destination(string) socket(string) 
state(string)  weight(int) priority(string) attrs(string) 
description(string)

1:21:sip\:172.31.0.107\:5080:udp\:172.31.0.188\:5060:0:50:1:backend=pbx.test.co-pbx.test.co:first

On 8 December 2017 at 14:23, Bogdan-Andrei Iancu > wrote:


Hi,

What db_mode do you have in the dbtext module ?

Regards,

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

On 12/07/2017 10:09 PM, Aqs Younas wrote:

Greetings of the day,

I am having the following issues by using DBTEXT with opensips
2.3.2 (x86_64/linux).
1. If I add anything(new domain) through openipsctl it does not
reflect in DBTEXT.
2. If I manually insert entries in DBTEXT, reload command does
not work. I had to restart opensips to make changes effective.
3. I see this error on opensips restart no matter whatever value
I set in 'state' column of the dispatcher.

Dec  7 20:00:41 sbc2 /usr/local/opensips/sbin/opensips[2441]:
CRITICAL:dispatcher:add_dest2list: BUG: unknown state -1953657376
for destination sip:172.31.0.107:5080 

dispatcher table.

id(int,auto) setid(int) destination(string) socket(string)
state(string)  weight(int) priority(string) attrs(string)
description(string)

1:21:sip\:172.31.0.107\:5080:udp\:172.31.0.188\:5060:0:50:1:backend=pbx.test.co-pbx.test.co:first


Any help would be much appreciated.

Best Regards,


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






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


Re: [OpenSIPS-Users] DBTEXT not properly working with opensips 2.3

2017-12-08 Thread Aqs Younas
Never thought there would be such parameter, this leaves me with the 3rd
error.  Upon dispatcher reload I see this CRITICAL log.

Dec  7 20:00:41 sbc2 /usr/local/opensips/sbin/opensips[2441]:
CRITICAL:dispatcher:add_dest2list: BUG: unknown state -1953657376 for
destination sip:172.31.0.107:5080

dispatcher table.

id(int,auto) setid(int) destination(string) socket(string) state(string)
weight(int) priority(string) attrs(string) description(string)
1:21:sip\:172.31.0.107\:5080:udp\:172.31.0.188\:5060:0:50:
1:backend=pbx.test.co-pbx.test.co:first

On 8 December 2017 at 14:23, Bogdan-Andrei Iancu 
wrote:

> Hi,
>
> What db_mode do you have in the dbtext module ?
>
> Regards,
>
> Bogdan-Andrei Iancu
>   OpenSIPS Founder and Developer
>   http://www.opensips-solutions.com
>
> On 12/07/2017 10:09 PM, Aqs Younas wrote:
>
> Greetings of the day,
>
> I am having the following issues by using DBTEXT with opensips 2.3.2
> (x86_64/linux).
>
> 1. If I add anything(new domain) through openipsctl it does not reflect in
> DBTEXT.
> 2. If I manually insert entries in DBTEXT, reload command does not work. I
> had to restart opensips to make changes effective.
> 3. I see this error on opensips restart no matter whatever value I set in
> 'state' column of the dispatcher.
>
> Dec  7 20:00:41 sbc2 /usr/local/opensips/sbin/opensips[2441]:
> CRITICAL:dispatcher:add_dest2list: BUG: unknown state -1953657376 for
> destination sip:172.31.0.107:5080
>
> dispatcher table.
>
> id(int,auto) setid(int) destination(string) socket(string) state(string)
> weight(int) priority(string) attrs(string) description(string)
> 1:21:sip\:172.31.0.107\:5080:udp\:172.31.0.188\:5060:0:50:
> 1:backend=pbx.test.co-pbx.test.co:first
>
>
> Any help would be much appreciated.
>
> Best Regards,
>
>
> ___
> Users mailing 
> listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] DBTEXT not properly working with opensips 2.3

2017-12-08 Thread Bogdan-Andrei Iancu

Hi,

What db_mode do you have in the dbtext module ?

Regards,

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

On 12/07/2017 10:09 PM, Aqs Younas wrote:

Greetings of the day,

I am having the following issues by using DBTEXT with opensips 2.3.2 
(x86_64/linux).
1. If I add anything(new domain) through openipsctl it does not 
reflect in DBTEXT.
2. If I manually insert entries in DBTEXT, reload command does not 
work. I had to restart opensips to make changes effective.
3. I see this error on opensips restart no matter whatever value I set 
in 'state' column of the dispatcher.


Dec  7 20:00:41 sbc2 /usr/local/opensips/sbin/opensips[2441]: 
CRITICAL:dispatcher:add_dest2list: BUG: unknown state -1953657376 for 
destination sip:172.31.0.107:5080 


dispatcher table.

id(int,auto) setid(int) destination(string) socket(string) 
state(string)  weight(int) priority(string) attrs(string) 
description(string)

1:21:sip\:172.31.0.107\:5080:udp\:172.31.0.188\:5060:0:50:1:backend=pbx.test.co-pbx.test.co:first


Any help would be much appreciated.

Best Regards,


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


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


Re: [OpenSIPS-Users] opensips 2.3 json compile error

2017-12-08 Thread Tito Cumpen
Thanks Razvan that worked.

On Tue, Dec 5, 2017 at 6:08 AM, Răzvan Crainea  wrote:

> Hi, Tito!
>
> Try to install pkg-config package - it will figure out the correct library
> version and it will compile properly.
> In the meantime I will try to figure out a better way to check the library
> version.
>
> Best regards,
>
> Răzvan Crainea
> OpenSIPS Developerwww.opensips-solutions.com
>
> On 12/01/2017 10:17 AM, Tito Cumpen wrote:
>
> hello group,
>
>
> I am attempting to compile opensips 2.3 on debian stretch but I am seeing
> the following errors.
>
> Compiling array_del.c
>
> Compiling json.c
>
> *json.c:* In function ‘*get_object*’:
>
> *json.c:301:4:* *warning: *‘*json_object_object_get*’ is deprecated [
> *-Wdeprecated-declarations*]
>
> *cur_obj* = json_object_object_get( cur_obj, buff );
>
> *^~~*
>
> In file included from */usr/include/json-c/linkhash.h:16:0*,
>
>  from */usr/include/json-c/json.h:22*,
>
>  from *json.c:48*:
>
> */usr/include/json-c/json_object.h:290:56:* *note: *declared here
>
>  THIS_FUNCTION_IS_DEPRECATED(extern struct json_object* 
> *j*son_object_object_get(struct
> json_object* obj,
>
> *^*
>
> */usr/include/json-c/json_object.h:17:43:* *note: *in definition of macro
> ‘*THIS_FUNCTION_IS_DEPRECATED*’
>
>  #define THIS_FUNCTION_IS_DEPRECATED(func) *func* __attribute__
> ((deprecated))
>
>*^~~~*
>
> In file included from *../../parser/../ip_addr.h:46:0*,
>
>  from *../../parser/msg_parser.h:48*,
>
>  from *../../sr_module.h:48*,
>
>  from *json.c:33*:
>
> *json.c:* In function ‘*pv_set_json*’:
>
> *json.c:595:5:* *error: *‘*json_tokener_errors*’ undeclared (first use in
> this function)
>
>  *j*son_tokener_errors[(unsigned long)obj]
>
>  *^*
>
> *../../parser/../dprint.h:340:33:* *note: *in definition of macro ‘
> *MY_DPRINT*’
>
>   dp_my_pid(), __DP_FUNC, ## *args*) \
>
>  *^~~~*
>
> *json.c:591:4:* *note: *in expansion of macro ‘*LM_ERR*’
>
> *LM_ERR*("Error parsing json: %s\n",
>
> *^~*
>
> *json.c:595:5:* *note: *each undeclared identifier is reported only once
> for each function it appears in
>
>  *j*son_tokener_errors[(unsigned long)obj]
>
>  *^*
>
> *../../parser/../dprint.h:340:33:* *note: *in definition of macro ‘
> *MY_DPRINT*’
>
>   dp_my_pid(), __DP_FUNC, ## *args*) \
>
>  *^~~~*
>
> *json.c:591:4:* *note: *in expansion of macro ‘*LM_ERR*’
>
> *LM_ERR*("Error parsing json: %s\n",
>
> *^~*
>
> ../../Makefile.rules:25: recipe for target 'json.o' failed
>
>
>
>
> I am using the latest pull of opensips 2.3 and have the following deps
> installed.
>
>
> libjson-c-dev is already the newest version (0.12.1-1.1).
>
> libjson-c-doc is already the newest version (0.12.1-1.1).
>
> libjson-c3 is already the newest version (0.12.1-1.1).
>
>
>
>
>
>
> ___
> Users mailing 
> listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users