fix trivial error with set_max_datagram on pvt->udptl
authorAlexandr Anikin <may@telecom-service.ru>
Sun, 17 Apr 2011 00:23:42 +0000 (00:23 +0000)
committerAlexandr Anikin <may@telecom-service.ru>
Sun, 17 Apr 2011 00:23:42 +0000 (00:23 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@313907 65c4cc65-6c06-0410-ace0-fbb531ad65f3

addons/chan_ooh323.c

index ebbabe4..e245b29 100644 (file)
@@ -483,7 +483,6 @@ static struct ooh323_pvt *ooh323_alloc(int callref, char *callToken)
        ast_mutex_init(&pvt->lock);
        ast_mutex_lock(&pvt->lock);
 
-       ast_udptl_set_far_max_datagram(pvt->udptl, 144);
        pvt->faxmode = 0;
        pvt->t38support = gT38Support;
        pvt->rtptimeout = gRTPTimeout;
@@ -3963,6 +3962,7 @@ int configure_local_rtp(struct ooh323_pvt *p, ooCallData *call)
                        strerror(errno));
                return 0;
        }
+       ast_udptl_set_far_max_datagram(pvt->udptl, 144);
 
        if (p->owner) {
                while (p->owner && ast_channel_trylock(p->owner)) {