<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hello.</p>
    <p><br>
    </p>
    <p>AFAIK rtpproxy timeout socket requires very special version of
      rtpproxy itself and a patch. Personally, I've gived up to make
      this feature work.<br>
    </p>
    <p><br>
    </p>
    <p>Now I use dialog-based keepalives to detect and tear down dead
      sessions.</p>
    <p><br>
    </p>
    <p><br>
    </p>
    <br>
    <div class="moz-cite-prefix">23.07.2018 9:42, Hamid Hashmi пишет:<br>
    </div>
    <blockquote type="cite"
cite="mid:SIXPR0301MB12258D9294D085C3B99D5E62E0560@SIXPR0301MB1225.apcprd03.prod.outlook.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
      <div style="font-family: Calibri, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(38, 114, 236);">
        waiting for suggestions. </div>
      <div style="font-family: Calibri, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(38, 114, 236);">
        <br>
      </div>
      <div id="signature">
        <p class="ecxMsoNormal">Regards</p>
        <p class="ecxMsoNormal"><br>
        </p>
        <p class="ecxMsoNormal"><a name="_MailAutoSig" target="_blank"
            moz-do-not-send="true"><b><span style="font-size:8.0pt;
                font-family:"Verdana","sans-serif";
                font-variant:small-caps; color:navy">Hamid R. Hashmi</span></b></a></p>
        <p class="ecxMsoNormal"><span style="font-size:8.0pt;
            font-family:"Verdana","sans-serif";
            color:#1E487C">______________________________</span><span
            style="font-size:8.0pt;
            font-family:"Verdana","sans-serif";
            color:#00007D">  </span></p>
        <p class="ecxMsoNormal"><a
            href="http://www.trgworld.com/pakistan" target="_blank"
            style="font-size:12pt" moz-do-not-send="true"><span
              style="font-size:8.0pt;
              font-family:"Verdana","sans-serif";
              color:navy">www.hrhashmi.blogspot.com</span></a></p>
        <p class="ecxMsoNormal"><span style="color:#1F497D"></span></p>
        <p class="ecxMsoNormal"><span style="font-size:8.0pt;
            font-family:"Verdana","sans-serif";
            color:#1F497D">Mobile: +92 300 968 22 85 ; +92 322 636 32 66</span><span
            style="font-size:8.0pt;
            font-family:"Verdana","sans-serif";
            color:navy"><br>
            Email: </span><span style="font-size:8.0pt;
            font-family:"Verdana","sans-serif";
            color:blue"><a href="mailto:hamidraza.hashmi@trgworld.com"
              moz-do-not-send="true">hamid.hashmi006@gmail.com</a>; </span><u
            style="color:rgb(0,0,255); font-family:Verdana,sans-serif;
            font-size:10.6667px"><a class="moz-txt-link-abbreviated" href="mailto:hamid2kviii@hotmail.com">hamid2kviii@hotmail.com</a></u></p>
        <p class="ecxMsoNormal"><span style="color:rgb(0,0,128);
            font-family:Verdana,sans-serif; font-size:10.6667px">Sype:  </span><font
            face="Verdana, sans-serif" color="#0000ff"><span
              style="font-size:10.6667px"><u>hamidrhashmi</u></span></font></p>
      </div>
      <hr style="display:inline-block;width:98%" tabindex="-1">
      <div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt"
          face="Calibri, sans-serif" color="#000000"><b>From:</b> Hamid
          Hashmi <a class="moz-txt-link-rfc2396E" href="mailto:hamid2kviii@hotmail.com"><hamid2kviii@hotmail.com></a><br>
          <b>Sent:</b> Thursday, July 19, 2018 1:05 PM<br>
          <b>To:</b> Hamid Hashmi; Kamailio (SER) - Users Mailing List<br>
          <b>Subject:</b> Re: Module RTPPROXY param Timeout_Socket not
          Working</font>
        <div> </div>
      </div>
      <meta content="text/html; charset=us-ascii">
      <style type="text/css" style="display:none">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
      <div dir="ltr">
        <div style="font-family:Calibri,Helvetica,sans-serif;
          font-size:12pt; color:rgb(38,114,236)">
          I started the RTPproxy with the following command. </div>
        <div style="font-family:Calibri,Helvetica,sans-serif;
          font-size:12pt; color:rgb(38,114,236)">
          <br>
        </div>
        <div style="font-family:Calibri,Helvetica,sans-serif;
          font-size:12pt; color:rgb(38,114,236)">
          <pre style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; font-size:11.9px; margin-top:0px!important; margin-bottom:0px!important; padding:16px; overflow:auto; line-height:1.45; background-color:rgb(246,248,250); border-radius:3px; color:rgb(36,41,46)"><code style="margin:0px; background:transparent; border-radius:3px; display:inline">/usr/bin/rtpproxy -u root -A [PUBLIC IP] -F -f -T 45 -i -2 -l 192.168.3.22 -b -m 35000 -M 65000 -s udp:127.0.0.1:7722 -n tcp:127.0.0.1:8000 -d DBUG</code></pre>
          <br>
        </div>
        <div style="font-family:Calibri,Helvetica,sans-serif;
          font-size:12pt; color:rgb(38,114,236)">
          <br>
        </div>
        <div id="x_signature">
          <p class="x_ecxMsoNormal">Regards</p>
          <p class="x_ecxMsoNormal"><br>
          </p>
          <p class="x_ecxMsoNormal"><a name="x__MailAutoSig"
              target="_blank" moz-do-not-send="true"><b><span
                  style="font-size:8.0pt;
                  font-family:"Verdana","sans-serif";
                  font-variant:small-caps; color:navy">Hamid R. Hashmi</span></b></a></p>
          <p class="x_ecxMsoNormal"><span style="font-size:8.0pt;
              font-family:"Verdana","sans-serif";
              color:#1E487C">______________________________</span><span
              style="font-size:8.0pt;
              font-family:"Verdana","sans-serif";
              color:#00007D">  </span></p>
          <p class="x_ecxMsoNormal"><a
              href="http://www.trgworld.com/pakistan" target="_blank"
              style="font-size:12pt" moz-do-not-send="true"><span
                style="font-size:8.0pt;
                font-family:"Verdana","sans-serif";
                color:navy">www.hrhashmi.blogspot.com</span></a></p>
          <p class="x_ecxMsoNormal"><span style="color:#1F497D"></span></p>
          <p class="x_ecxMsoNormal"><span style="font-size:8.0pt;
              font-family:"Verdana","sans-serif";
              color:#1F497D">Mobile: +92 300 968 22 85 ; +92 322 636 32
              66</span><span style="font-size:8.0pt;
              font-family:"Verdana","sans-serif";
              color:navy"><br>
              Email: </span><span style="font-size:8.0pt;
              font-family:"Verdana","sans-serif";
              color:blue"><a href="mailto:hamidraza.hashmi@trgworld.com"
                moz-do-not-send="true">hamid.hashmi006@gmail.com</a>; </span><u
              style="color:rgb(0,0,255); font-family:Verdana,sans-serif;
              font-size:10.6667px"><a class="moz-txt-link-abbreviated" href="mailto:hamid2kviii@hotmail.com">hamid2kviii@hotmail.com</a></u></p>
          <p class="x_ecxMsoNormal"><span style="color:rgb(0,0,128);
              font-family:Verdana,sans-serif; font-size:10.6667px">Sype:
               </span><font face="Verdana, sans-serif" color="#0000ff"><span
                style="font-size:10.6667px"><u>hamidrhashmi</u></span></font></p>
        </div>
        <hr tabindex="-1" style="display:inline-block; width:98%">
        <div id="x_divRplyFwdMsg" dir="ltr"><font style="font-size:11pt"
            face="Calibri, sans-serif" color="#000000"><b>From:</b>
            sr-users <a class="moz-txt-link-rfc2396E" href="mailto:sr-users-bounces@lists.kamailio.org"><sr-users-bounces@lists.kamailio.org></a> on
            behalf of Hamid Hashmi <a class="moz-txt-link-rfc2396E" href="mailto:hamid2kviii@hotmail.com"><hamid2kviii@hotmail.com></a><br>
            <b>Sent:</b> Thursday, July 19, 2018 12:59 PM<br>
            <b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a><br>
            <b>Subject:</b> [SR-Users] Module RTPPROXY param
            Timeout_Socket not Working</font>
          <div> </div>
        </div>
        <meta content="text/html; charset=iso-8859-1">
        <style type="text/css" style="display:none">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
        <div dir="ltr">
          <div style="font-family:Calibri,Helvetica,sans-serif;
            font-size:12pt; color:rgb(38,114,236)">
            <p style="margin-top:0px!important; margin-bottom:16px;
              color:rgb(36,41,46); font-size:14px;
              background-color:rgb(255,255,255)">
              Kamailio didn't start listening on IP mentioned in Module
              RTPPROXY parameter<span> </span><a
href="https://kamailio.org/docs/modules/5.1.x/modules/rtpproxy.html#rtpproxy.p.timeout_socket"
                rel="nofollow" style="color:rgb(3,102,214)"
                moz-do-not-send="true">Timeout_Socket</a>.</p>
            <p style="margin-top:0px; margin-bottom:16px;
              color:rgb(36,41,46); font-size:14px;
              background-color:rgb(255,255,255)">
              Below is my configuration file.</p>
            <pre style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; font-size:11.9px; margin-top:0px; margin-bottom:16px; padding:16px; overflow:auto; line-height:1.45; background-color:rgb(246,248,250); border-radius:3px; color:rgb(36,41,46)"><code style="margin:0px; background:transparent; border-radius:3px; display:inline"><pre style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; margin-top:0px!important; margin-bottom:0px!important; padding:16px; overflow:auto; line-height:1.45; background-color:rgb(246,248,250); border-radius:3px"><code style="margin:0px; background:transparent; border-radius:3px; display:inline">loadmodule "rtpproxy.so"
modparam("rtpproxy", "rtpproxy_sock", "udp:127.0.0.1:7722")
modparam("rtpproxy", "rtpproxy_tout", 1)
modparam("rtpproxy", "rtpproxy_retr", 2)
modparam("rtpproxy", "timeout_socket", "xmlrpc:<a class="moz-txt-link-freetext" href="http://127.0.0.1:8000/RPC2">http://127.0.0.1:8000/RPC2</a>")

loadmodule "xmlrpc.so"
modparam("xmlrpc", "route", "XMLRPC");
modparam("xmlrpc", "mode", 1)
modparam("xmlrpc", "url_match", "^/RPC2")</code></pre></code></pre>
            <p style="margin-top:0px; margin-bottom:16px;
              color:rgb(36,41,46); font-size:14px;
              background-color:rgb(255,255,255)">
              when I type a command</p>
            <p style="margin-top:0px; margin-bottom:16px;
              color:rgb(36,41,46); font-size:14px;
              background-color:rgb(255,255,255)">
              <code
                style="font-family:SFMono-Regular,Consolas,"Liberation
                Mono",Menlo,Courier,monospace; font-size:11.9px;
                padding:0.2em 0.4em; margin:0px;
                background-color:rgba(27,31,35,0.05); border-radius:3px">$
                netstat -nlp</code></p>
            <p style="margin-top:0px; margin-bottom:0px!important;
              color:rgb(36,41,46); font-size:14px;
              background-color:rgb(255,255,255)">
              it only shows SIP listening ports. Kamailio should also
              start listening on<span> </span><code
                style="font-family:SFMono-Regular,Consolas,"Liberation
                Mono",Menlo,Courier,monospace; font-size:11.9px;
                padding:0.2em 0.4em; margin:0px;
                background-color:rgba(27,31,35,0.05); border-radius:3px">127.0.0.1:8000.</code></p>
            <br>
          </div>
          <div style="font-family:Calibri,Helvetica,sans-serif;
            font-size:12pt; color:rgb(38,114,236)">
            <span style="color:rgb(36,41,46); font-size:14px;
              background-color:rgb(255,255,255);
              display:inline!important"> Below are the RTPproxy logs,
              <b>RTPproxy is also unable to bridge the media</b> </span></div>
          <div style="font-family:Calibri,Helvetica,sans-serif;
            font-size:12pt; color:rgb(38,114,236)">
            <br>
          </div>
          <div style="font-family:Calibri,Helvetica,sans-serif;
            font-size:12pt; color:rgb(38,114,236)">
            <pre style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; font-size:11.9px; margin-top:0px!important; margin-bottom:0px!important; padding:16px; overflow:auto; line-height:1.45; background-color:rgb(246,248,250); border-radius:3px; color:rgb(36,41,46)"><code style="margin:0px; background:transparent; border-radius:3px; display:inline">DBUG:get_command:GLOBAL: received command "19083_4 Uc120,101 9a1060af660d4202976c419ab5300470 58.65.176.42 4000 1ea06d1eb0a8443697a08e568045598c;1"
INFO:rtpp_command_ul_handle:GLOBAL: new session 9a1060af660d4202976c419ab5300470, tag 1ea06d1eb0a8443697a08e568045598c;1 requested, type strong
INFO:rtpp_command_ul_handle:9a1060af660d4202976c419ab5300470: new session on a port 35012 created, tag 1ea06d1eb0a8443697a08e568045598c;1
INFO:rtpp_command_ul_handle:9a1060af660d4202976c419ab5300470: pre-filling caller's address with 58.65.176.42:4000
DBUG:rtpc_doreply:GLOBAL: sending reply "35012 51.38.201.3
"
DBUG:get_command:GLOBAL: received command "19083_5 Uc120,101 9a1060af660d4202976c419ab5300470 58.65.176.42 4022 9RPsEBbcZSA23MmWAw0hfXzJ-bG1GYDq;1 1ea06d1eb0a8443697a08e568045598c;1 <span style="color:rgb(200,38,19)">xmlrpc:<a class="moz-txt-link-freetext" href="http://127.0.0.1:8000/RPC2">http://127.0.0.1:8000/RPC2</a></span>"
INFO:rtpp_command_ul_handle:GLOBAL: new session 9a1060af660d4202976c419ab5300470, tag 9RPsEBbcZSA23MmWAw0hfXzJ-bG1GYDq;1 requested, type strong
INFO:rtpp_command_ul_handle:9a1060af660d4202976c419ab5300470: new session on a port 35014 created, tag 9RPsEBbcZSA23MmWAw0hfXzJ-bG1GYDq;1
ERR:rtpp_command_ul_handle:9a1060af660d4202976c419ab5300470: <b><span style="color:rgb(200,38,19)">invalid socket name 1ea06d1eb0a8443697a08e568045598c;1</span></b>
INFO:rtpp_command_ul_handle:9a1060af660d4202976c419ab5300470: pre-filling caller's address with 58.65.176.42:4022
DBUG:rtpc_doreply:GLOBAL: sending reply "35014 51.38.201.3
"

DBUG:get_command:GLOBAL: received command "19086_4 D 9a1060af660d4202976c419ab5300470 9RPsEBbcZSA23MmWAw0hfXzJ-bG1GYDq 1ea06d1eb0a8443697a08e568045598c"
INFO:handle_delete:9a1060af660d4202976c419ab5300470: forcefully deleting session 1 on ports 35012/0
INFO:remove_session:9a1060af660d4202976c419ab5300470: RTP stats: 0 in from callee, 0 in from caller, 0 relayed, 0 dropped
INFO:remove_session:9a1060af660d4202976c419ab5300470: RTCP stats: 0 in from callee, 0 in from caller, 0 relayed, 0 dropped
INFO:remove_session:9a1060af660d4202976c419ab5300470: session on ports 35012/0 is cleaned up
INFO:handle_delete:9a1060af660d4202976c419ab5300470: forcefully deleting session 1 on ports 35014/0
INFO:remove_session:9a1060af660d4202976c419ab5300470: RTP stats: 0 in from callee, 0 in from caller, 0 relayed, 0 dropped
INFO:remove_session:9a1060af660d4202976c419ab5300470: RTCP stats: 0 in from callee, 0 in from caller, 0 relayed, 0 dropped
INFO:remove_session:9a1060af660d4202976c419ab5300470: session on ports 35014/0 is cleaned up
DBUG:rtpc_doreply:GLOBAL: sending reply "0
"
DBUG:get_command:GLOBAL: received command "19086_5 D 9a1060af660d4202976c419ab5300470 9RPsEBbcZSA23MmWAw0hfXzJ-bG1GYDq 1ea06d1eb0a8443697a08e568045598c"
INFO:handle_command:GLOBAL: delete request failed: session 9a1060af660d4202976c419ab5300470, tags 9RPsEBbcZSA23MmWAw0hfXzJ-bG1GYDq/1ea06d1eb0a8443697a08e568045598c not found
DBUG:rtpc_doreply:GLOBAL: sending reply "E50</code></pre>
            <br>
          </div>
          <div style="font-family:Calibri,Helvetica,sans-serif;
            font-size:12pt; color:rgb(38,114,236)">
            <span style="color:rgb(36,41,46); font-size:14px;
              background-color:rgb(255,255,255);
              display:inline!important">But if I comment out the param
              "Timeout_Socket" then
              <b>there is no issue in bridging the media</b>.</span><br>
          </div>
          <div style="font-family:Calibri,Helvetica,sans-serif;
            font-size:12pt; color:rgb(38,114,236)">
            <br>
          </div>
          <div id="x_x_signature">
            <p class="x_x_ecxMsoNormal">Regards</p>
            <p class="x_x_ecxMsoNormal"><a name="x_x__MailAutoSig"
                target="_blank" moz-do-not-send="true"><b><span
                    style="font-size:8.0pt;
                    font-family:"Verdana","sans-serif";
                    font-variant:small-caps; color:navy">Hamid R. Hashmi</span></b></a></p>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>