Re: [OpenSIPS-Users] OpenSIPS core dumps

2010-11-16 Thread Bogdan-Andrei Iancu

Hi,

opensipsctl takes care that each command takes a separate fifo reply, so 
here it should be no problem. But the problem may be when comes with 
sending multiple commands (via FIFO) in the same time - this translates 
into parallel writes to the same file and depends on the atomicity of 
the write op.


But in the worst case, a mixture at the FIFO level may lead to bogus 
command and not in any kind of crashDo you use the flat_rotate MI 
command ?


Regards,
Bogdan

thrillerbee wrote:

Bogdan,

It seems the issue is with 'opensipsctl fifo' - it's very sensitive to 
simultaneous calls.  Basically, I've combined all my scripts to 
prevent 'opensipsctl fifo' from being called too frequently and that 
seems (so far) to have mitigated the issue.  Is there anything one 
should know about how (not) to use /opensipsctl/?


Thanks.

On Mon, Nov 8, 2010 at 6:07 AM, Bogdan-Andrei Iancu 
bog...@voice-system.ro mailto:bog...@voice-system.ro wrote:


Hi,

strange if you do not have any errors :(

I just made a fix on both trunk and 1.6 to extend some checks in
flatstore and prevent crashing (even if the DB op will not be
executed).

Could you update from SVN and see if stops crashing ?

Regards,
Bogdan


thrillerbee wrote:
 Bogdan,

 I am not seeing any other errors in the logs.  Is there anything
else
 I can look at?  Both proxies are crashing everyday.

 Thanks.

 On Wed, Nov 3, 2010 at 4:21 AM, Bogdan-Andrei Iancu
 bog...@voice-system.ro mailto:bog...@voice-system.ro
mailto:bog...@voice-system.ro mailto:bog...@voice-system.ro
wrote:

 I got some clue about what is happening - as you are using
 flatstore for
 acc, the acc module does not check the success of the
use_table DB
 operation - in 90% of the cases (for mysql, postgres, etc) this
 function
 cannot fail, but it seams that for flatstore can. And if it
fails, the
 h-tail is set to NULL, leading to crash.

 Now, before the crash itself, do you see any other ERROR
messages
 (even
 long before the crash) related to flatstore module ? Try:
grep ERROR opensips_log_file | grep flatstore

 Regards,
 Bogdan

 thrillerbee wrote:
  Bogdan,
 
  One more detail that may help - I added another OpenSIPS
proxy in
  parallel with this one ( load balancing between the two) and
 now both
  OpenSIPS proxies crash at the same time (within a couple
seconds).
 
  I can provide more core dumps if it will help.
 
  Thanks.
 
 
  On Tue, Nov 2, 2010 at 9:02 AM, thrillerbee
 thriller...@gmail.com mailto:thriller...@gmail.com
mailto:thriller...@gmail.com mailto:thriller...@gmail.com
  mailto:thriller...@gmail.com
mailto:thriller...@gmail.com mailto:thriller...@gmail.com
mailto:thriller...@gmail.com
 wrote:
 
  Bogdan,
 
  Below is the info requested:
  (gdb) frame 0
  #0  0x7f51999f221f in flat_db_insert (h=0x7f0978,
  k=0x7f5198732a60, v=0x7f5198732d20, n=19) at
flatstore.c:165
  165 f = CON_FILE(h);
  (gdb) print h
  $1 = (const db_con_t *) 0x7f0978
  (gdb) print h-tail
  $2 = 0
  (gdb) print ((struct flat_con*)(h-tail))-file
  Cannot access memory at address 0x10
 
  Before each of the crashes yesterday, I saw these in
the logs:
  Nov  1 14:17:40 core1 kernel: [4287745.452111]
opensips[22141]:
  segfault at 10 ip 7f51999f221f sp 7fffbcd8d510 error 4 in
  db_flatstore.so[7f51999ef000+5000]
  Nov  1 23:52:58 core1 kernel: [4348562.990735]
opensips[26978]:
  segfault at 10 ip 7f726cb9b21f sp 7083f6f0 error 4 in
  db_flatstore.so[7f726cb98000+5000]
 
  Are there any compiler flags I should use for debugging?
  (gdb) info locals
  f = value optimized out
  i = value optimized out
  l = value optimized out
  p = value optimized out
  __FUNCTION__ = flat_db_insert
 
  Thanks again.
 
 
  On Tue, Nov 2, 2010 at 4:18 AM, Bogdan-Andrei Iancu
  bog...@voice-system.ro
mailto:bog...@voice-system.ro mailto:bog...@voice-system.ro
mailto:bog...@voice-system.ro
 mailto:bog...@voice-system.ro
mailto:bog...@voice-system.ro mailto:bog...@voice-system.ro
mailto:bog...@voice-system.ro
 wrote:
 
  Hi,
 
  in frame 0, could you print:
 h
 h-tail
 ((struct 

[OpenSIPS-Users] DROUTING module

2010-11-16 Thread Denis Putyato
Hello!

 


Please tell me where in dr_rules table rule_attrs_avp (str) of DROUTING module 
store?


http://www.opensips.org/html/docs/modules/1.6.x/drouting.html#id294102


Thank you.

 

 

 

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


[OpenSIPS-Users] Timer Based Failover Question

2010-11-16 Thread Bruce Borrett
Hi All

I am having a problem where a SIP provider are sometimes sending us a 100, but 
then nothing afterwards. I would like to fail these calls over using a timer, 
but fr_timer wont work since we are receiving a 100, and fr_inv_timer requires 
a 
very lengthy duration which also will not work as I would like for the call to 
failover within 5 seconds maximum.

Does anyone have any other suggestion for me please?

Regards,
Bruce Borrett



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


Re: [OpenSIPS-Users] Timer Based Failover Question

2010-11-16 Thread Denis Putyato
And what about

http://www.opensips.org/html/docs/modules/1.6.x/tm.html#id250384

 

 

From: users-boun...@lists.opensips.org 
[mailto:users-boun...@lists.opensips.org] On Behalf Of Bruce Borrett
Sent: Tuesday, November 16, 2010 1:40 PM
To: Users@lists.opensips.org
Subject: [OpenSIPS-Users] Timer Based Failover Question

 

Hi All

I am having a problem where a SIP provider are sometimes sending us a 100, but 
then nothing afterwards. I would like to fail these calls over using a timer, 
but fr_timer wont work since we are receiving a 100, and fr_inv_timer requires 
a very lengthy duration which also will not work as I would like for the call 
to failover within 5 seconds maximum.

Does anyone have any other suggestion for me please?

Regards,
Bruce Borrett

 

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


Re: [OpenSIPS-Users] Presence server performance

2010-11-16 Thread John Khvatov
Hello.

On 15.11.2010, at 18:34, John Khvatov wrote:

 Hello all.
 
 I'm testing performance of OpenSIPS presence server. I got bad results... Any 
 ideas how to improve it?

Has anyone done any performance tests with opensips-presence or using 
opensips-presence in production? Could you share any results?

-- 
WBR, John Khvatov


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


Re: [OpenSIPS-Users] OpenSIPS core dumps

2010-11-16 Thread John Khvatov
Hello.

On 10.11.2010, at 19:19, thrillerbee wrote:
 Well, I spoke too soon - it's not just an issue with the opensipsctl fifo 
 calls - looks more like a memory leak.  It crashed again today, but I did get 
 some errors in the syslog this time right before the crash:
 Nov 10 15:42:32 core1 /usr/local/sbin/opensips[27044]: 
 ERROR:db_flatstore:new_flat_id: no pkg memory left
 Nov 10 15:42:32 core1 kernel: [5508366.582447] opensips[27044]: segfault at 
 10 ip 7fa7ff74c21f sp 7fffdc101700 error 4 in 
 db_flatstore.so[7fa7ff749000+5000]
 To be thorough, I've attached the backtrace  output from print commands 
 (although they're the same as before).

I have the same issue. OpenSIPS crashes at db_flatstore.so due to lack of 
memory (according resident memory usage graph). Recently I removed the use of 
the t_newtran() function and localstore module in opensips.cfg and crash did 
not happens for 11 days. Earlier crash happens every two-tree days.

Do you use t_newtran() in your config?

-- 
WBR, John Khvatov

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


Re: [OpenSIPS-Users] OpenSIPS core dumps

2010-11-16 Thread thrillerbee
John,

I appreciate the suggestion, but, unfortunately, I don't use t_newtran().
 What led you to remove that?

Thanks,
Ryan

On Tue, Nov 16, 2010 at 9:08 AM, John Khvatov iva...@gmail.com wrote:

 Hello.

 On 10.11.2010, at 19:19, thrillerbee wrote:

 Well, I spoke too soon - it's not just an issue with the opensipsctl fifo
 calls - looks more like a memory leak.  It crashed again today, but I did
 get some errors in the syslog this time right before the crash:
  Nov 10 15:42:32 core1 /usr/local/sbin/opensips[27044]:
 ERROR:db_flatstore:new_flat_id: no pkg memory left
 Nov 10 15:42:32 core1 kernel: [5508366.582447] opensips[27044]: segfault at
 10 ip 7fa7ff74c21f sp 7fffdc101700 error 4 in
 db_flatstore.so[7fa7ff749000+5000]
 To be thorough, I've attached the backtrace  output from print commands
 (although they're the same as before).


 I have the same issue. OpenSIPS crashes at db_flatstore.so due to lack of
 memory (according resident memory usage graph). Recently I removed the use
 of the t_newtran() function and localstore module in opensips.cfg and crash
 did not happens for 11 days. Earlier crash happens every two-tree days.

 Do you use t_newtran() in your config?

 --
 WBR, John Khvatov


 ___
 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] modparam?

2010-11-16 Thread Brett Nemeroff
On Wed, Nov 10, 2010 at 5:02 AM, Anton Zagorskiy 
a.zagors...@oyster-telecom.ru wrote:

 I'm trying to make HA cluster with balancing.
 I have 2 servers with openSIPS with load_balanicng and mysql with
 replication.
 While both servers are working second openSIPS connects to mysql-master at
 the first server. When the first server fails then second should uses
 itself
 mysql database. So I need to change db_url parameter through all modules.


Anton,
You may want to check out db_virtual for this.
http://www.opensips.org/html/docs/modules/1.6.x/db_virtual

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


Re: [OpenSIPS-Users] Timer Based Failover Question

2010-11-16 Thread Dave Singer
I ran into the same problem with one of our carriers. The way I did it, with
advice from bogdan, was to set the fr_inv_timer_avp to 6 sec (so long
because of some calls to cell phone systems have long delays) when sending
to the particular carrier then in a reply route special to that carrier,
reset it to the normal 300 if the response was a 18x. Here are
the pertinent parts:

modparam(tm, fr_inv_timer, 300) # Timer on Final response:
Minimum is 2 sec, Default is 120 sec.
modparam(tm, restart_fr_on_each_reply, 1)   # Reset fr_int_timer on each
reply. Needed if you want to adjust the fr_inv_timer_avp with avp depending
on reply.
modparam(tm, fr_inv_timer_avp, $avp(i:2)) # Used if overide of
fr_inv_timer param is needed.
modparam(tm, onreply_avp_mode, 1)   # set to 1 if you want to
access and or save avps from or for other parts of the transaction, like
changing the fr_inv_timer_avp.

route[carrier_c] {
if (is_method(INVITE)) {
t_on_failure(2);
t_on_reply(2);
$avp(i:2) = 6;
}
}
onreply_route[2] {
/* once we get ring progress let it ring for upto 300 sec */
fix_nated_contact();
if ( $rs =~ 18. ) {
$avp(i:2) = 300;
#xlog(got ringing, reset final timer to $avp(i:2) sec.\n);
}
}

On Tue, Nov 16, 2010 at 2:49 AM, Denis Putyato denis7...@mail.ru wrote:

 And what about

 http://www.opensips.org/html/docs/modules/1.6.x/tm.html#id250384





 *From:* users-boun...@lists.opensips.org [mailto:
 users-boun...@lists.opensips.org] *On Behalf Of *Bruce Borrett
 *Sent:* Tuesday, November 16, 2010 1:40 PM
 *To:* Users@lists.opensips.org
 *Subject:* [OpenSIPS-Users] Timer Based Failover Question



 Hi All

 I am having a problem where a SIP provider are sometimes sending us a 100,
 but then nothing afterwards. I would like to fail these calls over using a
 timer, but fr_timer wont work since we are receiving a 100, and fr_inv_timer
 requires a very lengthy duration which also will not work as I would like
 for the call to failover within 5 seconds maximum.

 Does anyone have any other suggestion for me please?

 Regards,
 Bruce Borrett



 ___
 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] SIPTRACE sequence issue

2010-11-16 Thread Bogdan-Andrei Iancu

Hi Mohammed,

This is more or less a limitation ; as opensips is doing parallel 
processing , you may have concurrent DB access (like inserting the 
siptrace record for 200OK and the one for ACK)...Also the DB ops 
(requiring locks) may change the sequence of the ops ( the order of the 
queries and the order of the actual db ops).


There is no way to guarantee the order of the package in DB.

Regards,
Bogdan

MohammedShehzad wrote:

Hello everybody,

I am facing an issue in sip message sequence while I log the siptrace 
using siptrace module.
The issue is random, means, generally it is fine, but sometimes the 
SIP messages are out of sequence i.e. ACK get logged before  200OK, 
even sometimes INVITE comes after 100 Trying or 180 ringing.


I found that, when CDRTool list siptrace of call, the SIP messages are 
ordered by ID, which is auto increment field. So it seems that the 
siptraces are not being inserted properly in sequence from siptrace 
module itself.

My Opensips Version : opensips-1.5.3-notls
MySQL database is used, and is on remote system.

Is there anything I should try to resolve this issue? Or is this 
bug/limitation of siptrace module itself?

Regards,
MohammedShehzad


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



--
Bogdan-Andrei Iancu
OpenSIPS Bootcamp
15 - 19 November 2010, Edison, New Jersey, USA
www.voice-system.ro


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


Re: [OpenSIPS-Users] need help on connection CDRTool to opensips

2010-11-16 Thread ha do
Hi Tijimen


sorry for late reply


 2 opensips2 is a gateway
endpoint-opensips1---opensips2internet-VOIP service 
provider
So basically opensips2 is just a gateway to opensips1?
[ha] yes,



 i just try to see what happen in cdrtool, call from subscriber to subscriber
 
 these are the logs
 Nov 11 12:39:46 opensips cdrtool[2302]: MaxSessionTime Duration=36000
 callid=1289463574-3016-hiep...@192.168.1.36 From=sip:843...@192.168.1.39
 Gateway=192.168.1.36 To=sip:00842...@192.168.1.39
 Nov 11 12:39:46 opensips cdrtool[2302]: MaxSessionTime=unlimited Type=postpaid
 callid=1289463574-3016-hiep...@192.168.1.36 billingparty=843...@192.168.1.39
 
 log of call-control
 Call id 1289463575-3016-hiep...@192.168.1.36 of 843...@192.168.1.39 to
 sip:00842...@192.168.1.39 is postpaid not limited
 
 it always return postpaid
You need to specify that a sip account is prepaid if you want it to act like a 
prepaid account.

[ha] it is done and work perfectly except 1 thing

Call id NTJjNzY1NzI1MzgwNmQ2MmU4NDMxMWIzZDgzNWFkOTI. of 1...@cucku.com to 
sip:00842...@cucku.com started for maximum 60 seconds
Call id NTJjNzY1NzI1MzgwNmQ2MmU4NDMxMWIzZDgzNWFkOTI. of 1...@cucku.com to 
sip:00842...@cucku.com connected for maximum 60 seconds
callcontrol.opensips.UNIXSocketProtocol starting on 
'/var/run/callcontrol/opensips_01.sock'
error: cannot write request to /tmp: Connection refused
error: failed to end dialog: Cannot send request to OpenSIPS
Call id NTJjNzY1NzI1MzgwNmQ2MmU4NDMxMWIzZDgzNWFkOTI. of 1...@cucku.com to 
sip:00842...@cucku.com disconnected by call control after 60 seconds, call 
price 
is 0.0998

prepaid account 100 has only 60s to connect the call, and after 60s callcontrol 
cannot disconnected call

the mi_fifo located in /tmp

and opensips.cfg with fifo config
# - mi_fifo params -
modparam(mi_fifo, fifo_name, /tmp/opensips_fifo)
modparam(mi_fifo, fifo_mode, 0600)
modparam(mi_fifo, fifo_group, 0)
modparam(mi_fifo, fifo_group, root)
modparam(mi_fifo, fifo_user, 0)
modparam(mi_fifo, fifo_user, root)

and the callcontrol config.ini
[CallControl]
group   = root
[OpenSIPS]
socket_path = /tmp
;max_connections = 10 -- does it disconnect 10 calls in 1 time, if i need 100 
terminated i need to increase to 100, right???

how to fix the issue


Thank you
Ha`

- Original Message 
From: Tijmen de Mes tij...@ag-projects.com
To: OpenSIPS users mailling list users@lists.opensips.org
Sent: Mon, November 15, 2010 4:11:20 PM
Subject: Re: [OpenSIPS-Users] need help on connection CDRTool to opensips

Hi,

 
 The following steps are performed to rate a CDR:
 
 1. Determination of the billing party
 a. SIP account u...@domain
 b. SIP domain of the SIP account
 c. Source IP of the session
d. Default (when none of the above matches)
 if there is no sip account u...@domain in cdrtool the cdrtool try next
 option(sip domain) if sip domain does not exist it try next option(source 
ip)and
 then the default option
 please let me know if i am wrong
This is correct.

 2. Determination of the destination id
 a. CanonicalURI (the destination after all lookups inside the SIP Proxy)
 b. SipTranslatedRequestURI (the Request URI as presented by the SIP UA)
 c. CalledStationId (the content of the To header, used as a last resort)
 if the CanonicalURI does not exist it try to next option(Request URI) ...
 please let me know if i am wrong
This is also correct.

 3. Determination of the costs
 2 opensips2 is a gateway
endpoint-opensips1---opensips2internet-VOIP service 
provider
So basically opensips2 is just a gateway to opensips1?

 
 how can i config cdrtool rating all calls from opensips1 and opensips2
 could you please guide me some steps to do
Did you load the sample data so you can see if a call gets rated?

 
 i just try to see what happen in cdrtool, call from subscriber to subscriber
 
 these are the logs
 Nov 11 12:39:46 opensips cdrtool[2302]: MaxSessionTime Duration=36000
 callid=1289463574-3016-hiep...@192.168.1.36 From=sip:843...@192.168.1.39
 Gateway=192.168.1.36 To=sip:00842...@192.168.1.39
 Nov 11 12:39:46 opensips cdrtool[2302]: MaxSessionTime=unlimited Type=postpaid
 callid=1289463574-3016-hiep...@192.168.1.36 billingparty=843...@192.168.1.39
 
 log of call-control
 Call id 1289463575-3016-hiep...@192.168.1.36 of 843...@192.168.1.39 to
 sip:00842...@192.168.1.39 is postpaid not limited
 
 it always return postpaid
You need to specify that a sip account is prepaid if you want it to act like a 
prepaid account.

--
Tijmen de Mes
AG Projects


___
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] modparam?

2010-11-16 Thread Bogdan-Andrei Iancu
Try to use db_virtual to create a failover between several real DB 
connections.


Regards,
Bogdan

Anton Zagorskiy wrote:

I'm trying to make HA cluster with balancing.
I have 2 servers with openSIPS with load_balanicng and mysql with
replication. 
While both servers are working second openSIPS connects to mysql-master at

the first server. When the first server fails then second should uses itself
mysql database. So I need to change db_url parameter through all modules.






WBR, Anton Zagorskiy
VoIP Developer, Oyster Telecom
Phone.: +7 812 601-0666
Fax: +7 812 601-0593
a.zagors...@oyster-telecom.ru
www.oyster-telecom.ru



  

-Original Message-
From: users-boun...@lists.opensips.org [mailto:users-
boun...@lists.opensips.org] On Behalf Of Bogdan-Andrei Iancu
Sent: Wednesday, November 10, 2010 1:16 PM
To: OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] modparam?

Hi Anton,

no, you cannotwhat module are looking at ?

Regards,
Bogdan

Anton Zagorskiy wrote:


Hello.

Can I change module's parameter in the route block? I want to change
  

db_url


parameter.






WBR, Anton Zagorskiy
VoIP Developer, Oyster Telecom
Phone.: +7 812 601-0666
Fax: +7 812 601-0593
a.zagors...@oyster-telecom.ru
www.oyster-telecom.ru




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


  

--
Bogdan-Andrei Iancu
OpenSIPS Bootcamp
15 - 19 November 2010, Edison, New Jersey, USA
www.voice-system.ro


___
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

  



--
Bogdan-Andrei Iancu
OpenSIPS Bootcamp
15 - 19 November 2010, Edison, New Jersey, USA
www.voice-system.ro


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


Re: [OpenSIPS-Users] acconting messages

2010-11-16 Thread Ovidiu Sas
It seems that you will need to stick to manual accounting.

Regards,
Ovidiu Sas

On Tue, Nov 16, 2010 at 1:02 AM, Denis Putyato denis7...@mail.ru wrote:
 Thank you for reply

 First variant is not quite flexible for me.
 The second variant more interesting, but it doesn't work

 A piece of code from opensips.cfg:

 modparam(tm, fr_timer, 10)
 modparam(tm, wt_timer, 30)
 modparam(tm, fr_inv_timer_avp, $avp(i:25))
 modparam(tm, T1_timer, 1000)
 ...
 modparam(acc, db_flag, 15)
 modparam(acc, db_missed_flag, 16)
 modparam(acc, failed_transaction_flag, 17)
 modparam(acc, db_table_acc, acc)
 modparam(acc, db_table_missed_calls, acc)
 ...

     if ($avp(i:200)==1) {
     t_newtran();
     setflag(16);
     setflag(17);
     t_flush_flags();
     t_reply(403, Forbidden_gw);
     exit;
     }

 And after this there is no records in ACC table.
 May be I do something wrong?


 -Original Message-
 From: users-boun...@lists.opensips.org 
 [mailto:users-boun...@lists.opensips.org] On Behalf Of Ovidiu Sas
 Sent: Tuesday, November 16, 2010 8:40 AM
 To: OpenSIPS users mailling list
 Subject: Re: [OpenSIPS-Users] acconting messages

 You can do manual accounting:
 http://www.opensips.org/html/docs/modules/1.6.x/acc.html#id294003

 Or, you can create a new transaction, flag it for acc and then
 terminate it t_reply:
 http://www.opensips.org/html/docs/modules/1.6.x/tm.html#id293687


 Regards,
 Ovidiu Sas

 On Tue, Nov 16, 2010 at 12:30 AM, Denis Putyato denis7...@mail.ru wrote:
 Hello!

 Is there any chancy for accounting calls which were finished by sending
 failure code using send_reply() func.?

 Thank you

 ___
 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] acconting messages

2010-11-16 Thread Denis Putyato
I understand, thank you

-Original Message-
From: users-boun...@lists.opensips.org 
[mailto:users-boun...@lists.opensips.org] On Behalf Of Ovidiu Sas
Sent: Wednesday, November 17, 2010 8:23 AM
To: OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] acconting messages

It seems that you will need to stick to manual accounting.

Regards,
Ovidiu Sas

On Tue, Nov 16, 2010 at 1:02 AM, Denis Putyato denis7...@mail.ru wrote:
 Thank you for reply

 First variant is not quite flexible for me.
 The second variant more interesting, but it doesn't work

 A piece of code from opensips.cfg:

 modparam(tm, fr_timer, 10)
 modparam(tm, wt_timer, 30)
 modparam(tm, fr_inv_timer_avp, $avp(i:25))
 modparam(tm, T1_timer, 1000)
 ...
 modparam(acc, db_flag, 15)
 modparam(acc, db_missed_flag, 16)
 modparam(acc, failed_transaction_flag, 17)
 modparam(acc, db_table_acc, acc)
 modparam(acc, db_table_missed_calls, acc)
 ...

 if ($avp(i:200)==1) {
 t_newtran();
 setflag(16);
 setflag(17);
 t_flush_flags();
 t_reply(403, Forbidden_gw);
 exit;
 }

 And after this there is no records in ACC table.
 May be I do something wrong?


 -Original Message-
 From: users-boun...@lists.opensips.org 
 [mailto:users-boun...@lists.opensips.org] On Behalf Of Ovidiu Sas
 Sent: Tuesday, November 16, 2010 8:40 AM
 To: OpenSIPS users mailling list
 Subject: Re: [OpenSIPS-Users] acconting messages

 You can do manual accounting:
 http://www.opensips.org/html/docs/modules/1.6.x/acc.html#id294003

 Or, you can create a new transaction, flag it for acc and then
 terminate it t_reply:
 http://www.opensips.org/html/docs/modules/1.6.x/tm.html#id293687


 Regards,
 Ovidiu Sas

 On Tue, Nov 16, 2010 at 12:30 AM, Denis Putyato denis7...@mail.ru wrote:
 Hello!

 Is there any chancy for accounting calls which were finished by sending
 failure code using send_reply() func.?

 Thank you

 ___
 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


[OpenSIPS-Users] Not receiving mails

2010-11-16 Thread Bruce Borrett
Hi 

I havent been receiving mails from the list since Sunday the 14th. I sent a 
mail 
to the list yesterday morning but have still not received that mail, so it 
definitely seems that Im not receving any mails.

Should I re-subscribe?

Regards,
Bruce



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