[asterisk-commits] qwell: trunk r95070 - in /trunk: doc/asterisk.8 main/asterisk.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Dec 27 17:28:02 CST 2007


Author: qwell
Date: Thu Dec 27 17:28:01 2007
New Revision: 95070

URL: http://svn.digium.com/view/asterisk?view=rev&rev=95070
Log:
Fix -s socket option, and document it as well.

Closes issue #11645, patch by Laureano.

Modified:
    trunk/doc/asterisk.8
    trunk/main/asterisk.c

Modified: trunk/doc/asterisk.8
URL: http://svn.digium.com/view/asterisk/trunk/doc/asterisk.8?view=diff&rev=95070&r1=95069&r2=95070
==============================================================================
--- trunk/doc/asterisk.8 (original)
+++ trunk/doc/asterisk.8 Thu Dec 27 17:28:01 2007
@@ -12,7 +12,7 @@
 \fBasterisk\fR [ \fB-tThfdvVqpRgciIn\fR ] [ \fB-C \fIfile\fB\fR ] [ \fB-U \fIuser\fB\fR ] [ \fB-G \fIgroup\fB\fR ] [ \fB-x \fIcommand\fB\fR ] [ \fB-M \fIvalue\fB\fR ]
 
 
-\fBasterisk -r\fR [ \fB-v\fR ] [ \fB-x \fIcommand\fB\fR ]
+\fBasterisk -r\fR [ \fB-v\fR ] [ \fB-x \fIcommand\fB\fR ] [ \fB-s \fIsocket\fB\fR ]
 
 .SH "DESCRIPTION"
 .PP
@@ -117,6 +117,10 @@
 for controlling it. Additionally, if connection to the Asterisk 
 process is lost, attempt to reconnect for as long as 30 seconds.
 .TP
+\fB-s \fIsocket\fB\fR
+Allows to specify the socket file to be used to connect to the
+Asterisk console. Used in conjunction with \fB-r\fR or \fB-R\fR.
+.TP
 \fB-I\fR
 Enable internal timing if Zaptel timer is available
 The default behaviour is that outbound packets are phase locked

Modified: trunk/main/asterisk.c
URL: http://svn.digium.com/view/asterisk/trunk/main/asterisk.c?view=diff&rev=95070&r1=95069&r2=95070
==============================================================================
--- trunk/main/asterisk.c (original)
+++ trunk/main/asterisk.c Thu Dec 27 17:28:01 2007
@@ -2851,7 +2851,7 @@
 	ast_readconfig();
 
 	if (ast_opt_remote && remotesock != NULL)
-		ast_copy_string((char *) ast_config_AST_SOCKET, remotesock, sizeof(ast_config_AST_SOCKET));
+		ast_copy_string((char *) cfg_paths.socket_path, remotesock, sizeof(cfg_paths.socket_path));
 
 	if (!ast_language_is_prefix && !ast_opt_remote)
 		ast_log(LOG_WARNING, "The 'languageprefix' option in asterisk.conf is deprecated; in a future release it will be removed, and your sound files will need to be organized in the 'new style' language layout.\n");




More information about the asterisk-commits mailing list