mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-14 21:22:03 +01:00
16 lines
921 B
Diff
16 lines
921 B
Diff
Index: channels/chan_sip.c
|
|
===================================================================
|
|
--- a/channels/chan_sip.c (revision 212243)
|
|
+++ b/channels/chan_sip.c (working copy)
|
|
@@ -3675,8 +3675,8 @@
|
|
char method_str[31];
|
|
ast_debug(3, "Re-scheduled destruction of SIP call %s\n", p->callid ? p->callid : "<unknown>");
|
|
append_history(p, "ReliableXmit", "timeout");
|
|
- if (sscanf(p->lastmsg, "Tx: %30s", method_str) == 1 || sscanf(p->lastmsg, "Rx: %30s", method_str) == 1) {
|
|
- if (method_match(SIP_CANCEL, method_str) || method_match(SIP_BYE, method_str)) {
|
|
+ if (sscanf(p->lastmsg, "Tx: %30s", method_str) == 1 || sscanf(p->lastmsg, "Rx: %30s", method_str) == 1 || sscanf(p->lastmsg, "Init: %30s", method_str) == 1) {
|
|
+ if (method_match(SIP_CANCEL, method_str) || method_match(SIP_BYE, method_str) || method_match(SIP_INVITE, method_str)) {
|
|
pvt_set_needdestroy(p, "autodestruct");
|
|
}
|
|
}
|