pjproject icon indicating copy to clipboard operation
pjproject copied to clipboard

Android: crash when accepting incoming call

Open JamesNickel opened this issue 5 years ago • 2 comments

I recently updated the library in my Android app from 2.9 to 2.10 and I've been using it with Asterisk. In version 2.10 when the app accepts an incoming call, PJSIP throws a fatal error and the app crashes. Version 2.9 was working fine and this error occurs only with version 2.10 no matter which Android version or Asterisk version would be. The only error that PJSIP provides in the log is this:

../src/pjsip/sip_transaction.c:3267: pj_status_t tsx_on_state_completed_uas(pjsip_transaction *, pjsip_event *): assertion "event->type == PJSIP_EVENT_TX_MSG && event->body.tx_msg.tdata == tsx->last_tx" failed

Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 15952 (telecom.simotel), pid (telecom.simotel)

Steps to reproduce the behavior: 1- Build the library for Android with APP_PLATFORM=android-21 and ndk-22.0.7026061 2- Run the app on an Android device 3- Try to answer an incoming sip call

  • OS, Distribution & Version: Android (10, 6 or any other)
  • PJSIP
    • version: 2.10
    • applied patch(es): none
    • configure script params: default (same as instructed)
    • config_site.h contents: default (same as instructed)
  /* Activate Android specific settings in the 'config_site_sample.h' */
#define PJ_CONFIG_ANDROID 1
#include <pj/config_site_sample.h>
  • related third party libraries & versions: bcg729-1.1.1

  • Device: Samsung A31, Samsung A5, and other devices as well

JamesNickel avatar Apr 04 '21 12:04 JamesNickel

Care

bienpx224 avatar Oct 26 '21 03:10 bienpx224

Let us know if it still happens with the latest version

sauwming avatar Mar 16 '23 03:03 sauwming