How to get customer header in PJSIP using sip.js

That has nothing to do with Asterisk. This is at SIP and JsSIP level. I can’t comment on JsSIP, but for SIP it’s an additional header in the format of “Name: Value”.

As I mentioned before too, if you’re sending multiple of these during a call in the form of re-INVTIEs then you will not be able to get the header from them.