summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2009-06-24 18:08:17 +0000
committerJoshua Colp <jcolp@digium.com>2009-06-24 18:08:17 +0000
commit4c07c7a6b276c2982b8fe7147fc1a3b5853a07e8 (patch)
tree78b97cac57ad124ab824212e62df684c8293422d /channels
parent0ed7219ffec3a0404e3f55179ee74ff2f0efcbff (diff)
Ensure the default settings are applied for T.38 when we set it up for a peer.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@202925 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 7b0deb984..5c15180f1 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -20227,8 +20227,9 @@ static int handle_request_invite(struct sip_pvt *p, struct sip_request *req, int
}
/* If T38 is needed but not present, then make it magically appear */
- if (ast_test_flag(&p->flags[1], SIP_PAGE2_T38SUPPORT) && !p->udptl) {
- p->udptl = ast_udptl_new_with_bindaddr(sched, io, 0, bindaddr.sin_addr);
+ if (ast_test_flag(&p->flags[1], SIP_PAGE2_T38SUPPORT) && !p->udptl && (p->udptl = ast_udptl_new_with_bindaddr(sched, io, 0, bindaddr.sin_addr))) {
+ set_t38_capabilities(p);
+ p->t38.jointcapability = p->t38.capability;
}
/* We have a succesful authentication, process the SDP portion if there is one */