Are you being prescribed both? If you aren't, you shouldn't take meds you aren't prescribed. Even if they can be safely taken together, there may be something about one of them that harms you because of another condition you have.
Belsomra comes in different doses. Maybe your doctor can increase the dose if the current one you take isn't working for you. Your doctor should know that a medication isn't working as expected, too.