[asterisk-bugs] [Asterisk 0019127]: [patch] G.722 support in Google Talk channel

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Apr 18 16:45:22 CDT 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=19127 
====================================================================== 
Reported By:                avalon73
Assigned To:                dvossel
====================================================================== 
Project:                    Asterisk
Issue ID:                   19127
Category:                   Channels/chan_gtalk
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     assigned
Asterisk Version:           1.8.3.2 
JIRA:                       SWP-3346 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2011-04-15 18:08 CDT
Last Modified:              2011-04-18 16:45 CDT
====================================================================== 
Summary:                    [patch] G.722 support in Google Talk channel
Description: 
According to the following FAQ, Google Talk (and I'm guessing Google Voice
as well?) supports G.722:

http://code.google.com/apis/talk/open_communications.html

Is there any particular reason why Asterisk doesn't support G.722 over
GTalk, or is it just that no one has yet noticed Google's support and
implemented it?  I would attempt a patch, myself, if I were more familiar
with the Jabber/GTalk protocol.
====================================================================== 

---------------------------------------------------------------------- 
 (0133892) avalon73 (reporter) - 2011-04-18 16:45
 https://issues.asterisk.org/view.php?id=19127#c133892 
---------------------------------------------------------------------- 
I tried adding that after posting the issue and, yes, adding advertisement
for g722 to the GTalk invite (if it's in the conf file) is easy.  When I do
that, though, the rest of Asterisk has trouble reconciling the available
and preferred codecs with the rest of the system.

If I configure the GTalk and SIP channel types to prefer g722 when
available, I get the following message after the call is negotiated:

[Apr 18 17:26:17] WARNING[13558]: channel.c:4975 set_format: Unable to
find a codec translation path from 0x4 (ulaw) to 0x1000 (g722)
[Apr 18 17:26:17] WARNING[13558]: channel.c:4975 set_format: Unable to
find a codec translation path from 0x4 (ulaw) to 0x1000 (g722)

After that, I get warnings from chan_sip and chan_gtalk that the latter is
trying to write ulaw frames and the former is trying to use g722.  If I try
to call using a phone that doesn't speak g722, I get this:

[Apr 18 17:18:04] WARNING[13519]: channel.c:5605
ast_channel_make_compatible_helper: No path to translate from
Gtalk/+****@voice.google.com-29ae to SIP/****-00000000

...followed by Asterisk terminating the call, the GTalk server sending an
invite including g722, Asterisk processing that as a new incoming call, and
further codec confusion.

In both of these cases, I have ulaw and alaw configured as allowed for
internal SIP phones and GTalk, but g722 as preferred.

It looks like it's more than just signaling over the GTalk connection. 
This is getting into parts of the code that I REALLY don't understand. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-04-18 16:45 avalon73       Note Added: 0133892                          
======================================================================




More information about the asterisk-bugs mailing list