Attention is currently required from: daniel.
pespin has posted comments on this change by pespin. ( https://gerrit.osmocom.org/c/osmo-mgw/+/39224?usp=email )
Change subject: mgw: CRCX: Split mgcp header pars parsing into a previous step ......................................................................
Patch Set 1:
(3 comments)
File include/osmocom/mgcp/mgcp_msg.h:
https://gerrit.osmocom.org/c/osmo-mgw/+/39224/comment/f18233f3_3255f0b2?usp=... : PS1, Line 29: #include <ctype.h>
Seems unnecessary here
Done
File include/osmocom/mgcp/mgcp_protocol.h:
https://gerrit.osmocom.org/c/osmo-mgw/+/39224/comment/b96d8ab9_5d406d19?usp=... : PS1, Line 31: //struct mgcp_parsed_body { : //};
Remove
Done
File src/libosmo-mgcp/mgcp_msg.c:
https://gerrit.osmocom.org/c/osmo-mgw/+/39224/comment/d0bef322_cba38205?usp=... : PS1, Line 176: * \param[in] endp pointer to endpoint (only used for log output, may be NULL)
I don't know if these helped debug issues in the past, but this change also makes the log messages a […]
IMHO this style of passing objects deep in the state just for logging is wrong. We should log here the exact problem and then a more general problem with the whole context if needed.