summaryrefslogtreecommitdiff
path: root/net/asterisk10
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2006-06-20 18:57:24 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2006-06-20 18:57:24 +0000
commit4f404ab5c28f1a8b2bdbe4254afe3821f4430568 (patch)
tree262976e8c89cd049049066adbebfe5b696e6d55f /net/asterisk10
parentAdd x11-toolkits/py-kiwi: (diff)
Fix patch to apply.
Notes
Notes: svn path=/head/; revision=165868
Diffstat (limited to 'net/asterisk10')
-rw-r--r--net/asterisk10/files/patch-asterisk.c39
1 files changed, 0 insertions, 39 deletions
diff --git a/net/asterisk10/files/patch-asterisk.c b/net/asterisk10/files/patch-asterisk.c
index fbd6dd4874c9..125b6ca9db1c 100644
--- a/net/asterisk10/files/patch-asterisk.c
+++ b/net/asterisk10/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);
- }