[asterisk-users] Asterisk 11 dtmf not recognised
asterisk users
ast4774 at gmail.com
Tue May 28 09:49:16 CDT 2013
On Sat, May 25, 2013 at 10:32 PM, Gopalakrishnan N <
gopalakrishnan.an at gmail.com> wrote:
> Finally got it working with 3 attempts by the fialplan,
>
> exten = 300,1,Playback(letters/a)
> exten = 300,n,Set(gottries=0)
> exten = 300,n(getmore),Set(rightPIN=1)
>
> exten = 300,n,Read(inPIN,,1,skip,3,3) ; Attempts for 3 times with 3
> seconds of timeout
> exten = 300,n(gotdigit),GotoIf($["${inPIN}" =
> "${rightPIN}"]?pin-accepted,1)
> exten = 300,n,Set(gottries=$[${gottries}+1];
> exten = 300,n,GotoIf($[${LEN(${inPIN})} == 0]?reallynothing:gotdigit)
> exten = 300,n(reallynothing),GotoIf($[${gottries}>3]?done:getmore) ;
> Attempts for 3 tries if greater than 3 then it will come out or else
> getmore will called
> exten = 300,n(done),Playback(letters/c) ; Didn't go to pin-accepted, so
> play badPIN and hangup
>
> exten = pin-accepted,1,Playback(letters/b) ; correct pin, play
>
> Thanks
> On 25 May 2013 15:38, "Gopalakrishnan N" <gopalakrishnan.an at gmail.com>
> wrote:
>
>> Am using Read application to get the digit, since its recognizing... I
>> would like to get for 3 attempts and then after 3rd attempt it has to
>> playback some different message like entries exceeded.
>>
>> My dialplan as,
>> exten = 100,1(begin),Playback(letters/a)
>> exten = 100,n,Set(rightPIN=1)
>> exten = 100,n,Read(inPIN,,1,skip,3,3) ; Attempts for 5 times with 3
>> seconds of timeout
>> exten = 100,n,GotoIf($["${inPIN}" = "${rightPIN}"]?pin-accepted,1)
>> exten = 100,n,Playback(letters/c) ; Didn't go to pin-accepted, so play
>> badPIN and hangup
>> exten = pin-accepted,1,Playback(letters/b) ; correct pin, play
>>
>>
>> what happens its keep on asking to enter digit If my DTMF didnt match. Do
>> i need to use any return function... ?
>>
>> Actually my goal is to ask for 3 times and if not matched then return to
>> some other application.
>>
>> Thanks in advance.
>>
>>
>> On Sat, May 25, 2013 at 3:19 PM, Gopalakrishnan N <
>> gopalakrishnan.an at gmail.com> wrote:
>>
>>> With Asterisk 1.8 I got it working.
>>>
>>> Regards
>>>
>>>
>>> On Sat, May 25, 2013 at 2:37 AM, Gopalakrishnan N <
>>> gopalakrishnan.an at gmail.com> wrote:
>>>
>>>> Tried info, rfc2833, inband and finally kept as auto.
>>>> On 25 May 2013 02:20, "Doug Lytle" <support at drdos.info> wrote:
>>>>
>>>>> >> dtmfmode=auto
>>>>>
>>>>> dtmfmode=info
>>>>>
>>>>> or
>>>>>
>>>>> dtmfmode=rfc2833
>>>>>
>>>>> Doug
>>>>>
>>>>>
>>>>> --
>>>>> Ben Franklin quote:
>>>>>
>>>>> "Those who would give up Essential Liberty to purchase a little
>>>>> Temporary Safety, deserve neither Liberty nor Safety."
>>>>>
>>>>> --
>>>>> _____________________________________________________________________
>>>>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>>>>> New to Asterisk? Join us for a live introductory webinar every Thurs:
>>>>> http://www.asterisk.org/hello
>>>>>
>>>>> asterisk-users mailing list
>>>>> To UNSUBSCRIBE or update options visit:
>>>>> http://lists.digium.com/mailman/listinfo/asterisk-users
>>>>>
>>>>
>>>
>>
>
> Syntax check:
> exten = 300,n,Set(gottries=$[${gottries}+1];
> should be:
> exten = 300,n,Set(gottries=$[${gottries}+1])
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130528/27e08233/attachment.htm>
More information about the asterisk-users
mailing list