Summary: | ASTERISK-11367: Redirect through AMI not working | ||
Reporter: | Arnd Schmitter (arnd) | Labels: | |
Date Opened: | 2008-02-04 03:57:44.000-0600 | Date Closed: | 2008-02-04 09:13:25.000-0600 |
Priority: | Major | Regression? | No |
Status: | Closed/Complete | Components: | Core/PBX |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | Redirecting through AMI isn't working. To reproduce: Incoming Call on Zapchannel Zapchannel calls dial(IAX2/xxx/yyy) Zapchannel is bridged with IAX Channel ... Sending Redirect only for ZAP Channel => Zapchannel gets Hangup. After browsing through Code and SVN History i came to the opinion, that this bug was introduced by R88166 which rewrites the Code for traversing through the dialplan (main/pbx.c: __ast_pbx_run). The case of an Softhangup with AST_SOFTHANGUP_ASYNCGOTO isn't handled correctly anymore. ****** ADDITIONAL INFORMATION ****** [Feb 4 10:17:08] DEBUG[17968]: manager.c:2482 process_message: Manager received command 'Login' [Feb 4 10:17:08] DEBUG[17968]: manager.c:2482 process_message: Manager received command 'Redirect' [Feb 4 10:17:08] DEBUG[17968]: channel.c:1369 ast_softhangup_nolock: Soft-Hanging up channel 'Zap/4-1' [Feb 4 10:17:08] DEBUG[17968]: channel.c:3978 ast_generic_bridge: Didn't get a frame from channel: Zap/4-1 [Feb 4 10:17:08] DEBUG[17968]: channel.c:4318 ast_channel_bridge: Bridge stops bridging channels Zap/4-1 and IAX2/to_asterisk02-16384 [Feb 4 10:17:08] DEBUG[17968]: channel.c:1468 ast_hangup: Hanging up channel 'IAX2/to_asterisk02-16384' [Feb 4 10:17:08] DEBUG[17968]: chan_iax2.c:3532 iax2_hangup: We're hanging up IAX2/to_asterisk02-16384 now... -- Hungup 'IAX2/to_asterisk02-16384' [Feb 4 10:17:08] DEBUG[17968]: devicestate.c:441 __ast_devstate_changed_literal: Notification of state change to be queued on device/channel IAX2/to_asterisk02-16384 [Feb 4 10:17:08] DEBUG[17968]: devicestate.c:441 __ast_devstate_changed_literal: Notification of state change to be queued on device/channel IAX2/to_asterisk02 [Feb 4 10:17:08] DEBUG[17968]: app_dial.c:1891 dial_exec_full: Exiting with DIALSTATUS=ANSWER. [Feb 4 10:17:08] DEBUG[17968]: pbx.c:3311 __ast_pbx_run: Spawn extension (lasttest,01996000,1) exited non-zero on 'Zap/4-1' == Spawn extension (lasttest, 01996000, 0) exited non-zero on 'Zap/4-1' -- Auto fallthrough, channel 'Zap/4-1' status is 'ANSWER' [Feb 4 10:17:08] DEBUG[17968]: channel.c:1369 ast_softhangup_nolock: Soft-Hanging up channel 'Zap/4-1' [Feb 4 10:17:08] DEBUG[17968]: channel.c:1468 ast_hangup: Hanging up channel 'Zap/4-1' [Feb 4 10:17:08] DEBUG[17968]: chan_zap.c:2968 zt_hangup: zt_hangup(Zap/4-1) | ||
Comments: | By: Digium Subversion (svnbot) 2008-02-04 09:13:24.000-0600 Repository: asterisk Revision: 102272 U trunk/main/pbx.c ------------------------------------------------------------------------ r102272 | file | 2008-02-04 09:13:23 -0600 (Mon, 04 Feb 2008) | 6 lines Update handling of asyncgoto so it properly works on channels that are currently executing a PBX. (closes issue ASTERISK-11367) Reported by: arnd (closes issue ASTERISK-11222) Reported by: johan ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=102272 |