ofiles 100 response 200 sip-header User-Agent add "User-Agent: CiscoSystems-SIP-GW-UA" Chapter 8: Interworking 147 Example 8-3 shows a number of additional examples that remove an element from a SIP message. In example (a), the Cisco-Guid SIP header is removed from all requests and responses. In example (b), the Reason SIP header is removed from all BYE and CANCEL messages. In example (c), the Server SIP header is removed from all 100 and 180 responses. Example 8-3 SIP Normalization Remove Examples voice class sip-profiles 100 request ANY sip-header Cisco-Guid remove response ANY sip-header Cisco-Guid remove voice class sip-profiles 100 request BYE sip-header Reason remove request CANCEL sip-header Reason remove voice class sip-profiles 100 response 100 sip-header Server remove response 180 sip-header Server remove Example 8-4 shows a number of additional examples that Modify an element of a SIP message. In example (a), the From: SIP header is changed to the gateway@gw-ip-address for- mat in INVITE messages; for example, 2222000020@9.13.24.7 is changed to gateway@9.13.24.7. In example (b), the CiscoSystems-SIP-GW-UserAgent SDP header is replaced with "_ in the O= line of INVITE messages. In example (c), a sip URL is converted to a tel URL in all INVITE messages; for example, from sip:22220000205060 to tel:2222000020. Example 8-4 SIP Normalization Modify Examples voice class sip-profiles 100 request INVITE sip-header From modify (<.*:)(.*@)""\1gateway@" voice class sip-profiles 100 request INVITE sdp-header Session-Owner modify "CiscoSystems-SIP-GW-UserAgent" " " " continues 148 SIP Trunking Example 8-4 (continued) voice class sip-profiles 100 request INVITE sip-header SIP-Req-URI modify "sip:(.*)@[^]+"" "tel:\1" request INVITE sip-header From modify "<sip: (.*)@.*>" "<tel:\1>" request INVITE sip-header To modify "<sip: (.*)@.*>" "<tel:|1>" The preceding examples provided an illustration of the command line interface syntax used by the CUBE to do SIP message manipulation. Additional examples and descrip- tions of 