Need help on Acocunting Respond

2008-12-11 Thread Do Nguyen Ha
Hi all

i use the FreeRadius to work with Cisco Softswitch SIP Server
i follow the instruction:
http://freeradius.org/radiusd/man/rlm_attr_filter.html
preacct
Filters Accounting-Request packets. 
accounting
Filters Accounting-Response packets. 

i edit the following file :
site-enable/default :
#  Filter attributes from the accounting response.
#attr_filter.accounting_response
preprocess :   with_cisco_vsa_hack = yes
acct_users :   
DEFAULT
User-Name := %{Stripped-User-Name:-%{User-Name}},
h323-return-code := h323-return-code=0


the problem i got in the Accounting respond :
Sending Accounting-Response of id 139 to 172.26.0.8 port 1645
User-Name := 087301
h323-return-code := h323-return-code=0
how do i run the sql query or do something to get the h323-return-code in the 
Accounting Request


Thanks
Ha`
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: Need help on Acocunting Respond

2008-12-11 Thread tnt
i use the FreeRadius to work with Cisco Softswitch SIP Server
i follow the instruction:
http://freeradius.org/radiusd/man/rlm_attr_filter.html
preacct
Filters Accounting-Request packets. 
accounting
Filters Accounting-Response packets. 

i edit the following file :
site-enable/default :
#  Filter attributes from the accounting response.
#attr_filter.accounting_response
preprocess :   with_cisco_vsa_hack = yes
acct_users :   
DEFAULT
User-Name := %{Stripped-User-Name:-%{User-Name}},
h323-return-code := h323-return-code=0


the problem i got in the Accounting respond :
Sending Accounting-Response of id 139 to 172.26.0.8 port 1645
User-Name := 087301
h323-return-code := h323-return-code=0
how do i run the sql query or do something to get the h323-return-code in the 
Accounting Request

Read man unlang.

Ivan Kalik
Kalik Informatika ISP

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html