[asterisk-bugs] [Asterisk 0018957]: Calls from VOIP to Dahdi requiring transcoding fail

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Mar 21 11:55:53 CDT 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18957 
====================================================================== 
Reported By:                clint
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   18957
Category:                   Channels/chan_dahdi
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
Asterisk Version:           1.8.3 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2011-03-10 21:18 CST
Last Modified:              2011-03-21 11:55 CDT
====================================================================== 
Summary:                    Calls from VOIP to Dahdi requiring transcoding fail
Description: 
A call which originates on VOIP (SIP, IAX tested) and terminates via Dahdi
will fail if codec other than ulaw is used on VOIP leg of call.

https://issues.asterisk.org/view.php?id=18242 is a subset of this issue - that
issue refers specifically to
DISA having this problem, however the problem exists whenever a call is
bridged from VOIP to Dahdi.  Creating a new issue to highlight the wider
scope of the bug and clarify that it is not DISA related.
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0018242 DISA "Cannot handle frames in gsm ...
====================================================================== 

---------------------------------------------------------------------- 
 (0133041) jacobli (reporter) - 2011-03-21 11:55
 https://issues.asterisk.org/view.php?id=18957#c133041 
---------------------------------------------------------------------- 
For 1.8.3 apply the following patch and you will not have any problem with
GSM/g722/g729 codecs. For other 1.8 versions the patch is similar.

--- channels/chan_dahdi.c
+++ channels/chan_dahdi.c
@@ -9056,6 +9056,10 @@
         return 0;
     }
     if ((frame->subclass.codec != AST_FORMAT_SLINEAR) &&
+ (frame->subclass.codec != AST_FORMAT_ILBC) &&
+ (frame->subclass.codec != AST_FORMAT_GSM) &&
+ (frame->subclass.codec != AST_FORMAT_G722) &&
+ (frame->subclass.codec != AST_FORMAT_G729) &&
         (frame->subclass.codec != AST_FORMAT_ULAW) &&
         (frame->subclass.codec != AST_FORMAT_ALAW)) {
         ast_log(LOG_WARNING, "Cannot handle frames in %s format\n",
ast_getformatname(frame->subclass.codec)); 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-03-21 11:55 jacobli        Note Added: 0133041                          
======================================================================




More information about the asterisk-bugs mailing list