[Home]

Summary:ASTERISK-27917: Asterisk crashes when second channel is added to bridge (using pjsip)
Reporter:Edvin Vidmar (edvinv)Labels:pjsip
Date Opened:2018-06-14 06:12:00Date Closed:2018-06-14 08:59:02
Priority:MajorRegression?
Status:Closed/CompleteComponents:pjproject/pjsip
Versions:13.21.1 Frequency of
Occurrence
Constant
Related
Issues:
Environment:Ubuntu 16.04Attachments:( 0) core-brief.txt
( 1) core-full.txt
( 2) core-locks.txt
( 3) core-thread1.txt
Description:Hi,
I have converted my sip.conf file to pjsip.conf but asterisk constantly crashes with simple ari application.

ARI steps:
1. Bridge is created
2. First outbound channel is originated
3. When first channel is answered it is added to bridge
4. Second outbound channel is originated
5. When second channel is answered it is added to bridge
6. Asterisk crashes

First channel is local sip phone, second channel is over sip trunk.

I have tested following configurations:
- Asterisk 13.21.1 with sip  - WORKS
- Asterisk 13.21.1 with pjsip  - CRASH
- Asterisk 15.4.0 with pjsip  - WORKS


best regards
edvin
Comments:By: Asterisk Team (asteriskteam) 2018-06-14 06:12:02.309-0500

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].

By: Joshua C. Colp (jcolp) 2018-06-14 06:23:34.311-0500

You appear to be using an external PJSIP instead of bundled. It is recommended that you always use bundled[1] as it includes changes and fixes, and is actively tested against Asterisk. Otherwise - what version of PJSIP is in use? How was it built? Are there multiple versions of PJSIP installed by accident?

[1] https://blogs.asterisk.org/2016/03/16/asterisk-13-8-0-now-easier-pjsip-install-method/

By: Edvin Vidmar (edvinv) 2018-06-14 06:51:26.252-0500

Hi,
thx for the info. I was not aware that you can use asterisk 13 with bundled version of pjsip, so I have installed externally latest version 2.7.2. Now I recompiled asterisk with bundled version and all works ok, at least with some small tests I was able to run.

Interesting in both cases asterisk cli shows the same pjsip version:
*CLI> pjsip show version
PJPROJECT version currently running against: 2.7.2

but works only with bundled.

Anyway bundled is much easier to use.:)