[Home]

Summary:ASTERISK-21855: Asterisk crashes when XMPP message is sent (JabberSend) and no internet connection is available
Reporter:Jeremy Kister (jkister)Labels:
Date Opened:2013-06-03 10:37:04Date Closed:2017-03-24 10:47:46
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Resources/res_xmpp
Versions:11.2.1 11.4.0 11.7.0 Frequency of
Occurrence
Constant
Related
Issues:
is related toASTERISK-17648 Asterisk crash when it lost connection to Jabber Server
is related toASTERISK-18078 [patch] Segfault when publishing device states via XMPP and not connected
Environment:Attachments:( 0) backtrace1.txt
( 1) backtrace2.txt
( 2) backtrace3.txt
( 3) extensions.conf
Description:my site lost internet access.  when i tried to make a phone call, asterisk crashed.
Comments:By: Matt Jordan (mjordan) 2013-06-03 11:16:09.628-0500

This is in {{res_xmpp}}, not {{res_jabber}}. This is a known issue in {{res_jabber}} - we were hoping that it was resolved when {{res_xmpp}} fixed a number of off nominal path issues, but apparently not.

See: ASTERISK-18078 as well as ASTERISK-17648 for the {{res_jabber}} similar issues.

By: Rusty Newton (rnewton) 2013-06-03 18:41:09.597-0500

I'm unable to reproduce on Asterisk 11.4.0 on Ubuntu 12.04. My libiksemel:
{noformat}
Architecture: amd64
Source: libiksemel
Version: 1.2-4build1
{noformat}

I setup a JabberSend just like in your extensions.conf and called it from the console when internet connectivity had been lost.

Can you try with 11.4.0, verify your libiksemel version and attach your xmpp.conf ?


By: Rusty Newton (rnewton) 2013-06-03 18:45:39.821-0500

Ah! reproduced. I simply had to start Asterisk with out internet connectivity. I supposed in my previous attempt res_xmpp had not timed out the connection yet.



By: Friendly Automation (friendly-automation) 2017-03-24 10:47:47.310-0500

Change 5294 merged by Joshua Colp:
res_xmpp: Don't crash when trying to send a message without a connection

[https://gerrit.asterisk.org/5294|https://gerrit.asterisk.org/5294]

By: Friendly Automation (friendly-automation) 2017-03-24 11:51:10.651-0500

Change 5293 merged by zuul:
res_xmpp: Don't crash when trying to send a message without a connection

[https://gerrit.asterisk.org/5293|https://gerrit.asterisk.org/5293]

By: Friendly Automation (friendly-automation) 2017-03-24 12:05:49.692-0500

Change 5285 merged by zuul:
res_xmpp: Don't crash when trying to send a message without a connection

[https://gerrit.asterisk.org/5285|https://gerrit.asterisk.org/5285]