On Mon, 2006-07-17 at 12:28 -0600, Douglas Garstang wrote: > > -----Original Message----- > > From: Patrick [mailto:[EMAIL PROTECTED] > > Sent: Monday, July 17, 2006 12:13 PM > > To: Asterisk Users Mailing List - Non-Commercial Discussion > > Subject: Re: [asterisk-users] Setvar=var=val in sip.conf > > > > > > On Mon, 2006-07-17 at 11:10 -0600, Douglas Garstang wrote: > > [snip] > > > setvar = cid_agent = 80014054 ; <---- This should set > > variable cid_agent to 80014054 > > > > Did you check the samples? All the lines in the samples use: > > <foo>=<bar> > > > > You have everywhere: > > <foo> = <bar> > > > > Did you try removing all those spaces and use: > > setvar=cid_agent=80014054 > > > > Don't want to be picky but if the samples say "setvar" I would use > > "setvar" and not "Setvar" as in the subject. No idea if it makes a > > difference but this is Asterisk so you never know (unless you > > are fluent > > in Asterisk code I guess). > > Turns out you can't have spaces between setvar and the '='. I'm going to open > a bug on this, because all other sip.conf settings are ok with a space.
I would like to see spaces or no spaces not make any difference. To me there is no logic in different behavior based on the (non-)use of spaces. There is the setvar space issue here and here's an example taken from Chapter 6 of the Asterisk book: exten => 123,1,Set(TEST=$[2+1]) <- means TEST = "2+1" while exten => 123,1,Set(TEST=$[2 + 1] <- means TEST = "3" Admittedly a long time ago but in math class at school "2+1" and "2 + 1" always added up to "3" :) Regards, Patrick _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
