Thank you Bruce, In the below example you sent the dialplan will stop after Dial.
I found the solution to my problem in the M option of the Dial command that let you run a macro BEFORE the parties are connected and continue the dialplan based on the MACRO_RESULT. Thanks for your help, Eyal From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of bruce bruce Sent: Saturday, July 10, 2010 9:53 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] How can get user inputs from called party after dial? For dial you do this: [first-Dialplan] exten => s,1,Answer exten => s,n,Dial(SIP/provider/1112223333) exten => s,n,Playback(Welcome) exten => s,n,Read(numb,,10) exten => s,n,NoOp(${numb}) -Bruce On Sat, Jul 10, 2010 at 2:51 PM, bruce bruce <bruceb...@gmail.com> wrote: You need to do some reading :-) I will give you a quick teach here. At the end of file /etc/asterisk/extensions_custom.conf (if you are running FreePBX) OR in /etc/asterisk/extensions.conf (if you are running vanilla Asterisk) add this: [first-Dialplan] exten => s,1,Answer exten => s,n,Playback(Welcome) exten => s,n,Read(numb,,10) exten => s,n,NoOp(${numb}) And send your inbound route to context first-Dialplan so that it's triggered when a call comes in. Then on terminal do a "asterisk -rvvvvvvvv" and you will see the NoOp show the DTMF number entered. From there on you can do anything you want with the variable ${numb} If any part of above is unclear to you, you must consult your friend, google, for examples of Asterisk dialplan. -Bruce On Sat, Jul 10, 2010 at 2:38 PM, Eyal Goltzman <egoltz...@gmail.com> wrote: Thanks, but I'm missing something here, the dial command is where? I need to do something like: Dial(1234) Read(1 digit) DoSomthing(based on digit from 1234) And as far as I understand the Dial start the call and only come back (ig you use the g option) after call finished. Eyal From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of bruce bruce Sent: Saturday, July 10, 2010 9:30 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] How can get user inputs from called party after dial? You need read(): http://www.voip-info.org/wiki/view/Asterisk+cmd+Read It's as easy as: exten => s,n,Read(variable,,11) exten => s,n,NoOp(${variable}) Above will take up to 11 digits input by user and will display it back in NoOP on Asterisk CLI. -Bruce On Sat, Jul 10, 2010 at 2:16 PM, eyal goltzman <egoltz...@gmail.com> wrote: Hi, I want to dial a party, play him a message and wait for his input, i.e. DTMF digits and use them to control the rest of the dial plan. How do I do it? If I use Dial it will not return until the end of the call, isn't it? Thanks, Eyal -- _____________________________________________________________________ -- 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 No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.830 / Virus Database: 271.1.1/2991 - Release Date: 07/10/10 09:36:00 -- _____________________________________________________________________ -- 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 No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.830 / Virus Database: 271.1.1/2991 - Release Date: 07/10/10 09:36:00
-- _____________________________________________________________________ -- 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