|Summary:||ASTERISK-19948: Asterisk 1.8 manager redirect command fails when redirecting multiple channels currently bridged together via dial command.|
|Reporter:||Brent Dalgleish (lexus350)||Labels:|
|Date Opened:||2012-06-03 22:42:01||Date Closed:||2013-01-02 15:08:45.000-0600|
|Versions:||22.214.171.124 126.96.36.199||Frequency of|
|Environment:||Centos 5.7 x86_64||Attachments:||( 0) dialplan.inc|
( 1) issue_19948.log
( 2) jira_asterisk_19948_v11.patch
|Description:||Have observed a problem with asterisk 1.8 (versions 188.8.131.52, 184.108.40.206,220.127.116.11-rc2 all behave the same) and using the manager redirect command to redirect two channels which are bridged together via dial command to alternate locations.|
When the redirect is attempted, the following error is received on the second channel:
[Jun 4 13:06:29] WARNING: channel.c:5874 __ast_channel_masquerade: Can't setup masquerade. One or both channels is dead. (AsyncGoto/SIP/30-00000001 <-- SIP/30-00000001)
Have previously used this on multiple 1.6 version with no problem (manager.c was patched to include Extra channel options from 1.8).
Any help would be great, thank you.
|Comments:||By: Rusty Newton (rnewton) 2012-06-04 19:40:05.141-0500|
We require a complete debug log to help triage the issue. This document will provide instructions on how to collect debugging logs from an Asterisk machine for the purpose of helping bug marshals troubleshoot an issue: https://wiki.asterisk.org/wiki/display/AST/Collecting+Debug+Information
Additionally, please include the exact manager commands used, extensions.conf and point out the dialplan that initiates the two channels mentioned. Include a full log with DEBUG and VERBOSE at level 5 and point out where in the log the issue occurs
By: Brent Dalgleish (lexus350) 2012-06-04 20:17:26.343-0500
Log file of issue
By: Brent Dalgleish (lexus350) 2012-06-04 20:17:51.919-0500
Sections of diaplan relevant to issue
By: Brent Dalgleish (lexus350) 2012-06-04 20:20:15.590-0500
Have attached two files:
'dialplan.inc' which includes the dialplan relevant to issue
'issue_19948.log' asterisk debug of issue when it occurs.
This is example of command used to join channels together:
[Jun 5 11:05:36] VERBOSE pbx.c: -- Executing [30@direct:2] Dial("SIP/18-0000000c", "SIP/30,45,gM(inboundlog)") in new stack
This is the http command used to redirect the channels:
[Jun 5 11:06:04] DEBUG http.c: HTTP Request URI is /asterisk/mxml?action=Redirect&Channel=SIP/18-0000000c&Exten=18&Context=callhold&Priority=1&ExtraChannel=SIP/30-0000000d&ExtraExten=1&ExtraContext=transfercleanup&ExtraPriority=1
This is the error which occurs:
[Jun 5 11:06:04] WARNING channel.c: Can't setup masquerade. One or both channels is dead. (AsyncGoto/SIP/30-0000000d <-- SIP/30-0000000d)
Please advise if require any further debug/logs.
By: Rusty Newton (rnewton) 2012-06-28 20:06:21.979-0500
Thanks Brent. That info should work for now. A developer should be able to look at it as soon as one is available.
By: Nuno Borges (nerbos) 2012-08-10 07:52:16.585-0500
I believe that you are experience this issue: ASTERISK-18975
By: Paulo Mendes da Silva (kanelbullar) 2012-08-13 04:05:20.610-0500
Any updates on this issue? We have used multiple channel manager redirect for years without any problems on asterisk 1.2.
However, we have been experiencing this problem for quite a while on asterisk 1.8.7. It would be very important for us to have a correction.
Thanks in advance.
By: Matt Jordan (mjordan) 2012-08-13 09:26:23.043-0500
A potentially related issue was resolved in 18.104.22.168. You may want to try reproducing the problem using that version (or later) to see if your issue still occurs.
If it does, please note in the comments here and I'll unlink the issue.
By: Nuno Borges (nerbos) 2012-08-13 09:45:15.880-0500
Is ASTERISK-19985 the potentially related issue that you are referring ? I have already tested with the patch provided in that issue and this problem persists. Never the less i will install a clean asterisk with the recommend version and will try to reproduce this problem.
By: Matt Jordan (mjordan) 2012-08-13 10:11:00.520-0500
It is. If the issue isn't resolved in 22.214.171.124 that's fine - I'll unlink the issue.
By: Nuno Borges (nerbos) 2012-08-14 04:04:39.463-0500
I can confirm that this issue and ASTERISK-18975 is not resolved for asterisk 126.96.36.199. By adding one second delay like suggested in ASTERISK-18975 the dual redirect of two bridged channels will fail on masquerade.
By: Jeremy Betts (freevoice) 2012-10-11 11:14:34.374-0500
It would be great to finally get this resolved. This issue has been holding back our development on some really cool real-time dashboard features for a very long time. Any ideas on a workaround for splitting two currently bridged channels and redirecting them to a meetme room using the manager api?
By: Deepak Lohani (deepaklohani) 2012-11-06 23:43:54.323-0600
We have also been experiencing this issue since we upgraded to Asterisk 1.8 from 1.6. Whenever we try to redirect two channels, extra channel always gets disconnected.
We uses multiple channels redirect feature to put two channels into a conference.
Is threre any resolution to this issue?
By: Deepak Lohani (deepaklohani) 2012-12-02 23:04:46.614-0600
Any update on this issue.
By: Richard Mudgett (rmudgett) 2012-12-03 09:39:38.441-0600
I expect to get to this issue this month.
By: Richard Mudgett (rmudgett) 2012-12-12 14:25:43.050-0600
For those waiting for a fix. A patch is available on reviewboard:
By: Kayode (gltduser) 2012-12-13 07:25:27.859-0600
Hi I seem to have been able to replace the same issue on Asterisk 11.1.0, I have tried applying that patch on Asterisk 11 but it does not compile. Is it possible to patch this version of Asterisk as well. We need this ASAP as we are looking to move away from Asterisk 1.6 which is which seems like its only version that Redirecting two channels into a conference works. We would like to get this working on Asterisk 11. Thanks
By: Richard Mudgett (rmudgett) 2012-12-13 10:08:40.527-0600
The patch will be merged into the active branches when it is ready. The reviewboard patch is for v1.8.
By: Kayode (gltduser) 2012-12-13 11:34:18.224-0600
Thanks for the response, is there any way to facilitate the quick addition of this to Asterisk 11?
By: Richard Mudgett (rmudgett) 2012-12-13 12:05:45.961-0600
[^jira_asterisk_19948_v11.patch] - Asterisk v11 version of the first patch version on the reviewboard review.
By: Thomas Sevestre (to) 2012-12-21 03:05:45.690-0600
Hello, has anybody applied this patch in production?
I've tested the patch on asterisk 1.8.13. It looks fine so far.
By: Deepak Lohani (deepaklohani) 2012-12-21 03:19:35.812-0600
Hi I have tested it with asterisk 1.8.16 and it is working fine.
By: Kayode (gltduser) 2012-12-21 03:48:22.947-0600
I have tested the Asterisk 11 patch on 11.1.0 and that works fine as well.