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

Billy billy at costtel.com
Fri Aug 26 06:48:34 MST 2005


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




More information about the asterisk-users mailing list