]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 202925 via svnmerge from
authorJoshua Colp <jcolp@digium.com>
Wed, 24 Jun 2009 18:10:17 +0000 (18:10 +0000)
committerJoshua Colp <jcolp@digium.com>
Wed, 24 Jun 2009 18:10:17 +0000 (18:10 +0000)
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: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@202927 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 710d591cf88d752fd8534c2ad3b933146253136e..03e35cbc392b71510700c34a1560c655b573e03c 100644 (file)
@@ -18392,8 +18392,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 */