Hi all
what i need is a service where caller hears a message ( like: Hello, digits the conference ID… ) and then digits a code ( that is a conference ID ).
I am trying to use DISA. It works fine but i have to wait the end of message, before send digits.
What i need is while message in playing i want to start to send DTMF codes ( message stops as soon as firts digit is pressed ).
I found Background command and I suppose Read command, but how can a collect digits and then pass them to DISA???
Any suggestions???
Thanks
Here my code:
[code][app-announcement-4]
include => app-announcement-4-custom
exten => fax,1,Goto(${CUT(FAX_DEST,^,1)},${CUT(FAX_DEST,^,2)},${CUT(FAX_DEST,^,3)})
exten => s,1,GotoIf($["${CDR(disposition)}" = “ANSWERED”]?begin)
exten => s,n,Answer
exten => s,n,Wait(1)
exten => s,n(begin),Noop(Playing announcement Lingua ENG - LW4YOU)
exten => s,n,Background(custom/Lw4You_ENG,noanswer)
exten => s,n,Goto(disa,1,1)
;–== end of [app-announcement-4] ==–;
[disa]
include => disa-custom
exten => 1,1,Answer
exten => 1,n,Set(_DISA=disa^1^newcall)
exten => 1,n(newcall),Set(_DISACONTEXT=from-internal)
exten => 1,n,Set(_KEEPCID=TRUE)
exten => 1,n,Set(_HANGUP=${TRUNK_OPTIONS})
exten => 1,n,Set(TIMEOUT(digit)=4)
exten => 1,n,Set(TIMEOUT(response)=50)
exten => 1,n,DISA(no-password,disa-dial)
exten => 1,n(end),Hangup [/code]