Cisco Support Community
Community Member

Help understand Command in SIP Profile

Hi all,

Recently we're deploying the CUBE SIP service but there is one command for SIP profile cannot be understood by us. This is one command requested by the service provider but we would like to understand the meaning of this command.


voice class sip-profiles 1

request CANCEL sip-header Max-Forwards modify ".*" "User-Agent: CUBE"


We thought Max-Forwards should be modified to some number.


Please kindly help. Thank you.




VIP Super Bronze



In the CANCEL request, your ITSP wants to  modify the max forwards header from a number to the string user0agent:CUBE. I am not sure why they want to do this since maximum forwards should be a numerical value. The sample trace below is an example of a a CANCEL method. You can see the max forwards header..this is what they are trying to modify

CANCEL sip:0171626666@ SIP/2.0
Via: SIP/2.0/UDP;branch=z9hG4bK38996EB1EC
From: <sip:02270999990@>;tag=259B0918-3C6
To: <sip:441216264431@>
Date: Mon, 22 Sep 2014 10:29:55 GMT
Call-ID: 3A9895D7-417A11E4-B2A18F4D-5D7E5E41@
CSeq: 101 CANCEL
Max-Forwards: 70
Timestamp: 1411381796
Reason: Q.850;cause=16
Content-Length: 0


According to the RFC 3261, your ITSP is wrong in attempting to change this to a value other than a number. Max-Forwards

The Max-Forwards header field serves to limit the number of hops a request can transit on the way to its destination. It consists of an integer that is decremented by one at each hop. If the Max-Forwards value reaches 0 before the request reaches its destination, it will be rejected with a 483(Too Many Hops) error response. A UAC MUST insert a Max-Forwards header field into each request it originates with a value that SHOULD be 70. This number was chosen to be sufficiently large to guarantee that a request would not be dropped in any SIP network when there were no loops, but not so large as to consume proxy resources when a loop does occur. Lower values should be used with caution and only in networks where topologies are known by the UA.

Please rate all useful posts "The essence of christianity is not the enthronement but the obliteration of self --William Barclay"
CreatePlease to create content