Would someone willing to help me figure out how to handle a process in extensions.conf?
What I need to do is be able to call an extension, have the user enter a phone number to call, then place user on hold, call number and prompt destination to accept call, if they accept call then I need to connect extension to destination
Here is the sudo code I have worked out for this process, but I cannot find any real help in searching:
OffHook
Answer()
Say "Please enter number to call"
Get Digits to call
Say "Please Hold
Place Extension on Hold
Dial Number Entered
When Answered Say "this is a call from me, Would you like to accept this call"
IF {Call is accepted} THEN Connect Call with extension
ELSE {Hangup call, tell extension refused}
Call Complete hangup extension and destination
OnHook
The simpler the example for doing this the better. I can expand on the simplicity for my application…