Become a leader in the IoT community!

New DevHeads get a 320-point leaderboard boost when joining the DevHeads IoT Integration Community. In addition to learning and advising, active community leaders are rewarded with community recognition and free tech stuff. Start your Legendary Collaboration now!

Step 1 of 5

CREATE YOUR PROFILE *Required

OR
Step 2 of 5

WHAT BRINGS YOU TO DEVHEADS? *Choose 1 or more

Collaboration & Work šŸ¤
Learn & Grow šŸ“š
Contribute Experience & Expertise šŸ”§
Step 3 of 5

WHAT'S YOUR INTEREST OR EXPERTISE? *Choose 1 or more

Hardware & Design šŸ’”
Embedded Software šŸ’»
Edge Networking āš”
Step 4 of 5

Personalize your profile

Step 5 of 5

Read & agree to our COMMUNITY RULES

  1. We want this server to be a welcoming space! Treat everyone with respect. Absolutely no harassment, witch hunting, sexism, racism, or hate speech will be tolerated.
  2. If you see something against the rules or something that makes you feel unsafe, let staff know by messaging @admin in the "support-tickets" tab in the Live DevChat menu.
  3. No age-restricted, obscene or NSFW content. This includes text, images, or links featuring nudity, sex, hard violence, or other graphically disturbing content.
  4. No spam. This includes DMing fellow members.
  5. You must be over the age of 18 years old to participate in our community.
  6. Our community uses Answer Overflow to index content on the web. By posting in this channel your messages will be indexed on the worldwide web to help others find answers.
  7. You agree to our Terms of Service (https://www.devheads.io/terms-of-service/) and Privacy Policy (https://www.devheads.io/privacy-policy)
By clicking "Finish", you have read and agreed to the our Terms of Service and Privacy Policy.

Diagnosing Asterisk Segmentation Fault on STM32MP157f-DK2 When Connecting via Mizudroid SIP Client

Hello, Iā€™m working on a project using an STM32MP157f-DK2 board running an Asterisk server on a Bootlin Linux image. The board is connected to my home network via a D-Link router configured as a network switch (DHCP disabled). Initially, the server crashed with a segmentation fault immediately after starting. After modifying the `pjsip.conf` file, the server now starts successfully. However, it crashes with a segmentation fault when I try to connect from my phone using the Mizudroid SIP client app.

Could this issue be related to my router setup, Asterisk configuration, or Bootlin environment? Any suggestions on diagnosing and resolving this segmentation fault would be greatly appreciated.

  1. Ming#0000

    Some of my fist thoughts:
    When playing with Asterisk, I had no problems with a DHCP setup
    Assuming that the Asterisk server is now starting OK. Is it stable – as in does it all stay up without a segfault without any clients connecting to it? Have you tried just starting it and leaving it for an hour or so?
    If you think the client is causing issues, have you tried a different client? I used LinPhone ( https://www.linphone.org/en/homepage-linphone/ )
    Another thing to try if you have a PC available would be to run the Asterisk server on that to see if it is a resource issue. When I did it, I used a PC running Debian, but then I was trying to integrate FXO/FXS adapters into my solution.

  2. R1Tap#0000

    šŸ‘šŸ¼ will try once again by reseting my router,
    Yes the server is being active when kept idle.

    Yes. I’ve used linphone too

    I have used different conf file while testing asterisk on my arch-laptop ( since i have enabled asterisk in buildroot packages i thought the code would be different ) and it was working perfectly well i connected 2 devices with linphone

    When i used the same pjsip.conf file as of my laptop’s asterisk, here i was getting segfault just after starting the server

  3. Ming#0000

    Another thing to try may be falling back to using chan_sip instead of chan_pjsip.

    The old sip may be unsupported, but that would tell you if the problem is with pjsip code/config or the asterisk code.

  4. Ming#0000

    @k1l1a
    Your config files look fine – and as they work on your main server, they _should_ therefore work!

    A few questions:

    – What version of Asterisk are you running?

    – Are you running in verbose mode to see what it is doing before it crashes?
    `asterisk -cvvvvv`

    Also, have you looked at the PJSIP troubleshooting guide?
    https://docs.asterisk.org/Configuration/Channel-Drivers/SIP/Configuring-res_pjsip/Asterisk-PJSIP-Troubleshooting-Guide/

    Another thing, are you getting core dumps from the crash?

    There is a guide on collecting debug information at
    https://docs.asterisk.org/Operation/Logging/Collecting-Debug-Information/
    This may help in giving a hint as to what is happening.

CONTRIBUTE TO THIS THREAD

Browse other questions tagged 

Leaderboard

RANKED BY XP

All time
  • 1.
    Avatar
    @Nayel115
    1620 XP
  • 2.
    Avatar
    @UcGee
    650 XP
  • 3.
    Avatar
    @melta101
    600 XP
  • 4.
    Avatar
    @lifegochi
    250 XP
  • 5.
    Avatar
    @Youuce
    180 XP
  • 6.
    Avatar
    @hemalchevli
    170 XP