Ticket #10235: chan_gtalk.patch

File chan_gtalk.patch, 508 bytes (added by iiordanov@…, 5 years ago)

This is a patch to chan_gtalk.c which changes its behavior to recognize a redirect on receiving "redirect" or "sta:redirect" from Google Talk.

  • .c

    old new  
    480480                                break; 
    481481                        } 
    482482                        if (!strcasecmp(name, "error") && 
    483                                 (redirect = iks_find_cdata(traversenodes, "redirect")) && 
     483                                ( (redirect = iks_find_cdata(traversenodes, "redirect")) || 
     484                                  (redirect = iks_find_cdata(traversenodes, "sta:redirect")) ) && 
    484485                                (redirect = strstr(redirect, "xmpp:"))) { 
    485486                                redirect += 5; 
    486487                                ast_log(LOG_DEBUG, "redirect %s\n", redirect);