[Asterisk-Users] realtime sip channel configuration - insecure option

2005-08-26 Thread Billy
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

___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] realtime sip channel configuration - insecure option

2005-08-26 Thread Matthew Boehm

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

___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users