Asterisk
  1. Asterisk
  2. ASTERISK-29392

chan_iax2: Asterisk crashes when queueing video with format

    Details

    • Frequency of Occurrence:
      Constant

      Description

      Hello,

      i have connected 2 FreePBX Systems via Dundi/IAX2 trunk. Normal calls are working fine, but when i activate Video on the phone A (Cisco, Yaelink...) and call another phone B (phone A >Server A >IAX2> Server B> phone B) Server B crashes. When i stay with phone A+B on the same Server or disable Video on the phone - everything works perfect. This only happens via IAX2 trunks, sometimes immediatly, sometimes after a while during the call.

      The configuration of the trunk is very basic

      dundi_custom.conf:

      ; DK0MAV
      [22:e1:bc:08:83:5c]
      host=44.149.94.136
      include=priv
      model=symmetric
      order=primary
      permit=priv
      qualify=yes
      secret=xxxxxxxxx
      

      iax_custom.conf:

       [iaxuser]
      type=friend
      dbsecret=dundi/secret
      context=incomingdundi
      

      I already disabled videosupport on the IAX-Trunk but still the same issue.

      Trace from the Asterisk-console of the crashing server:

      Connected to Asterisk 16.2.1 currently running on freepbx (pid = 26623)
      – Accepting AUTHENTICATED call from 44.225.66.196:4569:
      – > requested format = g722,
      – > requested prefs = disabled,
      – > actual format = g722,
      – > host prefs = disabled,
      – > priority = disabled
      – Executing [315200612183@incomingdundi:1] Playback("IAX2/iaxuser-5566", "custom/voip-dk0mav") in new stack
      – <IAX2/iaxuser-5566> Playing 'custom/voip-dk0mav.g722' (language 'en')
      [2021-04-12 21:49:48] WARNING[26669]: chan_iax2.c:11782 socket_process_helper: Received mini frame before first full video frame
      freepbx*CLI> <<<<<<<<<<<<<<<<crash>>>>>>>>>>>>>>>
      Disconnected from Asterisk server
      Asterisk cleanly ending (0).
      Executing last minute cleanups
      

      I have tried to downgrade to an older Asterisk version but no success.

      Just for clarification:

      I do not want video working via IAX-Trunks, that seems not possible for what reason ever. I just want that Asterisk do not crash when it receives a call from a phone that has video enabled via the trunk.

      The same configuration on earlier Asterisk versions (11, 13) is working without any problems.

      It seems Asterisk have a problem when frames are lost on the trunk and they arrive in a kind of wrong order. This leads to a crash.

      Maybe interesting but very old issue: https://www.coresecurity.com/core-labs/advisories/asterisk-pbx-truncated-video-frame-vulnerability

      Please help me.

      Best Regards

      Michael

      1. Asterisk.dump
        2.65 MB
        Michael Welk
      2. ASTERISK-29392.diff
        8 kB
        Kevin Harwell
      3. backtrace.txt
        77 kB
        Michael Welk
      4. backtrace-old.txt
        20 kB
        Michael Welk
      5. core.freepbx.sangoma.local-2021-04-15T08-45-01+0000-brief-old.txt
        17 kB
        Michael Welk
      6. core.freepbx.sangoma.local-2021-04-15T08-45-01+0000-full-old.txt
        32 kB
        Michael Welk
      7. core.freepbx.sangoma.local-2021-04-15T08-45-01+0000-info-old.txt
        0.5 kB
        Michael Welk
      8. core.freepbx.sangoma.local-2021-04-15T08-45-01+0000-locks-old.txt
        0.6 kB
        Michael Welk
      9. core.freepbx.sangoma.local-2021-04-15T08-45-01+0000-thread1-old.txt
        3 kB
        Michael Welk
      10. core.freepbx.sangoma.local-2021-04-15T10-15-37+0000-brief.txt
        58 kB
        Michael Welk
      11. core.freepbx.sangoma.local-2021-04-15T10-15-37+0000-full.txt
        164 kB
        Michael Welk
      12. core.freepbx.sangoma.local-2021-04-15T10-15-37+0000-info.txt
        19 kB
        Michael Welk
      13. core.freepbx.sangoma.local-2021-04-15T10-15-37+0000-locks.txt
        0.6 kB
        Michael Welk
      14. core.freepbx.sangoma.local-2021-04-15T10-15-37+0000-thread1.txt
        18 kB
        Michael Welk

        Issue Links

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

          Hide
          Friendly Automation added a comment -

          Change 16191 merged by Friendly Automation:
          AST-2021-008 - chan_iax2: remote crash on unsupported media format

          https://gerrit.asterisk.org/c/asterisk/+/16191

          Show
          Friendly Automation added a comment - Change 16191 merged by Friendly Automation: AST-2021-008 - chan_iax2: remote crash on unsupported media format https://gerrit.asterisk.org/c/asterisk/+/16191
          Hide
          Friendly Automation added a comment -

          Change 16192 merged by Friendly Automation:
          AST-2021-008 - chan_iax2: remote crash on unsupported media format

          https://gerrit.asterisk.org/c/asterisk/+/16192

          Show
          Friendly Automation added a comment - Change 16192 merged by Friendly Automation: AST-2021-008 - chan_iax2: remote crash on unsupported media format https://gerrit.asterisk.org/c/asterisk/+/16192
          Hide
          Friendly Automation added a comment -

          Change 16193 merged by Friendly Automation:
          AST-2021-008 - chan_iax2: remote crash on unsupported media format

          https://gerrit.asterisk.org/c/asterisk/+/16193

          Show
          Friendly Automation added a comment - Change 16193 merged by Friendly Automation: AST-2021-008 - chan_iax2: remote crash on unsupported media format https://gerrit.asterisk.org/c/asterisk/+/16193
          Hide
          Friendly Automation added a comment -

          Change 16194 merged by Friendly Automation:
          AST-2021-008 - chan_iax2: remote crash on unsupported media format

          https://gerrit.asterisk.org/c/asterisk/+/16194

          Show
          Friendly Automation added a comment - Change 16194 merged by Friendly Automation: AST-2021-008 - chan_iax2: remote crash on unsupported media format https://gerrit.asterisk.org/c/asterisk/+/16194
          Hide
          Friendly Automation added a comment -

          Change 16212 merged by Friendly Automation:
          AST-2021-008 - chan_iax2: remote crash on unsupported media format

          https://gerrit.asterisk.org/c/asterisk/+/16212

          Show
          Friendly Automation added a comment - Change 16212 merged by Friendly Automation: AST-2021-008 - chan_iax2: remote crash on unsupported media format https://gerrit.asterisk.org/c/asterisk/+/16212

            People

            • Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: