[Freeswitch-users] I don't have the last session variable after crash recovery with track-calls

Tristan t.ferreira at telemaque.fr
Fri Oct 18 12:01:35 UTC 2019


Hi,
I have a problem with the freeswitch (FreeSWITCH Version 1.10.1-release-12-f9990221e6~64bit (-release-12-f9990221e6 64bit)) recovery activated with the
track-calls option.
When freeswitch crash and recover, i have the value of the session
variable of the first call of the callflow.
For example this callflow :

5001 -> 6005 :
2019-10-18 10:21:02.631368 [CRIT] switch_cpp.cpp:1443 [MONITOR] [CRIT]
RECORD_ID : 1571386828001 ON 7aaaeb37-935b-41d9-a666-2d839d811456
2019-10-18 10:21:02.631368 [WARNING] switch_cpp.cpp:1443 [MONITOR]
[WARNING] >>> Start recording of /RECORDING/1571386828001.oga for
session 7aaaeb37-935b-41d9-a666-2d839d811456
2019-10-18 10:21:02.652014 [WARNING] switch_cpp.cpp:1443 [MONITOR]
[WARNING] session._RECORDING_NAME : /RECORDING/1571386828001.oga /
session._record_id : 1571386828001 / session.UNIQUE_ID :
7aaaeb37-935b-41d9-a666-2d839d811456
2019-10-18 10:21:03.671370 [CRIT] switch_cpp.cpp:1443 [ASYNC] [CRIT]
WRITE RECORDING ID 1571386828001

6005 -> 5201 :
2019-10-18 10:21:27.911369 [CRIT] switch_cpp.cpp:1443 [MONITOR] [CRIT]
RECORD_ID : 1571386828002 ON 313537313338363838343531393230-sos0vtsjh2ex
2019-10-18 10:21:27.911369 [WARNING] switch_cpp.cpp:1443 [MONITOR]
[WARNING] >>> Start recording of /RECORDING/1571386828002.oga for
session 313537313338363838343531393230-sos0vtsjh2ex
2019-10-18 10:21:27.911369 [WARNING] switch_cpp.cpp:1443 [MONITOR]
[WARNING] session._RECORDING_NAME : /RECORDING/1571386828002.oga /
session._record_id : 1571386828002 / session.UNIQUE_ID :
313537313338363838343531393230-sos0vtsjh2ex
2019-10-18 10:21:28.951358 [CRIT] switch_cpp.cpp:1443 [ASYNC] [CRIT]
WRITE RECORDING ID 1571386828002

6005 TRANSFER 5001 on 5201 :
2019-10-18 10:22:03.311364 [CRIT] switch_cpp.cpp:1443 [MONITOR] [CRIT]
RECORD_ID : 1571386828003 ON 7aaaeb37-935b-41d9-a666-2d839d811456
2019-10-18 10:22:03.311364 [WARNING] switch_cpp.cpp:1443 [MONITOR]
[WARNING] >>> Start recording of /RECORDING/1571386828003.oga for
session 7aaaeb37-935b-41d9-a666-2d839d811456
2019-10-18 10:22:03.311364 [WARNING] switch_cpp.cpp:1443 [MONITOR]
[WARNING] session._RECORDING_NAME : /RECORDING/1571386828003.oga /
session._record_id : 1571386828003 / session.UNIQUE_ID :
7aaaeb37-935b-41d9-a666-2d839d811456
2019-10-18 10:22:04.351380 [CRIT] switch_cpp.cpp:1443 [ASYNC] [CRIT]
WRITE RECORDING ID 1571386828003

There i crash freeswitch with fsctl_crash and the recover session have :
2019-10-18 10:23:38.885653 [CRIT] switch_cpp.cpp:1443 [MONITOR] [CRIT]
RECORDING_ID:1571386828001

Value expected of RECORDING_ID after crash : 1571386828003

How i tested to set the value to force something (and while i don't
crash the value is true in the session (i checked)):
session:setVariable('_OLD_RECORDING_ID','')
other_session:setVariable('_OLD_RECORDING_ID','')
session:execute('export','_OLD_RECORDING_ID='..'')
other_session:execute('export','_OLD_RECORDING_ID='..'')
session:setVariable('_OLD_RECORDING_ID',tostring(old_recording_id))
other_session:setVariable('_OLD_RECORDING_ID',tostring(old_recording_id))
session:execute('export','_OLD_RECORDING_ID='..tostring(old_recording_id))
other_session:execute('export','_OLD_RECORDING_ID='..tostring(old_recording_id))

Thanks,
Tristan




More information about the FreeSWITCH-users mailing list