[Users] Re: [Devel] accounting source n dest IP address
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Fri Jul 22 11:31:07 CEST 2005
Bogdan-Andrei Iancu wrote:
> Hi Norman,
>
> that example is for OpenSER 0.9.x. The cvs head version uses the
> pseudo variable specifiers - see my email
> http://openser.org/pipermail/users/2005-July/000263.html
>
> Hoe to do it in the CVS head version is documented at
> http://www.openser.org/docs/modules/0.10.x/acc.html#AEN99
>
> with pseudo variables you can do it directly (without storing first
> the src_ip in an AVP); just:
> ....
> modparam("acc","db_extra","src_ip=*$si*")
sorry - without the "*" (that was from bold format :D) - >
modparam("acc","db_extra","src_ip=$si")
bogdan
> ....
>
> regards,
> Bogdan
>
>
> Norman Brandinger wrote:
>
>> Hi,
>>
>> I tried to implement your suggestion but received a parse error at
>> startup. I then went back to the doc and tried to implement the
>> sample listed there. This produced a parse error as well. Below are
>> the appropriate log entries from the "sample". We are running the
>> CVS version from a few days ago.
>>
>> ACC - initializing
>> xl_parse_item: error - bad parameters
>> ERROR:acc:parse_acc_extra: parse failed in
>> <uuid=avp/i:888;src_ip=avp/i:999> around position 5
>> acc:parse_acc_extra: error
>> ERROR:acc:mod_init: failed to parse db_extra param
>> init_mod(): Error while initializing module acc
>>
>> Regards,
>> Norm
>>
>>
>> Bogdan-Andrei Iancu wrote:
>>
>>> Hi Jayesh,
>>>
>>> in OpenSER 0.9.5, you may try the following configuration of the acc
>>> module:
>>> ....
>>> modparam("acc","db_extra","src_ip=avp/i:10")
>>> ....
>>>
>>> ....
>>> # were setting the acc flag do also
>>> avp_write("src_ip","i:10");
>>> .....
>>>
>>> The idea is to set the acc to extra account the i:10 (ID 10) AVP in
>>> which, from script, you store the SRC IP of the message. NOTE you
>>> need to add the src_ip column to your acc/missed_calls table.
>>>
>>> the destination IP cannot be logged yet.....
>>>
>>> regards,
>>> bogdan
>>>
>>>
>>> jayesh nambiar wrote:
>>>
>>>> hey Bogdan,
>>>>
>>>> Thanx a lot for that information. I am completely new to Openser.
>>>> I've been working on it since last 10 days only. I am still going
>>>> through the developers guide. Our company is very much intersested
>>>> in implementing the openser for our clients.
>>>>
>>>> The version that i m using is Openser-0.9.5.
>>>>
>>>> Any information regarding accounting would be very much valuable
>>>> for me.
>>>>
>>>> Thanx again.
>>>>
>>>> Bye
>>>>
>>>> ------------------------------------------------------------------------
>>>>
>>>> Yahoo! Mail for Mobile
>>>> Take Yahoo! Mail with you!
>>>> <http://us.rd.yahoo.com/evt=31132/*http://mobile.yahoo.com/learn/mail>
>>>> Check email on your mobile phone.
>>>
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at openser.org
>>> http://openser.org/cgi-bin/mailman/listinfo/users
>>>
>>>
>>>
>
>
> _______________________________________________
> Users mailing list
> Users at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users
>
More information about the Users
mailing list