[asterisk-users] How can get user inputs from called party after dial?
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
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 http://www.voip-info.org/wiki/view/Asterisk+cmd+ReadIt'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 -- _ -- 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
Re: [asterisk-users] How can get user inputs from called party after dial?
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
Re: [asterisk-users] How can get user inputs from called party after dial?
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 -r 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 -- _ -- 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
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/111222) 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 -r 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.comwrote: 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 -- _ -- 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
Re: [asterisk-users] How can get user inputs from called party after dial?
Thank you Bruce, I think we are not on the same page. I have an AMI script that issue an originate command, after one channel is connected I'm in my dialplan at extensions_custom.conf (I use FreePBX). Now I'm issuing a Dial command to the another party that when he pick up the phone I play for him a message (using the A option in the Dial command) and then want to wait for his input, this is the case. 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:52 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 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 -r 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
Re: [asterisk-users] How can get user inputs from called party after dial?
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/111222) 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 -r 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
Re: [asterisk-users] How can get user inputs from called party after dial?
On Sat, 10 Jul 2010, bruce bruce wrote: You need to do some reading :-) Now that is funny -- maybe you could take your own advice and look at http://www.php.net/docs.php instead of posting please help me debug code I'm too lazy to even see if PHP says it is syntactically correct and the only relevance it has to Asterisk is I'm trying to concatenate some strings and make sure it could be a phone number requests. -- Thanks in advance, - Steve Edwards sedwa...@sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000 -- _ -- 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
Re: [asterisk-users] How can get user inputs from called party after dial?
I was under the impression that he is new to Asterisk. No need to fuss. Hence the :-) On Sat, Jul 10, 2010 at 3:35 PM, Steve Edwards asterisk@sedwards.comwrote: On Sat, 10 Jul 2010, bruce bruce wrote: You need to do some reading :-) Now that is funny -- maybe you could take your own advice and look at http://www.php.net/docs.php instead of posting please help me debug code I'm too lazy to even see if PHP says it is syntactically correct and the only relevance it has to Asterisk is I'm trying to concatenate some strings and make sure it could be a phone number requests. -- Thanks in advance, - Steve Edwards sedwa...@sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000 -- _ -- 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 -- _ -- 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