<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hello,</p>
    <p>are you looking for Kamailio to send re-INVITEs? If yes, that is
      not available as a feature of dialog module.</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div class="moz-cite-prefix">On 21.03.20 10:39, harneet singh wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAHTs8D98=vr1NZy2DxJ4tGPuDwsbniUud8EYUB=z8DPP5EhRYA@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hi,
        <div><br>
        </div>
        <div>I am fairly new to Kamailio and had a question regarding
          how to use Kamailio to enable Session refresh functionality
          when Kamailio is acting as Sip Stateful Proxy. </div>
        <div>Kamailio Version used: <b>5.3.2</b> with <b>Call Load
            based routing</b> using the <b>dispatcher </b>module.</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>* From what i understand from the documentation, Kamailio
          will probably not be acting as a session refresher, but
          Kamailio can tear down the call in case session refresh is
          negotiated, between the caller and the callee(via Kamailio Sip
          Proxy), and no message exchange happens in the duration set in
          Session-Expires header. <b>Is my understanding correct?</b></div>
        <div><b><br>
          </b></div>
        <div><b>* </b>I believe the above functionality is possible by
          using the <b>sst</b> and <b>dialog</b> module. I have set
          the same according to the documentation but I keep getting the
          following error:</div>
        <div>"dialog [dlg_handlers.c:681]: <b>get_dlg_timeout():
            invalid AVP value, using default timeout</b>"</div>
        <div>Can someone share a working example?</div>
        <div><br>
        </div>
        <div>* When i tried hardcoding the timeout value by setting the
          timeout_avp to a specific value, Kamailio did sense a timeout
          and hence sent a BYE towards the caller and the Callee side
          both(which is what the requirement is), however, i do see the
          <b>dialog is still not cleared</b> in the "kamcmd
          dispatcher.list". Output excerpt below for reference:</div>
        <div><br>
        </div>
        <div>[root@CPaaSVM ~]# kamcmd dispatcher.list<br>
          {<br>
                  NRSETS: 1<br>
                  RECORDS: {<br>
                          SET: {<br>
                                  ID: 1<br>
                                  TARGETS: {<br>
                                          DEST: {<br>
                                                  URI:
          <a class="moz-txt-link-freetext" href="sip:172.27.44.121:5080;transport=tcp">sip:172.27.44.121:5080;transport=tcp</a><br>
                                                  FLAGS: AP<br>
                                                  PRIORITY: 0<br>
                                                  ATTRS: {<br>
                                                          BODY:
          duid=sample-cas;maxload=1000<br>
                                                          DUID:
          sample-cas<br>
                                                          MAXLOAD: 1000<br>
                                                          WEIGHT: 0<br>
                                                          RWEIGHT: 0<br>
                                                          SOCKET:<br>
                                                  }<br>
                                                  LATENCY: {<br>
                                                          AVG:
          111.304000<br>
                                                          STD:
          1042.193000<br>
                                                          EST: 2.385000<br>
                                                          MAX: 9999<br>
                                                          TIMEOUT: 1<br>
                                                  }<br>
                                                  RUNTIME: {<br>
                                                          <font
            color="#ff0000">DLGLOAD: <b>1</b></font><br>
                                                  }<br>
                                          }<br>
                                  }<br>
                          }<br>
                  }<br>
          }<br>
        </div>
        <div><br>
        </div>
        <div>It is noteworthy that in case the BYE is initiated by
          either the caller or the callee, the dialog is cleared
          properly and the DLGLOAD is set to 0 on call termination. </div>
        <div><br>
        </div>
        <div>Any pointers for the above questions would be highly
          appreciated. </div>
        <div><br>
        </div>
        <div>Regards,</div>
        <div>Harneet</div>
        <div>
          <div><br>
          </div>
          -- <br>
          <div dir="ltr" class="gmail_signature"
            data-smartmail="gmail_signature">"Once you eliminate the
            impossible, whatever remains, no matter how improbable, must
            be the truth" - Sir Arthur Conan Doyle<br>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-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>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a></pre>
  </body>
</html>