## The following rule copies uriusername and usrihostname from PAI header and updates the From header set profiles signaling sipAdaptorProfile derive_from_pai rule 1 criterion 1 type message message messageTypes requestAll methodTypes invite set profiles signaling sipAdaptorProfile derive_from_pai rule 1 criterion 2 type header header name P-Asserted-Identity condition exist set profiles signaling sipAdaptorProfile derive_from_pai rule 1 criterion 3 type token token tokenType uriusername condition exist set profiles signaling sipAdaptorProfile derive_from_pai rule 1 action 1 type token operation store from type token tokenValue uriusername set profiles signaling sipAdaptorProfile derive_from_pai rule 1 action 1 type token operation store to type variable variableValue var1 set profiles signaling sipAdaptorProfile derive_from_pai rule 1 action 2 type token operation store from type token tokenValue urihostname set profiles signaling sipAdaptorProfile derive_from_pai rule 1 action 2 type token operation store to type variable variableValue var2 set profiles signaling sipAdaptorProfile derive_from_pai rule 2 criterion 1 type message message messageTypes requestAll methodTypes invite set profiles signaling sipAdaptorProfile derive_from_pai rule 2 criterion 2 type header header name from condition exist set profiles signaling sipAdaptorProfile derive_from_pai rule 2 criterion 3 type token token tokenType uriusername condition exist set profiles signaling sipAdaptorProfile derive_from_pai rule 2 criterion 4 type variable variable variableID var1 condition exist set profiles signaling sipAdaptorProfile derive_from_pai rule 2 action 1 type token operation modify from type variable variableValue var1 set profiles signaling sipAdaptorProfile derive_from_pai rule 2 action 1 type token operation modify to type token tokenValue uriusername set profiles signaling sipAdaptorProfile derive_from_pai rule 3 criterion 1 type message message messageTypes requestAll methodTypes invite set profiles signaling sipAdaptorProfile derive_from_pai rule 3 criterion 2 type header header name from condition exist set profiles signaling sipAdaptorProfile derive_from_pai rule 3 criterion 3 type token token tokenType uriusername condition exist set profiles signaling sipAdaptorProfile derive_from_pai rule 3 criterion 4 type variable variable variableID var2 condition exist set profiles signaling sipAdaptorProfile derive_from_pai rule 3 action 1 type token operation modify from type variable variableValue var2 set profiles signaling sipAdaptorProfile derive_from_pai rule 3 action 1 type token operation modify to type token tokenValue urihostname set profiles signaling sipAdaptorProfile derive_from_pai state enabled commit