Outgoing calls with Google Voice
[asterisk/asterisk.git] / channels / chan_gtalk.c
index a15fca9..cf58d6c 100644 (file)
@@ -496,7 +496,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_debug(1, "redirect %s\n", redirect);