<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=us-ascii">
<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";}
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;}
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";}
span.EmailStyle17
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EmailStyle18
{mso-style-type:personal;
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";}
span.EmailStyle21
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.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 lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Kevin,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Thanks for the quick response… That value is listed in the kamailio lb section with a value of 10. However, in my example, I was not using the load balancer. I was just testing directly with sending an Invite
(from a softphone client) directly to the SBC and watching what came out of the SBC… I also believe that I am on the 3.1 version.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">kamailio:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> lb:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> debug: 'no'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> extra_sockets: ~<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:red"> max_forwards: 10<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> nattest_exception_ips: ~<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> pkg_mem: 16<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> port: 5080<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> security:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> dos_ban_enable: 'yes'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> dos_ban_time: 300<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> dos_reqs_density_per_unit: 50<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> dos_sampling_time_unit: 5<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> dos_whitelisted_ips: ~<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> failed_auth_attempts: 3<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> failed_auth_ban_enable: 'yes'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> failed_auth_ban_time: 3600<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> shm_mem: 466<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> start: 'yes'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> tcp_children: 8<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> tcp_max_connections: 2048<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> tls:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> enable: 'yes'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> port: 5061<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> sslcertfile: '/etc/kamailio/kamailio-selfsigned.pem'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> sslcertkeyfile: '/etc/kamailio/kamailio-selfsigned.key'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> udp_children: 8<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Looking further in that file, I have found the settings for the sems sbc component. I did chance the bindport and turned off a couple options which I did not need (like conferencing) but see nothing in that
section about max-forwards.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">sems:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> bindport: 5060<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> conference:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> enable: 'no'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> max_participants: 10<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> highport: 50000<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> lowport: 40001<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> sbc:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> calltimer_enable: 'yes'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> calltimer_max: 21600<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> outbound_timeout: 6000<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> sdp_filter:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> codecs: PCMA,PCMU,telephone-event<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> enable: 'no'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> mode: whitelist<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> session_timer:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> enable: 'yes'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> max_timer: 7200<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> min_timer: 90<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> session_expires: 300<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> vsc:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> block_override_code: 80<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> cfb_code: 90<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> cfna_code: 93<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> cft_code: 92<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> cfu_code: 72<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> clir_code: 31<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> enable: 'no'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> reminder_code: 55<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> speedial_code: 50<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> voicemail_number: 2000<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> xmlrpcport: 8090<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Thanks,<br>
Larry<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"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Kevin Masse [mailto:kmasse@questblue.com]
<br>
<b>Sent:</b> Wednesday, January 08, 2014 1:20 PM<br>
<b>To:</b> Schaefer, Larry; spce-user@lists.sipwise.com<br>
<b>Subject:</b> RE: [Spce-user] Missing Max-Forwards Header<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">Good afternoon Larry, take a look in your /etc/ngcp-config/config.yml file around line 60 +<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">You should have something like this: max_forwards=70<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">kamailio:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> lb:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> b2buas:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> - sip\:127.0.0.1\:5080<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> extra_sockets: ~<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> max_forwards: 70<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> pkg_mem: 16<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> port: 5060<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> proxies:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> - sip\:127.0.0.1\:5062<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">See if that will do away with the error. I do see in your example below in RED Max-Forwards: 70 but lets verify the config.yml<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I should also mention my information is related to 2.8<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Kevin<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><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"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">
<a href="mailto:spce-user-bounces@lists.sipwise.com">spce-user-bounces@lists.sipwise.com</a> [<a href="mailto:spce-user-bounces@lists.sipwise.com">mailto:spce-user-bounces@lists.sipwise.com</a>]
<b>On Behalf Of </b>Schaefer, Larry<br>
<b>Sent:</b> Wednesday, January 08, 2014 2:22 PM<br>
<b>To:</b> <a href="mailto:spce-user@lists.sipwise.com">spce-user@lists.sipwise.com</a><br>
<b>Subject:</b> [Spce-user] Missing Max-Forwards Header<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hello… I am just getting started using SEMS with SBC application. I am seeing an issue where after I hang up a call, the BYE being sent to my SIP application server does not contain a Max-Forwards header. This causes my SIP stack throw
the following error: “<span style="font-size:10.0pt;font-family:Consolas;color:black">Missing a required header : Max-Forwards”.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:black"><o:p> </o:p></span></p>
<p class="MsoNormal">The BYE message going into the SBC has an Max-Forwards, but when it leaves the SBC, it does not. The logs below are from the sems.log file that show the messages I am seeing. The final message is the one that I am having an issue with.<span style="font-size:10.0pt;font-family:Consolas;color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:black"><o:p> </o:p></span></p>
<p class="MsoNormal">Original Invite to SBC:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Jan 8 19:08:13 sipwise sems[12819]: [#7fe230676700] [run, udp_trsp.cpp:213] DEBUG: vv M [|] u recvd msg via UDP vv#012--++--#012<span style="color:red">INVITE</span>
<a href="sip:17193860006@10.81.224.232">sip:17193860006@10.81.224.232</a> SIP/2.0#015#012Via: SIP/2.0/UDP 10.2.62.78:44912;branch=z9hG4bK-d8754z-4058c4102839a274-1---d8754z-;rport#015#012<span style="color:red">Max-Forwards: 70</span>#015#012Contact: <<a href="sip:3333@10.2.62.78:44912">sip:3333@10.2.62.78:44912</a>>#015#012To:
"100"<<a href="sip:17193860006@10.81.224.232">sip:17193860006@10.81.224.232</a>>#015#012From: "3333"<<a href="sip:3333@10.2.62.78">sip:3333@10.2.62.78</a>>;tag=d6147351#015#012<span style="color:red">Call-ID: MjNhZDViYTRmZTdiNWQwODc1NGU4MGU5YTQwOTllZTE.</span>#015#012CSeq:
1 INVITE#015#012Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO#015#012Content-Type: application/sdp#015#012User-Agent: eyeBeam release 1105z stamp 59031#015#012Content-Length: 180#015#012#015#012v=0#015#012o=- 9 2 IN IP4
10.2.62.78#015#012s=CounterPath eyeBeam 1.5#015#012c=IN IP4 10.2.62.78#015#012t=0 0#015#012m=audio 55426 RTP/AVP 0 101#015#012a=fmtp:101 0-15#015#012a=rtpmap:101 telephone-event/8000#015#012a=sendrecv#015#012--++--<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">New Invite from SBC to my SIP Server:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Jan 8 19:08:13 sipwise sems[12819]: [#7fe231c8c700] [send, transport.cpp:98] DEBUG: send msg#012--++--#012<span style="color:red">INVITE</span>
<a href="sip:17193860006@10.81.224.232">sip:17193860006@10.81.224.232</a> SIP/2.0#015#012Via: SIP/2.0/UDP 10.81.224.232;branch=z9hG4bKCSNunal9;rport#015#012From: "3333" <<a href="sip:3333@10.2.62.78">sip:3333@10.2.62.78</a>>;tag=3221B159-52CDA21D000EE81D-31D8D700#015#012To:
"100"<<a href="sip:17193860006@10.81.224.232">sip:17193860006@10.81.224.232</a>>#015#012CSeq: 10 INVITE#015#012<span style="color:red">Call-ID: MjNhZDViYTRmZTdiNWQwODc1NGU4MGU5YTQwOTllZTE._leg2</span>#015#012Contact: <<a href="sip:10.81.224.232:5060">sip:10.81.224.232:5060</a>>#015#012<span style="color:red">Max-Forwards:
70</span>#015#012Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO#015#012User-Agent: eyeBeam release 1105z stamp 59031#015#012P-Source-IP: 10.2.62.78#015#012P-Source-Port: 44912#015#012Content-Type: application/sdp#015#012Content-Length:
166#015#012#015#012v=0#015#012o=- 9 2 IN IP4 10.2.62.78#015#012s=CounterPath eyeBeam 1.5#015#012c=IN IP4 10.81.224.232#015#012t=0 0#015#012m=audio 40002 RTP/AVP 0 101#015#012a=rtpmap:101 telephone-event/8000#015#012a=sendrecv#015#012--++--<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Bye sent to SBC:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Jan 8 19:08:18 sipwise sems[12819]: [#7fe230676700] [run, udp_trsp.cpp:213] DEBUG: vv M [|] u recvd msg via UDP vv#012--++--#012<span style="color:red">BYE</span>
<a href="sip:17193860006@10.81.224.232:5060">sip:17193860006@10.81.224.232:5060</a> SIP/2.0#015#012Via: SIP/2.0/UDP 10.2.62.78:44912;branch=z9hG4bK-d8754z-7b597f277435f31e-1---d8754z-;rport#015#012<span style="color:red">Max-Forwards: 70</span>#015#012Contact:
<<a href="sip:3333@10.2.62.78:44912">sip:3333@10.2.62.78:44912</a>>#015#012To: "100"<<a href="sip:17193860006@10.81.224.232">sip:17193860006@10.81.224.232</a>>;tag=7E3767AC-52CDA21D000EE063-30676700#015#012From: "3333"<<a href="sip:3333@10.2.62.78">sip:3333@10.2.62.78</a>>;tag=d6147351#015#012<span style="color:red">Call-ID:
MjNhZDViYTRmZTdiNWQwODc1NGU4MGU5YTQwOTllZTE.</span>#015#012CSeq: 2 BYE#015#012User-Agent: eyeBeam release 1105z stamp 59031#015#012Reason: SIP;description="User Hung Up"#015#012Content-Length: 0#015#012#015#012--++--<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Bye sent to my SIP server (no Max-Forwards header):<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Jan 8 19:08:18 sipwise sems[12819]: [#7fe231c8c700] [send, transport.cpp:98] DEBUG: send msg#012--++--#012<span style="color:red">BYE</span>
<a href="sip:17193860006@10.2.62.78">sip:17193860006@10.2.62.78</a> SIP/2.0#015#012Via: SIP/2.0/UDP 10.81.224.232;branch=z9hG4bKBQ3b.aXk;rport#015#012From: "3333" <<a href="sip:3333@10.2.62.78">sip:3333@10.2.62.78</a>>;tag=3221B159-52CDA21D000EE81D-31D8D700#015#012To:
"100"<<a href="sip:17193860006@10.81.224.232">sip:17193860006@10.81.224.232</a>>;tag=367319031#015#012CSeq: 11 BYE#015#012<span style="color:red">Call-ID: MjNhZDViYTRmZTdiNWQwODc1NGU4MGU5YTQwOTllZTE._leg2</span>#015#012Content-Length: 0#015#012#015#012--++--<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Is there anything I am doing wrong? I have been searching, but not found any settings that seem to deal with Max-Forwards.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal">Larry Schaefer<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>