<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hello,</p>
    <p>somehow that variable was forgotten when $T(...) was added as
      alternative to old $T_xyz. I just pushed a commit to git master
      branch for it.</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div class="moz-cite-prefix">On 27.12.19 14:22, Denys Pozniak wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CA+x3AxomUBHb=5yM2MzkZkXNtG+Pef-=HXg8JyU=1y2kRkgEYQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hello!
        <div><br>
        </div>
        <div>Looks like $T(reply_reason) does not work well (although
          $T_reply_reason is ok). </div>
        <div>
          <div><br>
          </div>
          <div>Kamailio script:</div>
          <div><br>
          </div>
          <div>failure_route[TRUNK_FAILURE] {<br>
          </div>
          <div>...</div>
          <div>xlog("L_WARN","rm=$rm / $T(reply_reason) \n");<br>
          </div>
          <div>...</div>
          <div>}</div>
          <div><br>
          </div>
          <div> 0(8894) ERROR: tmx [t_var.c:696]: pv_parse_t_name():
            unknown PV name reply_reason<br>
             0(8894) ERROR: <core> [core/pvapi.c:952]:
            pv_parse_spec2(): pvar "T" has an invalid name param
            [reply_reason]<br>
             0(8894) ERROR: <core> [core/pvapi.c:1107]:
            pv_parse_spec2(): wrong char [)/41] in [$T(reply_reason)] at
            [15 (5)]<br>
             0(8894) ERROR: xlog [xlog.c:511]: xdbg_fixup_helper():
            wrong format[rm=$rm / $T(reply_reason)<br>
             </div>
          <div><a
              href="https://www.kamailio.org/wiki/cookbooks/5.2.x/pseudovariables"
              moz-do-not-send="true">https://www.kamailio.org/wiki/cookbooks/5.2.x/pseudovariables</a> </div>
          <h3 class="gmail-sectionedit170" id="gmail-t_name"
style="padding:0px;line-height:1.2;clear:left;font-size:1.125em;margin:0px
            0px
            0.888em;color:rgb(51,51,51);font-family:Arial,sans-serif"><br>
          </h3>
          <h3 class="gmail-sectionedit170" id="gmail-t_name"
style="padding:0px;line-height:1.2;clear:left;font-size:1.125em;margin:0px
            0px
            0.888em;color:rgb(51,51,51);font-family:Arial,sans-serif">$T(name)</h3>
          <div class="gmail-level3"
style="margin:0px;padding:0px;color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px">
            <ul style="margin:0px 0px 1.4em;padding:0px 0px 0px
              1.5em;list-style:outside square">
              <li class="gmail-level1" style="padding:0px;margin:0px 0px
                0px 1.5em;color:rgb(153,153,153)">
                <div class="gmail-li"
                  style="margin:0px;padding:0px;color:rgb(51,51,51)">pseudo-variable
                  class to access TM attributes</div>
              </li>
            </ul>
            <p style="margin:0px 0px 1.4em;padding:0px">The <strong>name</strong> can
              be:</p>
            <ul style="margin:0px 0px 1.4em;padding:0px 0px 0px
              1.5em;list-style:outside square">
              <li class="gmail-level1" style="padding:0px;margin:0px 0px
                0px 1.5em;color:rgb(153,153,153)">
                <div class="gmail-li"
                  style="margin:0px;padding:0px;color:rgb(51,51,51)">reply_reason
                  - reply reason<br>
                </div>
              </li>
            </ul>
          </div>
          <div> </div>
          <div>[kamailio]$ kamailio -v<br>
            version: kamailio 5.2.2 (x86_64/linux)<br>
            flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS,
            USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK,
            SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC,
            TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX,
            FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER,
            USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES<br>
            ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144
            MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB<br>
            poll method support: poll, epoll_lt, epoll_et, sigio_rt,
            select.<br>
            id: unknown<br>
            compiled on 18:04:26 Apr  3 2019 with gcc 4.8.5<br>
          </div>
          <div><br>
          </div>
          -- <br>
          <div dir="ltr" class="gmail_signature"
            data-smartmail="gmail_signature">
            <div dir="ltr"><br>
              <div>
                <div>BR,</div>
                <div>Denys Pozniak<br>
                </div>
                <div><br>
                </div>
                <div><br>
                </div>
              </div>
            </div>
          </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>
Kamailio World Conference - April 27-29, 2020, in Berlin -- <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
  </body>
</html>