Re: [OpenSIPS-Users] Fraud_detection module

2016-03-04 Thread Liviu Chircu

Hi Denis!

The fraud_detection statistics are only held in memory. The following 
applies:


* They are not persistent upon an OpenSIPS restart
* They are persistent upon an MI reload command of the fraud_detection rules

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

On 02.03.2016 06:51, Denis wrote:

Re: [OpenSIPS-Users] Fraud_detection module Hello!

Is there any information about question?

Thank you

mailto:denis7...@mail.ru


Hello!

I am interesting with fraud_detection module.
I read some docs about it and could not find answer about how and 
where does fraud_detection module store statistic information about 
client's calls and what happen with the statistic if, for example, 
Opensips reloads?


Thank you.


Yours respectfully,  Denis
//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] Bflag problem!

2016-03-04 Thread Ionut Ionita

Hi Dragomir, sevpal,

Are you using any async functions in your scripts?

Regards,

Ionut Ionita
OpenSIPS Developer

On 03/03/2016 08:09 PM, sevpal wrote:
I noticed that too with 2.1 latest git version, branch flags are not 
being saved in the location table. I reverted as a result. This is 
just to confirm.

*From:* Dragomir Haralambiev 
*Sent:* Thursday, March 03, 2016 9:41 AM
*To:* OpenSIPS users mailling list 
*Subject:* [OpenSIPS-Users] Bflag problem!
Hello,
After latest update of Opensips 2.2 I have problem with "setbflag".
I can not set bflag.
Here is example:

modparam("nathelper", "remove_on_timeout_bflag", "RM_ONTO_FLAG")
.
setbflag(RM_ONTO_FLAG);
if (isbflagset(RM_ONTO_FLAG)) {
xlog("L_ERR","RM_ONTO_FLAG is set");
}
Best regards,
Dragomir


___
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] Bflag problem!

2016-03-04 Thread Ionut Ionita

Hi sevpal,

It was the same problem in 2.1, the problem was that the fix wasn't 
backported. If you download

the latest git version everything should work ok.

Ionut Ionita
OpenSIPS Developer



On 03/03/2016 08:09 PM, sevpal wrote:
I noticed that too with 2.1 latest git version, branch flags are not 
being saved in the location table. I reverted as a result. This is 
just to confirm.




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


Re: [OpenSIPS-Users] Bflag problem!

2016-03-04 Thread Dragomir Haralambiev
With latest update all is OK.
On Mar 4, 2016 5:13 PM, "Ionut Ionita"  wrote:

> Hi sevpal,
>
> It was the same problem in 2.1, the problem was that the fix wasn't
> backported. If you download
> the latest git version everything should work ok.
>
> Ionut Ionita
> OpenSIPS Developer
>
>
> On 03/03/2016 08:09 PM, sevpal wrote:
>
> I noticed that too with 2.1 latest git version, branch flags are not being
> saved in the location table. I reverted as a result. This is just to
> confirm.
>
>
>
>
> ___
> 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] How to know whether callee is behind a NAT?

2016-03-04 Thread Rodrigo Pimenta Carvalho
Hi.


Nowadays I'm having problems to take right control of SIP messages, in a 
situation with user agents present in the LAN and WAN (some of them are behind 
NAT, to the point of view of OpenSIPS).

To control everything, I'm using local domain and public domain registered in 
the Domain table. In addiction I intend to implement the following algorithm:



If message == SIP INVITE

{

//Tries to guess if client's request originated behind a nat. The parameter 
determines what heuristics is used

// 2 - the "received" test is used: address in Via is compared against 
source IP address of signaling .

// 32 - address in Contact is compared against source IP address of 
signaling.

If ( ! nat_uac_test(2 + 32))

{

//caller is in local network


If callee is behind a NAT from the point of view of opensips

{

avp_db_query("select domain from domain where attrs = public", 
"$avp(DOMAIN)");

set_advertised_address ("$avp(DOMAIN));

}

else

{

avp_db_query("select domain from domain where attrs = local", 
"$avp(DOMAIN)");
set_advertised_address ("$avp(DOMAIN));

}

}

else

{

avp_db_query("select domain from domain where attrs = public", 
"$avp(DOMAIN)");
set_advertised_address ("$avp(DOMAIN));

}

}


However, how can I know whether the callee is not in the same network area as 
the caller, so the callee is behind a NAT?


Any hint will be very helpful!


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] How to know whether callee is behind a NAT?

2016-03-04 Thread Dragomir Haralambiev
Here is simple way to check NAT devices:
if ( search_body('IN IP4 10.') ) { setflag(NAT); }
if ( search_body("IN IP4 192.168.") ) { setflag(NAT); }
if ( search_body("IN IP4 172.16.") ) { setflag(NAT); }

2016-03-04 19:31 GMT+02:00 Rodrigo Pimenta Carvalho :

> Hi.
>
>
> Nowadays I'm having problems to take right control of SIP messages, in a
> situation with user agents present in the LAN and WAN (some of them are
> behind NAT, to the point of view of OpenSIPS).
>
> To control everything, I'm using local domain and public domain registered
> in the Domain table. In addiction I intend to implement the following
> algorithm:
>
>
>
> If message == SIP INVITE
>
> {
>
> //Tries to guess if client's request originated behind a nat. The
> parameter determines what heuristics is used
>
> // *2* - the "received" test is used: address in Via is compared
> against source IP address of signaling .
>
> // *32* - address in Contact is compared against source IP address of
> signaling.
>
> If ( ! nat_uac_test(2 + 32))
>
> {
>
> //caller is in local network
>
>
> If callee is behind a NAT from the point of view of opensips
>
> {
>
> avp_db_query("select domain from domain where attrs = public",
> "$avp(DOMAIN)");
>
> set_advertised_address ("$avp(DOMAIN));
>
> }
>
> else
>
> {
>
> avp_db_query("select domain from domain where attrs = local",
> "$avp(DOMAIN)");
> set_advertised_address ("$avp(DOMAIN));
>
> }
>
> }
>
> else
>
> {
>
> avp_db_query("select domain from domain where attrs = public",
> "$avp(DOMAIN)");
> set_advertised_address ("$avp(DOMAIN));
>
> }
>
> }
>
> However, how can I know whether the callee is not in the same network area
> as the caller, so the callee is behind a NAT?
>
>
> Any hint will be very helpful!
>
>
> 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
>
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] dispatcher with t_relay performance

2016-03-04 Thread Satish Patel
We have dispatcher and we are using very simple code block like following

if (method=="REGISTER" || method=="INVITE" ) {
 ds_select_dst("1", "2");
 t_relay();
   }

Does t_relay will keep all transaction in memory? and what will be the
performance issue?  we have ~200k cps calls.. what will be the impact?

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


Re: [OpenSIPS-Users] How to know whether callee is behind a NAT?

2016-03-04 Thread Rodrigo Pimenta Carvalho
Hi.


Thank you for the hint.

I think that search_body will search a string in SDP body. In this case, for 
the first INVITE, SDP doesn't have information about the callee. So, maybe I 
have to use a way of checking the register of the callee (table location) and 
see if the contact and received columns give me some information.


Any idea?


Best regards.


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



De: users-boun...@lists.opensips.org  em nome 
de Dragomir Haralambiev 
Enviado: sexta-feira, 4 de março de 2016 15:24
Para: OpenSIPS users mailling list
Assunto: Re: [OpenSIPS-Users] How to know whether callee is behind a NAT?

Here is simple way to check NAT devices:
if ( search_body('IN IP4 10.') ) { setflag(NAT); }
if ( search_body("IN IP4 192.168.") ) { setflag(NAT); }
if ( search_body("IN IP4 172.16.") ) { setflag(NAT); }

2016-03-04 19:31 GMT+02:00 Rodrigo Pimenta Carvalho 
mailto:pime...@inatel.br>>:

Hi.


Nowadays I'm having problems to take right control of SIP messages, in a 
situation with user agents present in the LAN and WAN (some of them are behind 
NAT, to the point of view of OpenSIPS).

To control everything, I'm using local domain and public domain registered in 
the Domain table. In addiction I intend to implement the following algorithm:



If message == SIP INVITE

{

//Tries to guess if client's request originated behind a nat. The parameter 
determines what heuristics is used

// 2 - the "received" test is used: address in Via is compared against 
source IP address of signaling .

// 32 - address in Contact is compared against source IP address of 
signaling.

If ( ! nat_uac_test(2 + 32))

{

//caller is in local network


If callee is behind a NAT from the point of view of opensips

{

avp_db_query("select domain from domain where attrs = public", 
"$avp(DOMAIN)");

set_advertised_address ("$avp(DOMAIN));

}

else

{

avp_db_query("select domain from domain where attrs = local", 
"$avp(DOMAIN)");
set_advertised_address ("$avp(DOMAIN));

}

}

else

{

avp_db_query("select domain from domain where attrs = public", 
"$avp(DOMAIN)");
set_advertised_address ("$avp(DOMAIN));

}

}


However, how can I know whether the callee is not in the same network area as 
the caller, so the callee is behind a NAT?


Any hint will be very helpful!


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


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