]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Outgoing calls with Google Voice
authorPaul Belanger <paul.belanger@polybeacon.com>
Wed, 19 Oct 2011 18:59:39 +0000 (18:59 +0000)
committerPaul Belanger <paul.belanger@polybeacon.com>
Wed, 19 Oct 2011 18:59:39 +0000 (18:59 +0000)
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)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@341435 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_gtalk.c

index 3e08831782684fc58f345a36b7bf917a5bd35e51..fd339696c13b50ffd8971bbcdc633fad3b01b490 100644 (file)
@@ -481,7 +481,8 @@ static int gtalk_ringing_ack(void *data, ikspak *pak)
                                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);