The script collects all the callID from redis, then, one by one
it checks if callID exist in kamailo. At this time a call existing
in redis before may be destroyed in kamailio dlg.list. And so
script believe it's a stuck call.
Solution: collect CallID from REDIS and kamailio.dlg at the same
time, and compare afterwards.
Change-Id: I233a498e42bf5113b5b11ea688487e1840cd84a6
(cherry picked from commit 771ed33b07
)
changes/69/34369/3
parent
e39599d4fd
commit
324fc8d3e5
@ -1,51 +1,53 @@
|
|||||||
{
|
[
|
||||||
h_entry: 51
|
{
|
||||||
h_id: 3315
|
"h_entry": 51,
|
||||||
call-id: WSGH2SB52VHYLPX4VQQ6N4B2ZM@81.201.82.107:5080
|
"h_id": 3315,
|
||||||
from_uri: sip:390649904073@voxbone.com
|
"call-id": "WSGH2SB52VHYLPX4VQQ6N4B2ZM@81.201.82.107:5080",
|
||||||
to_uri: sip:390240708163@46.29.177.34
|
"from_uri": "sip:390649904073@voxbone.com",
|
||||||
state: 4
|
"to_uri": "sip:390240708163@46.29.177.34",
|
||||||
start_ts: 1480083143
|
"state": 4,
|
||||||
init_ts: 1480083140
|
"start_ts": 1480083143,
|
||||||
timeout: 1480126343
|
"init_ts": 1480083140,
|
||||||
lifetime: 43200
|
"timeout": 1480126343,
|
||||||
dflags: 512
|
"lifetime": 43200,
|
||||||
sflags: 0
|
"dflags": 512,
|
||||||
iflags: 0
|
"sflags": 0,
|
||||||
caller: {
|
"iflags": 0,
|
||||||
tag: as2da8b920
|
"caller": {
|
||||||
contact: sip:390649904073@81.201.82.107:5060;transport=udp
|
"tag": "as2da8b920",
|
||||||
cseq: 102
|
"contact": "sip:390649904073@81.201.82.107:5060;transport=udp",
|
||||||
route_set: <sip:203.0.113.113;r2=on;lr;ftag=as2da8b920;ngcplb=yes;socket=udp:46.29.177.34:5060>,<sip:46.29.177.34;r2=on;lr;ftag=as2da8b920;ngcplb=yes;socket=udp:46.29.177.34:5060>,<sip:81.201.82.45;lr=on>
|
"cseq": "102",
|
||||||
socket: udp:203.0.113.113:5062
|
"route_set": "<sip:203.0.113.113;r2=on;lr;ftag=as2da8b920;ngcplb=yes;socket=udp:46.29.177.34:5060>,<sip:46.29.177.34;r2=on;lr;ftag=as2da8b920;ngcplb=yes;socket=udp:46.29.177.34:5060>,<sip:81.201.82.45;lr=on>",
|
||||||
}
|
"socket": "udp:203.0.113.113:5062"
|
||||||
callee: {
|
},
|
||||||
tag: 2B56584B-583846C4000C078A-A5F9B700
|
"callee": {
|
||||||
contact: sip:390240708163@203.0.113.113:5080
|
"tag": "2B56584B-583846C4000C078A-A5F9B700",
|
||||||
cseq: 0
|
"contact": "sip:390240708163@203.0.113.113:5080",
|
||||||
route_set:
|
"cseq": "0",
|
||||||
socket: udp:203.0.113.113:5062
|
"route_set": "",
|
||||||
}
|
"socket": "udp:203.0.113.113:5062"
|
||||||
profiles: {
|
},
|
||||||
}
|
"profiles": {
|
||||||
variables: {
|
},
|
||||||
{
|
"variables": {
|
||||||
recent_calls_user_online: 1
|
{
|
||||||
}
|
"recent_calls_user_online": "1"
|
||||||
{
|
},
|
||||||
recent_calls_caller: 390649904073
|
{
|
||||||
}
|
"recent_calls_caller": "390649904073"
|
||||||
{
|
},
|
||||||
start_time: 1480083143
|
{
|
||||||
}
|
"start_time": "1480083143"
|
||||||
{
|
},
|
||||||
callee_uuid: 38de282f-5c5c-4d71-8a0d-b300a68d86ec
|
{
|
||||||
}
|
"callee_uuid": "38de282f-5c5c-4d71-8a0d-b300a68d86ec"
|
||||||
{
|
},
|
||||||
recent_calls_key: 38de282f-5c5c-4d71-8a0d-b300a68d86ec
|
{
|
||||||
}
|
"recent_calls_key": "38de282f-5c5c-4d71-8a0d-b300a68d86ec"
|
||||||
{
|
},
|
||||||
lua_dlg_callid: WSGH2SB52VHYLPX4VQQ6N4B2ZM@81.201.82.107:5080
|
{
|
||||||
}
|
"lua_dlg_callid": "WSGH2SB52VHYLPX4VQQ6N4B2ZM@81.201.82.107:5080"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
]
|
@ -1,102 +1,104 @@
|
|||||||
{
|
[
|
||||||
h_entry: 51
|
{
|
||||||
h_id: 3315
|
"h_entry": 51,
|
||||||
call-id: WSGH2SB52VHYLPX4VQQ6N4B2ZM@81.201.82.107:5060
|
"h_id": 3315,
|
||||||
from_uri: sip:390649904073@voxbone.com
|
"call-id": "WSGH2SB52VHYLPX4VQQ6N4B2ZM@81.201.82.107:5060",
|
||||||
to_uri: sip:390240708163@46.29.177.34
|
"from_uri": "sip:390649904073@voxbone.com",
|
||||||
state: 4
|
"to_uri": "sip:390240708163@46.29.177.34",
|
||||||
start_ts: 1480083143
|
"state": 4,
|
||||||
init_ts: 1480083140
|
"start_ts": 1480083143,
|
||||||
timeout: 1480126343
|
"init_ts": 1480083140,
|
||||||
lifetime: 43200
|
"timeout": 1480126343,
|
||||||
dflags: 512
|
"lifetime": 43200,
|
||||||
sflags: 0
|
"dflags": 512,
|
||||||
iflags: 0
|
"sflags": 0,
|
||||||
caller: {
|
"iflags": 0,
|
||||||
tag: as2da8b920
|
"caller": {
|
||||||
contact: sip:390649904073@81.201.82.107:5060;transport=udp
|
"tag": "as2da8b920",
|
||||||
cseq: 102
|
"contact": "sip:390649904073@81.201.82.107:5060;transport=udp",
|
||||||
route_set: <sip:203.0.113.113;r2=on;lr;ftag=as2da8b920;ngcplb=yes;socket=udp:46.29.177.34:5060>,<sip:46.29.177.34;r2=on;lr;ftag=as2da8b920;ngcplb=yes;socket=udp:46.29.177.34:5060>,<sip:81.201.82.45;lr=on>
|
"cseq": "102",
|
||||||
socket: udp:203.0.113.113:5062
|
"route_set": "<sip:203.0.113.113;r2=on;lr;ftag=as2da8b920;ngcplb=yes;socket=udp:46.29.177.34:5060>,<sip:46.29.177.34;r2=on;lr;ftag=as2da8b920;ngcplb=yes;socket=udp:46.29.177.34:5060>,<sip:81.201.82.45;lr=on>",
|
||||||
}
|
"socket": "udp:203.0.113.113:5062"
|
||||||
callee: {
|
},
|
||||||
tag: 2B56584B-583846C4000C078A-A5F9B700
|
"callee": {
|
||||||
contact: sip:390240708163@203.0.113.113:5080
|
"tag": "2B56584B-583846C4000C078A-A5F9B700",
|
||||||
cseq: 0
|
"contact": "sip:390240708163@203.0.113.113:5080",
|
||||||
route_set:
|
"cseq": "0",
|
||||||
socket: udp:203.0.113.113:5062
|
"route_set": "",
|
||||||
}
|
"socket": "udp:203.0.113.113:5062"
|
||||||
profiles: {
|
},
|
||||||
}
|
"profiles": {
|
||||||
variables: {
|
},
|
||||||
{
|
"variables": {
|
||||||
recent_calls_user_online: 1
|
{
|
||||||
}
|
"recent_calls_user_online": "1"
|
||||||
{
|
},
|
||||||
recent_calls_caller: 390649904073
|
{
|
||||||
}
|
"recent_calls_caller": "390649904073"
|
||||||
{
|
},
|
||||||
start_time: 1480083143
|
{
|
||||||
}
|
"start_time": "1480083143"
|
||||||
{
|
},
|
||||||
callee_uuid: 38de282f-5c5c-4d71-8a0d-b300a68d86ec
|
{
|
||||||
}
|
"callee_uuid": "38de282f-5c5c-4d71-8a0d-b300a68d86ec"
|
||||||
{
|
},
|
||||||
recent_calls_key: 38de282f-5c5c-4d71-8a0d-b300a68d86ec
|
{
|
||||||
}
|
"recent_calls_key": "38de282f-5c5c-4d71-8a0d-b300a68d86ec"
|
||||||
{
|
},
|
||||||
lua_dlg_callid: WSGH2SB52VHYLPX4VQQ6N4B2ZM@81.201.82.107:5060
|
{
|
||||||
}
|
"lua_dlg_callid": "WSGH2SB52VHYLPX4VQQ6N4B2ZM@81.201.82.107:5060"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{
|
},
|
||||||
h_entry: 52
|
{
|
||||||
h_id: 3316
|
"h_entry": 52,
|
||||||
call-id: WSGH2SB52VHYLPX4VQQ6N4B2ZM@81.201.82.107:5060-pbx_1
|
"h_id": 3316,
|
||||||
from_uri: sip:390649904073@voxbone.com
|
"call-id": "WSGH2SB52VHYLPX4VQQ6N4B2ZM@81.201.82.107:5060-pbx_1",
|
||||||
to_uri: sip:390240708163@46.29.177.34
|
"from_uri": "sip:390649904073@voxbone.com",
|
||||||
state: 4
|
"to_uri": "sip:390240708163@46.29.177.34",
|
||||||
start_ts: 1480083143
|
"state": 4,
|
||||||
init_ts: 1480083140
|
"start_ts": 1480083143,
|
||||||
timeout: 1480126343
|
"init_ts": 1480083140,
|
||||||
lifetime: 43200
|
"timeout": 1480126343,
|
||||||
dflags: 512
|
"lifetime": 43200,
|
||||||
sflags: 0
|
"dflags": 512,
|
||||||
iflags: 0
|
"sflags": 0,
|
||||||
caller: {
|
"iflags": 0,
|
||||||
tag: as2da8b920
|
"caller": {
|
||||||
contact: sip:390649904073@81.201.82.107:5060;transport=udp
|
"tag": "as2da8b920",
|
||||||
cseq: 102
|
"contact": "sip:390649904073@81.201.82.107:5060;transport=udp",
|
||||||
route_set: <sip:203.0.113.113;r2=on;lr;ftag=as2da8b920;ngcplb=yes;socket=udp:46.29.177.34:5060>,<sip:46.29.177.34;r2=on;lr;ftag=as2da8b920;ngcplb=yes;socket=udp:46.29.177.34:5060>,<sip:81.201.82.45;lr=on>
|
"cseq": "102",
|
||||||
socket: udp:203.0.113.113:5062
|
"route_set": "<sip:203.0.113.113;r2=on;lr;ftag=as2da8b920;ngcplb=yes;socket=udp:46.29.177.34:5060>,<sip:46.29.177.34;r2=on;lr;ftag=as2da8b920;ngcplb=yes;socket=udp:46.29.177.34:5060>,<sip:81.201.82.45;lr=on>",
|
||||||
}
|
"socket": "udp:203.0.113.113:5062",
|
||||||
callee: {
|
},
|
||||||
tag: 2B56584B-583846C4000C078A-A5F9B700
|
"callee": {
|
||||||
contact: sip:390240708163@203.0.113.113:5080
|
"tag": "2B56584B-583846C4000C078A-A5F9B700",
|
||||||
cseq: 0
|
"contact": "sip:390240708163@203.0.113.113:5080",
|
||||||
route_set:
|
"cseq": "0",
|
||||||
socket: udp:203.0.113.113:5062
|
"route_set": "",
|
||||||
}
|
"socket": "udp:203.0.113.113:5062",
|
||||||
profiles: {
|
},
|
||||||
}
|
"profiles": {
|
||||||
variables: {
|
},
|
||||||
{
|
"variables": {
|
||||||
recent_calls_user_online: 1
|
{
|
||||||
}
|
"recent_calls_user_online": "1"
|
||||||
{
|
},
|
||||||
recent_calls_caller: 390649904073
|
{
|
||||||
}
|
"recent_calls_caller": "390649904073"
|
||||||
{
|
},
|
||||||
start_time: 1480083143
|
{
|
||||||
}
|
"start_time": "1480083143"
|
||||||
{
|
},
|
||||||
callee_uuid: 38de282f-5c5c-4d71-8a0d-b300a68d86ec
|
{
|
||||||
}
|
"callee_uuid": "38de282f-5c5c-4d71-8a0d-b300a68d86ec"
|
||||||
{
|
},
|
||||||
recent_calls_key: 38de282f-5c5c-4d71-8a0d-b300a68d86ec
|
{
|
||||||
}
|
"recent_calls_key": "38de282f-5c5c-4d71-8a0d-b300a68d86ec"
|
||||||
{
|
},
|
||||||
lua_dlg_callid: WSGH2SB52VHYLPX4VQQ6N4B2ZM@81.201.82.107:5060-pbx_1
|
{
|
||||||
}
|
"lua_dlg_callid": "WSGH2SB52VHYLPX4VQQ6N4B2ZM@81.201.82.107:5060-pbx_1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
]
|
Loading…
Reference in new issue