Re: [SR-Users] Accounting only the 2nd branch of missed serial forked call

2011-09-27 Thread Daniel-Constantin Mierla
Hello, On 9/27/11 12:32 PM, Ozren Lapcevic wrote: Just tested with v3.2 and acc_prepare_flag and accounting works fine now! great, thanks for reporting back. Not sure if this should be backported to 3.1 branch, thinking of how it was so far designed the acc -- I am actually not that much conv

Re: [SR-Users] Accounting only the 2nd branch of missed serial forked call

2011-09-27 Thread Ozren Lapcevic
Just tested with v3.2 and acc_prepare_flag and accounting works fine now! Thanks, Ozren On Tue, Sep 27, 2011 at 8:21 AM, Daniel-Constantin Mierla wrote: > Hello, > > the mail is quite long and has lot of inner references that makes it not > that easy to follow, better focus only on what is wr

Re: [SR-Users] Accounting only the 2nd branch of missed serial forked call

2011-09-26 Thread Daniel-Constantin Mierla
Hello, the mail is quite long and has lot of inner references that makes it not that easy to follow, better focus only on what is wrong. I see lot of OKs, but I don't get it if you tried with v3.2.0. If still does not work, send the debug messages. You can always use acc_db_request(...) jus

Re: [SR-Users] Accounting only the 2nd branch of missed serial forked call

2011-09-26 Thread Ozren Lapcevic
Hi, sorry if I haven't been clear in the last mail(s). I'll try to recap. I have a call with 3 branches that are serially forked. branch 1 and 2 can be PSTN number or SIP URI. branch 3 is voicemail. I do not want to account 1st branch if call is missed, only the 2nd one. Here are the snippets fr

Re: [SR-Users] Accounting only the 2nd branch of missed serial forked call

2011-09-26 Thread Daniel-Constantin Mierla
Hello, On 9/26/11 11:44 AM, Ozren Lapcevic wrote: On Sat, Sep 24, 2011 at 9:11 AM, Daniel-Constantin Mierla mailto:mico...@gmail.com>> wrote: Hello, just to refresh in case you mentioned already, do you set acc missed call flag in request route block? No. I'm setting setflag(

Re: [SR-Users] Accounting only the 2nd branch of missed serial forked call

2011-09-26 Thread Ozren Lapcevic
On Sat, Sep 24, 2011 at 9:11 AM, Daniel-Constantin Mierla wrote: > Hello, > > just to refresh in case you mentioned already, do you set acc missed call > flag in request route block? > No. I'm setting setflag(FLT_ACCMISSED) in failure route for serially forked calls. (Also, I'm setting setfla

Re: [SR-Users] Accounting only the 2nd branch of missed serial forked call

2011-09-24 Thread Daniel-Constantin Mierla
Hello, just to refresh in case you mentioned already, do you set acc missed call flag in request route block? I found another issue that if this flag is no set in request route, the callback to tm that is used for accounting missed calls is not registered. Can you try with 3.2.0 (git master

Re: [SR-Users] Accounting only the 2nd branch of missed serial forked call

2011-09-23 Thread Daniel-Constantin Mierla
Hello, can you add a debug message to acc module, compile, reinstall and test again? Send again the debug messages with parameter debug=4 I am attaching the patch for master branch, should be easy to apply to 3.1 as well. Cheers, Daniel On 9/13/11 11:33 AM, Daniel-Constantin Mierla wrote:

Re: [SR-Users] Accounting only the 2nd branch of missed serial forked call

2011-09-13 Thread Daniel-Constantin Mierla
Hello, On 9/13/11 11:21 AM, Ozren Lapcevic wrote: Hi, On Tue, Sep 13, 2011 at 8:46 AM, Daniel-Constantin Mierla mailto:mico...@gmail.com>> wrote: Hello, just to be sure, you used flag 2 for missed calls, right? I can see it set in onreply_route. Yes, I've used #!define FLT_AC

Re: [SR-Users] Accounting only the 2nd branch of missed serial forked call

2011-09-13 Thread Ozren Lapcevic
Hi, On Tue, Sep 13, 2011 at 8:46 AM, Daniel-Constantin Mierla wrote: > Hello, > > just to be sure, you used flag 2 for missed calls, right? I can see it set > in onreply_route. > Yes, I've used #!define FLT_ACCMISSED 2 and setflag(FLT_ACCMISSED) for missed calls. I checked the flag in onreply_

Re: [SR-Users] Accounting only the 2nd branch of missed serial forked call

2011-09-12 Thread Daniel-Constantin Mierla
Hello, just to be sure, you used flag 2 for missed calls, right? I can see it set in onreply_route. That means the flags are ok now, the issue seems to be in other place. You don't set any of the accounting flags in request route block, isn't it? I mean, the first accounting flag (like accou

Re: [SR-Users] Accounting only the 2nd branch of missed serial forked call

2011-09-12 Thread Daniel-Constantin Mierla
Hello, On 9/12/11 12:04 PM, Ozren Lapcevic wrote: Hi, now I'm using t_flush_flags() after setting the accounting flag in falure_route and latest updates (I have a new 3.1 clone without depth parameter and I've made sure your changes are in sources), but it doesn't solve the case, accounting

Re: [SR-Users] Accounting only the 2nd branch of missed serial forked call

2011-09-12 Thread Ozren Lapcevic
Hi, now I'm using t_flush_flags() after setting the accounting flag in falure_route and latest updates (I have a new 3.1 clone without depth parameter and I've made sure your changes are in sources), but it doesn't solve the case, accounting behavior is still exactly the same as described in the f

Re: [SR-Users] Accounting only the 2nd branch of missed serial forked call

2011-09-08 Thread Ozren Lapcevic
Hi, I've previously installed kamailio from git branch 3.1. Now, I've manged to git cherry-pick your patch, but got "fatal: Could not find 83620cb7cd14ee3b509eef72d99337567f53967f" when tried to get t_flush_flags(). I've double-checked commit and found it here: http://git.sip-router.org/cgi-bin/gi

Re: [SR-Users] Accounting only the 2nd branch of missed serial forked call

2011-09-07 Thread Ozren Lapcevic
Hi Daniel, thanks for the quick fix and reply. What is the easiest way to try this new patch? I'm running kamailio 3.1.4 and there is no t_flush_flags() in tmx module in that version. I suppose I need to install Kamailio Devel from git ( http://www.kamailio.org/dokuwiki/doku.php/install:kamailio-

Re: [SR-Users] Accounting only the 2nd branch of missed serial forked call

2011-09-06 Thread Daniel-Constantin Mierla
Hello, can you use t_flush_flags() after setting the accounting flag in falure_route? Automatic update was missing so far, reported by Alex Hermann as well. I just did a patch, so if you want to try it, see the commit: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=c589c