[asterisk-commits] pabelanger: branch 1.8 r341435 - /branches/1.8/channels/chan_gtalk.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Oct 19 13:59:43 CDT 2011


Author: pabelanger
Date: Wed Oct 19 13:59:39 2011
New Revision: 341435

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=341435
Log:
Outgoing calls with Google Voice

Google has recently make some changes (again) to their protocol.  Rather then
patching asterisk to flip between the two different methods, we now allow both.

Lets hope this keeps Google Voice happy for a while.

(closes issue ASTERISK-18714)
Reported by: Iordan Iordanov
Patches:
    chan_gtalk.patch uploaded by Iordan Iordanov (licenses 6311)

Modified:
    branches/1.8/channels/chan_gtalk.c

Modified: branches/1.8/channels/chan_gtalk.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/channels/chan_gtalk.c?view=diff&rev=341435&r1=341434&r2=341435
==============================================================================
--- branches/1.8/channels/chan_gtalk.c (original)
+++ branches/1.8/channels/chan_gtalk.c Wed Oct 19 13:59:39 2011
@@ -481,7 +481,8 @@
 				break;
 			}
 			if (!strcasecmp(name, "error") &&
-				(redirect = iks_find_cdata(traversenodes, "redirect")) &&
+				((redirect = iks_find_cdata(traversenodes, "redirect")) ||
+				  (redirect = iks_find_cdata(traversenodes, "sta:redirect"))) &&
 				(redirect = strstr(redirect, "xmpp:"))) {
 				redirect += 5;
 				ast_log(LOG_DEBUG, "redirect %s\n", redirect);




More information about the asterisk-commits mailing list