Re: [OpenSIPS-Users] Contact header modifications

2014-09-29 Thread Răzvan Crainea

Hi, Maciej!

The behavior you are describing is exactly how OpenSIPS should behave, 
so it's nothing wrong with your setup.
The second affirmation is also right, if you want to change the Contact 
header, you have to use topology-hiding, either the one provided by the 
dialog module, or the B2B module.


Best regards,

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

On 09/29/2014 01:33 AM, Maciej Bylica wrote:

Hi,

Guys could i ask you to share your experience here

Thanks.

2014-09-25 23:00 GMT+02:00 Maciej Bylica mb...@gazeta.pl 
mailto:mb...@gazeta.pl:


Hello,

I just want to setup Opensips as SIP Proxy node.
Release 1.11.2-notls and DRouting module is already in place.
I just want to ask you what do you think about Contact header
modification in such case.
Some of my incoming INVITEs have only Contact header (describing
originator, like IPPABX for instance) without Record-Route header.
Opensips generates additional Record-Route header but doesn't
modify Contact header at all and such request is sent to
terminator. As an after-effect all subsequent requests properly
match UAs (thanks to the rule hat RR overrides Contact header).
First of all is this how Opensips behaves and there is nothing to
worry about?

What if i dont want to disclose Contact header information passing
transparently to the other side.
I assume that i may use B2B modules or topology-hiding within
dialog module or setup Freeswitch for this purpose, am i right?
Maybe I should play around with opensips script a little to modify
that header?

Thanks in advance,
Maciej




___
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] CDRtool and perfomance with short calls( 3 sec )

2014-09-29 Thread Pavel Eremin
Hi, All! I am using CDRTool with prepaid and when reached 15 calls per
second i have  low performance.

As I understood CDRtool engine gets ALL active session and recalc
MaxSessionTime for ALL calls when new call happens?

so if i have many short calls CDRTool has heavy load.

I don't want to recalc active session. (let negative balance be).

Can i do it without make a lot of changes in code? may be disable some
function in rating.php?

PS: I have read docs about PREPAID This scheme provides a
fair balancing policy with small performance penalty on the servers.
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] callcontrol 2.1.0

2014-09-29 Thread Pavel Eremin
Hi, All!
Trying to use callcontrol 2.1.0 and always get prepaid = None.
I can't see that callcontrol send request to CDRTool Engine? There is my
logs:

Sep 29 11:49:39 fiber4 call-control[15122]: Got request: init: callid=
303-7439@103.239.147.16 from=pavel sip:pa...@sip.fiberpipe.in:5060 ruri=
sip:7922633004@103.239.147.14:5060 diverter=None
sourceip=103.239.147.16 prepaid=None call_limit=None

Sep 29 11:49:39 fiber4 call-control[15122]: Call id 303-7439@103.239.147.16
added to list of controlled calls
*!!! I think here callcontrol must ask CDRTool but it did not!!! *
Sep 29 11:49:39 fiber4 call-control[15122]: Call id 303-7439@103.239.147.16
of pa...@sip.fiberpipe.in to sip:7922633004@103.239.147.14:5060 is postpaid
not limited

Sep 29 11:49:39 fiber4 call-control[15122]: Call id 303-7439@103.239.147.16
removed from the list of controlled calls

Sep 29 11:49:39 fiber4 call-control[15122]: Sent reply: No limit
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Contact header modifications

2014-09-29 Thread Maciej Bylica
Hi Răzvan,

Thanks for clarifications.
Maciej.

2014-09-29 10:23 GMT+02:00 Răzvan Crainea raz...@opensips.org:

  Hi, Maciej!

 The behavior you are describing is exactly how OpenSIPS should behave, so
 it's nothing wrong with your setup.
 The second affirmation is also right, if you want to change the Contact
 header, you have to use topology-hiding, either the one provided by the
 dialog module, or the B2B module.

 Best regards,

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

 On 09/29/2014 01:33 AM, Maciej Bylica wrote:

 Hi,

  Guys could i ask you to share your experience here

  Thanks.

 2014-09-25 23:00 GMT+02:00 Maciej Bylica mb...@gazeta.pl:

  Hello,

  I just want to setup Opensips as SIP Proxy node.
 Release 1.11.2-notls and DRouting module is already in place.
 I just want to ask you what do you think about Contact header
 modification in such case.
 Some of my incoming INVITEs have only Contact header (describing
 originator, like IPPABX for instance) without Record-Route header.
 Opensips generates additional Record-Route header but doesn't modify
 Contact header at all and such request is sent to terminator. As an
 after-effect all subsequent requests properly match UAs (thanks to the
 rule hat RR overrides Contact header).
 First of all is this how Opensips behaves and there is nothing to worry
 about?

  What if i dont want to disclose Contact header information passing
 transparently to the other side.
 I assume that i may use B2B modules or topology-hiding within dialog
 module or setup Freeswitch for this purpose, am i right?
 Maybe I should play around with opensips script a little to modify that
 header?

  Thanks in advance,
 Maciej




 ___
 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] callcontrol 2.1.0

2014-09-29 Thread Venkatesh Macha
Hi pavel,

  Are you setting prepaid_account_flag in opensips.cfg, i think
callcontrol is always treating your call as postpaid. so try to set
prepaid_account_flag.

Venkatesh Macha,
Junior VOIP Engineer,
@ sillycodes http://sillycodes.com  




--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/callcontrol-2-1-0-tp7593660p7593663.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] callcontrol 2.1.0

2014-09-29 Thread Pavel Eremin
Thanks a lot! It's so simple)



2014-09-29 18:13 GMT+06:00 Venkatesh Macha linuxven...@gmail.com:

 Hi pavel,

   Are you setting prepaid_account_flag in opensips.cfg, i think
 callcontrol is always treating your call as postpaid. so try to set
 prepaid_account_flag.

 Venkatesh Macha,
 Junior VOIP Engineer,
 @ sillycodes http://sillycodes.com




 --
 View this message in context:
 http://opensips-open-sip-server.1449251.n2.nabble.com/callcontrol-2-1-0-tp7593660p7593663.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


[OpenSIPS-Users] CDRtool

2014-09-29 Thread Pavel Eremin
Hi, All! Let's dance with CDRTool

I am trying to use it on heavy load system and get stack.

Why in this code author match canonical number with string started by 0?(in
hard way) Because of this line all calls are postpaid...:(

   * if
(!preg_match(/^0[9-0]{1,}@/,$CDR-CanonicalURINormalized))* {
$log=sprintf (MaxSessionTime=unlimited Type=prepaid
CallId=%s BillingParty=%s
DestId=None,$NetFields['callid'],$CDR-BillingPartyId);
syslog(LOG_NOTICE, $log);
$this-logRuntime();
$ret=none.\n.type=prepaid;
return $ret;
} else {
if (!$CDR-DestinationId) {
$log = sprintf (error: cannot figure out the
destination id for %s,$CDR-CanonicalURI);
$this-logRuntime();
syslog(LOG_NOTICE, $log);
$ret=$log.\n.type=prepaid;
return $ret;
}
}
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] CDRtool

2014-09-29 Thread Pavel Eremin
This code in rating.php...

2014-09-29 22:18 GMT+06:00 Pavel Eremin eremina@gmail.com:

 Hi, All! Let's dance with CDRTool

 I am trying to use it on heavy load system and get stack.

 Why in this code author match canonical number with string started by
 0?(in hard way) Because of this line all calls are postpaid...:(

* if
 (!preg_match(/^0[9-0]{1,}@/,$CDR-CanonicalURINormalized))* {
 $log=sprintf (MaxSessionTime=unlimited Type=prepaid
 CallId=%s BillingParty=%s
 DestId=None,$NetFields['callid'],$CDR-BillingPartyId);
 syslog(LOG_NOTICE, $log);
 $this-logRuntime();
 $ret=none.\n.type=prepaid;
 return $ret;
 } else {
 if (!$CDR-DestinationId) {
 $log = sprintf (error: cannot figure out the
 destination id for %s,$CDR-CanonicalURI);
 $this-logRuntime();
 syslog(LOG_NOTICE, $log);
 $ret=$log.\n.type=prepaid;
 return $ret;
 }
 }


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


Re: [OpenSIPS-Users] CDRtool

2014-09-29 Thread Tijmen de Mes
Hi,

At this point in the code the call is already prepaid since the account has 
been found with the query:

$query=sprintf(select * from %s where account = 
'%s',addslashes($this-prepaid_table),addslashes($CDR-BillingPartyId));

Normally if the normalized number starts with a 0 it is routed to PSTN, what in 
most cases has a price. If a number resolves over ENUM, the Normalized URI 
would not start with a 0, but will be a sip account. 

This is just a convention we made and therefore you also should not have 
accounts starting with a 0

-- 
Tijmen de Mes
AG-Projects

From: Pavel Eremin eremina@gmail.com
Reply: OpenSIPS users mailling list users@lists.opensips.org
Date: 29 september 2014 at 18:30:00
To: OpenSIPS users mailling list users@lists.opensips.org
Subject:  Re: [OpenSIPS-Users] CDRtool  

This code in rating.php...

2014-09-29 22:18 GMT+06:00 Pavel Eremin eremina@gmail.com:
Hi, All! Let's dance with CDRTool

I am trying to use it on heavy load system and get stack.

Why in this code author match canonical number with string started by 0?(in 
hard way) Because of this line all calls are postpaid...:(

            if (!preg_match(/^0[9-0]{1,}@/,$CDR-CanonicalURINormalized)) {
                $log=sprintf (MaxSessionTime=unlimited Type=prepaid CallId=%s 
BillingParty=%s DestId=None,$NetFields['callid'],$CDR-BillingPartyId);
                syslog(LOG_NOTICE, $log);
                $this-logRuntime();
                $ret=none.\n.type=prepaid;
                return $ret;
            } else {
                if (!$CDR-DestinationId) {
                    $log = sprintf (error: cannot figure out the destination 
id for %s,$CDR-CanonicalURI);
                    $this-logRuntime();
                    syslog(LOG_NOTICE, $log);
                    $ret=$log.\n.type=prepaid;
                    return $ret;
                }
            }


___  
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