<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        color:black;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Consolas","serif";
        color:black;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";
        color:black;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body bgcolor=white lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='color:#1F497D'>Right! Thanks.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'> sr-users-bounces@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.org] <b>On Behalf Of </b>Daniel-Constantin Mierla<br><b>Sent:</b> Thursday, January 9, 2014 5:04 PM<br><b>To:</b> Kamailio (SER) - Users Mailing List<br><b>Subject:</b> Re: [SR-Users] Max-Forwards severly decreased when invite is relayed<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'>Hello,<br><br>you have to adjust the max_limit parameter:<br><br>- <a href="http://kamailio.org/docs/modules/stable/modules/maxfwd.html#idp2652072">http://kamailio.org/docs/modules/stable/modules/maxfwd.html#idp2652072</a><br><br>Cheers,<br>Daniel<o:p></o:p></p><div><p class=MsoNormal>On 09/01/14 09:33, Grant Bagdasarian wrote:<o:p></o:p></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><p class=MsoNormal>Hello,<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>Using Kamailio 4.1.<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>I’m having some problems with the Max-Forwards header being decremented by almost 50 when Kamailio relays the INVITE to the next hop.<o:p></o:p></p><p class=MsoNormal>The INVITE is received by Kamailio with the value of 65, but when sent to the next hop it has the value of 16.<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>I’m not altering the max-forwards header value in any way in the config script. At least not explicitly. <o:p></o:p></p><p class=MsoNormal>Are there any known constructs which indirectly affect the Max-Forwards header?<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>10.0.0.16 is the Kamailio server.<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal><span lang=NL>U 10.0.0.10:5060 -> 10.0.0.16:5060</span><o:p></o:p></p><p class=MsoNormal><span lang=NL>INVITE <a href="sip:3110123456@10.0.0.16:5060">sip:3110123456@10.0.0.16:5060</a> SIP/2.0.</span><o:p></o:p></p><p class=MsoNormal><span lang=NL>Via: SIP/2.0/UDP 10.0.0.10;rport;branch=z9hG4bKeg5g6U4Dc5HeS.</span><o:p></o:p></p><p class=MsoNormal>Max-Forwards: 65.<o:p></o:p></p><p class=MsoNormal>From: "31765123456" <a href="sip:31765123456@10.0.0.10"><sip:31765123456@10.0.0.10></a>;tag=9Z7avj87Bc2gm.<o:p></o:p></p><p class=MsoNormal>To: <a href="sip:3110123456@10.0.0.16:5060"><sip:3110123456@10.0.0.16:5060></a>.<o:p></o:p></p><p class=MsoNormal>Call-ID: e089c971-f3a8-1231-c2bb-000c2941b070.<o:p></o:p></p><p class=MsoNormal>CSeq: 54291565 INVITE.<o:p></o:p></p><p class=MsoNormal>Contact: <a href="sip:mod_sofia@10.0.0.10:5060"><sip:mod_sofia@10.0.0.10:5060></a>.<o:p></o:p></p><p class=MsoNormal>User-Agent: CM Carrier SBC.<o:p></o:p></p><p class=MsoNormal>Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, NOTIFY.<o:p></o:p></p><p class=MsoNormal>Supported: timer, precondition, path, replaces.<o:p></o:p></p><p class=MsoNormal>Allow-Events: talk, hold, conference, refer.<o:p></o:p></p><p class=MsoNormal>Content-Type: application/sdp.<o:p></o:p></p><p class=MsoNormal>Content-Disposition: session.<o:p></o:p></p><p class=MsoNormal>Content-Length: 205.<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>U 10.0.0.16:5060 -> 10.0.0.31:5060<o:p></o:p></p><p class=MsoNormal>INVITE <a href="sip:3110123456@10.0.0.25:5060">sip:3110123456@10.0.0.25:5060</a> SIP/2.0.<o:p></o:p></p><p class=MsoNormal>Record-Route: <a href="sip:10.0.0.16;lr=on"><sip:10.0.0.16;lr=on></a>.<o:p></o:p></p><p class=MsoNormal>Via: SIP/2.0/UDP 10.0.0.16;branch=z9hG4bKe501.5459c149e5fa2c6c723149661017aa3d.0.<o:p></o:p></p><p class=MsoNormal>Via: SIP/2.0/UDP 10.0.0.10;rport=5060;branch=z9hG4bKeg5g6U4Dc5HeS.<o:p></o:p></p><p class=MsoNormal>Max-Forwards: 16.<o:p></o:p></p><p class=MsoNormal>From: "31765123456" <a href="sip:31765123456@10.0.0.10"><sip:31765123456@10.0.0.10></a>;tag=9Z7avj87Bc2gm.<o:p></o:p></p><p class=MsoNormal>To: <a href="sip:3110123456@10.0.0.16:5060"><sip:3110123456@10.0.0.16:5060></a>.<o:p></o:p></p><p class=MsoNormal>Call-ID: e089c971-f3a8-1231-c2bb-000c2941b070.<o:p></o:p></p><p class=MsoNormal>CSeq: 54291565 INVITE.<o:p></o:p></p><p class=MsoNormal>Contact: <a href="sip:mod_sofia@10.0.0.10:5060"><sip:mod_sofia@10.0.0.10:5060></a>.<o:p></o:p></p><p class=MsoNormal>User-Agent: CM Carrier SBC.<o:p></o:p></p><p class=MsoNormal>Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, NOTIFY.<o:p></o:p></p><p class=MsoNormal>Supported: timer, precondition, path, replaces.<o:p></o:p></p><p class=MsoNormal>Allow-Events: talk, hold, conference, refer.<o:p></o:p></p><p class=MsoNormal>Content-Type: application/sdp.<o:p></o:p></p><p class=MsoNormal>Content-Disposition: session.<o:p></o:p></p><p class=MsoNormal>Content-Length: 205.<o:p></o:p></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><br><br><br><o:p></o:p></span></p><pre>_______________________________________________<o:p></o:p></pre><pre>SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<o:p></o:p></pre><pre><a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><o:p></o:p></pre><pre><a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><o:p></o:p></pre></blockquote><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><br><br><o:p></o:p></span></p><pre>-- <o:p></o:p></pre><pre>Daniel-Constantin Mierla - <a href="http://www.asipto.com">http://www.asipto.com</a><o:p></o:p></pre><pre><a href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a><o:p></o:p></pre></div></body></html>