Session destroy

From FreeSWITCH Wiki
Jump to: navigation, search

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.

Contents

Synopsis

 session.destroy([hangup_cause]);

arguments

  • hangup_cause - Optional.

Example

 session.destroy();
 session = undefined;

See Also