Skip to main content

Detecting disconnected line

Posted by cbbs70a on Thu, 08/27/2009

This is somewhat off topic but is it possible to detect that a user called a disconnected line? The Asterisk cmd zapateller is used to generate the disconnected tone. What I'd like to do is the opposite, I'd like to detect it.
Thanks
FSD


Submitted by eeman on Thu, 08/27/2009 Permalink

that depends, if your using analog lines, no. Call progress is not a feature of analog service. Call progress is, however, a feature of PRI service and/or sip service (usually).

one option is ${DIALSTATUS} another is ${HANGUPCAUSE}

script around them based on the values they return (example, you dont want to fail over to another trunk if the hangup cause was 1 [not in service])