Re: [OpenSIPS-Users] opensips.org

2016-06-03 Thread Rodrigo Pimenta Carvalho
Hi. It is ok for me in Brazil too.

Regards.


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



De: users-boun...@lists.opensips.org  em nome 
de Richard Robson 
Enviado: sexta-feira, 3 de junho de 2016 07:28
Para: users@lists.opensips.org
Assunto: Re: [OpenSIPS-Users] opensips.org

Site is working for me in the UK

Regards,

Richard


On 03/06/2016 11:25, johan de clercq wrote:
Hi everybody,

Can it be that opensips.org is down ?

BR,



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




--
Richard Robson
Greenlight Support
01382 843843
supp...@greenlightcrm.com
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Too many Hops error

2016-06-03 Thread johan de clercq
You need to configure the number of sessions per server. 

-Original Message-
From: users-boun...@lists.opensips.org
[mailto:users-boun...@lists.opensips.org] On Behalf Of Francjos
Sent: Friday, June 3, 2016 1:51 PM
To: users@lists.opensips.org
Subject: Re: [OpenSIPS-Users] Too many Hops error

Hello, 

I really failed to use lb_is_destination (.) function.
In fact, when i do this:

if(!load_balance("1", "calls", "1")){
sl_send_reply("500", "Service full");
exit;
}
without any other condiiton before load balancing, it success on the first
server, but it failed on the second server saying "Service Full". I think
this error is caused by the sipsak i'm using to send OPTIONS.

I dont understand why it is ok on one server and fails on the other?




--
View this message in context:
http://opensips-open-sip-server.1449251.n2.nabble.com/Too-many-Hops-error-tp
7603151p7603300.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


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


Re: [OpenSIPS-Users] Too many Hops error

2016-06-03 Thread Francjos
Hello, 

I really failed to use lb_is_destination (.) function.
In fact, when i do this:

if(!load_balance("1", "calls", "1")){
sl_send_reply("500", "Service full");
exit;
}
without any other condiiton before load balancing, it success on the first
server, but it failed on the second server saying "Service Full". I think
this error is caused by the sipsak i'm using to send OPTIONS.

I dont understand why it is ok on one server and fails on the other?




--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/Too-many-Hops-error-tp7603151p7603300.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


Re: [OpenSIPS-Users] mongodb replica set connection .

2016-06-03 Thread Sasmita Panda
Hi ,

   whether its not getting store in right database but its working somehow
. But when I am doing authentication in my mongodb , Opensips is not able
to connect to mongodb .

In mongodb I am getting bellow error .

assertion 13 not authorized for query on db.my_version_table
ns:db.my_version_table query:{ $query: { table_name: "acc" } }

I am trying to login through user having Role : root , still I am facing
this issue . Can you tell me what is the right way to connect with
authentication . In single standalone mongodb instance I am able to do
authentication . Facing problem in replica set .

 Please help me in this .

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

On Fri, Jun 3, 2016 at 5:07 PM, Sasmita Panda  wrote:

> bellow is the like for pastebin to see the logs . This is the log in
> loglevel=6 .
>
> http://pastebin.com/jCnRBMcG
>
> *Thanks & Regards*
> *Sasmita Panda*
> *Network Testing and Software Engineer*
> *3CLogic , ph:07827611765*
>
> On Fri, Jun 3, 2016 at 4:44 PM, Răzvan Crainea 
> wrote:
>
>> When starting OpenSIPS, are you seeing any INFO logs that contain
>> "Connecting to"? Can you turn on the logging and put it on pastebin or
>> something?
>> Regards,
>>
>> Răzvan Crainea
>> OpenSIPS Solutionswww.opensips-solutions.com
>>
>> On 06/03/2016 01:26 PM, Sasmita Panda wrote:
>>
>> modparam("cachedb_mongodb", "cachedb_url","mongodb:replicaset1://
>> 1.2.3.4:27017 ,
>> 2.3.4.5:27017/jack.db.CallCenter_Info")
>>
>> This says , I am using two IPs for the replica set . If its like jack is
>> the data base . In this case If I am setting  " jack.callCenter_Info " ,
>> Its  not working , and if I am setting "db.CallCenter_Info" its also not
>> working . Opensips is not even get started in these two cases .
>>
>>   This is the only case what I have written is working .
>>
>> *Thanks & Regards*
>> *Sasmita Panda*
>> *Network Testing and Software Engineer*
>> *3CLogic , ph:07827611765*
>>
>> On Fri, Jun 3, 2016 at 3:50 PM, Răzvan Crainea 
>> wrote:
>>
>>> Hi, Sasmita!
>>>
>>> Are you using multiple IPs in the replica set, or only one? Because if
>>> you are using only one, the replica set feature is not enabled, and the
>>> "jack.db.CallCenter_Info" is treated as database "jack" and collection
>>> "db.CallCenter_Info", as in your case. Is this your problem? Are you
>>> setting multiple IPs in the cachedb_url?
>>>
>>> Best regards,
>>>
>>> Răzvan Crainea
>>> OpenSIPS Solutionswww.opensips-solutions.com
>>>
>>> On 06/03/2016 12:01 PM, Sasmita Panda wrote:
>>>
>>> I have tried this . But its not working .
>>>
>>> Now I got something interesting . I changed the cache_store command and
>>> now its working .
>>> This is " replicasetname.db.collection " this is the format what I get
>>> from opensips documentation .
>>>
>>> modparam("cachedb_mongodb", "cachedb_url","mongodb:replicaset1://
>>> 1.2.3.4:27017 ,
>>> 2.3.4.5:27017/jack.db.CallCenter_Info")
>>> cache_store("mongodb:replicaset1","$ci","$ci,$var(c)");
>>>
>>>  What opensips is doing is . Its creating a database jack and inside
>>> that a collection db.CallCenter_Info and storing data on that collections .
>>>
>>>  But I have created a database db and i have also created a
>>> collection in that CallCenter_Info  and I was expecting the data will goes
>>> to this collection .
>>>
>>>  I am doing anything wrong ? I am getting the data so I think my
>>> problem is almost solved . But my acc and sip_trace collection and
>>> CallCenter_Info collection are in different data base  . I wanted them to
>>> present inside a single data base so that it will be easier for me which
>>> searching something  .
>>>
>>>   Let me know if I am doing anything wrong .
>>>
>>>   One problem i am facing is , I am not able to connect to the
>>> replica set with authentication . Without authentication its working like
>>> above .
>>>
>>>
>>>
>>>
>>> *Thanks & Regards*
>>> *Sasmita Panda*
>>> *Network Testing and Software Engineer*
>>> *3CLogic , ph:07827611765*
>>>
>>> On Fri, Jun 3, 2016 at 12:56 PM, Răzvan Crainea < 
>>> raz...@opensips.org> wrote:
>>>
 Hi, Sasmita!

 Are these two the only errors you see in the logs?

 Can you confirm that replicaset "jack" exists and that the
 "CallCenter_Info" table exists? What about the "db" collection? Have you
 tried to set the cachedb_url like this:
 modparam("db_cachedb","cachedb_url","mongodb:replicaset1://
 1.2.3.4:27017 /jack.db
 ")

 Best regards,

 Răzvan Crainea
 OpenSIPS Solutionswww.opensips-solutions.com

 On 06/02/2016 03:23 PM, Sasmita Panda wrote:

 Hi All ,

I am using opensips-1.11 and I am using 

Re: [OpenSIPS-Users] mongodb replica set connection .

2016-06-03 Thread Sasmita Panda
bellow is the like for pastebin to see the logs . This is the log in
loglevel=6 .

http://pastebin.com/jCnRBMcG

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

On Fri, Jun 3, 2016 at 4:44 PM, Răzvan Crainea  wrote:

> When starting OpenSIPS, are you seeing any INFO logs that contain
> "Connecting to"? Can you turn on the logging and put it on pastebin or
> something?
> Regards,
>
> Răzvan Crainea
> OpenSIPS Solutionswww.opensips-solutions.com
>
> On 06/03/2016 01:26 PM, Sasmita Panda wrote:
>
> modparam("cachedb_mongodb", "cachedb_url","mongodb:replicaset1://
> 1.2.3.4:27017 ,
> 2.3.4.5:27017/jack.db.CallCenter_Info")
>
> This says , I am using two IPs for the replica set . If its like jack is
> the data base . In this case If I am setting  " jack.callCenter_Info " ,
> Its  not working , and if I am setting "db.CallCenter_Info" its also not
> working . Opensips is not even get started in these two cases .
>
>   This is the only case what I have written is working .
>
> *Thanks & Regards*
> *Sasmita Panda*
> *Network Testing and Software Engineer*
> *3CLogic , ph:07827611765*
>
> On Fri, Jun 3, 2016 at 3:50 PM, Răzvan Crainea 
> wrote:
>
>> Hi, Sasmita!
>>
>> Are you using multiple IPs in the replica set, or only one? Because if
>> you are using only one, the replica set feature is not enabled, and the
>> "jack.db.CallCenter_Info" is treated as database "jack" and collection
>> "db.CallCenter_Info", as in your case. Is this your problem? Are you
>> setting multiple IPs in the cachedb_url?
>>
>> Best regards,
>>
>> Răzvan Crainea
>> OpenSIPS Solutionswww.opensips-solutions.com
>>
>> On 06/03/2016 12:01 PM, Sasmita Panda wrote:
>>
>> I have tried this . But its not working .
>>
>> Now I got something interesting . I changed the cache_store command and
>> now its working .
>> This is " replicasetname.db.collection " this is the format what I get
>> from opensips documentation .
>>
>> modparam("cachedb_mongodb", "cachedb_url","mongodb:replicaset1://
>> 1.2.3.4:27017 ,
>> 2.3.4.5:27017/jack.db.CallCenter_Info")
>> cache_store("mongodb:replicaset1","$ci","$ci,$var(c)");
>>
>>  What opensips is doing is . Its creating a database jack and inside
>> that a collection db.CallCenter_Info and storing data on that collections .
>>
>>  But I have created a database db and i have also created a
>> collection in that CallCenter_Info  and I was expecting the data will goes
>> to this collection .
>>
>>  I am doing anything wrong ? I am getting the data so I think my
>> problem is almost solved . But my acc and sip_trace collection and
>> CallCenter_Info collection are in different data base  . I wanted them to
>> present inside a single data base so that it will be easier for me which
>> searching something  .
>>
>>   Let me know if I am doing anything wrong .
>>
>>   One problem i am facing is , I am not able to connect to the
>> replica set with authentication . Without authentication its working like
>> above .
>>
>>
>>
>>
>> *Thanks & Regards*
>> *Sasmita Panda*
>> *Network Testing and Software Engineer*
>> *3CLogic , ph:07827611765*
>>
>> On Fri, Jun 3, 2016 at 12:56 PM, Răzvan Crainea < 
>> raz...@opensips.org> wrote:
>>
>>> Hi, Sasmita!
>>>
>>> Are these two the only errors you see in the logs?
>>>
>>> Can you confirm that replicaset "jack" exists and that the
>>> "CallCenter_Info" table exists? What about the "db" collection? Have you
>>> tried to set the cachedb_url like this:
>>> modparam("db_cachedb","cachedb_url","mongodb:replicaset1://1.2.3.4:27017
>>> /jack.db
>>> ")
>>>
>>> Best regards,
>>>
>>> Răzvan Crainea
>>> OpenSIPS Solutionswww.opensips-solutions.com
>>>
>>> On 06/02/2016 03:23 PM, Sasmita Panda wrote:
>>>
>>> Hi All ,
>>>
>>>I am using opensips-1.11 and I am using cachedb_mongodb module .
>>> I am able to connect to mongodb replica set without authentication .
>>>
>>> modparam("cachedb_mongodb", "cachedb_url","mongodb:replicaset1://
>>> 1.2.3.4:27017 ,
>>> 2.3.4.5:27017/jack.db.CallCenter_Info")
>>>
>>> modparam("db_cachedb","cachedb_url","mongodb:replicaset1://1.2.3.4:27017
>>> ,2.3.4.5:27017/jack.db.
>>> db")
>>>
>>> modparam("acc", "db_url", "cachedb://mongodb:replicaset1")
>>>   I am able to connect to mongodb for account module . By this line .
>>>
>>>   But I am not able to store any data through raw query like bellow .
>>> cache_store("mongodb:group1","$ci","$ci,$var(c)");
>>>
>>> Its giving bellow error .
>>>
>>>DBG:core:cachedb_store: from script [mongodb] - with grp [group1]
>>>   ERROR:core:cachedb_store: failed to get connection for grp name
>>> [group1]
>>>
>>>
>>> What does it mean ? 

Re: [OpenSIPS-Users] opensips 1.11.7 tcp_send failed

2016-06-03 Thread Igor Pavlov

Yes, it's setbflag(6) used.

if ($si == "192.168.101.5") {
  setbflag(6);
  ...
}
if (isbflagset(6))
xlog("L_INFO","BFLAG SET");


Jun  3 14:11:52 vs01 /usr/sbin/opensips[27233]: BFLAG SET



03.06.2016 14:03, Liviu Chircu пишет:

Hi Igor,

Are you sure you are using "setbflag(6)" and not "setflag(6)"? It's a 
very important detail, since doing a "setflag(6)" would be completely 
irrelevant, and useless.


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

On 03.06.2016 12:02, Igor Pavlov wrote:
Hi, all. I have a problem with TCP in opensips 1.11.7. All users are 
registered with tcp proto. Call flow: userA -> (tcp) opensips -> 
(udp) freeswitch -> (udp) opensips -> (tcp) userB.


When call is coming from FS I get error:


Jun  3 11:53:57  ERROR:tm:msg_send: tcp_send failed
Jun  3 11:53:57  ERROR:tm:t_forward_nonack: sending request failed
opensips.cfg contain tcp_no_new_conn_bflag = 6 and I'm setting this 
flag when INVITE is coming from FS.




Best regards,
Igor Pavlov


___
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


--

Best regards,
Igor Pavlov


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


Re: [OpenSIPS-Users] mongodb replica set connection .

2016-06-03 Thread Răzvan Crainea
When starting OpenSIPS, are you seeing any INFO logs that contain 
"Connecting to"? Can you turn on the logging and put it on pastebin or 
something?

Regards,

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

On 06/03/2016 01:26 PM, Sasmita Panda wrote:
modparam("cachedb_mongodb", 
"cachedb_url","mongodb:replicaset1://1.2.3.4:27017 
,2.3.4.5:27017/jack.db.CallCenter_Info 
")


This says , I am using two IPs for the replica set . If its like jack 
is the data base . In this case If I am setting  " 
jack.callCenter_Info " , Its  not working , and if I am setting 
"db.CallCenter_Info" its also not working . Opensips is not even get 
started in these two cases .


This is the only case what I have written is working .

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

On Fri, Jun 3, 2016 at 3:50 PM, Răzvan Crainea > wrote:


Hi, Sasmita!

Are you using multiple IPs in the replica set, or only one?
Because if you are using only one, the replica set feature is not
enabled, and the "jack.db.CallCenter_Info" is treated as database
"jack" and collection "db.CallCenter_Info", as in your case. Is
this your problem? Are you setting multiple IPs in the cachedb_url?

Best regards,

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

On 06/03/2016 12:01 PM, Sasmita Panda wrote:

I have tried this . But its not working .

Now I got something interesting . I changed the cache_store
command and now its working .
This is " replicasetname.db.collection " this is the format what
I get from opensips documentation .

modparam("cachedb_mongodb",
"cachedb_url","mongodb:replicaset1://1.2.3.4:27017
,2.3.4.5:27017/jack.db.CallCenter_Info
")
cache_store("mongodb:replicaset1","$ci","$ci,$var(c)");
 What opensips is doing is . Its creating a database jack and
inside that a collection db.CallCenter_Info and storing data on
that collections .

 But I have created a database db and i have also created a
collection in that CallCenter_Info  and I was expecting the data
will goes to this collection .

 I am doing anything wrong ? I am getting the data so I think
my problem is almost solved . But my acc and sip_trace collection
and CallCenter_Info collection are in different data base  . I
wanted them to present inside a single data base so that it will
be easier for me which searching something  .

  Let me know if I am doing anything wrong .

  One problem i am facing is , I am not able to connect to
the replica set with authentication . Without authentication its
working like above .


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

On Fri, Jun 3, 2016 at 12:56 PM, Răzvan Crainea
> wrote:

Hi, Sasmita!

Are these two the only errors you see in the logs?

Can you confirm that replicaset "jack" exists and that the
"CallCenter_Info" table exists? What about the "db"
collection? Have you tried to set the cachedb_url like this:

modparam("db_cachedb","cachedb_url","mongodb:replicaset1://1.2.3.4:27017
/jack.db
")

Best regards,

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

On 06/02/2016 03:23 PM, Sasmita Panda wrote:

Hi All ,

   I am using opensips-1.11 and I am using
cachedb_mongodb module . I am able to connect to mongodb
replica set without authentication .

modparam("cachedb_mongodb",
"cachedb_url","mongodb:replicaset1://1.2.3.4:27017

,2.3.4.5:27017/jack.db.CallCenter_Info
")

modparam("db_cachedb","cachedb_url","mongodb:replicaset1://1.2.3.4:27017
,2.3.4.5:27017/jack.db.
db")

modparam("acc", "db_url", "cachedb://mongodb:replicaset1")
I am able to connect to mongodb for account module . By this
line .

But I am not able to store any data through raw query like
bellow .
cache_store("mongodb:group1","$ci","$ci,$var(c)");

Its giving bellow error .

 DBG:core:cachedb_store: from script [mongodb] - with grp
[group1]
ERROR:core:cachedb_store: failed to get connection for grp

Re: [OpenSIPS-Users] opensips.org

2016-06-03 Thread Richard Robson

  
  
Site is working for me in the UK
  
  Regards,
  
  Richard
  
  
  On 03/06/2016 11:25, johan de clercq wrote:


  
  
  
  
Hi
everybody, 
 
Can
it be that opensips.org is down ?
 
BR,

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





-- 
Richard Robson
Greenlight Support
01382 843843
supp...@greenlightcrm.com
  


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


Re: [OpenSIPS-Users] opensips.org

2016-06-03 Thread Sasmita Panda
Its working for me ..

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

On Fri, Jun 3, 2016 at 3:55 PM, johan de clercq  wrote:

> Hi everybody,
>
>
>
> Can it be that opensips.org is down ?
>
>
>
> BR,
>
> ___
> 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] mongodb replica set connection .

2016-06-03 Thread Sasmita Panda
modparam("cachedb_mongodb", "cachedb_url","mongodb:replicaset1://
1.2.3.4:27017 ,
2.3.4.5:27017/jack.db.CallCenter_Info")

This says , I am using two IPs for the replica set . If its like jack is
the data base . In this case If I am setting  " jack.callCenter_Info " ,
Its  not working , and if I am setting "db.CallCenter_Info" its also not
working . Opensips is not even get started in these two cases .

  This is the only case what I have written is working .

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

On Fri, Jun 3, 2016 at 3:50 PM, Răzvan Crainea  wrote:

> Hi, Sasmita!
>
> Are you using multiple IPs in the replica set, or only one? Because if you
> are using only one, the replica set feature is not enabled, and the
> "jack.db.CallCenter_Info" is treated as database "jack" and collection
> "db.CallCenter_Info", as in your case. Is this your problem? Are you
> setting multiple IPs in the cachedb_url?
>
> Best regards,
>
> Răzvan Crainea
> OpenSIPS Solutionswww.opensips-solutions.com
>
> On 06/03/2016 12:01 PM, Sasmita Panda wrote:
>
> I have tried this . But its not working .
>
> Now I got something interesting . I changed the cache_store command and
> now its working .
> This is " replicasetname.db.collection " this is the format what I get
> from opensips documentation .
>
> modparam("cachedb_mongodb", "cachedb_url","mongodb:replicaset1://
> 1.2.3.4:27017 ,
> 2.3.4.5:27017/jack.db.CallCenter_Info")
> cache_store("mongodb:replicaset1","$ci","$ci,$var(c)");
>
>  What opensips is doing is . Its creating a database jack and inside
> that a collection db.CallCenter_Info and storing data on that collections .
>
>  But I have created a database db and i have also created a collection
> in that CallCenter_Info  and I was expecting the data will goes to this
> collection .
>
>  I am doing anything wrong ? I am getting the data so I think my
> problem is almost solved . But my acc and sip_trace collection and
> CallCenter_Info collection are in different data base  . I wanted them to
> present inside a single data base so that it will be easier for me which
> searching something  .
>
>   Let me know if I am doing anything wrong .
>
>   One problem i am facing is , I am not able to connect to the replica
> set with authentication . Without authentication its working like above .
>
>
>
>
> *Thanks & Regards*
> *Sasmita Panda*
> *Network Testing and Software Engineer*
> *3CLogic , ph:07827611765*
>
> On Fri, Jun 3, 2016 at 12:56 PM, Răzvan Crainea 
> wrote:
>
>> Hi, Sasmita!
>>
>> Are these two the only errors you see in the logs?
>>
>> Can you confirm that replicaset "jack" exists and that the
>> "CallCenter_Info" table exists? What about the "db" collection? Have you
>> tried to set the cachedb_url like this:
>> modparam("db_cachedb","cachedb_url","mongodb:replicaset1://1.2.3.4:27017
>> /jack.db
>> ")
>>
>> Best regards,
>>
>> Răzvan Crainea
>> OpenSIPS Solutionswww.opensips-solutions.com
>>
>> On 06/02/2016 03:23 PM, Sasmita Panda wrote:
>>
>> Hi All ,
>>
>>I am using opensips-1.11 and I am using cachedb_mongodb module . I
>> am able to connect to mongodb replica set without authentication .
>>
>> modparam("cachedb_mongodb", "cachedb_url","mongodb:replicaset1://
>> 1.2.3.4:27017 ,
>> 2.3.4.5:27017/jack.db.CallCenter_Info")
>>
>> modparam("db_cachedb","cachedb_url","mongodb:replicaset1://1.2.3.4:27017
>> ,2.3.4.5:27017/jack.db.
>> db")
>>
>> modparam("acc", "db_url", "cachedb://mongodb:replicaset1")
>>   I am able to connect to mongodb for account module . By this line .
>>
>>   But I am not able to store any data through raw query like bellow .
>> cache_store("mongodb:group1","$ci","$ci,$var(c)");
>>
>> Its giving bellow error .
>>
>>DBG:core:cachedb_store: from script [mongodb] - with grp [group1]
>>   ERROR:core:cachedb_store: failed to get connection for grp name [group1]
>>
>>
>> What does it mean ?  If I am changing the group1 to replicaset1 then also
>> its giving error . What should I do ? Please help me . Am I doing something
>> wrong in the opensips config file or I need to do something in the mongodb
>> replica set ?
>>
>> Thanks in advance . any kind of suggestion is welcome .
>>
>> *Thanks & Regards*
>> *Sasmita Panda*
>> *Network Testing and Software Engineer*
>> *3CLogic , ph:07827611765*
>>
>>
>> ___
>> Users mailing 
>> listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>>
>> ___
>> Users mailing list
>> Users@lists.opensips.org
>> 

[OpenSIPS-Users] opensips.org

2016-06-03 Thread johan de clercq
Hi everybody, 

 

Can it be that opensips.org is down ?

 

BR, 

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


Re: [OpenSIPS-Users] mongodb replica set connection .

2016-06-03 Thread Răzvan Crainea

Hi, Sasmita!

Are you using multiple IPs in the replica set, or only one? Because if 
you are using only one, the replica set feature is not enabled, and the 
"jack.db.CallCenter_Info" is treated as database "jack" and collection 
"db.CallCenter_Info", as in your case. Is this your problem? Are you 
setting multiple IPs in the cachedb_url?


Best regards,

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

On 06/03/2016 12:01 PM, Sasmita Panda wrote:

I have tried this . But its not working .

Now I got something interesting . I changed the cache_store command 
and now its working .
This is " replicasetname.db.collection " this is the format what I get 
from opensips documentation .


modparam("cachedb_mongodb", 
"cachedb_url","mongodb:replicaset1://1.2.3.4:27017 
,2.3.4.5:27017/jack.db.CallCenter_Info 
")

cache_store("mongodb:replicaset1","$ci","$ci,$var(c)");
 What opensips is doing is . Its creating a database jack and 
inside that a collection db.CallCenter_Info and storing data on that 
collections .


 But I have created a database db and i have also created a 
collection in that CallCenter_Info  and I was expecting the data will 
goes to this collection .


 I am doing anything wrong ? I am getting the data so I think my 
problem is almost solved . But my acc and sip_trace collection and 
CallCenter_Info collection are in different data base  . I wanted them 
to present inside a single data base so that it will be easier for me 
which searching something  .


  Let me know if I am doing anything wrong .

  One problem i am facing is , I am not able to connect to the 
replica set with authentication . Without authentication its working 
like above .



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

On Fri, Jun 3, 2016 at 12:56 PM, Răzvan Crainea > wrote:


Hi, Sasmita!

Are these two the only errors you see in the logs?

Can you confirm that replicaset "jack" exists and that the
"CallCenter_Info" table exists? What about the "db" collection?
Have you tried to set the cachedb_url like this:

modparam("db_cachedb","cachedb_url","mongodb:replicaset1://1.2.3.4:27017
/jack.db
")

Best regards,

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

On 06/02/2016 03:23 PM, Sasmita Panda wrote:

Hi All ,

   I am using opensips-1.11 and I am using cachedb_mongodb
module . I am able to connect to mongodb replica set without
authentication .

modparam("cachedb_mongodb",
"cachedb_url","mongodb:replicaset1://1.2.3.4:27017
,2.3.4.5:27017/jack.db.CallCenter_Info
")

modparam("db_cachedb","cachedb_url","mongodb:replicaset1://1.2.3.4:27017
,2.3.4.5:27017/jack.db.
db")

modparam("acc", "db_url", "cachedb://mongodb:replicaset1")
  I am able to connect to mongodb for account module . By this line .

  But I am not able to store any data through raw query like bellow .
cache_store("mongodb:group1","$ci","$ci,$var(c)");

Its giving bellow error .

 DBG:core:cachedb_store: from script [mongodb] - with grp [group1]
ERROR:core:cachedb_store: failed to get connection for grp name
[group1]


What does it mean ?  If I am changing the group1 to replicaset1
then also its giving error . What should I do ? Please help me .
Am I doing something wrong in the opensips config file or I need
to do something in the mongodb replica set ?

Thanks in advance . any kind of suggestion is welcome .

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




___
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 1.11.7 tcp_send failed

2016-06-03 Thread Liviu Chircu

Hi Igor,

Are you sure you are using "setbflag(6)" and not "setflag(6)"? It's a 
very important detail, since doing a "setflag(6)" would be completely 
irrelevant, and useless.


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

On 03.06.2016 12:02, Igor Pavlov wrote:
Hi, all. I have a problem with TCP in opensips 1.11.7. All users are 
registered with tcp proto. Call flow: userA -> (tcp) opensips -> (udp) 
freeswitch -> (udp) opensips -> (tcp) userB.


When call is coming from FS I get error:


Jun  3 11:53:57  ERROR:tm:msg_send: tcp_send failed
Jun  3 11:53:57  ERROR:tm:t_forward_nonack: sending request failed
opensips.cfg contain tcp_no_new_conn_bflag = 6 and I'm setting this 
flag when INVITE is coming from FS.




Best regards,
Igor Pavlov


___
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 in opensips 2.2

2016-06-03 Thread Bogdan-Andrei Iancu

Hi Qasim,

Yes, you came across an unforeseen case, where you enable pinging via 
nathelper, but you do not use any usrloc domains. This is not specific 
to 2.2, it is in all versions.


I pushed a fix (trunk, 2.2, 2.1, 1.11) on GIT - please update and try again.

Regards,

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

On 02.06.2016 19:23, qasimak...@gmail.com wrote:

Hi,

No we are not using any save() or lookup() in our code.

Regards,
Qasim

On Thu, Jun 2, 2016 at 12:25 PM, Bogdan-Andrei Iancu 
> wrote:


Hi Qasim,

Thank you for your report.

In your opensips cfg, do you have any save() or lookup() ?

Regards,

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

On 01.06.2016 22:21, qasimak...@gmail.com
 wrote:

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





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


Re: [OpenSIPS-Users] Rate limit question

2016-06-03 Thread Răzvan Crainea

Yes, RED seems to be what you need.

Best regards,

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

On 06/03/2016 12:15 PM, John Nash wrote:
Thank you for detailed reply. I will choose to implement on Opensips. 
I would also prefer performance over accuracy as my objective is to 
stop customers from flooding with too many calls so I can select RED?






On Fri, Jun 3, 2016 at 12:47 PM, Răzvan Crainea > wrote:


Hi, John!

It depends on the logic of your platform. If you have multiple
FreeSWITCH servers behind OpenSIPS, and you want to have a
"global" limit, then you must do it on OpenSIPS side. It is also
recommended to do it there because for example if the threashold
is reached, you don't have to load FreeSWITCH with traffic that's
about to be denied. However, if you have local (per FreeSWITCH)
limits, then you can do it on the FreeSWITCH side (with the
earlier observations).

Regarding the algorithm, it depends on what you want to limit. If
you want to do CPS, then TAILDROP or RED is more suitable. If you
want to do a limitation based on the network load, then use NETWORK.

Also take into account that the way RED and TAILDROP algorithm
work, they are not so accurate. That's why in OpenSIPS 2.2 we
added a new algorithm, SBT[1], which is very accurate and
custamizable.

[1]
http://www.opensips.org/html/docs/modules/2.2.x/ratelimit.html#id293435

Best regards,

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

On 06/02/2016 08:49 AM, John Nash wrote:

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



___
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] Rate limit question

2016-06-03 Thread John Nash
Thank you for detailed reply. I will choose to implement on Opensips. I
would also prefer performance over accuracy as my objective is to stop
customers from flooding with too many calls so I can select RED?





On Fri, Jun 3, 2016 at 12:47 PM, Răzvan Crainea  wrote:

> Hi, John!
>
> It depends on the logic of your platform. If you have multiple FreeSWITCH
> servers behind OpenSIPS, and you want to have a "global" limit, then you
> must do it on OpenSIPS side. It is also recommended to do it there because
> for example if the threashold is reached, you don't have to load FreeSWITCH
> with traffic that's about to be denied. However, if you have local (per
> FreeSWITCH) limits, then you can do it on the FreeSWITCH side (with the
> earlier observations).
>
> Regarding the algorithm, it depends on what you want to limit. If you want
> to do CPS, then TAILDROP or RED is more suitable. If you want to do a
> limitation based on the network load, then use NETWORK.
>
> Also take into account that the way RED and TAILDROP algorithm work, they
> are not so accurate. That's why in OpenSIPS 2.2 we added a new algorithm,
> SBT[1], which is very accurate and custamizable.
>
> [1]
> http://www.opensips.org/html/docs/modules/2.2.x/ratelimit.html#id293435
>
> Best regards,
>
> Răzvan Crainea
> OpenSIPS Solutionswww.opensips-solutions.com
>
> On 06/02/2016 08:49 AM, John Nash wrote:
>
> 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 
> 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] mongodb replica set connection .

2016-06-03 Thread Sasmita Panda
I have tried this . But its not working .

Now I got something interesting . I changed the cache_store command and now
its working .
This is " replicasetname.db.collection " this is the format what I get from
opensips documentation .

modparam("cachedb_mongodb", "cachedb_url","mongodb:replicaset1://
1.2.3.4:27017 ,
2.3.4.5:27017/jack.db.CallCenter_Info")
cache_store("mongodb:replicaset1","$ci","$ci,$var(c)");

 What opensips is doing is . Its creating a database jack and inside
that a collection db.CallCenter_Info and storing data on that collections .

 But I have created a database db and i have also created a collection
in that CallCenter_Info  and I was expecting the data will goes to this
collection .

 I am doing anything wrong ? I am getting the data so I think my
problem is almost solved . But my acc and sip_trace collection and
CallCenter_Info collection are in different data base  . I wanted them to
present inside a single data base so that it will be easier for me which
searching something  .

  Let me know if I am doing anything wrong .

  One problem i am facing is , I am not able to connect to the replica
set with authentication . Without authentication its working like above .




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

On Fri, Jun 3, 2016 at 12:56 PM, Răzvan Crainea  wrote:

> Hi, Sasmita!
>
> Are these two the only errors you see in the logs?
>
> Can you confirm that replicaset "jack" exists and that the
> "CallCenter_Info" table exists? What about the "db" collection? Have you
> tried to set the cachedb_url like this:
> modparam("db_cachedb","cachedb_url","mongodb:replicaset1://1.2.3.4:27017
> /jack.db
> ")
>
> Best regards,
>
> Răzvan Crainea
> OpenSIPS Solutionswww.opensips-solutions.com
>
> On 06/02/2016 03:23 PM, Sasmita Panda wrote:
>
> Hi All ,
>
>I am using opensips-1.11 and I am using cachedb_mongodb module . I
> am able to connect to mongodb replica set without authentication .
>
> modparam("cachedb_mongodb", "cachedb_url","mongodb:replicaset1://
> 1.2.3.4:27017 ,
> 2.3.4.5:27017/jack.db.CallCenter_Info")
>
> modparam("db_cachedb","cachedb_url","mongodb:replicaset1://1.2.3.4:27017
> ,2.3.4.5:27017/jack.db.
> db")
>
> modparam("acc", "db_url", "cachedb://mongodb:replicaset1")
>   I am able to connect to mongodb for account module . By this line .
>
>   But I am not able to store any data through raw query like bellow .
> cache_store("mongodb:group1","$ci","$ci,$var(c)");
>
> Its giving bellow error .
>
>DBG:core:cachedb_store: from script [mongodb] - with grp [group1]
>   ERROR:core:cachedb_store: failed to get connection for grp name [group1]
>
>
> What does it mean ?  If I am changing the group1 to replicaset1 then also
> its giving error . What should I do ? Please help me . Am I doing something
> wrong in the opensips config file or I need to do something in the mongodb
> replica set ?
>
> Thanks in advance . any kind of suggestion is welcome .
>
> *Thanks & Regards*
> *Sasmita Panda*
> *Network Testing and Software Engineer*
> *3CLogic , ph:07827611765*
>
>
> ___
> 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


[OpenSIPS-Users] opensips 1.11.7 tcp_send failed

2016-06-03 Thread Igor Pavlov
Hi, all. I have a problem with TCP in opensips 1.11.7. All users are 
registered with tcp proto. Call flow: userA -> (tcp) opensips -> (udp) 
freeswitch -> (udp) opensips -> (tcp) userB.


When call is coming from FS I get error:


Jun  3 11:53:57  ERROR:tm:msg_send: tcp_send failed
Jun  3 11:53:57  ERROR:tm:t_forward_nonack: sending request failed
opensips.cfg contain tcp_no_new_conn_bflag = 6 and I'm setting this flag 
when INVITE is coming from FS.




Best regards,
Igor Pavlov


___
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-03 Thread Bogdan-Andrei Iancu

Hi Ping,

b2b_bridge_request() is a script function:
http://www.opensips.org/html/docs/modules/2.1.x/b2b_logic.html#id294094

I pointed to this function as you mentioned (on my question) that you 
want to do the bridging from script level.


Indeed, the equivalent MI function is b2b_bridge:
http://www.opensips.org/html/docs/modules/2.1.x/b2b_logic.html#id294210

If you want to get that "1020.30", you can get it from Call-ID or To 
tag, where you have B2B.1020.30 (so you have to strip that B2B prefix).


Regards,

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

On 03.06.2016 06:27, Ping Han wrote:

Thanks, Bogdan,

It seems the function you mentioned is the internal function  "1.4.2 
b2b_bridge_request(b2bl_key,entity_no)".


Actually the function that I am trying to use is the "b2b_bridge" 
(Exported MI Functions). It is defined as below

--
http://www.opensips.org/html/docs/modules/2.1.x/b2b_logic.html#id294210


1.5.2.  b2b_bridge

Example: opensipsctl b2b_bridge 1020.30 sip:al...@opensips.org 


--

In the example "1020.30" is the "dialog-id". This is the parameter 
that I am not sure how to easily access in the Opensips config.


What I am trying to do is to get the value and deliver to the next hop 
via a custom SIP header. When the next hop tries to transfer the call 
to a new destination. It can run the b2b_bridge command straight away 
with the "dialog-id" without rechieving the value from the Opensips 
database (from b2b_logic or b2b_entities tables).


Any advice will be appreciated.

Thanks,
Ping


On Thu, Jun 2, 2016 at 5:35 PM, Bogdan-Andrei Iancu 
> wrote:


Hi Ping,

In script, in a b2b route, you can look at the callid or TO tag
(depending on the direction) to get the key :
http://www.opensips.org/html/docs/modules/2.2.x/b2b_logic.html#id294094

The B2B uses that key as Call-ID when acting as UAC and as To tag
when acting as UAS. You can run a SIP capture to see the traffic.

Regards,

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

On 02.06.2016 05:13, Ping Han wrote:

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

Re: [OpenSIPS-Users] mongodb replica set connection .

2016-06-03 Thread Răzvan Crainea

Hi, Sasmita!

Are these two the only errors you see in the logs?

Can you confirm that replicaset "jack" exists and that the 
"CallCenter_Info" table exists? What about the "db" collection? Have you 
tried to set the cachedb_url like this:


modparam("db_cachedb","cachedb_url","mongodb:replicaset1://1.2.3.4:27017 
/jack.db 
")


Best regards,

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

On 06/02/2016 03:23 PM, Sasmita Panda wrote:

Hi All ,

   I am using opensips-1.11 and I am using cachedb_mongodb module 
. I am able to connect to mongodb replica set without authentication .


modparam("cachedb_mongodb", 
"cachedb_url","mongodb:replicaset1://1.2.3.4:27017 
,2.3.4.5:27017/jack.db.CallCenter_Info 
")


modparam("db_cachedb","cachedb_url","mongodb:replicaset1://1.2.3.4:27017 
,2.3.4.5:27017/jack.db. 
db")


modparam("acc", "db_url", "cachedb://mongodb:replicaset1")
  I am able to connect to mongodb for account module . By this line .

  But I am not able to store any data through raw query like bellow .
cache_store("mongodb:group1","$ci","$ci,$var(c)");

Its giving bellow error .

   DBG:core:cachedb_store: from script [mongodb] - with grp [group1]
ERROR:core:cachedb_store: failed to get connection for grp name [group1]


What does it mean ?  If I am changing the group1 to replicaset1 then 
also its giving error . What should I do ? Please help me . Am I doing 
something wrong in the opensips config file or I need to do something 
in the mongodb replica set ?


Thanks in advance . any kind of suggestion is welcome .

*/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] Rate limit question

2016-06-03 Thread Răzvan Crainea

Hi, John!

It depends on the logic of your platform. If you have multiple 
FreeSWITCH servers behind OpenSIPS, and you want to have a "global" 
limit, then you must do it on OpenSIPS side. It is also recommended to 
do it there because for example if the threashold is reached, you don't 
have to load FreeSWITCH with traffic that's about to be denied. However, 
if you have local (per FreeSWITCH) limits, then you can do it on the 
FreeSWITCH side (with the earlier observations).


Regarding the algorithm, it depends on what you want to limit. If you 
want to do CPS, then TAILDROP or RED is more suitable. If you want to do 
a limitation based on the network load, then use NETWORK.


Also take into account that the way RED and TAILDROP algorithm work, 
they are not so accurate. That's why in OpenSIPS 2.2 we added a new 
algorithm, SBT[1], which is very accurate and custamizable.


[1] http://www.opensips.org/html/docs/modules/2.2.x/ratelimit.html#id293435

Best regards,

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

On 06/02/2016 08:49 AM, John Nash wrote:
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


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