[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freediameter-dev
Subject:    [Dev] searching avp in a grouped avp ?
From:       sdecugis () freediameter ! net (Sebastien Decugis)
Date:       2011-10-06 18:31:36
Message-ID: 4E8DF408.1020003 () freediameter ! net
[Download RAW message or body]

Hi Arthur,

I am sorry I am not sure what you are asking here; do you want to 
develop a freeDiameter extension without coding ? I am lost...

Best regards,
Sebastien.

Le 2011/10/06 16:09, Arthur Konovalov a ?crit :
> Hello,
> I found this conversation from archive and I'm very interesting to 
> test freediameter with grouped AVP (accounting).
> But I can't coding in C(+?). Is it real to get sample code from you to 
> add grouped AVP support to the app_acct?
> For example in my environment I have the following grouped AVP:
> Vendor 3GPP (10415): 860 Cause, 838 Inter-Operator-Identifier, 833 
> Time-Stamps, 823 Event-Type.
>
> Regards,
> Arthur
>
>
>
>
>> Hi Krishnan,
>>
>> Indeed you are right, the fd_msg_search_avp searches only the top-level
>> AVPs, which is more efficient and in most of the cases sufficient.
>>
>> In order to look inside the grouped AVPs, you will need to do the 
>> following:
>> - first call fd_msg_parse_dict on the message, to ensure that grouped
>> AVPs have been parsed (in case the message is proxied, it might not have
>> been called yet).
>> - then use the function fd_msg_browse to enumerate the AVPs. You can use
>> for example MSG_BRW_WALK for simplicity, or first search for the grouped
>> AVP of interest and then browse inside this one.
>> Then you can use either fd_msg_model (and compare the dictionary object)
>> or fd_msg_avp_hdr (and compare code and vendor) to check if you found
>> the AVP you were looking for.
>>
>> Please let me know if you have difficulties with this.
>>
>> Best regards,
>> Sebastien.
>>
>> Le 2011/05/03 15:37, Krishnan.S.S a ?crit :
>> >/  Hello,
>> />/  Been toying with freediameter code .
>> />/  Was wondering if there are ways of querying for a avp in a 
>> grouped avp.
>> />/
>> />/  Trying to write  code to search for a avp in a received msg.
>> />/  The fd_msg_search_avp seems to fail for this particular case
>> />/  as it seems to browse through just the first level siblings.
>> />/
>> />/  Cheers
>> />/  Krishnan/
>
>
> _______________________________________________
> Dev mailing list
> Dev at freediameter.net
> http://lists.freediameter.net/cgi-bin/mailman/listinfo/dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic