I tried to enter Date Of Birth as 11211971
through my phone, but IVR (Interactive Voice Response) has 11121197
.
please tell anybody what is the root cause for this issue
It is my code
exten => s,n,Read(dateofbirth,${ANOUNCEMENT_RECORDINGS}/HIP-5A1,8,s)
exten => s,n,GotoIf($["${dateofbirth}" = ""]?retry-dateofbirth-notentered)
exten => s,n,Set(monthofbirth=${dateofbirth:0:2})
exten => s,n,Set(dayofbirth=${dateofbirth:2:2})
exten => s,n,Set(yearofbirth=${dateofbirth:4:4开发者_Python百科})
exten => s,n,Goto(${IF($[$[${LEN(${monthofbirth})} != 2]|$[${monthofbirth} > 12] |$["${monthofbirth}" ="00"]|$["${monthofbirth}" ="**"]|$[${LEN(${dayofbirth})}!=2]|$[${dayofbirth} > 31]|$["${dayofbirth}" ="00"]|$["${dayofbirth}" ="**"]|$[${LEN(${yearofbirth})} !=4]|$["${yearofbirth}" ="0000"]|$["${yearofbirth}" ="****"]]?retry-dateofbirth-invalid:saydateofbirth)})
My assumption is if you are caling from DID and entering DTMF there might be some problem with DTMF receiving or DTMF negotiations in asterisk side you need to put relaxdtmf=yes , rfc2833compensate=yes and dtmfmode=rfc2833 if your provider support it.
if you are calling from softphone then try to enable dtmf type in softphone or sip hard phone.
精彩评论