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

Douglas Garstang dgarstang at oneeighty.com
Mon Jul 17 11:28:27 MST 2006


> -----Original Message-----
> From: Patrick [mailto:asterisk-list at puzzled.xs4all.nl]
> 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.

Doug.



More information about the asterisk-users mailing list