[prev in list] [next in list] [prev in thread] [next in thread]
List: openser-devel
Subject: Re: [sr-dev] [kamailio/kamailio] Kamailio 5.3.0 crashed when exec module tried to execute external p
From: Konstantin <notifications () github ! com>
Date: 2019-12-20 10:28:20
Message-ID: kamailio/kamailio/issues/2165/567876095 () github ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
It is easy to reproduce, just call exec_avp with sh script which has sleep 1 min.
Please find below part of configuration file where the exec_avp is used:
failure_route[HANDLE_FAILURE_ON_INCOMING_REQ] {
if (t_is_canceled()) {
exit;
}
if (t_branch_timeout()) {
if (t_branch_replied()) {
// A local timeout after some provsional reply.
xlog("L_WARN", "No final response on request $rm CSeq:$cs ($ci)!\n");
} else {
// A local transaction timed out w/o any reply received.
// In case incoming calls that means out Telephony doesn't reply.
xlog("L_ERR", "Failover on request $rm CSeq:$cs ($ci)!\n");
// Set current Telephony to inactive probbing state
ds_mark_dst("IP");
// Checking next endpoint from the destination list
if (!ds_next_dst()) {
t_reply("503", "Service Unavailable");
xlog("L_CRIT","Failure route: All Telephony servers are invactive!\n");
if ($shv(is_zabbix_event_sent) == 0) {
$shv(is_zabbix_event_sent) = 1;
exec_avp("etc/kamailio/run_zabbix_sender.sh ecsp_no_telephony");
xlog("L_NOTICE","ecsp_no_telephony event is sent to zabbix\n");
}
exit;
}
xlog("L_ERR", "Try to send to $rd:$rp ($ci)\n");
route(RELAY);
}
}
}
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2165#issuecomment-567876095
[Attachment #5 (text/html)]
<p>It is easy to reproduce, just call exec_avp with sh script which has sleep 1 \
min.</p> <p>Please find below part of configuration file where the exec_avp is \
used:</p> <p>failure_route[HANDLE_FAILURE_ON_INCOMING_REQ] {<br>
if (t_is_canceled()) {<br>
exit;<br>
}</p>
<pre><code>if (t_branch_timeout()) {
if (t_branch_replied()) {
// A local timeout after some provsional reply.
xlog("L_WARN", "No final response on request $rm CSeq:$cs ($ci)!\n");
} else {
// A local transaction timed out w/o any reply received.
// In case incoming calls that means out Telephony doesn't reply.
xlog("L_ERR", "Failover on request $rm CSeq:$cs ($ci)!\n");
// Set current Telephony to inactive probbing state
ds_mark_dst("IP");
// Checking next endpoint from the destination list
if (!ds_next_dst()) {
t_reply("503", "Service Unavailable");
xlog("L_CRIT","Failure route: All Telephony servers are invactive!\n");
if ($shv(is_zabbix_event_sent) == 0) {
$shv(is_zabbix_event_sent) = 1;
exec_avp("etc/kamailio/run_zabbix_sender.sh ecsp_no_telephony");
xlog("L_NOTICE","ecsp_no_telephony event is sent to zabbix\n");
}
exit;
}
xlog("L_ERR", "Try to send to $rd:$rp ($ci)\n");
route(RELAY);
}
}
</code></pre>
<p>}</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You \
are receiving this because you are subscribed to this thread.<br />Reply to this \
email directly, <a href="https://github.com/kamailio/kamailio/issues/2165?email_source \
=notifications&email_token=ABO7UZPZA2YNF6VBRMQBP5DQZSM4JA5CNFSM4JVZ2QDKYY3PNVWWK3T \
UL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHMRT7Y#issuecomment-567876095">view \
it on GitHub</a>, or <a \
href="https://github.com/notifications/unsubscribe-auth/ABO7UZJ7F2ETWSVTDTBIM3LQZSM4JANCNFSM4JVZ2QDA">unsubscribe</a>.<img \
src="https://github.com/notifications/beacon/ABO7UZPQLQ3PZVFURFDK6A3QZSM4JA5CNFSM4JVZ2QDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHMRT7Y.gif" \
height="1" width="1" alt="" /></p> <script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2165?email_source=notifications \
\u0026email_token=ABO7UZPZA2YNF6VBRMQBP5DQZSM4JA5CNFSM4JVZ2QDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHMRT7Y#issuecomment-567876095",
"url": "https://github.com/kamailio/kamailio/issues/2165?email_source=notifications\u \
0026email_token=ABO7UZPZA2YNF6VBRMQBP5DQZSM4JA5CNFSM4JVZ2QDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHMRT7Y#issuecomment-567876095",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>
[Attachment #6 (text/plain)]
_______________________________________________
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic