Billy
2005-Aug-26 06:48 UTC
[Asterisk-Users] realtime sip channel configuration -> insecure option
Hi all I'm trying to figure out what values are valid for the "insecure" option in a realtime configuration table. The table field is 4 chars long and the actual valid values for this is longer. Can I modify the field length or has this changed? Below is where I looked, if I'm not looking in the right place please let me know. the field on the table is: ... `insecure` varchar(4) default NULL, ... (http://www.voip-info.org/tiki-index.php?page=Asterisk+RealTime+Sip) the actual values for this option (that I have found) are: port: ignore the port number where authentication came from invite: don't require initial INVITE to authenticate port,invite: don't require initial INVITE to authenticate and ignore the port where the request came from (http://www.voip-info.org/tiki-index.php?page=Asterisk+sip+insecure) also found this on chan_sip.c: /*--- insecure2str: Convert Insecure setting to printable string ---*/ static const char *insecure2str(int port, int invite) { if (port && invite) return "port,invite"; else if (port) return "port"; else if (invite) return "invite"; else return "no"; } thanks Guillermo Krepper
Matthew Boehm
2005-Aug-26 08:08 UTC
[Asterisk-Users] realtime sip channel configuration -> insecure option
Billy wrote:> `insecure` varchar(4) default NULL,This can be changed. I just read the chan_sip.c code and the following values are acceptable: "very" "yes" "true" <basically anything with true/false value> "port" "invite" "port,invite" "invite,port" The varchar(4) was originally intended for: "very", "yes" or "no" -Matthew