Yea that wouldn't work. agents come and go, so that would need to be maintained in Freshdesk, same as extension. But ring group and dialed number are constant.
So essentially the only way to accomplish this then is find another way to get all the relevant details from 3cx into a db, and then...