Navigation


Changeset 1301:50fb308e84f7 in freeDiameter for include


Ignore:
Timestamp:
Aug 30, 2015, 2:58:21 AM (9 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Phase:
public
Message:

Added a new hook to allow extensions act on the error messages being returned in case of parsing error (e.g. if some mandatory AVP are expected in error messages)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/freeDiameter/libfdcore.h

    r1299 r1301  
    10031003                 - {permsgdata} points to existing structure associated with this message (or new structure if no previous hook was registered).
    10041004                 */
    1005        
     1005                 
    10061006        HOOK_MESSAGE_ROUTING_ERROR,
    10071007                /* Hook called when a message being processed by the routing thread meets an error such as no remaining available peer for sending, based on routing callbacks decisions (maybe after retries).
     
    10591059                 */
    10601060       
    1061 #define HOOK_LAST       HOOK_PEER_CONNECT_SUCCESS
     1061        HOOK_MESSAGE_PARSING_ERROR2,
     1062                /* Hook called after an error message has been generated due to a dictionary parsing error.
     1063                 - {msg} points to the error message that has been generated.
     1064                 - {peer} is NULL. You can still retrieve the source from the message itself.
     1065                 - {other} is NULL
     1066                 - {permsgdata} points to existing structure associated with this message (or new structure if no previous hook was registered).
     1067                 Use this hook if you need to populate more data in the error being returned, from the error message.
     1068                 (e.g. some AVP need to be added to replies even if error case.
     1069                 */
     1070#define HOOK_LAST       HOOK_MESSAGE_PARSING_ERROR2
    10621071};
    10631072
Note: See TracChangeset for help on using the changeset viewer.