fiorix / go-diameter

Diameter stack and Base Protocol (RFC 6733) for the Go programming language
Other
252 stars 143 forks source link

Response from diameter is not validated #95

Closed veerakumarcsgi closed 6 years ago

veerakumarcsgi commented 6 years ago

for a scenario where we have different avp agreements (Dictionary having different response/answer) for Voice ccr/a , Data ccr/a , Event ccr/a.

1)found that currently code base does not validate the answer

iam planning to enhance the parser to hold commands for different request type and then use them to validate response/answer

any one faced such a scenario ..any other approach used ?

fiorix commented 6 years ago

There's nothing in the code to specifically validate any of these answers. Basically you write your own handlers.

Perhaps I'm missing something here but the general rule is that request/response handlers are out of the scope of the library code.