<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Thanks!<br class=""><div class="">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><br class="Apple-interchange-newline">________________________________</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;">Regards,</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;">Alexandru Covalschi</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;">VoIP Engineer and System Administrator<br class="">tel: +380 97 24 75445</div>
</div>
<div><br class=""><blockquote type="cite" class=""><div class="">5 марта 2019 г., в 9:00, Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com" class="">miconda@gmail.com</a>> написал(а):</div><br class="Apple-interchange-newline"><div class="">
  
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" class="">
  
  <div text="#000000" bgcolor="#FFFFFF" class=""><p class="">Hello,</p><p class="">better use KSR.tm.t_newtran() instead of KSR.tmx.t_suspend() and
      then KSR.evapi.async_relay(...)</p><p class="">It should also work only with:</p><p class="">if KSR.evapi.async_relay(str(KSR.pv.get("$T(id_label_n)")))</p><p class="">See:</p><p class="">  *
      <a class="moz-txt-link-freetext" href="https://www.kamailio.org/wiki/cookbooks/devel/pseudovariables#t_name">https://www.kamailio.org/wiki/cookbooks/devel/pseudovariables#t_name</a></p><p class="">Using $T(id_label_n) forces to create the transaction, if it
      doesn't exist.</p><p class="">Cheers,<br class="">
      Daniel<br class="">
    </p>
    <div class="moz-cite-prefix">On 04.03.19 17:21, Alexandru Covalschi
      wrote:<br class="">
    </div>
    <blockquote type="cite" cite="mid:302D8677-1F79-4B73-A584-7FA8938B8E46@gmail.com" class="">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" class="">
      <div class="">UPD:</div>
      <div class="">Such construction seems to work</div>
      <div class="">        if KSR.tmx.t_suspend():</div>
      <div class="">           
        KSR.evapi.relay(str(KSR.pv.get("$T(id_label)")));</div>
      <div class="">
        <div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">However I'm wondering if
          there could be any issues using it like that? I know that
          evapi.relay is non-blocking, however - are all variables
          accessible in that way?</div>
        <div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class="">
        </div>
        <div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">I'm using 5.2 from
          debian:stretch stable repo in a docker container.<br class="Apple-interchange-newline">
          ________________________________</div>
        <div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Regards,</div>
        <div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Alexandru Covalschi</div>
        <div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">VoIP Engineer and System
          Administrator<br class="">
          tel: +380 97 24 75445</div>
      </div>
      <div class=""><br class="">
        <blockquote type="cite" class="">
          <div class="">4 марта 2019 г., в 16:30, Alexandru Covalschi
            <<a href="mailto:568691@gmail.com" class="" moz-do-not-send="true">568691@gmail.com</a>>
            написал(а):</div>
          <br class="Apple-interchange-newline">
          <div class="">
            <meta http-equiv="Content-Type" content="text/html;
              charset=UTF-8" class="">
            <div style="word-wrap: break-word; -webkit-nbsp-mode: space;
              line-break: after-white-space;" class="">Hello list,
              <div class=""><br class="">
              </div>
              <div class="">I'm trying to use async evapi with
                app_python3 KEMI, but I don't know how to get t_suspend
                variables. </div>
              <div class="">What am I doing is connecting to evapi via
                telnet and making a call, which successfully reaches
                that point:</div>
              <div class="">        if
                KSR.evapi.async_relay(str(KSR.pv.get("$T(id_label)"))):</div>
              <div class="">            KSR.xlog.xinfo("processing
                suspended in transaction [" +
                str(KSR.pv.get("$T(id_index)")) + ":" +
                str(KSR.pv.get("$T(id_label)")) +"]\n");</div>
              <div class=""><br class="">
              </div>
              <div class="">I have the id_label in the log, but in
                telnet I have None. </div>
              <div class="">How can I get transaction index and label
                transferred using python3 KEMI? </div>
              <div class="">Shall I use KSR.x.modf (in that case I'm
                losing almost all KEMI benefits)?..</div>
              <div class="">
                <div class="">
                  <div style="font-family: Helvetica; font-size: 12px;
                    font-style: normal; font-variant-caps: normal;
                    font-weight: normal; letter-spacing: normal;
                    text-align: start; text-indent: 0px; text-transform:
                    none; white-space: normal; word-spacing: 0px;
                    -webkit-text-stroke-width: 0px;" class=""><br class="Apple-interchange-newline">
                    ________________________________</div>
                  <div style="font-family: Helvetica; font-size: 12px;
                    font-style: normal; font-variant-caps: normal;
                    font-weight: normal; letter-spacing: normal;
                    text-align: start; text-indent: 0px; text-transform:
                    none; white-space: normal; word-spacing: 0px;
                    -webkit-text-stroke-width: 0px;" class="">Regards,</div>
                  <div style="font-family: Helvetica; font-size: 12px;
                    font-style: normal; font-variant-caps: normal;
                    font-weight: normal; letter-spacing: normal;
                    text-align: start; text-indent: 0px; text-transform:
                    none; white-space: normal; word-spacing: 0px;
                    -webkit-text-stroke-width: 0px;" class="">Alexandru
                    Covalschi</div>
                  <div style="font-family: Helvetica; font-size: 12px;
                    font-style: normal; font-variant-caps: normal;
                    font-weight: normal; letter-spacing: normal;
                    text-align: start; text-indent: 0px; text-transform:
                    none; white-space: normal; word-spacing: 0px;
                    -webkit-text-stroke-width: 0px;" class="">VoIP
                    Engineer and System Administrator<br class="">
                    tel: +380 97 24 75445</div>
                </div>
                <br class="">
              </div>
            </div>
          </div>
        </blockquote>
      </div>
      <br class="">
      <br class="">
      <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>
Kamailio World Conference - May 6-8, 2019 -- <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com/">www.kamailioworld.com</a>
Kamailio Advanced Training - Mar 25-27, 2019, in Washington, DC, USA -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com/">www.asipto.com</a></pre>
  </div>

</div></blockquote></div><br class=""></body></html>