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

Martin Pycko martinp at digium.com
Tue Jul 1 13:14:05 MST 2003


The meetmecount app is supposed to tell you the number of participants in
a certain conf number. However it does not create the var variable.
The error about "wrong use of LEN(" was do to the fact that your var
variable does not exist and it was a bug. It's fixed now.

Martin

On Tue, 1 Jul 2003 critch at basesys.com wrote:

> Steven,
>
> I tried the following:
>
> [Conferences]
> exten => 3333,1,MeetMeCount(3333|var)
> exten => 3333,2,SayNumber(${var})
> exten => 3333,3,Meetme(3333)
>
> but I get the following error:
>
> NOTICE[48152]: File pbx.c, Line 900 (pbx_substitute_variables_temp): Wrong
> use of LEN(VARIABLE)
>
> It still let's me join the conference but it says "zero" no matter how many
> people are in the conference.
>
> What am I doing wrong?
>
> Michael
>
> > Since there was some interest in this, here is the diff against current
> > cvs. Someone that is better at C should look into my use of strsep
> > because there is a couple of warnings. Also there is a warning on my use
> > of pbx_builtin_setvar_helper, but I can't see whats wrong here.
> >
> > BTW, SayNumber doesn't seem to say '0'.
> >
> > Usage is like this.
> >
> > exten => 1234,1,MeetMeCount(1234|var)
> > exten => 1234,2,SayNumber(${var})
> > exten => 1234,3,MeetMe(1234)
>
> >-----Original Message-----
> >From: asterisk-users-admin at lists.digium.com [mailto:asterisk-users-
> >admin at lists.digium.com] On Behalf Of Steven Critchfield
> >Sent: Thursday, June 26, 2003 2:18 PM
> >To: asterisk-users at lists.digium.com
> >Subject: Re: [Asterisk-Users] hunt group
> >
> >Granted I haven't read the handbook in a while, but I think this might
> >be a unique question worth answering.
> >
> >The idea should be that you create each user as a group. And then you
> >dial with Zap to each of the 4 groups. Asterisk will call out using the
> >lowest port in each of the groups. This accomplishes what you mentioned.
> >
> >for the zapata interface use something like
> >group = 1 ; 4 line phone 1
> >channel => 1-4
> >group = 2 ; 4 line phone 2
> >channel => 5-8
> >group = 3 ; 4 line phone 3
> >channel => 9-12
> >group = 4 ; last 4 line phone
> >channel => 13-16
> >
> >and your dial string will be like
> >exten => _X.,1,Dial(Zap/g1&Zap/g2&Zap/g3&Zap/g4)
> >
> >
> >On Thu, 2003-06-26 at 16:08, Jeremy McNamara wrote:
> >> See zapata.conf.sample group keyword and the Asterisk Handbook, this is
> >> covered there.
> >>
> >>
> >>
> >> Jeremy McNamara
> >>
> >>
> >> Joe Antkowiak wrote:
> >>
> >> >I was wondering if someone could point me in the right direction with
> >> >this...
> >> >
> >> >I have 3 4-line phones, all connected to a * box via a T100P and channel
> >> >bank.
> >> >
> >> >I essentially want to create a "hunt group" for each phone, and then as
> >> >calls come in, Dial to include the 3 different hunt groups, so that if
> >one
> >> >user is on line 1 of their phone, a new incoming call will go to line 2
> >of
> >> >their phone, but line 1 of the others.
> >> >
> >> >Can I do this with hints?
> >> >
> >> >Thanks.
> >> >
> >> >-Joe
> >> >
> >> >_______________________________________________
> >> >Asterisk-Users mailing list
> >> >Asterisk-Users at lists.digium.com
> >> >http://lists.digium.com/mailman/listinfo/asterisk-users
> >> >
> >> >
> >>
> >>
> >> _______________________________________________
> >> Asterisk-Users mailing list
> >> Asterisk-Users at lists.digium.com
> >> http://lists.digium.com/mailman/listinfo/asterisk-users
> >--
> >Steven Critchfield  <critch at basesys.com>
> >
> >_______________________________________________
> >Asterisk-Users mailing list
> >Asterisk-Users at lists.digium.com
> >http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
>




More information about the asterisk-users mailing list