Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 

Modifying the User Agent SIP Header with SIP Profiles

 

 

Introduction

This document explains "How to Add/Modify the User-Agent SIP header in the SIP Profiles ?" . Sometimes SIP header Modification is required in a Service provider network where the Device rejects an unknown header and expects optional header value or parameter.

 

Problem description

 

 

When we register the Cisco Router as SIP Gateway, the Provider will see the Router's Registered name as "User-Agent: Cisco-SIPGateway/IOS-12.x" in the SIP header. Is it possible to Rename the SIP User-Agent Name ?

 

 

 

 

Sample SIP INVITE message with the User-Agent name ( field is highlighted in bold):

 

*Mar 1 00:34:45.515: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Received:
BYE sip:9000@172.16.13.87:5060 SIP/2.0
Via: SIP/2.0/UDP 172.16.184.83:5060;branch=z9hG4bK1E1E51
From: <sip:8000@172.16.184.83>;tag=85E9C7C8-A4C
To: <sip:9000@172.16.13.87>;tag=1EDC10-2436
Date: Tue, 28 Feb 2006 23:44:38 GMT
Call-ID: D110EA36-2BE211D6-801CEF21-DD62106B@172.16.13.87
User-Agent: Cisco-SIPGateway/IOS-12.x
Max-Forwards: 70
Timestamp: 1141170279
CSeq: 103 BYE
Reason: Q.850;cause=16
Content-Length: 0

 

*Mar 1 00:34:45.535: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Sent:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 172.16.184.83:5060;branch=z9hG4bK1E1E51
From: <sip:8000@172.16.184.83>;tag=85E9C7C8-A4C
To: <sip:9000@172.16.13.87>;tag=1EDC10-2436
Date: Fri, 01 Mar 2002 00:34:45 GMT
Call-ID: D110EA36-2BE211D6-801CEF21-DD62106B@172.16.13.87
Server: Cisco-SIPGateway/IOS-12.x
Timestamp: 1141170279
CSeq: 103 BYE
Reason: Q.850;cause=16
Content-Length: 0

 
 

 

 

Solution

           

Yes, It is possible to Rename the default SIP User-Agent name by Modifying the User Agent in SIP Header using Sip profile.

 

 

Configuration To Modify the User Agent SIP header

 

The following configuration modifies the User Agent - SIP header “Cisco-SIPGateway/IOS-12.x” to “Cisco-SIP-Gateway”

 

Message: INVITE

 

Action: Modify the User-Agent SIP header

 

Rules:

 

voice class sip-profiles 100

   request INVITE sip-header User-Agent modify “Cisco-SIPGateway/IOS-12.x” “Cisco-SIP-Gateway”

 

 

 

Configuration Setps

voice service voip
media flow-around
allow-connections sip to sip
sip
  sip-profiles 100

 

voice class sip-profiles 100
  request INVITE sip-header User-Agent modify “Cisco-SIPGateway/IOS-12.x” “Cisco-SIP-Gateway”

 

 

 

 

Configuration To Add the User Agent SIP header

 

The following configuration Adds the User Agent SIP header “User-Agent: CiscoSystems-SIP-GW-UA"

 

Message: 200 Response

 

Action: Add the User-Agent SIP header

 

Rules:

 

voice class sip-profiles 100

    response 200 sip-header User-Agent add "User-Agent: CiscoSystems-SIP-GW-UA"

 

 

Configuration Steps

voice service voip
media flow-around
allow-connections sip to sip
sip
  sip-profiles 100

 

voice class sip-profiles 100
   response 200 sip-header User-Agent add "User-Agent: CiscoSystems-SIP-GW-UA"

 

 

 

This document was generated from the following thread: Cisco Gateway Rename

 

Related Information

Version history
Revision #:
2 of 2
Last update:
‎08-29-2017 10:59 AM
 
Labels (1)
Everyone's tags (4)