[asterisk-bugs] [Asterisk 0013123]: [patch] segmentation fault with chan_h323 ast_rtp_new_source (rtp=0x0)

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Sep 9 05:27:22 CDT 2008


The following issue has been RESOLVED. 
====================================================================== 
http://bugs.digium.com/view.php?id=13123 
====================================================================== 
Reported By:                nik600
Assigned To:                putnopvut
====================================================================== 
Project:                    Asterisk
Issue ID:                   13123
Category:                   Channels/chan_h323
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     resolved
Asterisk Version:           1.4.21 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
Resolution:                 duplicate
Duplicate:                  13247
Fixed in Version:           
====================================================================== 
Date Submitted:             2008-07-21 09:56 CDT
Last Modified:              2008-09-09 05:27 CDT
====================================================================== 
Summary:                    [patch] segmentation fault with chan_h323
ast_rtp_new_source (rtp=0x0)
Description: 
i've installed asterisk 1.4.21.1
and configured with Open H.323 version v1.18.0, PWLib v1.10.0.

I've installed them but i'm experiencing this problem:

i've configured in h323.conf 2 peers:
one to an 3.3 CCM Cisco
one to an 4.2 CCM Cisco

each CCM has the preferred codec set up as G711 ulaw.

I can forward calls from a SIP account on asterisk (using Xten-xlite
as softphone) to both the peers and talk with their extensions without
any problem.

I can forward calls from both the peers to Asterisk (and for example
place the call in queue or background some sound files)

BUT

when i try to call from the CCM 3.3 to Asterisk, and then dial from
the dialplan a SIP account, when the SIP user accept the call (using
Xten-xlite as softphone) asterisk dies with a segmentation fault
error.

This happend only with CCM 3.3, with 4.2 there is no problem.

I've temporarly patched it editing chan_h323.c in the function
oh323_indicate at line 919 replacing 
// ********* OLD CODE
	case AST_CONTROL_SRCUPDATE:
		ast_rtp_new_source(pvt->rtp);
		res = 0;
		break;

// ***********
with
// ********* NEW CODE
	case AST_CONTROL_SRCUPDATE:
if(pvt->rtp!=NULL){
		ast_rtp_new_source(pvt->rtp);
}
		res = 0;
		break;

// ***********

with these "patch" asterisk doesn't crash.
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
duplicate of        0013247 crash related to ast_rtp_new_source
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-09-09 05:27 putnopvut      Relationship added       duplicate of 0013247
2008-09-09 05:27 putnopvut      Duplicate ID             0 => 13247          
2008-09-09 05:27 putnopvut      Status                   new => resolved     
2008-09-09 05:27 putnopvut      Resolution               open => duplicate   
2008-09-09 05:27 putnopvut      Assigned To               => putnopvut       
======================================================================




More information about the asterisk-bugs mailing list