I’m scripting in javascript

 

How can I tell if the numer I called was occupied / busy?

 

session.answer();

var sessOut = new Session(trunk + dialedNum);

if (session.ready()) {

///  all ok

}

// WHAT IF dialed num was busy or occupied ??