[asterisk-users] [1.4.21.2] Checking that already off-hook?

Vincent vincent.delporte at bigfoot.com
Tue Sep 23 03:22:27 CDT 2008


Hello

Here's the scenario in my extensions.conf:

1. Check that CID is available
2. If not, go off-hook, and prompt the caller to type their CID number
3. Whether it was sent directly by the telco or input by the caller,
look up the CID number if the DB, and rewrite the CID name on the fly
4. In the main menu, if not already off-hook, go off-hook; Then, play
a menu to choose an extension

So if the user calls with a CID number unmasked, once in Step 4, I
need to check if the FXO card is already off-hook before playing the
menu. What's a reliable way to check for this?

Thank you.




More information about the asterisk-users mailing list