aboutsummaryrefslogtreecommitdiffstats
path: root/net/asterisk12
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2006-06-21 02:57:24 +0800
committersobomax <sobomax@FreeBSD.org>2006-06-21 02:57:24 +0800
commit74a4f0eda5311ab6a55874d90e5ee9563c97813c (patch)
treeda919d50489a86fc63c8d87e89f83a6a900f76bd /net/asterisk12
parentaa36f9a1a18403510d0a03f2b826569b4f9d4fd7 (diff)
downloadfreebsd-ports-gnome-74a4f0eda5311ab6a55874d90e5ee9563c97813c.tar.gz
freebsd-ports-gnome-74a4f0eda5311ab6a55874d90e5ee9563c97813c.tar.zst
freebsd-ports-gnome-74a4f0eda5311ab6a55874d90e5ee9563c97813c.zip
Fix patch to apply.
Diffstat (limited to 'net/asterisk12')
-rw-r--r--net/asterisk12/files/patch-asterisk.c39
1 files changed, 0 insertions, 39 deletions
diff --git a/net/asterisk12/files/patch-asterisk.c b/net/asterisk12/files/patch-asterisk.c
index fbd6dd4874c9..125b6ca9db1c 100644
--- a/net/asterisk12/files/patch-asterisk.c
+++ b/net/asterisk12/files/patch-asterisk.c
@@ -3,14 +3,6 @@ $FreeBSD$
--- asterisk.c.orig
+++ asterisk.c
-@@ -177,6 +177,7 @@
- int fully_booted = 0;
- char record_cache_dir[AST_CACHE_DIR_LEN] = AST_TMP_DIR;
- char debug_filename[AST_FILENAME_MAX] = "";
-+enum ast_trans_algorithm option_translation_algorithm = AST_TRANS_ALG_STRICT;
-
- static int ast_socket = -1; /*!< UNIX Socket for allowing remote control */
- static int ast_consock = -1; /*!< UNIX Socket for controlling another asterisk */
@@ -1803,7 +1804,6 @@
if (option_exec && data) { /* hack to print output then exit if asterisk -rx is used */
@@ -29,34 +21,3 @@ $FreeBSD$
return;
}
for(;;) {
-@@ -2009,6 +2006,30 @@
- ast_copy_string(ast_config_AST_RUN_GROUP, v->value, sizeof(ast_config_AST_RUN_GROUP));
- }
- v = v->next;
-+ }
-+ option_translation_algorithm = AST_TRANS_ALG_STRICT;
-+ for (v = ast_variable_browse(cfg, "codec_negotiation"); v; v = v->next)
-+ {
-+ if (!strcasecmp(v->name, "translation_algorithm")) {
-+ if (!strcasecmp(v->value, "loose") ||
-+ !strcasecmp(v->value, "save_cpu") ||
-+ !strcasecmp(v->value, "avoid_translation") ||
-+ !strcasecmp(v->value, "asymmetric"))
-+ {
-+ option_translation_algorithm = AST_TRANS_ALG_LOOSE;
-+ }
-+/*
-+ else if (!strcasecmp(v->value, "strict") ||
-+ !strcasecmp(v->value, "follow_peer") ||
-+ !strcasecmp(v->value, "avoid_asymmetry"))
-+ {
-+ option_translation_algorithm = AST_TRANS_ALG_STRICT;
-+ }
-+*/
-+ else {
-+ option_translation_algorithm = AST_TRANS_ALG_STRICT;
-+ }
-+ }
- }
- ast_config_destroy(cfg);
- }