You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unable to get force_send_socket to work without a proto. While it should be optional according to docs.
Working syntax in 1.10/1.11: (yes with quotes)
force_send_socket("12.12.21.12");
Output in devel:
Apr 1 14:12:32 SRV-DEV-HPROXY-1 opensips: CRITICAL:core:yyerror: parse error in config file //etc/opensips/opensips.cfg, line 445, column 32-33: syntax error
Apr 1 14:12:32 SRV-DEV-HPROXY-1 opensips: CRITICAL:core:yyerror: parse error in config file //etc/opensips/opensips.cfg, line 445, column 33-34: bad argument, [proto:]host[:port] expected
The following syntaxes do not work (also tried with quotes). While they should in my opinion:
force_send_socket(12.12.21.12);
force_send_socket(12.12.21.12:5060);
It is not a bug, and it is not trunk only (2.1 too). It is a side effect of the grammar changes during protocol rework.
I think it is even better now as it forces you to give exact description of the interface/listener you want to use (it is not protocol ambigous anymore).
version: opensips 2.2-dev (x86_64/linux)
git revision: d29cd9d
Unable to get force_send_socket to work without a proto. While it should be optional according to docs.
Working syntax in 1.10/1.11: (yes with quotes)
force_send_socket("12.12.21.12");
Output in devel:
Apr 1 14:12:32 SRV-DEV-HPROXY-1 opensips: CRITICAL:core:yyerror: parse error in config file //etc/opensips/opensips.cfg, line 445, column 32-33: syntax error
Apr 1 14:12:32 SRV-DEV-HPROXY-1 opensips: CRITICAL:core:yyerror: parse error in config file //etc/opensips/opensips.cfg, line 445, column 33-34: bad argument, [proto:]host[:port] expected
The following syntaxes do not work (also tried with quotes). While they should in my opinion:
force_send_socket(12.12.21.12);
force_send_socket(12.12.21.12:5060);
Working:
force_send_socket(udp:12.12.21.12);
force_send_socket(udp:12.12.21.12:5060);
The text was updated successfully, but these errors were encountered: