[Home]

Summary:ASTERISK-11294: [patch] SIP connected to AGI over chan_local problem
Reporter:Igor Goncharovsky (igorg)Labels:
Date Opened:2008-01-24 05:16:07.000-0600Date Closed:2008-06-20 15:11:14
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/Channels
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) local_debug_2.txt
( 1) local_debug.txt
( 2) local_hangup-v1.diff
Description:I am using call files to make calls from PBX to sip subscribers and deliver some messages. Before call to SIP I need some preprocessing and I make it in Local channel.

SIP <- Local <- AGI <- Playback

When SIP subscriber answer a call, he hear message, generated by agi by series of Playback calls. If subscriber hangup before end of the message Asterisk execution of AGI not finished.

If I specify SIP/105 instead of Local/105@default/n all goes normal.

****** ADDITIONAL INFORMATION ******

The same issue for 1.4 branch

Comments:By: Joshua C. Colp (jcolp) 2008-01-24 11:25:01.000-0600

Please attach complete console output with debug set to go to console in logger.conf and core set debug set to 9.

By: Igor Goncharovsky (igorg) 2008-01-25 01:44:15.000-0600

Sorry, forget to post yesterday. Also there is no need call-file to reproduce this, this also happen with simple dialplan:

[ext-dialer-message]
exten => _0.,1,Set(AGISIGHUP=yes)
exten => _0.,n,NoCDR()
exten => _0.,n,AGI(caller/dial-message.php,${EXTEN:1})

[default]
exten => 52,1,Dial(Local/01@ext-dialer-message/n)

By: Igor Goncharovsky (igorg) 2008-01-25 06:22:12.000-0600

I also upload 'core show channels' output before hangup SIP phone and after, when AGI still active. Also information about active Local channel, that exists after hangup.

By: Igor Goncharovsky (igorg) 2008-04-14 10:06:22

Ping.
Also I need to note that it is a chan_local problem, in local_hangup when outgoung ==false need to hangup channel in p->chan, by I have no idea how.

Catecory of bug can be changes from Core/Channels to Channels/chan_local

By: Igor Goncharovsky (igorg) 2008-04-15 01:24:43

Attached patch fix issue for me. Can anyone review it? Is it right way to fix?

By: Digium Subversion (svnbot) 2008-06-20 15:09:04

Repository: asterisk
Revision: 124315

U   branches/1.4/channels/chan_local.c

------------------------------------------------------------------------
r124315 | tilghman | 2008-06-20 15:09:02 -0500 (Fri, 20 Jun 2008) | 8 lines

When using a Local channel, started by a call file, with a destination of an
AGI script, the AGI script does not always get notified of a hangup if the
underlying channel hangs up early.
(closes issue ASTERISK-11294)
Reported by: IgorG
Patches:
      local_hangup-v1.diff uploaded by IgorG (license 20)

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

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

By: Digium Subversion (svnbot) 2008-06-20 15:10:02

Repository: asterisk
Revision: 124316

_U  trunk/
U   trunk/channels/chan_local.c

------------------------------------------------------------------------
r124316 | tilghman | 2008-06-20 15:10:01 -0500 (Fri, 20 Jun 2008) | 16 lines

Merged revisions 124315 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r124315 | tilghman | 2008-06-20 15:16:02 -0500 (Fri, 20 Jun 2008) | 8 lines

When using a Local channel, started by a call file, with a destination of an
AGI script, the AGI script does not always get notified of a hangup if the
underlying channel hangs up early.
(closes issue ASTERISK-11294)
Reported by: IgorG
Patches:
      local_hangup-v1.diff uploaded by IgorG (license 20)

........

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

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

By: Digium Subversion (svnbot) 2008-06-20 15:11:14

Repository: asterisk
Revision: 124317

_U  branches/1.6.0/
U   branches/1.6.0/channels/chan_local.c

------------------------------------------------------------------------
r124317 | tilghman | 2008-06-20 15:11:12 -0500 (Fri, 20 Jun 2008) | 24 lines

Merged revisions 124316 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r124316 | tilghman | 2008-06-20 15:17:04 -0500 (Fri, 20 Jun 2008) | 16 lines

Merged revisions 124315 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r124315 | tilghman | 2008-06-20 15:16:02 -0500 (Fri, 20 Jun 2008) | 8 lines

When using a Local channel, started by a call file, with a destination of an
AGI script, the AGI script does not always get notified of a hangup if the
underlying channel hangs up early.
(closes issue ASTERISK-11294)
Reported by: IgorG
Patches:
      local_hangup-v1.diff uploaded by IgorG (license 20)

........

................

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

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