Is there a way to define "fromuser" in PJSIP (trunk)

CHAN_SIP will not handle a long string in the CONTACT field but PJSIP will. However, I need to define the “fromuser=”, is there a way to do this with PJSIP

Are you sure about that, there’s no such thing as fromuser= in pjsip

https://wiki.asterisk.org/wiki/display/AST/Asterisk+12+Configuration_res_pjsip_outbound_registration

Perhaps you can use “contact_user”