AFAIU, you just need to make sure the container has enough resources (isn't squeezed by other processes, has enough memory etc). If not, I'd suggest you look in openvz or asterisk sites/resources, as this is not proxmox specific and probably too niche...
I'm running asterisk on a kvm instance...