DTMF with outbound call

Hi everyone , i want to generate the outbound calls and play a IVR and also use DTMF rule with this outbound call and store the output of DTMF by using PHP AMI or any other method.I have tried many time but didn’t success in this task,it’s urgent if anyone have the solution then share the solution.

Maybe Im speaking out of line, but am sure I will get a slap on the wrist if I am…

Asteriskabhi, the way you ask your questions, are a bit …

“it’s urgent if anyone have the solution then share the solution”.
You are asking people that have spent a lot of time developing solutions to just share them, cause you have an urgency.

Think that you have been told before, that maybe you should hire an Asterisk specialist to help you with your issues.

When you choose not to do that, you HAVE to provide more information about the functionality you want to achieve and what you already have tried.

Without the information you will not get a lot of feedback on your questions.

For the immediate meta-problem see http://www.catb.org/esr/faqs/smart-questions.html#urgent although the whole document is probably relevant.

@meightee I am just asking about ideas only not developing the the application that’why i shared my post . i want to only who to do this in best way …and according to you i have to hire asterisk specialist …why? when i can do this …and without having asterisk knowledge could i post here? or without having asterisk knowledge can anyone made the AMI,AGI or ARI and know about IVR or dtmf? i posted here only those things that doesn’t works and take the support from experience experts …

Lot of info on why you ask about solutions, but still no information on what you have tried, how you have tried, what your configuration is like, what your scripts are like…

So even if there is someone who is willing to help, they cant as you have not provided any info on what you have done so far…

But think I have to stop now… starting to look like bashing…

Sorry Mr. meightee if you feel bad from any post. Thanks you for suggestion , if future i’ll follow this…

Thanks for your attention… sir

sir, i’m trying to play a simple message on outbound call and also using DTMF…like press 1 for apple,press 2 for mango ,press 3 other and store dtmf .

What have you tried so far to get this to work…?

How do you make the outbound call, how is the configuration of you ivr context?

Show us what you have done.

Hi , sir right now i m using below mention asterisk hard coding but i want to originate the call by php AMI with dtmf option and also store the dtmf key in asterisk cdr or in database.

exten => _X.,1,NoOp(Callerid: ${CALLERID(num)})
exten => _X.,n,NoOp(Callerid: ${CALLERID(name)})
exten => _X.,n,NoOp(Callerid: ${DID})
exten => _X.,n,Set(curdate=${STRFTIME(${EPOCH},%F)})
exten => _X.,n,Set(curtime=${STRFTIME(${EPOCH},%R)})
exten => _X.,n,Set(RECSUBDIR=${STRFTIME(${EPOCH},Asia/Calcutta,%d%b%Y)})

exten => _X.,n,Read(digit,/usr/ttt/Menu,1,1,10)
exten => _X.,n,GotoIf($["${digit}"=“1”]?BP:)
exten => _X.,n,GotoIf($["${digit}"=“2”]?CON:)
exten => _X.,n,GotoIf($["${digit}"=“3”]?SP:)
exten => _X.,n,GotoIf($["${digit}"=“4”]?PP:)
exten => _X.,n,GotoIf($["${digit}"=“5”]?P:)
exten => _X.,n,GotoIf($["${digit}"=“6”]?JU:)
exten => _X.,n,GotoIf($["${digit}"=""]?nokey:validkey)
exten => _X.,n,Hangup

exten => _X.,n(BP),Playback(/usr/ttt/BP)
exten => _X.,n,hangup()

exten => _X.,n(CON),Playback(/usr/ttt/CON)
exten => _X.,n,hangup()

exten => _X.,n(SP),Playback(/usr/ttt/SP)
exten => _X.,n,hangup()

exten => _X.,n(PP),Playback(/usr/ttt/PP)
exten => _X.,n,hangup()

exten => _X.,n§,Playback(/usr/ttt/P)
exten => _X.,n,hangup()

exten => _X.,n(JU),Playback(/usr/ttt/JU)
exten => _X.,n,hangup()

exten => _X.,n(nokey),playback(/usr/ttt/nokey)
exten => _X.,n,wait(5)
exten => _X.,n,hangup()

exten => _X.,n(validkey),playback(/usr/ttt/validkey)
exten => _X.,n,wait(5)
exten => _X.,n,hangup()

sir , how can we get the dtmf key on outgoing call and store the dtmf key in cdr or database? please guide me so that i’ll get success in this work.Thanks for your guidance

This chapter is great for learning how to to work with a database within asterisk.

http://www.asteriskdocs.org/en/3rd_Edition/asterisk-book-html-chunk/getting_funky.html

sir do you have any other option for getting DTMF using PHP AMI?

Sir,I want to make a script in php by which i can originate the calls and play a message and get dtmf during calls and store the dtmf input in cdr or database.i have tried so many time but didn’t get any success.

Show us what you have done, you say you have tried many times, but what have you tried…

1 Like

I wrote a use case, which shows some fundamental IVR/DTMF functionality. Playing the audio file and capturing the DTMF are the easy parts. Hope it helps!