@@ -4623,15 +4623,27 @@ void config_init (char *fname, struct audio_s *p_audio_config,
4623
4623
* IGSERVER hostname [ port ] -- original implementation.
4624
4624
*
4625
4625
* IGSERVER hostname:port -- more in line with usual conventions.
4626
+ *
4627
+ * Beginning in version 1.8 we will also recognize CWOPSERVER.
4628
+ * The only difference, in this file, is that we set cwop_mode.
4629
+ * Of course the IGate code acts quite differently.
4626
4630
*/
4627
4631
4628
- else if (strcasecmp (t , "IGSERVER" ) == 0 ) {
4632
+ else if (strcasecmp (t , "IGSERVER" ) == 0 || strcasecmp (t , "CWOPSERVER" ) == 0 ) {
4633
+ if (strcasecmp (t , "CWOPSERVER" ) == 0 ) {
4634
+ p_igate_config -> cwop_mode = 1 ;
4635
+ }
4629
4636
t = split (NULL ,0 );
4630
4637
if (t == NULL ) {
4631
4638
text_color_set (DW_COLOR_ERROR );
4632
4639
dw_printf ("Line %d: Missing IGate server name for IGSERVER command.\n" , line );
4633
4640
continue ;
4634
4641
}
4642
+ if (strlen (p_igate_config -> t2_server_name ) > 0 ) {
4643
+ text_color_set (DW_COLOR_ERROR );
4644
+ dw_printf ("Line %d: Only one of IGSERVER and CWOPSERVER can be specified.\n" , line );
4645
+ continue ;
4646
+ }
4635
4647
strlcpy (p_igate_config -> t2_server_name , t , sizeof (p_igate_config -> t2_server_name ));
4636
4648
4637
4649
/* If there is a : in the name, split it out as the port number. */
@@ -4877,7 +4889,7 @@ void config_init (char *fname, struct audio_s *p_audio_config,
4877
4889
4878
4890
else if (strcasecmp (t , "SATGATE" ) == 0 ) {
4879
4891
4880
- text_color_set (DW_COLOR_INFO );
4892
+ text_color_set (DW_COLOR_ERROR );
4881
4893
dw_printf ("Line %d: SATGATE is pretty useless and will be removed in a future version.\n" , line );
4882
4894
4883
4895
t = split (NULL ,0 );
0 commit comments