ReceiveSF(variable[,digits,timeout,frequency,options])
Dialplan Builder
-- build your ReceiveSF() command
The input digits will be stored in the given *variable* name.
Maximum number of digits to read. Default is unlimited.
The number of seconds to wait for all digits, if greater than `0`. Can be floating point. Default is no timeout.
The frequency for which to detect pulsed digits. Default is 2600 Hz.
Delay audio by a frame to try to extra quelch.
Allow receiving extra pulses 11 through 16.
Mute conference.
Quelch SF from in-band.
"Radio" mode (relaxed SF).
Full arguments reference
variablerequired - The input digits will be stored in the given variable name.digits- Maximum number of digits to read. Default is unlimited.timeout- The number of seconds to wait for all digits, if greater than0. Can be floating point. Default is no timeout.frequency- The frequency for which to detect pulsed digits. Default is 2600 Hz.optionsd- Delay audio by a frame to try to extra quelch.e- Allow receiving extra pulses 11 through 16.m- Mute conference.t- Post-digit timeout, in seconds. If more than this amount of time elapses after a digit, the number will be deemed finalized and the application will return This is useful when reading a variable number of digits that is unknown in advance. This can be almost any positive decimal number of seconds, but must be no less than 0.6 seconds, since this is the SF inter-digit timeout. The default is 0.8, which should be compatible withSendSF. Values lower than 0.75 will generally produce unreliable results. Note this timer only kicks in after at least one digit has been received, to account for sender/receiver synchronization. Note thatRECEIVESFSTATUSwill still be set toTIMEOUTif the post-digit timer expires.q- Quelch SF from in-band.r- "Radio" mode (relaxed SF).
Description
Reads SF digits from the user in to the given variable.
This application does not automatically answer the channel and should be preceded with Answer or Progress as needed.
- RECEIVESFSTATUS - This is the status of the read operation.
STARTERRORHANGUPMAXDIGITSTIMEOUT
Arguments
variablerequired - The input digits will be stored in the given variable name.digits- Maximum number of digits to read. Default is unlimited.timeout- The number of seconds to wait for all digits, if greater than0. Can be floating point. Default is no timeout.frequency- The frequency for which to detect pulsed digits. Default is 2600 Hz.optionsd- Delay audio by a frame to try to extra quelch.e- Allow receiving extra pulses 11 through 16.m- Mute conference.t- Post-digit timeout, in seconds. If more than this amount of time elapses after a digit, the number will be deemed finalized and the application will return This is useful when reading a variable number of digits that is unknown in advance. This can be almost any positive decimal number of seconds, but must be no less than 0.6 seconds, since this is the SF inter-digit timeout. The default is 0.8, which should be compatible withSendSF. Values lower than 0.75 will generally produce unreliable results. Note this timer only kicks in after at least one digit has been received, to account for sender/receiver synchronization. Note thatRECEIVESFSTATUSwill still be set toTIMEOUTif the post-digit timer expires.q- Quelch SF from in-band.r- "Radio" mode (relaxed SF).
User Notes
Know a tip or gotcha for this topic? Share it below and help others.
Contribute a note
Share a tip, gotcha, or practical example. Keep it under 2000 characters. No questions (use the Asterisk community forums for support). Wrap code in backticks.
Related
Applications
ConfBridge()
MusicOnHold()
StartMusicOnHold()
StopMixMonitor()
ADSIProg()
AELSub()
AGI()
AMD()
AddQueueMember()
AgentLogin()
AgentRequest()
AlarmReceiver()
Answer()
AttendedTransfer()
AudioSocket()
Authenticate()
Background()
BackgroundDetect()
BlindTransfer()
Bridge()
BridgeAdd()
BridgeWait()
Broadcast()
Busy()
CELGenUserEvent()
CallCompletionCancel()
CallCompletionRequest()
ChanIsAvail()
ChanSpy()
ChangeMonitor()
ChannelRedirect()
ClearHash()
ConfKick()
Congestion()
ContinueWhile()
ControlPlayback()
DAHDIAcceptR2Call()
DAHDIRAS()
DAHDIScan()
DAHDISendCallreroutingFacility()
DAHDISendKeypadFacility()
DBdeltree()
DISA()
DateTime()
DeadAGI()
Dial()
Dictate()
Directory()
DumpChan()
EAGI()
Echo()
Else()
ElseIf()
EndIf()
EndWhile()
Exec()
ExecIf()
ExecIfTime()
ExitIf()
ExitWhile()
ExtenSpy()
ExternalIVR()
Festival()
Flash()
FollowMe()
ForkCDR()
GetCPEID()
Gosub()
GosubIf()
Goto()
GotoIf()
GotoIfTime()
Hangup()
HangupCauseClear()
IAX2Provision()
ICES()
IVRDemo()
If()
ImportVar()
Incomplete()
JACK()
JabberJoin()
JabberLeave()
JabberSend()
JabberSendGroup()
JabberStatus()
Log()
MP3Player()
MSet()
Macro()
MacroExclusive()
MacroExit()
MacroIf()
MailboxExists()
MeetMe()
MeetMeAdmin()
MeetMeChannelAdmin()
MeetMeCount()
MessageSend()
Milliwatt()
MinivmAccMess()
MinivmDelete()
MinivmGreet()
MinivmMWI()
MinivmNotify()
MinivmRecord()
MixMonitor()
Monitor()
Morsecode()
NBScat()
NoCDR()
NoOp()
ODBCFinish()
ODBC_Commit()
ODBC_Rollback()
OSPAuth()
OSPFinish()
OSPLookup()
OSPNext()
Originate()
PJSIPHangup()
PJSIPNotify()
Page()
Park()
ParkAndAnnounce()
ParkedCall()
PauseMonitor()
PauseQueueMember()
Pickup()
PickupChan()
PlayTones()
Playback()
PrivacyManager()
Proceeding()
Progress()
Queue()
QueueLog()
QueueUpdate()
RaiseException()
Read()
ReadExten()
ReceiveFAX()
ReceiveMF()
ReceiveSF()
ReceiveText()
Record()
Reload()
RemoveQueueMember()
ResetCDR()
RetryDial()
Return()
Ringing()
SIPAddHeader()
SIPDtmfMode()
SIPRemoveHeader()
SIPSendCustomINFO()
SLAStation()
SLATrunk()
SMS()
SayAlpha()
SayAlphaCase()
SayCountedAdj()
SayCountedNoun()
SayDigits()
SayMoney()
SayNumber()
SayOrdinal()
SayPhonetic()
SayUnixTime()
SendDTMF()
SendFAX()
SendImage()
SendMF()
SendSF()
SendText()
SendURL()
Set()
SetAMAFlags()
Signal()
SkelGuessNumber()
SoftHangup()
SpeechActivateGrammar()
SpeechBackground()
SpeechCreate()
SpeechDeactivateGrammar()
SpeechDestroy()
SpeechLoadGrammar()
SpeechProcessingSound()
SpeechStart()
SpeechUnloadGrammar()
StackPop()
Stasis()
StatsD()
StopMonitor()
StopMusicOnHold()
StopPlayTones()
StoreDTMF()
StreamEcho()
System()
TestClient()
TestServer()
ToneScan()
Transfer()
TryExec()
TrySystem()
UnpauseMonitor()
UnpauseQueueMember()
UserEvent()
VMAuthenticate()
VMSayName()
Verbose()
VoiceMail()
VoiceMailMain()
VoiceMailPlayMsg()
Wait()
WaitDigit()
WaitExten()
WaitForCondition()
WaitForNoise()
WaitForRing()
WaitForSignal()
WaitForSilence()
WaitForTone()
WaitUntil()
While()
Zapateller()