mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-22 12:52:33 +00:00
Make the disable_tcp_switch PJSIP system object enabled by default.
Testing has shown repeatedly that PJSIP's default behavior of switching automatically to TCP for large messages can cause issues. The most common issues are that devices that we are communicating with do not handle the switch to TCP gracefully, thus causing situations such as broken calls or broken subscriptions. Now, in order to have this behavior happen, you must opt into it. The sample file has been updated to warn that enabling the TCP switch behavior may cause issues for you, so use at your own risk. ........ Merged revisions 427334 from http://svn.asterisk.org/svn/asterisk/branches/13 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@427335 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -147,7 +147,7 @@ int ast_sip_initialize_system(void)
|
||||
OPT_UINT_T, 0, FLDSET(struct system_config, threadpool.idle_timeout));
|
||||
ast_sorcery_object_field_register(system_sorcery, "system", "threadpool_max_size", "0",
|
||||
OPT_UINT_T, 0, FLDSET(struct system_config, threadpool.max_size));
|
||||
ast_sorcery_object_field_register(system_sorcery, "system", "disable_tcp_switch", "no",
|
||||
ast_sorcery_object_field_register(system_sorcery, "system", "disable_tcp_switch", "yes",
|
||||
OPT_BOOL_T, 1, FLDSET(struct system_config, disable_tcp_switch));
|
||||
|
||||
ast_sorcery_load(system_sorcery);
|
||||
|
Reference in New Issue
Block a user