<div dir="ltr"><div><div>Hi Mattwhew,<br><br></div>Can you paste logs from proxy and lb?<br><br></div>Regards,<br>Ivan<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jan 20, 2014 at 11:54 AM, Matthew Ogden <span dir="ltr"><<a href="mailto:matthew@tenacit.net" target="_blank">matthew@tenacit.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div link="blue" vlink="purple" lang="EN-ZA"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">As per <a href="http://kamailio.org/docs/modules/stable/modules/tm.html#tm.f.t_set_fr" target="_blank">http://kamailio.org/docs/modules/stable/modules/tm.html#tm.f.t_set_fr</a></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">(I see it is used else where in the proxy.tt2 file too).</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I tried putting this in proxy.custom.tt2 line 1076 (part of ROUTE_PSTN)</span></p><p class="MsoNormal" style="text-indent:36.0pt">

<span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p><p class="MsoNormal" style="text-indent:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">#our fax testing is on subscriber with ext ID TN001FAX</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">               if($avp(s:caller_ext_subscriber_id) == "TN001FAX")</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">               {</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">                  t_set_fr(30000);</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">                  xlog("L_INFO", "Changed outbound timer for this call to 30000ms for faxing\n");</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">               }</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">               </span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">It logs it my proxy log, but 9 seconds is still the timeout of the INVITE</span></p><p class="MsoNormal">

<span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p><div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt"><div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">

<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US"> Matthew Ogden [mailto:<a href="mailto:matthew@tenacit.net" target="_blank">matthew@tenacit.net</a>] <br>

<b>Sent:</b> 19 January 2014 06:36 PM<br><b>To:</b> 'Ivan Milivojevic'<br><b>Cc:</b> 'Spce-user'<br><b>Subject:</b> RE: [Spce-user] Spce timeout for T.38 Reinvites</span></p></div></div><div class="im"><p class="MsoNormal">

 </p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Thanks Ivan</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">That’s definitely what I’m looking for, but perhaps someone out there can tell me in which section of the proxy/lb that I can have an override of the timer based on the subscriber name only. (I only need one subscriber with a much longer timeout).</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Regards</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p></div><div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt"><div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US"> Ivan Milivojevic [<a href="mailto:edesibe@gmail.com" target="_blank">mailto:edesibe@gmail.com</a>] <br>

<b>Sent:</b> 19 January 2014 04:51 PM</span></p><div><div class="h5"><br><b>To:</b> Matthew Ogden<br><b>Cc:</b> Spce-user<br><b>Subject:</b> Re: [Spce-user] Spce timeout for T.38 Reinvites</div></div><p></p></div></div><div>
<div class="h5"><p class="MsoNormal"> </p><div><div><p class="MsoNormal" style="margin-bottom:12.0pt">
Hi Matthew, </p></div><p class="MsoNormal">Maybe you can try with </p><h3><a name="143af49d43440b1f_AEN223"><code><span style="font-size:10.0pt">fr_timer_avp</span></code></a></h3><h3>check also <a href="http://www.iptel.org/faq/sertimers" target="_blank">http://www.iptel.org/faq/sertimers</a></h3>

<p>Regards,</p><p>Ivan</p><p> </p></div><div><p class="MsoNormal" style="margin-bottom:12.0pt"> </p><div><p class="MsoNormal">On Sat, Jan 18, 2014 at 9:56 AM, Matthew Ogden <<a href="mailto:matthew@tenacit.net" target="_blank">matthew@tenacit.net</a>> wrote:</p>

<div><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Thanks Ivan! </span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">There is obviously no way to make kamailio have different timeouts for different INVITE (T.38 vs the rest) types then?</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p><div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt"><div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US"> Ivan Milivojevic [mailto:<a href="mailto:edesibe@gmail.com" target="_blank">edesibe@gmail.com</a>] <br>

<b>Sent:</b> 17 January 2014 08:58 PM<br><b>To:</b> Matthew Ogden<br><b>Cc:</b> Spce-user<br><b>Subject:</b> Re: [Spce-user] Spce timeout for T.38 Reinvites</span></p></div></div><div><div><p class="MsoNormal"> </p>
<div><div><div><div><p class="MsoNormal" style="margin-bottom:12.0pt">HI Matthew,</p></div><p class="MsoNormal" style="margin-bottom:12.0pt">You can check timeout on kamailio-proxy side...</p></div><div><p class="MsoNormal">

# kamailio.cfg.tt2</p></div><div><p class="MsoNormal" style="margin-bottom:12.0pt">modparam("tm", "fr_timer", 9000) ### based on doc ### Timer which hits if no final reply for a request or ACK for a negative INVITE reply arrives (in seconds). <br>

modparam("tm", "fr_inv_timer", 180000)</p></div><p class="MsoNormal">Regards,</p></div><p class="MsoNormal">Ivan</p><div><p class="MsoNormal"> </p></div></div><div><p class="MsoNormal" style="margin-bottom:12.0pt">

 </p><div><p class="MsoNormal">On Fri, Jan 17, 2014 at 6:07 PM, Matthew Ogden <<a href="mailto:matthew@tenacit.net" target="_blank">matthew@tenacit.net</a>> wrote:</p><div><div><p class="MsoNormal">HI </p>
<p class="MsoNormal"> </p><p class="MsoNormal">What sets the timeout for a T38 reinvite on SPCE? My timeout is 4000ms for Sems in config.yml, so clearly its not that, since this took exactly 9000ms. </p><p class="MsoNormal">

 </p><p class="MsoNormal">What timer/timeout made my SIP server cancel the reinvite? The reason I need a longer timeout is, the recipient company is answering the call, then forwarding the through a few rings (extra time before the sync can actually be caught for t.38).</p>

<p class="MsoNormal"> </p><p class="MsoNormal">in this wireshark call graph, </p><p class="MsoNormal">The left line is my subscriber,</p><p class="MsoNormal">The middle line is sipserver</p><p class="MsoNormal">
 </p><p class="MsoNormal">Here is picture,</p><p class="MsoNormal"><img src="cid:image001.png@01CF15DD.FCA2D800" border="0" height="573" width="455"></p><p class="MsoNormal"> </p><p class="MsoNormal">
Below and attached are the text representation</p><p class="MsoNormal">Conv.| Time    | subscriber                          | Peer                           |</p><p class="MsoNormal">     |         |                   | my server     |                   </p>

<p class="MsoNormal">2    |18:46:27.453879|         INVITE SDP (g711A)            |                   |SIP From: <sip:2XXXXXXXXX@subscriberip:5060 To:<sip:0XXXXXXXXX@spceIP:5060</p><p class="MsoNormal">     |         |(5060)   ------------------>  (5060)   |                   |</p>

<p class="MsoNormal">2    |18:46:27.454546|         100 Trying|                   |                   |SIP Status</p><p class="MsoNormal">     |         |(5060)   <------------------  (5060)   |                   |</p>

<p class="MsoNormal">2    |18:46:27.456403|         407 Proxy Authentication Required          |                   |SIP Status</p><p class="MsoNormal">     |         |(5060)   <------------------  (5060)   |                   |</p>

<p class="MsoNormal">2    |18:46:27.510806|         ACK       |                   |                   |SIP Request</p><p class="MsoNormal">     |         |(5060)   ------------------>  (5060)   |                   |</p>

<p class="MsoNormal">2    |18:46:27.514119|         INVITE SDP (g711A)            |                   |SIP From: <sip:2XXXXXXXXX@subscriberip:5060 To:<sip:0XXXXXXXXX@spceIP:5060</p><p class="MsoNormal">     |         |(5060)   ------------------>  (5060)   |                   |</p>

<p class="MsoNormal">2    |18:46:27.514636|         100 Trying|                   |                   |SIP Status</p><p class="MsoNormal">     |         |(5060)   <------------------  (5060)   |                   |</p>

<p class="MsoNormal">-----------------------------------------------------------------------------</p><p class="MsoNormal">3    |18:46:27.522117|                   |         INVITE SDP (g711A)            |SIP From: <sip:2XXXXXXXXX@subscriberip To:<sip:2XXXXXXXXXX@peerip</p>

<p class="MsoNormal">     |         |                   |(5060)   ------------------>  (5060)   |</p><p class="MsoNormal">3    |18:46:27.536103|                   |         100 Giving a try              |SIP Status</p>

<p class="MsoNormal">     |         |                   |(5060)   <------------------  (5060)   |</p><p class="MsoNormal">3    |18:46:28.648929|                   |         200 OK SDP (g711A)            |SIP Status</p>

<p class="MsoNormal">     |         |                   |(5060)   <------------------  (5060)   |</p><p class="MsoNormal">-----------------------------------------------------------------------------</p><p class="MsoNormal">

2    |18:46:28.650490|         200 OK SDP (g711A)            |                   |SIP Status</p><p class="MsoNormal">     |         |(5060)   <------------------  (5060)   |                   |</p><p class="MsoNormal">

2    |18:46:28.708976|         ACK       |                   |                   |SIP Request</p><p class="MsoNormal">     |         |(5060)   ------------------>  (5060)   |                   |</p><p class="MsoNormal">

-----------------------------------------------------------------------------</p><p class="MsoNormal">3    |18:46:28.710179|                   |         ACK       |                   |SIP Request</p><p class="MsoNormal">

     |         |                   |(5060)   ------------------>  (5060)   |</p><p class="MsoNormal">-----------------------------------------------------------------------------</p><p class="MsoNormal">2    |18:46:28.712202|         INVITE SDP (t38)              |                   |SIP From: <sip:2XXXXXXXXX@subscriberip:5060 To:<sip:0@spceIP:5060</p>

<p class="MsoNormal">     |         |(5060)   ------------------>  (5060)   |                   |</p><p class="MsoNormal">2    |18:46:28.712970|         100 Trying|                   |                   |SIP Status</p>

<p class="MsoNormal">     |         |(5060)   <------------------  (5060)   |                   |</p><p class="MsoNormal">-----------------------------------------------------------------------------</p><p class="MsoNormal">

3    |18:46:28.713577|                   |         INVITE SDP (t38)              |SIP From: <sip:2XXXXXXXXX@subscriberip To:<sip:2XXXXXXXXXX@peerip</p><p class="MsoNormal">     |         |                   |(5060)   ------------------>  (5060)   |</p>

<p class="MsoNormal">3    |18:46:28.717171|                   |         100 Giving a try              |SIP Status</p><p class="MsoNormal">     |         |                   |(5060)   <------------------  (5060)   |</p>

<p class="MsoNormal">-----------------------------------------------------------------------------</p><p class="MsoNormal">2    |18:46:37.713078|         408 Request Timeout           |                   |SIP Status</p>
<p class="MsoNormal">     |         |(5060)   <------------------  (5060)   |                   |</p><p class="MsoNormal">2    |18:46:37.768451|         ACK       |                   |                   |SIP Request</p>

<p class="MsoNormal">     |         |(5060)   ------------------>  (5060)   |                   |</p><p class="MsoNormal">2    |18:46:37.770487|         BYE       |                   |                   |SIP Request</p>

<p class="MsoNormal">     |         |(5060)   ------------------>  (5060)   |                   |</p><p class="MsoNormal">2    |18:46:37.771110|         100 Trying|                   |                   |SIP Status</p>

<p class="MsoNormal">     |         |(5060)   <------------------  (5060)   |                   |</p><p class="MsoNormal">2    |18:46:37.772098|         200 OK    |                   |                   |SIP Status</p>

<p class="MsoNormal">     |         |(5060)   <------------------  (5060)   |                   |</p><p class="MsoNormal">-----------------------------------------------------------------------------</p><p class="MsoNormal">

3    |18:46:37.772169|                   |         ACK       |                   |SIP Request</p><p class="MsoNormal">     |         |                   |(5060)   ------------------>  (5060)   |</p><p class="MsoNormal">

3    |18:46:37.772244|                   |         BYE       |                   |SIP Request</p><p class="MsoNormal">     |         |                   |(5060)   ------------------>  (5060)   |</p><p class="MsoNormal">

3    |18:46:37.776329|                   |         BYE       |                   |SIP Request</p><p class="MsoNormal">     |         |                   |(5060)   <------------------  (5060)   |</p><p class="MsoNormal">

3    |18:46:37.776817|                   |         200 OK    |                   |SIP Status</p><p class="MsoNormal">     |         |                   |(5060)   ------------------>  (5060)   |</p><p class="MsoNormal">

3    |18:46:37.778354|                   |         200 OK    |                   |SIP Status</p><p class="MsoNormal">     |         |                   |(5060)   <------------------  (5060)   |</p><p class="MsoNormal">

3    |18:48:28.920672|                   |         408 Request Timeout           |SIP Status</p><p class="MsoNormal">     |         |                   |(5060)   <------------------  (5060)   |</p><p class="MsoNormal">

3    |18:48:28.921215|                   |         ACK       |                   |SIP Request</p><p class="MsoNormal">     |         |                   |(5060)   ------------------>  (5060)   |</p></div></div><p class="MsoNormal" style="margin-bottom:12.0pt">

<br>_______________________________________________<br>Spce-user mailing list<br><a href="mailto:Spce-user@lists.sipwise.com" target="_blank">Spce-user@lists.sipwise.com</a><br><a href="http://lists.sipwise.com/listinfo/spce-user" target="_blank">http://lists.sipwise.com/listinfo/spce-user</a></p>

</div><p class="MsoNormal"> </p></div></div></div></div></div></div></div><p class="MsoNormal"> </p></div></div></div></div></div></div></div>
</blockquote></div><br></div>