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

Andrew Kohlsmith akohlsmith-asterisk at benshaw.com
Tue Jul 18 11:27:12 MST 2006


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 happening.

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.

Was this intentional, or just how it turned out to be?

-A.



More information about the asterisk-users mailing list