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.
Julien Claassen
2008-Sep-23 10:23 UTC
[asterisk-users] [1.4.21.2] Checking that already off-hook?
Hi! I wouldn't know a proper way to check for off-hook. But, couldn't you change your dialplan? 1. answer the call 2. check for CID 3. branch with a gotoif 4. Enter CID 5. Look up CID in your DB and whatever 6. Playback the mainmenu welcome [go on] Something like this? Kindest regards Julien -------- Music was my first love and it will be my last (John Miles) ======== FIND MY WEB-PROJECT AT: =======http://ltsb.sourceforge.net the Linux TextBased Studio guide ======= AND MY PERSONAL PAGES AT: ======http://www.juliencoder.de