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)
........

Merged revisions 341435 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 341436 from http://svn.asterisk.org/svn/asterisk/branches/10


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@341437 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Paul Belanger
2011-10-19 19:02:09 +00:00
parent 5f8648892f
commit 1ed8cd087a

View File

@@ -496,7 +496,8 @@ static int gtalk_ringing_ack(void *data, ikspak *pak)
break; break;
} }
if (!strcasecmp(name, "error") && 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 = strstr(redirect, "xmpp:"))) {
redirect += 5; redirect += 5;
ast_debug(1, "redirect %s\n", redirect); ast_debug(1, "redirect %s\n", redirect);