<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Hi Daniel,</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">This is still a development setup so the traffic is very small - a few calls a day.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">It seems that the issue can be seen during first calls after some inactivity.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Pozdrawiam / Best regards,<br></div><div dir="ltr"><div>Wojtek</div></div></div></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Feb 23, 2022 at 2:11 PM Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div>
    <p>Hello,</p>
    <p>how often they show up and is there high volume of traffic at
      that moment?</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div>On 23.02.22 11:44, Wojciech Kopciewicz
      wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">
        <div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Hi,</div>
        <div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br>
        </div>
        <div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Yes, those
          values are hard-coded strings.</div>
        <div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br>
        </div>
        <div>
          <div dir="ltr">
            <div dir="ltr">
              <div>
                <div dir="ltr">
                  <div>Pozdrawiam / Best regards,<br>
                  </div>
                  <div dir="ltr">
                    <div>Wojtek</div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <br>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Wed, Feb 23, 2022 at 8:25
          AM Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div>
            <p>Hello,</p>
            <p>do you check that header_name parameter set for
              KSR.hdr.is_present() is a string value?</p>
            <p>Cheers,<br>
              Daniel<br>
            </p>
            <div>On 22.02.22 15:36, Wojciech Kopciewicz wrote:<br>
            </div>
            <blockquote type="cite">
              <div dir="ltr">
                <div class="gmail_default" style="font-family:arial,helvetica,sans-serif">
                  <p>Hi,</p>
                  <p>Intermittently we are observing the following error
                    when checking if given header is present in SIP
                    INVITE:<br>
                  </p>
                  <p dir="auto">SystemError: returned a result with an
                    error set</p>
                  <p dir="auto">The complete stack trace is (some names
                    redacted):<br style="box-sizing:border-box">
                    11(28) ERROR: {1 195 INVITE
                    nMHZDN.10nOIDt4ldOwz5cqz0XnMepA9} app_python3
                    [python_support.c:156]: python_handle_exception():
                    apy_exec: modify_headers((null)): Unhandled
                    exception in the Python code:<br style="box-sizing:border-box">
                    TypeError: an integer is required (got type
                    NoneType)</p>
                  <p dir="auto">The above exception was the direct cause
                    of the following exception:</p>
                  <p dir="auto">Traceback (most recent call last):<br style="box-sizing:border-box">
                    File "/etc/kamailio/kamailio.py", line 25, in
                    modify_headers<br style="box-sizing:border-box">
                    self.modify_header("SomeHeader")<br style="box-sizing:border-box">
                    File "/etc/kamailio/kamailio.py", line 29, in
                    modify_header<br style="box-sizing:border-box">
                    present = KSR.hdr.is_present(header_name)<br style="box-sizing:border-box">
                    SystemError: returned a result with an error set</p>
                  <p>Kamailio version (kamailio -v output):<br>
                  </p>
                  <p><span style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(34,34,34)">version:
                      kamailio 5.4.6 (x86_64/linux)</span></p>
                  <p dir="auto"><span style="color:rgb(34,34,34);font-family:arial,helvetica,sans-serif;font-size:small">flags:
                      USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS,
                      USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST,
                      DNS_IP_HACK, 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, TLS_PTHREAD_MUTEX_SHARED</span><br style="color:rgb(34,34,34);font-family:arial,helvetica,sans-serif;font-size:small">
                    <span style="color:rgb(34,34,34);font-family:arial,helvetica,sans-serif;font-size:small">ADAPTIVE_WAIT_LOOPS
                      1024, MAX_RECV_BUFFER_SIZE 262144, MAX_URI_SIZE
                      1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB</span><br style="color:rgb(34,34,34);font-family:arial,helvetica,sans-serif;font-size:small">
                    <span style="color:rgb(34,34,34);font-family:arial,helvetica,sans-serif;font-size:small">poll
                      method support: poll, epoll_lt, epoll_et,
                      sigio_rt, select.</span><br style="color:rgb(34,34,34);font-family:arial,helvetica,sans-serif;font-size:small">
                    <span style="color:rgb(34,34,34);font-family:arial,helvetica,sans-serif;font-size:small">id:
                      unknown</span><br style="color:rgb(34,34,34);font-family:arial,helvetica,sans-serif;font-size:small">
                    <span style="color:rgb(34,34,34);font-family:arial,helvetica,sans-serif;font-size:small">compiled
                      with gcc 8.3.0</span><br>
                  </p>
                  <p><span style="color:rgb(34,34,34);font-family:arial,helvetica,sans-serif;font-size:small">Operation
                      system: </span><span style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(34,34,34)">Linux
                      kamailio-5c7484c74d-vhhr8 5.4.0-1056-azure
                      #58~18.04.1-Ubuntu SMP Wed Jul 28 23:14:18 UTC
                      2021 x86_64 GNU/Linux</span><span style="color:rgb(34,34,34);font-family:arial,helvetica,sans-serif;font-size:small"> </span></p>
                  <p>Are you able to help me find the root cause of this
                    issue?</p>
                </div>
                <div>
                  <div dir="ltr">
                    <div dir="ltr">
                      <div>
                        <div dir="ltr">
                          <div>Pozdrawiam / Best regards,<br>
                          </div>
                          <div dir="ltr">
                            <div>Wojtek</div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
              <br>
              <p dir="ltr" style="line-height:1.8;margin-top:0pt;margin-bottom:0pt"><font size="2"><i><span style="background-color:rgb(255,255,255);font-family:Arial;white-space:pre-wrap">For more information on how and why we collect your personal information, please visit our </span><span style="white-space:pre-wrap;color:rgb(38,50,56);font-family:Roboto,sans-serif"><a href="https://www.motorolasolutions.com/en_us/about/privacy-policy.html?elqTrackId=8980d888905940e39a2613a7a3dcb0a7&elqaid=2786&elqat=2#privacystatement" target="_blank">Privacy Policy</a>.</span></i></font></p>
              <br>
              <fieldset></fieldset>
              <pre>__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
  * <a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
  * <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.kamailio.org_cgi-2Dbin_mailman_listinfo_sr-2Dusers&d=DwMDaQ&c=q3cDpHe1hF8lXU5EFjNM_C93KOmcBXCBnhee2v6PYlc&r=RsXkMe6sb2-9yHQUV8KP4MrUtS9gOAiWNJa5xB5cLRjcZVaHW3sjBwy6Fjb928KS&m=CCE2EDt4eKanG8YC1Bxc51CQSyCg0YpKbySFR-sqilb-wdhYCRYU-pAI_eYmCu2v&s=oNz1IY8iG084QGzn9D7M4d5CSZ2xiCNdRm22mixUGjA&e=" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
            </blockquote>
            <pre cols="72">-- 
Daniel-Constantin Mierla -- <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.asipto.com&d=DwMDaQ&c=q3cDpHe1hF8lXU5EFjNM_C93KOmcBXCBnhee2v6PYlc&r=RsXkMe6sb2-9yHQUV8KP4MrUtS9gOAiWNJa5xB5cLRjcZVaHW3sjBwy6Fjb928KS&m=CCE2EDt4eKanG8YC1Bxc51CQSyCg0YpKbySFR-sqilb-wdhYCRYU-pAI_eYmCu2v&s=pnzsCbZ_eh8dJX6QplBGIAK-EmQkpN_VjRyxXF0SFxo&e=" target="_blank">www.asipto.com</a>
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.twitter.com_miconda&d=DwMDaQ&c=q3cDpHe1hF8lXU5EFjNM_C93KOmcBXCBnhee2v6PYlc&r=RsXkMe6sb2-9yHQUV8KP4MrUtS9gOAiWNJa5xB5cLRjcZVaHW3sjBwy6Fjb928KS&m=CCE2EDt4eKanG8YC1Bxc51CQSyCg0YpKbySFR-sqilb-wdhYCRYU-pAI_eYmCu2v&s=iWp3lX8ri4p3VEeSGTnGf6vgaEBQDXLQmnskbOwLB3E&e=" target="_blank">www.twitter.com/miconda</a> -- <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.linkedin.com_in_miconda&d=DwMDaQ&c=q3cDpHe1hF8lXU5EFjNM_C93KOmcBXCBnhee2v6PYlc&r=RsXkMe6sb2-9yHQUV8KP4MrUtS9gOAiWNJa5xB5cLRjcZVaHW3sjBwy6Fjb928KS&m=CCE2EDt4eKanG8YC1Bxc51CQSyCg0YpKbySFR-sqilb-wdhYCRYU-pAI_eYmCu2v&s=1iFgA-q0-_ZShBF-FItoq6r0sAg09N2RKDLCO80LzGw&e=" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - Online
  Mar 28-31, 2022 (Europe Timezone)
  * <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__www.asipto.com_sw_kamailio-2Dadvanced-2Dtraining-2Donline_&d=DwMDaQ&c=q3cDpHe1hF8lXU5EFjNM_C93KOmcBXCBnhee2v6PYlc&r=RsXkMe6sb2-9yHQUV8KP4MrUtS9gOAiWNJa5xB5cLRjcZVaHW3sjBwy6Fjb928KS&m=CCE2EDt4eKanG8YC1Bxc51CQSyCg0YpKbySFR-sqilb-wdhYCRYU-pAI_eYmCu2v&s=QwGb6KwCF4tHdyutmu1wpA-aRpIRbvyVHS1wcj34mdA&e=" target="_blank">https://www.asipto.com/sw/kamailio-advanced-training-online/</a></pre>
          </div>
        </blockquote>
      </div>
      <br>
      <p dir="ltr" style="line-height:1.8;margin-top:0pt;margin-bottom:0pt"><font size="2"><i><span style="background-color:rgb(255,255,255);font-family:Arial;white-space:pre-wrap">For more information on how and why we collect your personal information, please visit our </span><span style="white-space:pre-wrap;color:rgb(38,50,56);font-family:Roboto,sans-serif"><a href="https://www.motorolasolutions.com/en_us/about/privacy-policy.html?elqTrackId=8980d888905940e39a2613a7a3dcb0a7&elqaid=2786&elqat=2#privacystatement" target="_blank">Privacy Policy</a>.</span></i></font></p>
    </blockquote>
    <pre cols="72">-- 
Daniel-Constantin Mierla -- <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.asipto.com&d=DwMDaQ&c=q3cDpHe1hF8lXU5EFjNM_C93KOmcBXCBnhee2v6PYlc&r=RsXkMe6sb2-9yHQUV8KP4MrUtS9gOAiWNJa5xB5cLRjcZVaHW3sjBwy6Fjb928KS&m=ciUm5591lbERv9MC6e_pLveQYX7zQZLMLzi4r2na0WG0tvcJeJNOtw77DQ7-OgGU&s=zJFtVCAWufSwSehp6pvpr04uyL6lD3FGqDeaFPv944I&e=" target="_blank">www.asipto.com</a>
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.twitter.com_miconda&d=DwMDaQ&c=q3cDpHe1hF8lXU5EFjNM_C93KOmcBXCBnhee2v6PYlc&r=RsXkMe6sb2-9yHQUV8KP4MrUtS9gOAiWNJa5xB5cLRjcZVaHW3sjBwy6Fjb928KS&m=ciUm5591lbERv9MC6e_pLveQYX7zQZLMLzi4r2na0WG0tvcJeJNOtw77DQ7-OgGU&s=qUYXpFu_MBwO--p70pHIPCfpxAjJtZr3uBK5K-mGvFA&e=" target="_blank">www.twitter.com/miconda</a> -- <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.linkedin.com_in_miconda&d=DwMDaQ&c=q3cDpHe1hF8lXU5EFjNM_C93KOmcBXCBnhee2v6PYlc&r=RsXkMe6sb2-9yHQUV8KP4MrUtS9gOAiWNJa5xB5cLRjcZVaHW3sjBwy6Fjb928KS&m=ciUm5591lbERv9MC6e_pLveQYX7zQZLMLzi4r2na0WG0tvcJeJNOtw77DQ7-OgGU&s=9swPTb_vUy_tOOdA5cLpzqwo46lZcq49D8HfUU5nukk&e=" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - Online
  Mar 28-31, 2022 (Europe Timezone)
  * <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__www.asipto.com_sw_kamailio-2Dadvanced-2Dtraining-2Donline_&d=DwMDaQ&c=q3cDpHe1hF8lXU5EFjNM_C93KOmcBXCBnhee2v6PYlc&r=RsXkMe6sb2-9yHQUV8KP4MrUtS9gOAiWNJa5xB5cLRjcZVaHW3sjBwy6Fjb928KS&m=ciUm5591lbERv9MC6e_pLveQYX7zQZLMLzi4r2na0WG0tvcJeJNOtw77DQ7-OgGU&s=vuZxuK6JIx5vA6L8rdnutswybBv_85F8w0JaOSr-9Ps&e=" target="_blank">https://www.asipto.com/sw/kamailio-advanced-training-online/</a></pre>
  </div>

</blockquote></div>

<br>
<p dir="ltr" style="line-height:1.8;margin-top:0pt;margin-bottom:0pt"><font size="2"><i><span style="background-color:rgb(255,255,255);font-family:Arial;white-space:pre-wrap">For more information on how and why we collect your personal information, please visit our </span><span style="white-space:pre-wrap;color:rgb(38,50,56);font-family:Roboto,sans-serif"><a href="https://www.motorolasolutions.com/en_us/about/privacy-policy.html?elqTrackId=8980d888905940e39a2613a7a3dcb0a7&elqaid=2786&elqat=2#privacystatement" target="_blank">Privacy Policy</a>.</span></i></font></p>