[Home]

Summary:ASTERISK-15544: [patch] core dump when user parkandannouce
Reporter:Sebastien BERGER (sebele67)Labels:
Date Opened:2010-01-29 06:24:58.000-0600Date Closed:2010-03-09 13:31:01.000-0600
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Applications/app_parkandannounce
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) issue16731_20100129.diff
Description:I upgraded my asterisk 1.4.28 to 1.4.29.

Our receptionist software use parkandannounce

After I upgrade asterisk do a core dump immediately. With 1.4.28 it work perfectly.

The last line in my log
[Jan 29 10:02:21] VERBOSE[16724] logger.c:     -- Executing [trc-park2@trc:1] Answer("SIP/Strasbourg_rbsheberger-0000014e", "") in new stack
[Jan 29 10:02:21] VERBOSE[16724] logger.c:     -- Executing [trc-park2@trc:2] ParkAndAnnounce("SIP/Strasbourg_rbsheberger-0000014e", "pbx-transfer:PARKED|180
||trc|trc-inbound|1") in new stack
[Jan 29 10:02:21] VERBOSE[16724] logger.c:     -- Dial Tech,String: (,(null))
[Jan 29 10:02:21] VERBOSE[16724] logger.c:     -- Return Context: (trc,trc-inbound,1) ID: 00390202623
Comments:By: Sean Bright (seanbright) 2010-01-29 10:32:25.000-0600

Please test the attached patch and report your results.

By: Sebastien BERGER (sebele67) 2010-01-29 11:10:27.000-0600

I tested and it's work

I add a simple dialplan
exten = _7001,1,answer()
exten = _7001,n,ParkAndAnnounce(pbx-transfer:PARKED|180||trc|trc-inbound|1)

before core dump
after :
WARNING[32537]: app_parkandannounce.c:116 parkandannounce_exec: PARK: A dial resource must be specified i.e: Console/dsp or Zap/g1/5551212

I think it's working now.

Thanks !!

By: Digium Subversion (svnbot) 2010-03-09 13:29:40.000-0600

Repository: asterisk
Revision: 251410

U   branches/1.4/apps/app_parkandannounce.c

------------------------------------------------------------------------
r251410 | seanbright | 2010-03-09 13:29:40 -0600 (Tue, 09 Mar 2010) | 8 lines

Use ast_strlen_zero to avoid a crash when a Dial() string isn't passed to ParkAndAnnounce

(closes issue ASTERISK-15544)
Reported by: sebele67
Patches:
     issue16731_20100129.diff uploaded by seanbright (license 71)
Tested by: sebele67

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=251410

By: Digium Subversion (svnbot) 2010-03-09 13:31:01.000-0600

Repository: asterisk
Revision: 251411

_U  trunk/

------------------------------------------------------------------------
r251411 | seanbright | 2010-03-09 13:31:00 -0600 (Tue, 09 Mar 2010) | 15 lines

Blocked revisions 251410 via svnmerge

........
r251410 | seanbright | 2010-03-09 14:29:39 -0500 (Tue, 09 Mar 2010) | 8 lines

Use ast_strlen_zero to avoid a crash when a Dial() string isn't passed to ParkAndAnnounce

(closes issue ASTERISK-15544)
Reported by: sebele67
Patches:
     issue16731_20100129.diff uploaded by seanbright (license 71)
Tested by: sebele67

........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=251411