When I try and perform an operation on a channel which has gone, an error is returned.  How can I detect this using the ESL?  execute() and sendRecv() always return 0 (zero) regardless of whether the command returns +OK or –ERR.

 

sendmsg 5d09753c-ede7-11de-85c6-27ab474dd533

call-command: execute

execute-app-name: hangup

execute-app-arg: UNALLOCATED_NUMBER

 

Content-Type: command/reply

Reply-Text: -ERR invalid session id [5d09753c-ede7-11de-85c6-27ab474dd533]

 

Thanks,

Ron