Skip to main content

Session destroy

Javascript is tied to the FreeSWITCH session and the session thread will block until the session destructor is called. The session.destroy() method detaches the current session from it's Javascript object, effectively making it go away to get collected sometime later.

Synopsis

session.destroy([hangup_cause]);

arguments

  • hangup_cause (optional)

Example

session.destroy();
session = undefined;

See Also