How to forward P-Asserted-Identity or add it based on From header of incoming INVITE

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 /wiki/spaces/doc/pages/306872348

If you had to change the fields_definitions table You need to restart Voipswitch application.

 

  1. Open VSM3 -> Routing -> Routing plan -> edit desired prefix
  2. Go to advanced tab
  3. 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]>
  4. 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.

 

Related content