With chan_sip I was using this to control the From header:
Dial(SIP/whoever!!my.cool.user@example.com)
This worked very well for me. However it seems that PJSIP does not support this exclamation mark syntax. I can of course do:
Set(CALLERID(all)=whoever <my.cool.user>)
and set from_domain=example.com and this is almost as good. Except that it munges the punctuation and other things in the <> section and so I don’t actually end up with the From header I want. How can I set From header or CALLERID without this munging?