]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
If we are requested to authenticate a reinvite make sure that it contains T38 SDP...
authorJoshua Colp <jcolp@digium.com>
Wed, 26 Mar 2008 19:04:35 +0000 (19:04 +0000)
committerJoshua Colp <jcolp@digium.com>
Wed, 26 Mar 2008 19:04:35 +0000 (19:04 +0000)
(closes issue #11995)
Reported by: fall

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@111020 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 8f0b9a5eb3593de75cd6eef1bda15c5a1e3f0ba7..9444282d658cbcaf5d3d938cdc2703fc71ec3e70 100644 (file)
@@ -7142,7 +7142,7 @@ static int transmit_invite(struct sip_pvt *p, int sipmethod, int sdp, int init)
                ast_channel_unlock(chan);
        }
        if (sdp) {
-               if (p->udptl && p->t38.state == T38_LOCAL_DIRECT) {
+               if (p->udptl && (p->t38.state == T38_LOCAL_DIRECT || p->t38.state == T38_LOCAL_REINVITE)) {
                        ast_udptl_offered_from_local(p->udptl, 1);
                        if (option_debug)
                                ast_log(LOG_DEBUG, "T38 is in state %d on channel %s\n", p->t38.state, p->owner ? p->owner->name : "<none>");