Koozali.org: home of the SME Server
Obsolete Releases => SME VoIP (Asterisk, SAIL etc) => Topic started by: ldkeen on January 21, 2011, 01:06:28 AM
-
All calls coming into the server are answered by the IVR and I've set the following:
Press 1 - ext 5000
Press 2 - ext 5001
etc etc.
But what I'd like to do is have the server "listen" for the 4 digit extension dialed by the remote party. Has anybody already implemented this yet or can someone point me in the right direction.
Ta Lloyd
-
Lloyd
Do not know if this will help as I have never used it
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(usergreetingNNNN)
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
It was in my custom apps.
-
Thanks Gordon, I'll give that a shot when I get back from Holidays.
Ta Lloyd
-
Hello
You can also use the SAIL default IVR (choose "default IVR" from the trunk open/closed drop-down). It simply says " if you know the extension of the party you wish to contact, please dial it now. Otherwise, please hold for an operator".
That should do it without any coding
Kind Regards
S