Deferred Hangup for Long-Running Calls Initiated from Background Jobs (e.g., Hangfire) #1523
-
|
I'm establishing SIP calls from a Hangfire background job like this: The call needs to stay active for hours and be hung up later — either after a duration or at a specific datetime — triggered by a separate job, with no shared reference to the original SIPUserAgent. Is there a call/dialog identifier I can persist and later use to retrieve the active agent and call Hangup()? What's the recommended architecture for this use case? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Yes, the Call-ID in the dictionary approach sounds sensible. Holdings those objects for a long time shouldn't cause any issues other than the memory they will take up. The only gotsha that comes to mind is that the underlying RTPSession can end up lcosing if no packets are received for 30s in some cases depending on whether your audio is two way and whether the call is on hold etc. |
Beta Was this translation helpful? Give feedback.
Yes, the Call-ID in the dictionary approach sounds sensible. Holdings those objects for a long time shouldn't cause any issues other than the memory they will take up. The only gotsha that comes to mind is that the underlying RTPSession can end up lcosing if no packets are received for 30s in some cases depending on whether your audio is two way and whether the call is on hold etc.