Re: [OpenSIPS-Users] Rate limit question

2016-06-01 Thread John Nash
Also how can I decide which Rate limit algorithm should I choose ? Like RED
or TAILDROP or NETWORK

On Thu, Jun 2, 2016 at 9:37 AM, John Nash  wrote:

> I am using opensips(2,1) + freeswitch. At opensips doing auth and
> drouting. Now i plan to test rate limit but should I be checking CPS at
> opensips or at freeswitch?...as Rate limit uses timers would it be more
> appropriate to check at freeswitch?
>
>
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Rate limit question

2016-06-01 Thread John Nash
I am using opensips(2,1) + freeswitch. At opensips doing auth and drouting.
Now i plan to test rate limit but should I be checking CPS at opensips or
at freeswitch?...as Rate limit uses timers would it be more appropriate to
check at freeswitch?
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Connecting to mongodb Replica set from opensips .

2016-06-01 Thread sevpal
Hi, some modules are not safe to use with mongodb, namely; acc (Cannot write to 
missed_call), msilo (Does not delete stored messages after sent), avpops(do not 
recall the issue with this one) and there may be others.

To connect to the replica set (Minimum 3 replicas for proper master election):
All the modules (cachedb_mongodb.so, db_cachedb.so etc.) should point to the 
same db name in the xdb_url module parameter.

loadmodule "cachedb_mongodb.so"
loadmodule "db_cachedb.so"  
modparam("cachedb_mongodb", 
"cachedb_url","mongodb:replicaset1://root:password@1.2.3.4:27017,2.3.4.5:27017,5.5.5.5:27017,/jack.db.CallCenter_Info")
modparam("db_cachedb","cachedb_url","mongodb:replicaset1://root:password@1.2.3.4:27017,2.3.4.5:27017,5.5.5.5:27017,/jack.db.CallCenter_Info")


loadmodule "usrloc.so"  
modparam("usrloc", 
"db_url","mongodb:replicaset1://root:password@1.2.3.4:27017,2.3.4.5:27017,5.5.5.5:27017,/jack.db.CallCenter_Info")

Use the mongo slave_ok,1 parameter to read write via slaves.

For the version table, you will need to create a copy in mongodb with the same 
name as the version table in mysql. Use the db_version_table= global parameter 
if you want to change the default name of the table. >From mongo shell do this:

use db
db.version.insert({ table_version : NumberInt(1009),  table_name : "location"})
db.version.insert({ table_version : NumberInt(10),  table_name : "dialog"})
From: Sasmita Panda 
Sent: Wednesday, June 01, 2016 6:17 AM
To: OpenSIPS users mailling list 
Subject: [OpenSIPS-Users] Connecting to mongodb Replica set from opensips .

HI Guys , 

 i am trying to use mongodb in replica set . I have tested my opensips-1.11 
with a stand alone mongodb instance . Its working fine .

   Now I am trying to connect to a replica set . But somehow I amnot able 
to do this . Opensips is getting connected to the replica set but its not able 
to run raw query .

My opensips configuration is like bellow :

loadmodule "cachedb_mongodb.so"
loadmodule "db_cachedb.so"  
modparam("cachedb_mongodb", 
"cachedb_url","mongodb:replicaset1://root:password@1.2.3.4:27017,2.3.4.5:27017/jack.db.CallCenter_Info")
modparam("db_cachedb","cachedb_url","mongodb:replicaset1://root:password@1.2.3.4:27017,2.3.4.5:27017/jack.db.test")

modparam("acc", "db_url", "cachedb://mongodb:replicaset1")
modparam("acc", "db_flag", 2)
modparam("acc", "log_flag", 2)
modparam("acc", "cdr_flag", 1)
modparam("acc", "log_facility", "LOG_LOCAL7")


Opensips is not able to execute version check query for acc module .  Bellow is 
the logs of opensips .

INFO:cachedb_mongodb:mongo_new_connection: Connected at server 
52.71.216.67:27017,23.21.65.168:27017 with version 3.0.12 , to db db.test
DBG:db_cachedb:db_cachedb_init: Succesfully initiated connection to 
[mongodb:replicaset1]
DBG:cachedb_mongodb:mongo_db_query_trans: Running raw mongo query on table 
db.my_version_table
ERROR:cachedb_mongodb:mongo_db_query_trans: Failed to run query. Err = 0, 0 , 0
DBG:cachedb_mongodb:mongo_db_query_trans: Fetched key lastOp
DBG:cachedb_mongodb:mongo_db_query_trans: (unknown type 17)
DBG:cachedb_mongodb:mongo_db_query_trans: Fetched key connectionId
DBG:cachedb_mongodb:mongo_db_query_trans: (int) 516
DBG:cachedb_mongodb:mongo_db_query_trans: Fetched key n
DBG:cachedb_mongodb:mongo_db_query_trans: (int) 0
DBG:cachedb_mongodb:mongo_db_query_trans: Fetched key syncMillis
DBG:cachedb_mongodb:mongo_db_query_trans: (int) 0
DBG:core:wait_status_code: read code 0 ? rc = 0, errno=Success
INFO:core:daemonize: pre-daemon process exiting with -1


   In my mongodb instance there is some error printing also .
[initandlisten] connection accepted from 104.131.6.7:35857 #565 (7 connections 
now open)
2016-06-01T10:09:14.802+ I QUERY[conn565] assertion 13 not authorized 
for query on db.my_version_table ns:db.my_version_table query:{ $query: { 
table_name: "acc" } }

   By login through a remote machine with same username and password . I am 
able to execute all query manually . But why my opensips cant do this . If 
anybody have tried this can you suggest me any solution . What else I should do 
in my replica set or in opensips to make it happen ?

 Please help me . As I am quite new to mongodb replica set so not able to 
understand the actual problem also .


Thanks & Regards 
Sasmita Panda
Network Testing and Software Engineer
3CLogic , ph:07827611765



___
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] Question regarding b2b_bridge function

2016-06-01 Thread Ping Han
Hi Bogdan,

Thanks for the information.

I need the value in the Opensips cfg.

I understand that I can query the b2b_logic or b2b_entities tables to get
the value in Opensips config. Apart from that could you tell me other way
to easily access the value in Opensips config?

Thanks,
Ping



On Wed, Jun 1, 2016 at 5:13 PM, Bogdan-Andrei Iancu 
wrote:

> Hi Ping,
>
> Indeed, my bad - the docs are not updated, as that param was disabled long
> time ago (4 years ago):
> https://sourceforge.net/p/opensips/bugs/502/
>
> Still, there are available option. But the question is : do you need that
> value in OpenSIPS cfg or outside OpenSIPS ? as there are different way to
> get the ID.
>
> Regards,
>
> Bogdan-Andrei Iancu
> OpenSIPS Founder and Developerhttp://www.opensips-solutions.com
>
> On 01.06.2016 03:48, Ping Han wrote:
>
> Hi Bogdan,
>
> Thank you very much for your reply.
>
> I have tried to use the module parameter "b2bl_key_avp" as described in
> the document as below.
>
> 
> modparam("b2b_logic", "b2bl_key_avp", "$avp(99)")
> 
>
> However, I got the following errors when the Opensips is restarted.
> 
> ERROR:core:set_mod_param_regex: parameter  not found in
> module 
> 
>
> I am using the Opensips version opensips-2.1.2-1.el6.x86_64 (rpm).
>
> Thanks,
> Chris
>
> On Tue, May 31, 2016 at 6:01 PM, Bogdan-Andrei Iancu <
> bog...@opensips.org> wrote:
>
>> Hi Chris,
>>
>> The "dialog_id" is actually the b2b key, that is expose by the b2b_logic
>> via the module parameter b2bl_key_avp. See:
>>
>> http://www.opensips.org/html/docs/modules/2.1.x/b2b_logic.html#id294094
>>
>> That key can also be found in the b2b_logic table in DB.
>>
>> At signaling level, the key is the Call-ID of the outbound calls from b2b.
>>
>> Regards,
>>
>> Bogdan-Andrei Iancu
>> OpenSIPS Founder and Developerhttp://www.opensips-solutions.com
>>
>> On 23.05.2016 07:32, Ping Han wrote:
>>
>> Hi Bogdan,
>>
>> I asked the question a few days ago but have not got a response.
>>
>> I am just wondering if I could get some advice from you.
>>
>> Any advice will be appreciated.
>>
>> Thanks,
>> Chris
>>
>> On Wed, May 18, 2016 at 4:39 PM, Ping Han < 
>> pinghan...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I would like to use the b2b_bridge fifo function as specified at
>>> 
>>> http://www.opensips.org/html/docs/modules/2.1.x/b2b_logic.html#id248916.
>>>
>>> The function will be triggered by a third party. I will need to pass the
>>> parameters to the third party for it to trigger the function. One of the
>>> parameters is the "dialog-id".
>>>
>>> The problem is that I am not sure how the value of the dialog-id can be
>>> available in the Opensips config. Is there any Opensips modules/function
>>> that can retrieve the value of the dialog-id?
>>>
>>> I tried to get the value from the "b2b_entities" and "b2b_logic" table.
>>> However, it seems that it does not work this way because the two tables do
>>> not pop the data in real time. Sometimes I can see the data but sometimes I
>>> am not able to see it.
>>>
>>> It is appreciated that you can give me some idea.
>>>
>>> Thanks,
>>>
>>> Ping
>>>
>>
>>
>>
>
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Segfault in opensips 2.2

2016-06-01 Thread qasimak...@gmail.com
Dear Team,

There is another segfault when i try to run with my old configuration from
opensips 1.11. as far as i can understand it dosent go beyond loading the
modules. Please find below logs and backtrace.

syslog: http://pastebin.com/EAqTKu1n
backtrace: http://pastebin.com/rP9JDeDW

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


[OpenSIPS-Users] Does attr_avp (string) decrease the available RAM?

2016-06-01 Thread Rodrigo Pimenta Carvalho
Hi.
I'm using OpenSIPS 2.1 and the module REGISTRAR.
So, in my script I have:

modparam("registrar", "attr_avp", "$avp(attr)")

...
if (is_method("REGISTER")) {
$avp(attr) = "contact_info";
save("location");
exit;
}
...
lookup("location");


I would like to know whether every time such code is executed the available 
memory decreases. What happens? Does the avp demand more and more memory to 
keep its information about lots of "contact_info"?
Any hint will be very helpful!

Thanks alot.


RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Valid tls connection closed on a "dos" simulation

2016-06-01 Thread Saioa Perurena
Hi,
I've tried Opensips 2.1.3 and it seems that the problem is solved.

Thank you very much.

On 01/06/16 13:18, Liviu Chircu wrote:
> Hi Saioa,
> 
> We have addressed this issue somewhere between OpenSIPS 1.11.6 - 1.11.7,
> and 2.1.2 - 2.1.3. Please update to the latest version (possibly even
> from GitHub [1], [2]), and let us know if it solved your problem!
> 
> [1]: https://github.com/OpenSIPS/opensips/tree/1.11
> [2]: https://github.com/OpenSIPS/opensips/tree/2.1
> 
> Liviu Chircu
> OpenSIPS Developer
> http://www.opensips-solutions.com
> 
> On 01.06.2016 13:22, Saioa Perurena wrote:
>> Hi,
>>
>> We have an opensips 1.11.6 server with tls and we simulate a dos attack
>> sending an invalid request to the tls port every 10 seconds (echo
>> "giberish" | nc sip-service.example.com 5061 ).
>>
>> We have only two UAC connected correctly through tls, when one of this
>> clients sends an INVITE request when the dos attack is working, then
>> servers close the tls connection of that client with error:
>> ERROR:proto_tls:tls_print_errstack: TLS errstack: error:1408F10B:SSL
>> routines:SSL3_GET_RECORD:wrong version number
>>
>> When client sends MESSAGE or OPTIONS request it does not happen.
>>
>> If we stop the dos attack all works correctly. We can reproduce it so
>> easily, also with Opensips 2.1 version.
>>
>> Any idea of what is happening?? Maybe it is a bug on tls? Any suggestion
>> or idea is welcome.
>>
>> Thanks in advance.
>>
>> Saioa.
>>
>> ___
>> 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] Segfault using Loadbalancer Module.

2016-06-01 Thread qasimak...@gmail.com
Thank Liviu... Its fixed now.

Regards,
Qasim

On Wed, Jun 1, 2016 at 4:48 PM, Liviu Chircu  wrote:

> Thank you for the backtrace, Qasim! It was very helpful.
>
> I managed to fix the issue on the "master" and "2.2" git branches [1].
> Please pull the latest sources and redo your tests!
>
> [1]: https://github.com/OpenSIPS/opensips.git
>
> Liviu Chircu
> OpenSIPS Developerhttp://www.opensips-solutions.com
>
> On 01.06.2016 13:17, qasimak...@gmail.com wrote:
>
> Dear Razvan,
>
> Please find below backtrace of the core file:
>
> http://pastebin.com/WpLtezAS
>
> Regards,
> Qasim Ayyaz Khan
>
> On Wed, Jun 1, 2016 at 11:46 AM, Răzvan Crainea < 
> raz...@opensips.org> wrote:
>
>> Hi, Qasim!
>>
>>
>> Yes, please post a backtrace of the core dump on pastebin for further
>> investigation.
>>
>> Best regards,
>>
>> Răzvan Crainea
>> OpenSIPS Solutionswww.opensips-solutions.com
>>
>> On 05/31/2016 10:12 PM, qasimak...@gmail.com wrote:
>>
>> Hi,
>>
>> I was using default script generated by opensips menuconfig and it gives
>> the following segfault
>>
>> http://pastebin.com/6zuimn5N
>>
>> I was evaluating opensips 2.2 latest release. Please let me know if core
>> dump is required
>>
>> Regards,
>> Qasim Ayyaz Khan
>>
>>
>> ___
>> 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 
> 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


Re: [OpenSIPS-Users] Segfault using Loadbalancer Module.

2016-06-01 Thread Liviu Chircu

Thank you for the backtrace, Qasim! It was very helpful.

I managed to fix the issue on the "master" and "2.2" git branches [1]. 
Please pull the latest sources and redo your tests!


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

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 01.06.2016 13:17, qasimak...@gmail.com wrote:

Dear Razvan,

Please find below backtrace of the core file:

http://pastebin.com/WpLtezAS

Regards,
Qasim Ayyaz Khan

On Wed, Jun 1, 2016 at 11:46 AM, Răzvan Crainea > wrote:


Hi, Qasim!


Yes, please post a backtrace of the core dump on pastebin for
further investigation.

Best regards,

Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.com 

On 05/31/2016 10:12 PM, qasimak...@gmail.com
 wrote:

Hi,

I was using default script generated by opensips menuconfig and
it gives the following segfault

http://pastebin.com/6zuimn5N

I was evaluating opensips 2.2 latest release. Please let me know
if core dump is required

Regards,
Qasim Ayyaz Khan


___
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] Fraud module

2016-06-01 Thread Denis
I understand.
Disabling certain statistics is a quite good idea.
An additional offer. To have a way for resetting certain statistic of certain 
user using, for example, mi interface. It will vary help to administrate fraud 
detection service.

Thank you.

mailto:denis7...@mail.ru


That is the normal behavior, since by "different number" I actually meant 
"different matching rule". In your case, that short prefix rule will match a 
lot more often for a given user, since it's likely that all his contacts are 
within the same region/country, so you should first assess whether a given 
statistic is relevant or not for a given rule, before setting its alerting 
thresholds!

Maybe we should add the possibility to disable certain statistics by entering 
"-1" as value for either of their thresholds.
Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com
On 01.06.2016 13:26, Denis wrote:
Re: [OpenSIPS-Users] Fraud module Hello Liviu!

Is this action only for "sequential calls"?
And what do mean about "different number"?
I have prefix "810" in profile table. And client dials different numbers but 
all of them begin from 810. And i see that count of "sequential calls" 
increases for each call.

mailto:denis7...@mail.ru


Hi Denis,

Currently this statistic is not reset between intervals, but only when a user 
dials a different number than the one(s) before.
This makes it so that the module never loses track of the sequence of calls a 
particular user has made.

In your particular case, does it make more sense for the module to do a reset?
Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com
On 31.05.2016 15:50, Денис Путято wrote:
Fraud module Hello!

I am using Opensips 2.1 with fraud module.
Should the module resets current statistics when new time stamp begin?
I use 00:00 - 23:59 time interval for fraud detection and see that, for 
example, "sequential calls" increases for every call every day.

Thank you

mailto:denis7...@mail.ru 

___
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] Valid tls connection closed on a "dos" simulation

2016-06-01 Thread Liviu Chircu

Hi Saioa,

We have addressed this issue somewhere between OpenSIPS 1.11.6 - 1.11.7, 
and 2.1.2 - 2.1.3. Please update to the latest version (possibly even 
from GitHub [1], [2]), and let us know if it solved your problem!


[1]: https://github.com/OpenSIPS/opensips/tree/1.11
[2]: https://github.com/OpenSIPS/opensips/tree/2.1

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 01.06.2016 13:22, Saioa Perurena wrote:

Hi,

We have an opensips 1.11.6 server with tls and we simulate a dos attack
sending an invalid request to the tls port every 10 seconds (echo
"giberish" | nc sip-service.example.com 5061 ).

We have only two UAC connected correctly through tls, when one of this
clients sends an INVITE request when the dos attack is working, then
servers close the tls connection of that client with error:
ERROR:proto_tls:tls_print_errstack: TLS errstack: error:1408F10B:SSL
routines:SSL3_GET_RECORD:wrong version number

When client sends MESSAGE or OPTIONS request it does not happen.

If we stop the dos attack all works correctly. We can reproduce it so
easily, also with Opensips 2.1 version.

Any idea of what is happening?? Maybe it is a bug on tls? Any suggestion
or idea is welcome.

Thanks in advance.

Saioa.

___
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] Fraud module

2016-06-01 Thread Liviu Chircu
That is the normal behavior, since by "different number" I actually 
meant "different matching rule". In your case, that short prefix rule 
will match a lot more often for a given user, since it's likely that all 
his contacts are within the same region/country, so you should first 
assess whether a given statistic is relevant or not for a given rule, 
before setting its alerting thresholds!


Maybe we should add the possibility to disable certain statistics by 
entering "-1" as value for either of their thresholds.


Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 01.06.2016 13:26, Denis wrote:

Re: [OpenSIPS-Users] Fraud module Hello Liviu!

Is this action only for "sequential calls"?
And what do mean about "different number"?
I have prefix "810" in profile table. And client dials different 
numbers but all of them begin from 810. And i see that count of 
"sequential calls" increases for each call.


mailto:denis7...@mail.ru


Hi Denis,

Currently this statistic is not reset between intervals, but only when 
a user dials a different number than the one(s) before.
This makes it so that the module never loses track of the sequence of 
calls a particular user has made.


In your particular case, does it make more sense for the module to do 
a reset?

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com
On 31.05.2016 15:50, Денис Путято wrote:
Fraud module Hello!

I am using Opensips 2.1 with fraud module.
Should the module resets current statistics when new time stamp begin?
I use 00:00 - 23:59 time interval for fraud detection and see that, 
for example, "sequential calls" increases for every call every day.


Thank you

mailto:denis7...@mail.ru

___
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] Fraud module

2016-06-01 Thread Denis
Hello Liviu!

Is this action only for "sequential calls"?
And what do mean about "different number"?
I have prefix "810" in profile table. And client dials different numbers but 
all of them begin from 810. And i see that count of "sequential calls" 
increases for each call.

mailto:denis7...@mail.ru


Hi Denis,

Currently this statistic is not reset between intervals, but only when a user 
dials a different number than the one(s) before.
This makes it so that the module never loses track of the sequence of calls a 
particular user has made.

In your particular case, does it make more sense for the module to do a reset?
Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com
On 31.05.2016 15:50, Денис Путято wrote:
Fraud module Hello!

I am using Opensips 2.1 with fraud module.
Should the module resets current statistics when new time stamp begin?
I use 00:00 - 23:59 time interval for fraud detection and see that, for 
example, "sequential calls" increases for every call every day.

Thank you

mailto:denis7...@mail.ru 

___

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] Valid tls connection closed on a "dos" simulation

2016-06-01 Thread Saioa Perurena
Hi,

We have an opensips 1.11.6 server with tls and we simulate a dos attack
sending an invalid request to the tls port every 10 seconds (echo
"giberish" | nc sip-service.example.com 5061 ).

We have only two UAC connected correctly through tls, when one of this
clients sends an INVITE request when the dos attack is working, then
servers close the tls connection of that client with error:
ERROR:proto_tls:tls_print_errstack: TLS errstack: error:1408F10B:SSL
routines:SSL3_GET_RECORD:wrong version number

When client sends MESSAGE or OPTIONS request it does not happen.

If we stop the dos attack all works correctly. We can reproduce it so
easily, also with Opensips 2.1 version.

Any idea of what is happening?? Maybe it is a bug on tls? Any suggestion
or idea is welcome.

Thanks in advance.

Saioa.

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


[OpenSIPS-Users] Connecting to mongodb Replica set from opensips .

2016-06-01 Thread Sasmita Panda
HI Guys ,

 i am trying to use mongodb in replica set . I have tested my
opensips-1.11 with a stand alone mongodb instance . Its working fine .

   Now I am trying to connect to a replica set . But somehow I amnot
able to do this . Opensips is getting connected to the replica set but its
not able to run raw query .

 My opensips configuration is like bellow :

loadmodule "cachedb_mongodb.so"
loadmodule "db_cachedb.so"
modparam("cachedb_mongodb", "cachedb_url","mongodb:replicaset1://
root:password@1.2.3.4:27017,2.3.4.5:27017/jack.db.CallCenter_Info")
modparam("db_cachedb","cachedb_url","mongodb:replicaset1://
root:password@1.2.3.4:27017,2.3.4.5:27017/jack.db.test")

modparam("acc", "db_url", "cachedb://mongodb:replicaset1")
modparam("acc", "db_flag", 2)
modparam("acc", "log_flag", 2)
modparam("acc", "cdr_flag", 1)
modparam("acc", "log_facility", "LOG_LOCAL7")


Opensips is not able to execute version check query for acc module .
Bellow is the logs of opensips .

INFO:cachedb_mongodb:mongo_new_connection: Connected at server
52.71.216.67:27017,23.21.65.168:27017 with version 3.0.12 , to db db.test
 DBG:db_cachedb:db_cachedb_init: Succesfully initiated connection to
[mongodb:replicaset1]
 DBG:cachedb_mongodb:mongo_db_query_trans: Running raw mongo query on table
db.my_version_table
 ERROR:cachedb_mongodb:mongo_db_query_trans: Failed to run query. Err = 0,
0 , 0
 DBG:cachedb_mongodb:mongo_db_query_trans: Fetched key lastOp
 DBG:cachedb_mongodb:mongo_db_query_trans: (unknown type 17)
 DBG:cachedb_mongodb:mongo_db_query_trans: Fetched key connectionId
 DBG:cachedb_mongodb:mongo_db_query_trans: (int) 516
 DBG:cachedb_mongodb:mongo_db_query_trans: Fetched key n
 DBG:cachedb_mongodb:mongo_db_query_trans: (int) 0
 DBG:cachedb_mongodb:mongo_db_query_trans: Fetched key syncMillis
 DBG:cachedb_mongodb:mongo_db_query_trans: (int) 0
 DBG:core:wait_status_code: read code 0 ? rc = 0, errno=Success
 INFO:core:daemonize: pre-daemon process exiting with -1


   In my mongodb instance there is some error printing also .
[initandlisten] connection accepted from 104.131.6.7:35857 #565 (7
connections now open)
2016-06-01T10:09:14.802+ I QUERY[conn565] assertion 13 not
authorized for query on db.my_version_table ns:db.my_version_table query:{
$query: { table_name: "acc" } }

   By login through a remote machine with same username and password .
I am able to execute all query manually . But why my opensips cant do this
. If anybody have tried this can you suggest me any solution . What else I
should do in my replica set or in opensips to make it happen ?

 Please help me . As I am quite new to mongodb replica set so not able
to understand the actual problem also .


*Thanks & Regards*
*Sasmita Panda*
*Network Testing and Software Engineer*
*3CLogic , ph:07827611765*
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Segfault using Loadbalancer Module.

2016-06-01 Thread qasimak...@gmail.com
Dear Razvan,

Please find below backtrace of the core file:

http://pastebin.com/WpLtezAS

Regards,
Qasim Ayyaz Khan

On Wed, Jun 1, 2016 at 11:46 AM, Răzvan Crainea  wrote:

> Hi, Qasim!
>
>
> Yes, please post a backtrace of the core dump on pastebin for further
> investigation.
>
> Best regards,
>
> Răzvan Crainea
> OpenSIPS Solutionswww.opensips-solutions.com
>
> On 05/31/2016 10:12 PM, qasimak...@gmail.com wrote:
>
> Hi,
>
> I was using default script generated by opensips menuconfig and it gives
> the following segfault
>
> http://pastebin.com/6zuimn5N
>
> I was evaluating opensips 2.2 latest release. Please let me know if core
> dump is required
>
> Regards,
> Qasim Ayyaz Khan
>
>
> ___
> 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


Re: [OpenSIPS-Users] engage_rtp_proxy()

2016-06-01 Thread Miha

HI

engage_rtp_proxy() work ok. I was having some other issue with dialog. 
Tnx to @Bogdan I figure it out.



br

miha


On 31/05/2016 15:54, Sasmita Panda wrote:
In my case its working great . So I haven't done such experiments to 
know what is happening with dialog module  . We are using this form 
years .


 If you got to know then let me know also . That may help me in 
future .


*/Thanks & Regards/*
/Sasmita Panda/
/Network Testing and Software Engineer/
/3CLogic , ph:07827611765/

On Tue, May 31, 2016 at 6:56 PM, Miha > wrote:


@Sasmita I had writen cfg script like this and it works. I tried
than with engage_rtp_proxy() but did not work automatically, that
is why i asked :)

So, can be some issue with dialog module? Not configured properly?


tnx

miha


On 31/05/2016 15:21, Sasmita Panda wrote:

Yes . This should happen . But I don't know the exact problem .
What I explain is the way we are using rtpproxy .
This is clearly mention in the document also .. You can go
through opensips.org 

This is what we are doing .  Rest I am not an expertise in
opensips .
route {
...
 if (is_method("INVITE")) {
 if (has_body("application/sdp")) {
 if (rtpproxy_offer())
 t_on_reply("1");
 } else {
 t_on_reply("2");
 }
 }
 if (is_method("ACK") && has_body("application/sdp"))
 rtpproxy_answer();
...
}

onreply_route[1]
{
...
 if (has_body("application/sdp"))
 rtpproxy_answer();
...
}

onreply_route[2]
{
...
 if (has_body("application/sdp"))
 rtpproxy_offer();
...
}

*/Thanks & Regards/*
/Sasmita Panda/
/Network Testing and Software Engineer/
/3CLogic , ph:07827611765/

On Tue, May 31, 2016 at 6:32 PM, Max Mühlbronner mailto:m...@42com.com>> wrote:

Hi,


@Miha: Are you sure that it does not automatically set the
rtpproxies for 200OK & ACK?

@Sasmita: According to the documentation it is not necessary
to invoke engage_rtp_proxy() for replies as this is handled
by the dialog module.


"Function must only be called for the initial INVITE and
internally takes care of rewriting the body of 200 OKs and
ACKs. "



Best Regards

Max M.


On 31.05.2016 14:42, Miha wrote:

@Sasmita, totally clear :)

I asked wrong question :)


What is the difference between using engage_rtp_proxy() or
using rtpproxy_offer(), rtpproxy_answer()?


tnx

miha


On 31/05/2016 14:39, Sasmita Panda wrote:

If you are using in INVITE , then it should be
offer . Because firstly we are offering media to someone .
If its 200 Ok then it will be answer because the 2nd party
is answering the call .

  If there is no sdp in INVITE but in ACK , then it
will get reversed . In 200 OK you should offer and in ACK
you have to answer .
This can be done in loop .

 I hope I make you understand .

*/Thanks & Regards/*
/Sasmita Panda/
/Network Testing and Software Engineer/
/3CLogic , ph:07827611765/

On Tue, May 31, 2016 at 6:02 PM, Miha mailto:m...@softnet.si> 
> wrote:

ok tnx. I understand documentation on wrong way.

But then, what is the difference with  using rtpproxy
offer, answer ?


br

mia


On 31/05/2016 14:17, Sasmita Panda wrote:

If there is sdp in ACK and u wanted to engage rtp
proxy , the
 you have to write it inside ACK also ... By writing
for INVITE
cant help you to update ACK also . For 200 OK , you
must write it
in reply route .

*/Thanks & Regards/*
/Sasmita Panda/
/Network Testing and Software Engineer/
/3CLogic , ph:07827611765/

On Tue, May 31, 2016 at 5:35 PM, Johan De Clercq
mailto:jo...@democon.be>
 > wrote:

put it also in reply route.

2016-05-31 13:42 GMT+02:00 Miha mailto:m...@softnet.si>
 >:

HI

if I use engage_rtp_proxy(), I can use it only
on initial
INVITE and opensips should automatically
rewritten also
200 OK and ACK with SDP, right?
But when I am using this function, I can see
from trace
that only SDP for initial invite is rewritten,
200 ok

Re: [OpenSIPS-Users] Question regarding b2b_bridge function

2016-06-01 Thread Bogdan-Andrei Iancu

Hi Ping,

Indeed, my bad - the docs are not updated, as that param was disabled 
long time ago (4 years ago):

https://sourceforge.net/p/opensips/bugs/502/

Still, there are available option. But the question is : do you need 
that value in OpenSIPS cfg or outside OpenSIPS ? as there are different 
way to get the ID.


Regards,

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

On 01.06.2016 03:48, Ping Han wrote:

Hi Bogdan,

Thank you very much for your reply.

I have tried to use the module parameter "b2bl_key_avp" as described 
in the document as below.



modparam("b2b_logic", "b2bl_key_avp", "$avp(99)")


However, I got the following errors when the Opensips is restarted.

ERROR:core:set_mod_param_regex: parameter  not found in 
module 



I am using the Opensips version opensips-2.1.2-1.el6.x86_64 (rpm).

Thanks,
Chris

On Tue, May 31, 2016 at 6:01 PM, Bogdan-Andrei Iancu 
mailto:bog...@opensips.org>> wrote:


Hi Chris,

The "dialog_id" is actually the b2b key, that is expose by the
b2b_logic via the module parameter b2bl_key_avp. See:
http://www.opensips.org/html/docs/modules/2.1.x/b2b_logic.html#id294094

That key can also be found in the b2b_logic table in DB.

At signaling level, the key is the Call-ID of the outbound calls
from b2b.

Regards,

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

On 23.05.2016 07:32, Ping Han wrote:

Hi Bogdan,

I asked the question a few days ago but have not got a response.

I am just wondering if I could get some advice from you.

Any advice will be appreciated.

Thanks,
Chris

On Wed, May 18, 2016 at 4:39 PM, Ping Han mailto:pinghan...@gmail.com>> wrote:

Hi,

I would like to use the b2b_bridge fifo function as specified
at
http://www.opensips.org/html/docs/modules/2.1.x/b2b_logic.html#id248916.

The function will be triggered by a third party. I will need
to pass the parameters to the third party for it to trigger
the function. One of the parameters is the "dialog-id".

The problem is that I am not sure how the value of the
dialog-id can be available in the Opensips config. Is there
any Opensips modules/function that can retrieve the value of
the dialog-id?

I tried to get the value from the "b2b_entities" and
"b2b_logic" table. However, it seems that it does not work
this way because the two tables do not pop the data in real
time. Sometimes I can see the data but sometimes I am not
able to see it.

It is appreciated that you can give me some idea.

Thanks,

Ping







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


Re: [OpenSIPS-Users] Out of memory problem

2016-06-01 Thread Bogdan-Andrei Iancu

Hi Denis,

If you upgrade to 2.2, use the DBG_MALLOC (together with your memory 
manager like F_MALLOC, HP_MALLOC or QM_MALLOC) to enable memory leak 
troubleshooting - at shutdown you will get a memory dump, so you will 
clearly see if there is a leak of not.


Regards,

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

On 31.05.2016 19:16, Denis wrote:

Re: [OpenSIPS-Users] Out of memory problem Hello!

I had increased PKG memory twice (to 1000 M) but the problem is still 
exists.


May 31 19:09:29 opensips-main 
/usr/local/opensips2.1/sbin/opensips[20681]: 
ERROR:core:db_allocate_rows: no memory left
May 31 19:09:29 opensips-main 
/usr/local/opensips2.1/sbin/opensips[20681]: 
ERROR:db_mysql:db_mysql_fetch_result: no memory left
May 31 19:09:29 opensips-main 
/usr/local/opensips2.1/sbin/opensips[20681]: 
ERROR:dialplan:dp_load_db: failed to fetch
May 31 19:09:29 opensips-main 
/usr/local/opensips2.1/sbin/opensips[20681]: 
ERROR:dialplan:dp_load_all_db: unable to load ast_dialplan table
May 31 19:09:29 opensips-main 
/usr/local/opensips2.1/sbin/opensips[20681]: 
ERROR:dialplan:mi_reload_rules: failed to reload database
May 31 19:09:29 opensips-main 
/usr/local/opensips2.1/sbin/opensips[20681]: 
ERROR:mi_fifo:mi_fifo_server: command (dp_reload) processing failed


Haw else can i make memory debug without Opensips stopped?

Thank you.

mailto:denis7...@mail.ru


	No, more like the 2.2+ LTS, due to be released towards the end of 
March, a fork of the current "master" branch on git.

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com
On 29.02.2016 12:58, Денис Путято wrote:
Re: [OpenSIPS-Users] Out of memory problem Newer version = 2.1?

mailto:denis7...@mail.ru


	This is PKG memory (i.e. packaged / private / per-process), so you 
should actually increase "-M" CLI switch!


Note: Newer versions of OpenSIPS will have improved error reporting 
for easier troubleshooting of oom (out-of-memory) errors.

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com
On 29.02.2016 10:20, Денис Путято wrote:
Re: [OpenSIPS-Users] Out of memory problem 
ERROR:core:db_allocate_rows: no memory left

ERROR:db_mysql:db_mysql_fetch_result: no memory left
ERROR:dialplan:dp_load_db: failed to fetch
ERROR:dialplan:dp_load_all_db: unable to load ast_dialplan table
ERROR:dialplan:mi_reload_rules: failed to reload database
ERROR:mi_fifo:mi_fifo_server: command () processing failed


mailto:denis7...@mail.ru

/> What is the exact text of the error?
> ‎
> --
> Alex Balashov | Principal | Evariste Systems LLC
> 303 Perimeter Center North, Suite 300
> Atlanta, GA 30346
> United States

> Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct)
> Web: /http://www.evaristesys.com//, /http://www.csrpswitch.com/

/> Sent from my BlackBerry.
>   Original Message
> From: Денис Путято
> Sent: Monday, February 29, 2016 00:58
> To: Alex Balashov; OpenSIPS users mailling list
> Subject: Re: [OpenSIPS-Users] Out of memory problem


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