Noprint | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
This rule changes username in Contact header
Code Block |
---|
set profiles signaling sipAdaptorProfile CONTACT_HEADER_MODIFY rule 1 |
Set the criteria.
Code Block |
---|
set profiles signaling sipAdaptorProfile CONTACT_HEADER_MODIFY rule 1 criterion 1 type message set profiles signaling sipAdaptorProfile CONTACT_HEADER_MODIFY rule 1 criterion 2 type header |
Configure the Message criteria.
Code Block |
---|
set profiles signaling sipAdaptorProfile CONTACT_HEADER_MODIFY rule 1 criterion 1 type message message messageTypes requestAll set profiles signaling sipAdaptorProfile CONTACT_HEADER_MODIFY rule 1 criterion 1 type message message methodType invite |
Configure the Header criteria.
Code Block |
---|
set profiles signaling sipAdaptorProfile CONTACT_HEADER_MODIFY rule 1 criterion 2 type header header condition exist set profiles signaling sipAdaptorProfile CONTACT_HEADER_MODIFY rule 1 criterion 2 type header header name "contact" set profiles signaling sipAdaptorProfile CONTACT_HEADER_MODIFY rule 1 criterion 2 type header header numberOfInstances number 1 qualifier equal |
Store the From username in var1
Code Block |
---|
set profiles signaling sipAdaptorProfile CONTACT_HEADER_MODIFY rule 1 action 1 type token set profiles signaling sipAdaptorProfile CONTACT_HEADER_MODIFY rule 1 action 1 operation store set profiles signaling sipAdaptorProfile CONTACT_HEADER_MODIFY rule 1 action 1 from type token tokenValue uriusername set profiles signaling sipAdaptorProfile CONTACT_HEADER_MODIFY rule 1 action 1 to type variable variableValue var1 |
Enable SIP Adaptor Profile
Code Block |
---|
set profiles signaling sipAdaptorProfile CONTACT_HEADER_MODIFY state enabled commit |
Associate this with the SIP service group
Code Block |
---|
set addressContext defaultAddressContext zone ZONE1 sipTrunkGroup TG_SIPART_IAD signaling messageManipulation inputAdapterProfile CONTACT_HEADER_MODIFY\par commit |
Pagebreak |
---|