No, not as far as I know. What I do is this:
Whenever I disable/enable a trunk, I comment/uncomment the section for that trunk in pjsip.endpoint_custom_post.conf, followed by the command ‘fwconsole reload’.
Yes, this is a minor nuisance.
If someone does have a solution for this I too would like to know.