<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hello,</p>
    <p>terminating a call can be done only via dialog module, because it
      is the one that tracks active calls and keeps all the attributes
      required to generate BYE requests.</p>
    <p>You can also trigger the termination of call through RPC commands
      (like jsonrpc or xmlrpc):</p>
    <p>  -
<a class="moz-txt-link-freetext" href="https://www.kamailio.org/docs/modules/devel/modules/dialog.html#dlg.r.terminate_dlg">https://www.kamailio.org/docs/modules/devel/modules/dialog.html#dlg.r.terminate_dlg</a></p>
    <p>A (not-right-now) termination of the dialog can be achieved by
      setting the dialog timeout (lifetime) to just few more seconds.
      Functions are available from the same dialog module.</p>
    <p>The rpc functions can be also executed inside kamailio.cfg via
      jsonrpcs module.</p>
    <p>Regarding the id and label for transaction, you have to provide
      parts of the config where you want to access it in order to say if
      they are available at that moment -- just trying to blind guess
      it's not easy.</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 23/02/2017 09:38, Cassandra Yurekli
      wrote:<br>
    </div>
    <blockquote
cite="mid:CABGhCfaV1+x-Js2kT0UKHockK7hrNJdv87iwgVH-i_wHQdTHNA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <p class="MsoNormal"><span
              style="font-family:"arial","sans-serif""
              lang="EN-US">To whom it may concern,</span></p>
          <p class="MsoNormal"><span
              style="font-family:"arial","sans-serif""
              lang="EN-US"><br>
            </span></p>
          <p class="MsoNormal"><span
              style="font-family:"arial","sans-serif""
              lang="EN-US">There are several points I don’t quite
              understand
              regarding <span style="color:rgb(31,73,125)">a couple of</span>
              kamailio modules.</span></p>
          <p class="MsoNormal"><span
              style="font-family:"arial","sans-serif""
              lang="EN-US"><br>
            </span></p>
          <p class="MsoNormal"><span
              style="font-family:"arial","sans-serif""
              lang="EN-US">I have a main application which control<span
                style="color:rgb(31,73,125)">s</span> calls by sending <span
                style="color:rgb(31,73,125)">command
                messages</span> via a socket (for example reject this
              sip invites). </span><span
              style="font-family:"arial","sans-serif""
              lang="EN-US">I communicate with the socket client via
              evapi module and using evapi_asynch_relay() in order to be
              sure that communication are suspended and kamailio waiting
              an order for doing something with</span> them (Accepte,
            reject, release, ...). </p>
          <p class="MsoNormal"><span
              style="font-family:"arial","sans-serif""
              lang="EN-US"><br>
            </span></p>
          <p class="MsoNormal"><span
              style="font-family:"arial","sans-serif""
              lang="EN-US"> I <span style="color:rgb(31,73,125)">want
                to release a call</span>, <span
                style="color:rgb(31,73,125)">using</span>
              a <span style="color:rgb(31,73,125)">command</span>
              “release this call”. I’m actually
              doing this with dialog module (<span
                style="color:rgb(31,73,125)">using</span>
              get_dialog(callid,fromTag,toTag) and dlg_bye(‘all’)) but
              is there anything else
              (like another module) which could release a call without <span
                style="color:rgb(31,73,125)">necessarily having to use </span>fromTag
              and toTag to get
              the context ? I didn’t find it on modules documentations.
              <br>
            </span></p>
          <p class="MsoNormal"><span
              style="font-family:"arial","sans-serif""
              lang="EN-US"><br>
            </span></p>
          <p class="MsoNormal"><span
style="font-family:"arial","sans-serif";color:rgb(31,73,125)"
              lang="EN-US">Also</span><span
              style="font-family:"arial","sans-serif""
              lang="EN-US"> after an
              INVITE I’m waiting <span style="color:rgb(31,73,125)">for
                the main app </span>to
              accept or reject the call. For accept<span
                style="color:rgb(31,73,125)">ing</span> and
              continu<span style="color:rgb(31,73,125)">ing</span> the
              transaction I found
              “t_continue(tindex,tlabel,route)” on tmx module, but at
              this moment
              $T(id_index) and $T(id_label) are null, is it normal or I
              did something wrong
              ? How can I simply resume the suspended call ?</span></p>
          <p class="MsoNormal"><br>
            <span
              style="font-family:"arial","sans-serif""
              lang="EN-US"></span></p>
          <p class="MsoNormal"><br>
            <span
              style="font-family:"arial","sans-serif""
              lang="EN-US"></span></p>
          <p class="MsoNormal"><span
              style="font-family:"arial","sans-serif""
              lang="EN-US">Thanks; <br>
            </span></p>
          <p class="MsoNormal"><span
              style="font-family:"arial","sans-serif""
              lang="EN-US"><br>
            </span></p>
          <p class="MsoNormal"><span
              style="font-family:"arial","sans-serif""
              lang="EN-US">Best regards,</span></p>
          <p class="MsoNormal"><span
              style="font-family:"arial","sans-serif""
              lang="EN-US"> </span></p>
          <br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<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>
Kamailio Advanced Training - Mar 6-8 (Europe) and Mar 20-22 (USA) - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - May 8-10, 2017 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
  </body>
</html>