Dave Horton
Dave Horton
can you show the entire INVITE that causes the issue?
please try with the latest (note: master branch has been renamed to main)
The redis keys are inserted with an expiry of 10 seconds, [here](https://github.com/davehorton/drachtio-siprec-recording-server/blob/c050b20dfa8f6ec65ad8f71d9f1c3a53f62f0f07/lib/freeswitch-call-handler.js#L111) Therefore, they should disappear after 10 seconds. Perhaps the latter set request is somehow eliminating this expires value....
could you do a test for me? Try changing [this line](https://github.com/davehorton/drachtio-siprec-recording-server/blob/c050b20dfa8f6ec65ad8f71d9f1c3a53f62f0f07/lib/freeswitch-call-handler.js#L167) from ``` .set(sessionId, sdp) ``` to ``` .set(sessionId, sdp, 'KEEPTTL') ``` and see if that fixes it?
yes, you could just replicate the set ex command as used earlier. Try that -- if it works let me know. Feel free to make a PR
can you send a sip trace showing the above
Are you using freeswitch or rtpengine as the media proxy? It looks like the latter, but I just wanted to confirm
Would you be able to test a branch with a proposed fix?
Right, I provide example configs in the config/ directory - see [default.json.example-freeswitch](https://github.com/davehorton/drachtio-siprec-recording-server/blob/master/config/default.json.example-freeswitch) and [default.json.example-rtpengine](https://github.com/davehorton/drachtio-siprec-recording-server/blob/master/config/default.json.example-rtpengine). You need to copy one of them to config/default.json, edit if appropriate, before running the app....
yes, I agree that we should use a TTS to expire redis keys, but that is in fact what I am doing here: https://github.com/davehorton/drachtio-siprec-recording-server/blob/95a6e710d71d5eba373155821effea7921649f1f/lib/freeswitch-call-handler.js#L111 I set a 10 second expires...