aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_sip.c
diff options
context:
space:
mode:
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r--channels/chan_sip.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 4f4901723..93bd72df5 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -857,7 +857,6 @@ static struct sip_pvt {
struct ast_variable *chanvars; /*!< Channel variables to set for inbound call */
struct sip_pvt *next; /*!< Next dialog in chain */
struct sip_invite_param *options; /*!< Options for INVITE */
- struct ast_jb_conf jbconf;
} *iflist = NULL;
#define FLAG_RESPONSE (1 << 0)
@@ -3357,7 +3356,7 @@ static struct ast_channel *sip_new(struct sip_pvt *i, int state, const char *tit
/* Configure the new channel jb */
if (tmp && i && i->rtp)
- ast_jb_configure(tmp, &i->jbconf);
+ ast_jb_configure(tmp, &global_jbconf);
return tmp;
}
@@ -3693,9 +3692,6 @@ static struct sip_pvt *sip_alloc(ast_string_field callid, struct sockaddr_in *si
p->noncodeccapability |= AST_RTP_DTMF;
ast_string_field_set(p, context, default_context);
- /* Assign default jb conf to the new sip_pvt */
- memcpy(&p->jbconf, &global_jbconf, sizeof(struct ast_jb_conf));
-
/* Add to active dialog list */
ast_mutex_lock(&iflock);
p->next = iflist;