Hi,
Refer below link to start and stop communication channels by using directory API
OR
you can use abap program to start and stop the communication channels
Refer below link
Hope it will helpful..Image may be NSFW.
Clik here to view.
Regards
Bhargava krishna