Koozali.org: home of the SME Server

Dialing Ext # through SAIL IVR menu

Offline del

  • *
  • 765
  • +0/-0
Dialing Ext # through SAIL IVR menu
« 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
If at first you don't succeed, then sky-diving is not for you!
"Life is like a coin. You can spend it anyway you wish, but you can only spend it once." --Author Unknown

Offline pfloor

  • *****
  • 889
  • +1/-0
Re: Dialing Ext # through SAIL IVR menu
« Reply #1 on: August 15, 2007, 06:40:02 PM »
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.
In life, you must either "Push, Pull or Get out of the way!"

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Dialing Ext # through SAIL IVR menu
« Reply #2 on: August 15, 2007, 06:47:06 PM »
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...

Code: [Select]
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

Offline del

  • *
  • 765
  • +0/-0
Re: Dialing Ext # through SAIL IVR menu
« Reply #3 on: August 15, 2007, 07:32:56 PM »
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
If at first you don't succeed, then sky-diving is not for you!
"Life is like a coin. You can spend it anyway you wish, but you can only spend it once." --Author Unknown

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Dialing Ext # through SAIL IVR menu
« Reply #4 on: August 15, 2007, 11:44:05 PM »
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

Offline del

  • *
  • 765
  • +0/-0
Re: Dialing Ext # through SAIL IVR menu
« Reply #5 on: August 16, 2007, 02:49:06 PM »
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
« Last Edit: August 16, 2007, 03:33:10 PM by del »
If at first you don't succeed, then sky-diving is not for you!
"Life is like a coin. You can spend it anyway you wish, but you can only spend it once." --Author Unknown

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Dialing Ext # through SAIL IVR menu
« Reply #6 on: August 16, 2007, 11:06:33 PM »
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

Offline del

  • *
  • 765
  • +0/-0
Re: Dialing Ext # through SAIL IVR menu
« Reply #7 on: August 17, 2007, 04:36:12 AM »
Hi Selintra,

Thanks again for your help.

Regards,
Del
If at first you don't succeed, then sky-diving is not for you!
"Life is like a coin. You can spend it anyway you wish, but you can only spend it once." --Author Unknown

Offline sonoracomm

  • *
  • 208
  • +0/-0
    • http://www.sonoracomm.com
Re: Dialing Ext # through SAIL IVR menu
« Reply #8 on: October 13, 2007, 11:04:50 PM »
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"

Code: [Select]
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.