RE: [asterisk-users] Setvar=var=val in sip.conf

2006-07-18 Thread Ira
At 12:10 PM 7/18/2006, you wrote: Any other thoughts from those maintaining dialplans? How big an issue is this, really? Will it get bigger as the Asterisk community grows larger? Personally I just don't put whitespace anywhere in my dialplan except in $[] expressions where it was required a

RE: [asterisk-users] Setvar=var=val in sip.conf

2006-07-18 Thread Michael Collins
> There needs to be a *CLEAR* policy on when spaces are and are not > stripped! > This type of bug would be murder to track down! Spaces are typically > stripped from configuration files, and to have ONE variable type in the > config file behave differently is an *unbelievably* poor design. > > W

Re: [asterisk-users] Setvar=var=val in sip.conf

2006-07-18 Thread Andrew Kohlsmith
On Monday 17 July 2006 15:14, Joshua Colp wrote: > No, this will set the variable "cid_agent " to the value " 80014054". The > spaces are considered part of the variable name and variable value. This is insane! > setvar is no different. In the future you can use sip show peer to see what > is hap

Re: [asterisk-users] Setvar=var=val in sip.conf

2006-07-17 Thread Joshua Colp
> > 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 No, this will set the variable "cid_agent " to the value " 80014054". The spaces are considered part of the variable name and

RE: [asterisk-users] Setvar=var=val in sip.conf

2006-07-17 Thread Patrick
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: [ast

RE: [asterisk-users] Setvar=var=val in sip.conf

2006-07-17 Thread Douglas Garstang
> -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

Re: [asterisk-users] Setvar=var=val in sip.conf

2006-07-17 Thread Patrick
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: = You have everywhere: = Did you try removing all those spaces and use: setv

[asterisk-users] Setvar=var=val in sip.conf

2006-07-17 Thread Douglas Garstang
sip.conf: [2944093] type = friend context = one_start username = 2944093 accountcode = 2944093 subscribecontext = one_blf qualify = no canreinvite = no host = dynamic callgroup = 1 pickupgroup = 1 dtmfmode = rfc2833 nat = no mailbox = [EMAIL PROTECTED] callerid = Doug <2944093> setvar = cid_agent