[asterisk-bugs] [JIRA] (ASTERISK-22347) res_xmpp timeout when google sends blank responses ' '

Andrew Nagy (JIRA) noreply at issues.asterisk.org
Tue Aug 20 10:49:10 CDT 2013


Andrew Nagy created ASTERISK-22347:
--------------------------------------

             Summary: res_xmpp timeout when google sends blank responses ' '
                 Key: ASTERISK-22347
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-22347
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
          Components: Resources/res_xmpp
    Affects Versions: 11.5.0
         Environment: CentOS 6.4
            Reporter: Andrew Nagy
            Severity: Minor


Sometimes the Google Voice servers have a bad habit of sending out 1 byte replies to the xmpp resource. When a blank 1 byte reply is received from the socket the buffer attempts to wait (endlessly) for the rest of the reply from google. 

This effectively blocks the socket and google voice calls will no longer come into the server. 

This patch allows the xmpp module to correctly detect empty packets and send out ping replies to google. It also sets a socket timeout on the default socket which prevents the xmpp socket from closing and preventing future google voice calls from coming into the server. 

Furthermore instead of sending an empty reply back to google we send a proper xmpp ping reply back. Finally I have also added several more socket messages (near the end)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list