modules/dispatcher: added per gateway and global send socket configuration