I am stumped In features.conf,I programmed this [applicationmap] Answer0 => 0,self/both,Macro,nway_start But do I pass an argument or parameter to my macro? I tried Answer0 => 0,self/both,Macro,nway_start^0 Answer0 => 0,self/both,Macro,nway_start,0 but the usuar variable ${ARG1} is empty in my dialplan. The issue is that my macro needs to know what key was pressed. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130830/1baffdf7/attachment.htm>
Satish Barot
2013-Aug-30 06:56 UTC
[asterisk-users] asterisk-users Digest, Vol 109, Issue 30
On Fri, Aug 30, 2013 at 11:44 AM, CDR <venefax at gmail.com> wrote:> > I am stumped > In features.conf,I programmed this > > [applicationmap] > Answer0 => 0,self/both,Macro,nway_start > > But do I pass an argument or parameter to my macro? I tried > Answer0 => 0,self/both,Macro,nway_start^0 > Answer0 => 0,self/both,Macro,nway_start,0 > > but the usuar variable ${ARG1} is empty in my dialplan. > The issue is that my macro needs to know what key was pressed. > >nway_start macro will only get executed when 0 is pressed and not on any other key press. When in macro nway_start, You can safely assume that only 0 is pressed. --Satish Barot Ahmedabad, India. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130830/a9e44979/attachment.htm>