[asterisk-users] How can get user inputs from called party after dial?

bruce bruce bruceb444 at gmail.com
Sat Jul 10 13:52:50 CDT 2010


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 <bruceb444 at 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 <egoltzman at 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-bounces at lists.digium.com [mailto:
>> asterisk-users-bounces at 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 <egoltzman at 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
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100710/3c9c389c/attachment.htm 


More information about the asterisk-users mailing list