[asterisk-commits] jpeeler: branch 1.6.2 r232094 - in /branches/1.6.2: ./ channels/chan_dahdi.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Dec 1 18:53:04 CST 2009


Author: jpeeler
Date: Tue Dec  1 18:52:59 2009
New Revision: 232094

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=232094
Log:
Merged revisions 232091 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

................
  r232091 | jpeeler | 2009-12-01 18:45:18 -0600 (Tue, 01 Dec 2009) | 17 lines
  
  Merged revisions 232090 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r232090 | jpeeler | 2009-12-01 18:42:58 -0600 (Tue, 01 Dec 2009) | 10 lines
    
    Do not modify the gain settings on data calls.
    
    (The digital flag actually represents a data call.)
    
    (closes issue #15972)
    Reported by: udosw
    Patches: 
          transcap_digital_fix.diff.txt uploaded by alecdavis (license 585)
    Tested by: alecdavis
  ........
................

Modified:
    branches/1.6.2/   (props changed)
    branches/1.6.2/channels/chan_dahdi.c

Propchange: branches/1.6.2/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.

Modified: branches/1.6.2/channels/chan_dahdi.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/channels/chan_dahdi.c?view=diff&rev=232094&r1=232093&r2=232094
==============================================================================
--- branches/1.6.2/channels/chan_dahdi.c (original)
+++ branches/1.6.2/channels/chan_dahdi.c Tue Dec  1 18:52:59 2009
@@ -3134,7 +3134,11 @@
 		ast_log(LOG_WARNING, "Unable to flush input on channel %d: %s\n", p->channel, strerror(errno));
 	p->outgoing = 1;
 
-	set_actual_gain(p->subs[SUB_REAL].dfd, 0, p->rxgain, p->txgain, p->law);
+	if (IS_DIGITAL(ast->transfercapability)){
+		set_actual_gain(p->subs[SUB_REAL].dfd, 0, 0, 0, p->law);
+	} else {
+		set_actual_gain(p->subs[SUB_REAL].dfd, 0, p->rxgain, p->txgain, p->law);
+	}	
 
 	mysig = p->sig;
 	if (p->outsigmod > -1)




More information about the asterisk-commits mailing list