[Home]

Summary:ASTERISK-24714: Asterisk crashes when other device does not accept min-se and sends 422 response code
Reporter:Abhay Gupta (agupta)Labels:
Date Opened:2015-01-23 01:51:21.000-0600Date Closed:2015-02-16 06:20:45.000-0600
Priority:MajorRegression?
Status:Closed/CompleteComponents:pjproject/pjsip
Versions:13.1.0 Frequency of
Occurrence
Related
Issues:
Environment:Ubuntu 14 , asterisk 13.1.0 , pjproject Attachments:( 0) asterisk_cli.docx
( 1) cliasterisk.txt
( 2) dump.txt
( 3) pjsip.conf
( 4) valgrind.txt
Description:Any extension calls other extension . Asterisk sends a Invite to device with Min-se 90 . The other device responds with 422

SIP/2.0 422 Session Interval Too Small
Via: SIP/2.0/UDP 192.168.1.6:5060;rport;branch=z9hG4bKPjc12dc324-b29d-4a19-97c3-41285f752674
From: <sip:101@192.168.1.6>;tag=35a31505-1804-4d5e-94d6-66f45284f08a
To: <sip:110@192.168.1.149>;tag=1c313112661
Call-ID: 54945122-2ddb-4643-9965-91ffb154c5f3
CSeq: 10840 INVITE
Contact: <sip:192.168.1.149>
Supported: em,timer,replaces,path
Allow: REGISTER,OPTIONS,INVITE,ACK,CANCEL,BYE,NOTIFY,PRACK,REFER,INFO,SUBSCRIBE,UPDATE
Min-SE: 7200
Server: Audiocodes-Sip-Gateway-MP-124 FXS/v.4.40.200.371
Content-Length: 0

As soon as the call is answered it crashes with segmentation fault
Comments:By: Abhay Gupta (agupta) 2015-01-23 01:53:35.569-0600

Including Asterisk cli output with pjsip logger on , valgring output , gdb core dump and pjsip.conf

By: Rusty Newton (rnewton) 2015-01-30 14:06:10.668-0600

Please attach a log following these instructions: https://wiki.asterisk.org/wiki/display/AST/Collecting+Debug+Information

and attach it to the issue as .txt file.

The log should include the DEBUG and VERBOSE logger channels turned up to the level specified in the instructions.

When you have attached it, please hit Send Back or Enter Feedback to send the issue back to use. Thanks.

By: Rusty Newton (rnewton) 2015-01-30 14:07:26.369-0600

Also, please attach a backtrace, following these instructions: https://wiki.asterisk.org/wiki/display/AST/Getting+a+Backtrace

By: Abhay Gupta (agupta) 2015-01-30 23:02:21.510-0600

CLI output

By: Abhay Gupta (agupta) 2015-01-30 23:05:26.529-0600

All the attachments i.e cli output with verbose and pjsip set logger on (cliasterisk.txt)  , exact case scenario , backtrace(dump.txt) , valgrind output attached .

By: Joshua C. Colp (jcolp) 2015-02-15 12:40:55.938-0600

I have not been able to reproduce this. What exact version of pjproject are you using?

By: Abhay Gupta (agupta) 2015-02-15 23:50:34.641-0600

PJProject 2.3 svn revision 4975

By: Abhay Gupta (agupta) 2015-02-15 23:58:53.497-0600

I will try the latest revision of Pjproject , since i saw this In 4976:

Re #1797: Fixes assert if 422 response is received (thanks to Brian Walker for the report)
If 422 is received, INVITE will be automatically retried, but the
provisional media has been cleaned up.

Looks like Pjproject assert on 422 response was fixed in revision 4976 .

By: Abhay Gupta (agupta) 2015-02-16 00:25:06.464-0600

The problem was resolved with latest revision of PJ project

Last Changed Author: ming
Last Changed Rev: 4983
Last Changed Date: 2015-02-13 17:04:26 +0530 (Fri, 13 Feb 2015)

The bug can be closed .