Koozali.org: home of the SME Server
Obsolete Releases => SME VoIP (Asterisk, SAIL etc) => Topic started by: del on August 15, 2007, 05:52:09 PM
-
Hi All,
Is it possible to dial a users extension during a greeting message? Like this, someone calls>greeting for IVR menu options plays>user dials 5005 during this message and ext 5005 rings. At the moment I get the operators ext almost as soon as I dial the first digit of the ext :shock: I don't have an option 5 on the IVR because I thought that this would prevent dialing exts. Am I missing something? Thanks in advance.
Regards,
Del
-
Each IVR has 12 options (0 through 9, * and #). Next to each option is a dropdown list of all available options. Lets say, "Press 5 for Jim" and Jim is at extention 5005. You would choose extension 5005 for option 5.
Hope that makes sense.
-
Hello Del,
re your question...
This is only possible on the stock "default" IVR. What we recommend is that you specify an option in the greeting (we normally use *) to input an extension number. Then create a custom app to handle the actual transfer. For example greeting says "... otherwise if you know extension... yadda yadda yadda, press the star key now..."
Point the star key (in the IVR ) at a custom app which looks a bit like this...
include => internal-presets
include => extensions
exten => s,1,Background(usergreeting7998)
exten => s,2,Background(silence/5)
exten => s,3,Goto(EnterExt,t,1)
exten => t,1,Goto(extensions,${sysop},1)
exten => t,2,Hangup
Obviously, your usergreeting will be different to the one referenced and it should say something like "Enter the extension you require"
The reason we do it like this is that the AGI only listens for a single dtmf digit. Therefore, we break out to asterisk to do the multi-dtmf listen.
Best
S
-
Hi Selintra,
Thank you, that works great 8-) Can you tell me where I can get some good reading on custom apps? I can work out what to change once I have seen the app, but have no idea how to start from scratch :-?
Thanks again for your help and all your work on this great contrib :-)
Regards,
Del
-
This is the best reference that currently exists. It's a little out of date but none the worse for that...
http://www.oreilly.com/catalog/asterisk/index.html
Best
S
-
Hi Selintra,
Thanks for the link. You and others maybe interested in knowing that the book "Asterisk: The Future of Telephony" is now available under the Creative Commons license (or even licence :wink:) and can be downloaded from http://www.asteriskdocs.org/modules/tinycontent/index.php?id=11
One other thing, how do I delete unwanted system greetings?
Regards,
Del
-
There isn't a delete finction in the gui. However, the greetings are all called usergreetingnnnn where nnnn is the greeting number you chose when it was recorded. They are all kept in /var/lib/asterisk/sounds so you can delete them manually if you really want to get rid of them.
Best
S
-
Hi Selintra,
Thanks again for your help.
Regards,
Del
-
Hi,
I had problems with the above info pertaining to entering a known extension. It didn't work for me. I worked it out and here is what I ended up with:
Custom App named: "enter-extension"
include => internal-presets
include => extensions
exten => s,1,Set(TIMEOUT(digit)=5) ;Digit Timeout 5 secs
exten => s,n,Set(TIMEOUT(response)=10) ;Response Timeout 10
exten => s,n,Background(usergreeting0002)
exten => s,n,WaitExten ;Wait for an extension to be dialed
exten => s,n,Goto(enter-extension,t,1)
exten => i,1,Playback(pbx-invalid)
exten => i,2,Goto(enter-extension,s,1)
exten => t,1,Goto(extensions,${SYSOP},1)
exten => t,2,Hangup
Remember to change the recording (Background) to meet your needs.