Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
Session plug-in for accounting purposes
Author Message
yamakawa
Brekeke Newbie


Joined: 27 Aug 2007
Posts: 1

PostPosted: Mon Aug 27, 2007 4:08 am    Post subject: Session plug-in for accounting purposes Reply with quote

1. Brekeke Product Name and version:

2. Java version:

3. OS type and the version:

4. UA (phone), gateway or other hardware/software involved:

5. Select your network pattern from http://www.brekeke-sip.com/bbs/network/networkpatterns.html :

6. Your problem:

Dear Sirs,

We have written a plug-in program for billing,
derived from the AccountingBase class in brekeke SIP.

Using the SIP Server management web tool, in Dial Plan tab,
again in New Rule page, we have set as following;

Rule name :Accounting
Matching Patterns
$request = ^INVITE
Deploy Patterns
$session = [the class we have made]
$continue = true

but we see no evidence that our programm is working.
We mean, in log files (= catalina.out, WEB-INF/work/sv/log/2007/08
and WEB-INF/work/logs) we see no lines from our plug-in.
Nor we get any message from intentional exception in
our plug-in programm.

Would you kind enough to respond our following questions:
1. Where should we place our class file?
2. To where logs are output?
3. Where do go the messages directed tod System.out?

Best regards
Back to top
View user's profile
peng
Brekeke Guru


Joined: 20 Jul 2005
Posts: 110

PostPosted: Thu Sep 06, 2007 1:03 am    Post subject: Reply with quote

Quote:
1. Where should we place our class file?
2. To where logs are output?
3. Where do go the messages directed tod System.out?


If you made a class a.b.C (a.b is a package name),
you can put the C.class under WEB-INF/classes/a/b .

I think your log goes under WEB-INF/work/sv/log/2007/08/.

I don't think it is a good idea to use system.out.
If you use Linux, you get in trouble.
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    Brekeke Forum Index » Brekeke SIP Server Forum All times are GMT - 7 Hours
Page 1 of 1