summaryrefslogtreecommitdiff
path: root/channels/chan_skinny.c
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2006-06-01 16:47:28 +0000
committerRussell Bryant <russell@russellbryant.com>2006-06-01 16:47:28 +0000
commit4c76028de96d32281f5fb94538f0a93bb3a57b50 (patch)
tree65c18318da656f3d8bdc20876d5774763985c46a /channels/chan_skinny.c
parentafb12d043c6f41e983e93bd9834a7929d9761c0d (diff)
- add the ability to configure forced jitterbuffers on h323, jingle,
and mgcp channels - remove the jitterbuffer configuration from the pvt structures in the sip, zap, and skinny channel drivers, as copying the same global configuration into each pvt structure has no benefit. - update and fix some typos in jitterbuffer related documentation (issue #7257, north, with additional updates and modifications) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@31413 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_skinny.c')
-rw-r--r--channels/chan_skinny.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/channels/chan_skinny.c b/channels/chan_skinny.c
index db10d829f..914297aed 100644
--- a/channels/chan_skinny.c
+++ b/channels/chan_skinny.c
@@ -826,8 +826,6 @@ struct skinny_subchannel {
int nat;
int outgoing;
int alreadygone;
- struct ast_jb_conf jbconf;
-
struct skinny_subchannel *next;
};
@@ -1615,10 +1613,6 @@ static struct skinny_device *build_device(char *cat, struct ast_variable *v)
callnums++;
sub->cxmode = SKINNY_CX_INACTIVE;
sub->nat = nat;
-
- /* Assign default jb conf to the new skinny_subchannel */
- memcpy(&sub->jbconf, &global_jbconf, sizeof(struct ast_jb_conf));
-
sub->next = l->sub;
l->sub = sub;
} else {
@@ -2311,7 +2305,7 @@ static struct ast_channel *skinny_new(struct skinny_subchannel *sub, int state)
/* Configure the new channel jb */
if (tmp && sub && sub->rtp)
- ast_jb_configure(tmp, &sub->jbconf);
+ ast_jb_configure(tmp, &global_jbconf);
} else {
ast_log(LOG_WARNING, "Unable to allocate channel structure\n");
}
@@ -3121,7 +3115,7 @@ static int reload_config(void)
/* load the general section */
v = ast_variable_browse(cfg, "general");
- while(v) {
+ while (v) {
/* handle jb conf */
if (!ast_jb_read_conf(&global_jbconf, v->name, v->value)) {
v = v->next;