diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-06-24 18:09:31 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-06-24 18:09:31 +0000 |
commit | a367d6e16c0a378b0652fd234e9ee0d61f5d4aae (patch) | |
tree | c79fa46df20733c784dd3a68e3faaae7db486798 | |
parent | bd4cc829529c32b850d0dba13e6be7d12cc650d6 (diff) |
Merged revisions 202925 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r202925 | file | 2009-06-24 15:08:17 -0300 (Wed, 24 Jun 2009) | 2 lines
Ensure the default settings are applied for T.38 when we set it up for a peer.
........
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@202926 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | channels/chan_sip.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 2f9a55601..0d1572e2f 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -17526,8 +17526,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 */ |