Koozali.org: home of the SME Server

App for "If you know the number of the person"

Offline ldkeen

  • *
  • 405
  • +0/-0
App for "If you know the number of the person"
« 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

Offline compsos

  • *
  • 472
  • +0/-0
Re: App for "If you know the number of the person"
« Reply #1 on: January 21, 2011, 09:30:49 AM »
Lloyd

Do not know if this will help as I have never used it 
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(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.
Regards

Gordon............

Offline ldkeen

  • *
  • 405
  • +0/-0
Re: App for "If you know the number of the person"
« Reply #2 on: January 21, 2011, 08:53:08 PM »
Thanks Gordon, I'll give that a shot when I get back from Holidays.
Ta Lloyd

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: App for "If you know the number of the person"
« Reply #3 on: January 22, 2011, 01:31:05 AM »
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