Hi Alvaro,
You can use integration directory API to retrieve all the URL's and OS directories which is listed in the communication channels.
Check below blog for accessing directory API.
You need to use CommunicationChannelServiceVi web service for this.
Regards,
Praveen.