dexter has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-mgw/+/17423 )
Change subject: mgcp_protocol: Avoid code duplication between virtual + other trunks ...................................................................... Patch Set 5: (2 comments) > Patch Set 5: Code-Review-1 > > (2 comments) I have left some comments, the problems you address will get fixed in the following patch. https://gerrit.osmocom.org/c/osmo-mgw/+/17423/5/src/libosmo-mgcp/mgcp_protocol.c File src/libosmo-mgcp/mgcp_protocol.c: https://gerrit.osmocom.org/c/osmo-mgw/+/17423/5/src/libosmo-mgcp/mgcp_protocol.c@1669 PS5, Line 1669: llist_del(&cfg->virt_trunk->entry); > What about simply avoiding doing this inside mgcp_trunk_alloc if type == > MGCP_TRUNK_VIRTUAL. I agree, but i would argue to keep it like this for now since in patch #18372 I have already addressed this. Also we have decided to get rid of this separate trunk model so this will vanish very soon anyway. https://gerrit.osmocom.org/c/osmo-mgw/+/17423/5/src/libosmo-mgcp/mgcp_protocol.c@1703 PS5, Line 1703: llist_add_tail(&trunk->entry, &cfg->trunks); > if (ttype != MGCP_TRUNK_VIRTUAL) […] (see comment above) -- To view, visit https://gerrit.osmocom.org/c/osmo-mgw/+/17423 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-mgw Gerrit-Branch: master Gerrit-Change-Id: I54762af6d417b849a24b6e71b6c5c996a5cb3fa6 Gerrit-Change-Number: 17423 Gerrit-PatchSet: 5 Gerrit-Owner: laforge <[email protected]> Gerrit-Assignee: dexter <[email protected]> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: dexter <[email protected]> Gerrit-Reviewer: pespin <[email protected]> Gerrit-Comment-Date: Wed, 27 May 2020 12:05:56 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No Comment-In-Reply-To: pespin <[email protected]> Gerrit-MessageType: comment
