[Asterisk-Users] How do i make best use of Macro?

Steven Critchfield critch at basesys.com
Wed Jun 11 13:12:14 MST 2003


On Wed, 2003-06-11 at 14:43, Tilghman Lesher wrote:
> On Wednesday 11 June 2003 02:09 pm, Steven Critchfield wrote:
> > Okay, while reading over this thread it occured to me one more
> > feature that should be real simple to add to app_meetme.c that
> > would solve quite a bit of what is trying to be done here. The
> > feature that needs to be added is a function to pass in a variable
> > and let meetme populate it with the current number of users.
> > Possibly have it be a second argument to the current MeetMeCount
> > that would populate the variable and skip the ast_say_number
> > function. This would allow it to be backwards compatible, while
> > moving forward.
> >
> > How it would benefit the current question is that you could
> > basically script up a fall through set of priorities that made it
> > work
> >
> > exten=> x,1,MeetMeCount(1234,num)
> 
> Applications can only take a single argument.  I would propose
> using something like (e1234) - e for export variable; then export
> the value to a common variable like ${MEETMECOUNT}.

True and false. You get passed data, and what you do with data is up to
you. I could split on some non important character and do what I want
with the string. So while you are correct, I can do anything I want with
my string.

-- 
Steven Critchfield  <critch at basesys.com>




More information about the asterisk-users mailing list