mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-11-03 20:38:59 +00:00 
			
		
		
		
	Revert silly "sipura fix" which breaks RFC compatibility (bug #4549)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5935 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		
							
								
								
									
										4
									
								
								rtp.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								rtp.c
									
									
									
									
									
								
							@@ -1096,7 +1096,11 @@ int ast_rtp_senddigit(struct ast_rtp *rtp, char digit)
 | 
			
		||||
		rtpheader[0] = htonl((2 << 30) | (payload << 16) | (rtp->seqno++));
 | 
			
		||||
		/* For the last three packets, set the duration and the end bit */
 | 
			
		||||
		if (x == 2) {
 | 
			
		||||
#if 0
 | 
			
		||||
			/* No, this is wrong...  Do not increment lastdigitts, that's not according
 | 
			
		||||
			   to the RFC, as best we can determine */
 | 
			
		||||
			rtp->lastdigitts++; /* or else the SPA3000 will click instead of beeping... */
 | 
			
		||||
#endif			
 | 
			
		||||
			rtpheader[1] = htonl(rtp->lastdigitts);
 | 
			
		||||
			/* Make duration 800 (100ms) */
 | 
			
		||||
			rtpheader[3] |= htonl((800));
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user