Session state

From FreeSWITCH Wiki

Jump to: navigation, search

Returns the state of the current channel

Example

while(session.state == "CS_EXECUTE") {
 // do something fun
}

Note: you really should use session.ready instead of the above example

See Also

Javascript

Personal tools
Community