[SR-Users] http_client/http_connect in request_route: INFO: <core> [main.c:857]: sig_usr(): signal 13 received

Anthony Joseph Messina amessina at messinet.com
Tue Feb 16 17:05:28 CET 2021


With the following config

# ----- http_client params -----
modparam("http_client", "httpredirect", 0)
modparam("http_client", "connection_timeout", 2)
modparam("http_client", "keep_connections", 1)
modparam("http_client", "query_result", 0)
modparam("http_client", "httpcon", "api=>https://api.example.com");

and after calling the following from request_route,

$xavu(http=>rs)=http_connect("api",
    "/kamailio/message",
    "application/json", "$var(message_api)",
    "$xavu(http=>rb)");

if($xavu(http=>rs)==200) {
  jansson_get("result.code", $xavu(http=>rb), "$xavu(http=>code)");
  jansson_get("result.message", $xavu(http=>rb), "$xavu(http=>message)");
  sd_journal_print("LOG_DEBUG", "[$cfg(route)] Result: $xavu(http=>code),
      $xavu(http=>message)");
  sl_send_reply("202", "Accepted");
  exit;
}


I see the following in the log:

INFO: <core> [main.c:857]: sig_usr(): signal 13 received

It doesn't seem to have any negative effect, but I am wondering if it's 
something I should look into.  If so, any pointers on where/how to begin?

-- 
Anthony - https://messinet.com
F9B6 560E 68EA 037D 8C3D  D1C9 FF31 3BDB D9D8 99B6
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20210216/f05a7910/attachment.sig>


More information about the sr-users mailing list