MiaRec is ideal call recording solution for Grandstream GXE502x series IP PBX.
Grandstream's IP-PBX product segment consists of the GXE5024 and GXE5028. The GXE502x appliance is a powerful all-in-one voice + video + fax + data communication solution for the small to medium sized business, especially companies with sub-30 seats per location.
MiaRec uses unobtrusive packet sniffing technology for recording calls of Asterisk. Following protocols are supported by MiaRec: SIP, H.323, Cisco Skinny and MGCP. Whenever Asterisk operates with one of these signaling protocols, then calls can be recorded by MiaRec.
Port Mirroring function should be configured on the switch (see What is Port Mirroring?).

Connect Grandstream GXE502x IP PBX through a switch, which supports port mirroring (as shown on the network diagram).
Configure port mirroring on that switch according to following instructions:
Such configuration will allow call recording on Grandstream GXE502x IP PBX.