How to forward P-Asserted-Identity or add it based on From header of incoming INVITE
Please make sure that DB structure of Your "fields_definitions" table is same as in our documentation.
If you had to change the fields_definitions table You need to restart Voipswitch application.
Open VSM3 -> Routing -> Routing plan -> edit desired prefix
Go to advanced tab
Copy below setting and paste it in Advanced header modification test area.
P-Asserted-Identity:t[paid1] <sip:t[paid3]> OR <sip:t[paid3]> OR t[fm1] <sip:t[fm3]> OR <sip:t[fm3]>Save settings and test it.
Short explanation:
t[fm1] is basically display name from FROM header
t[paid1] is display name from P-Asserted-Identity
t[fm3] is SIP URI part from FROM header
t[paid3] is SIP URI part from P-Asserted-Identity
OR statement is used when some tokens are not created properly
For example incoming INVITE did not have P-Asserted-Identity header so paid1 and paid3 tokens will be not created it will jump into 3rd option and check if From has display name if not P-Asserted-Identity will be created based on From SIP URI.