[Home]

Summary:ASTERISK-27856: Dial from macro-context N-way
Reporter:Roman (forextazy)Labels:
Date Opened:2018-05-15 09:28:55Date Closed:2018-05-15 09:35:07
Priority:MajorRegression?
Status:Closed/CompleteComponents:Applications/app_macro Bridges/bridge_simple Core/Bridging/bridge_basic Core/Channels
Versions:13.20.0 Frequency of
Occurrence
Related
Issues:
duplicatesASTERISK-27855 Dial from macro-context N-way conference
Environment:CentOS Linux release 7.4.1708 (Core)Attachments:
Description:Hello
I try configure nway
Asterisk 13.20.0 built by mockbuild @ buildbot on a x86_64 running Linux
When push ** start macro-conf. Сompanion go to conference room, another leg start new call. But i have issue. Call dropped after the answer.
What i made wrong?
Comments:By: Asterisk Team (asteriskteam) 2018-05-15 09:28:56.631-0500

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].

By: Roman (forextazy) 2018-05-15 09:32:04.684-0500

Debug

[2018-05-15 17:21:50] VERBOSE[20007][C-00001cdb] app_dial.c: DAHDI/i1/1482-fa0 is making progress passing it to DAHDI/i1/1182-f9f
[2018-05-15 17:21:56] VERBOSE[20007][C-00001cdb] app_dial.c: DAHDI/i1/1482-fa0 answered DAHDI/i1/1182-f9f
[2018-05-15 17:21:56] VERBOSE[20059][C-00001cdb] bridge_channel.c: Channel DAHDI/i1/1482-fa0 joined 'simple_bridge' basic-bridge <841f88f5-2caa-4fc2-a13d-c4aa4eba7a7d>
[2018-05-15 17:21:56] VERBOSE[20007][C-00001cdb] bridge_channel.c: Channel DAHDI/i1/1182-f9f joined 'simple_bridge' basic-bridge <841f88f5-2caa-4fc2-a13d-c4aa4eba7a7d>
[2018-05-15 17:22:01] VERBOSE[20007][C-00001cdb] pbx.c: Executing [s@macro-conf:1] NoOp("DAHDI/i1/1182-f9f", "---START---ChannelRedirect---") in new stack
[2018-05-15 17:22:01] VERBOSE[20007][C-00001cdb] pbx.c: Executing [s@macro-conf:2] Set("DAHDI/i1/1182-f9f", "__CONFNO=41182") in new stack
[2018-05-15 17:22:01] VERBOSE[20007][C-00001cdb] pbx.c: Executing [s@macro-conf:3] NoOp("DAHDI/i1/1182-f9f", "BRIDGEPEER: DAHDI/i1/1482-fa0 for number CALLERID(num): 1182") in new stack
[2018-05-15 17:22:01] VERBOSE[20007][C-00001cdb] pbx.c: Executing [s@macro-conf:4] ChannelRedirect("DAHDI/i1/1182-f9f", "DAHDI/i1/1482-fa0,nway,41182,1") in new stack
[2018-05-15 17:22:01] VERBOSE[20007][C-00001cdb] pbx.c: Executing [s@macro-conf:5] NoOp("DAHDI/i1/1182-f9f", "---END---ChannelRedirect---") in new stack
[2018-05-15 17:22:01] VERBOSE[20007][C-00001cdb] pbx.c: Executing [s@macro-conf:6] Gosub("DAHDI/i1/1182-f9f", "nway-invite,s,1") in new stack
[2018-05-15 17:22:01] VERBOSE[20007][C-00001cdb] pbx.c: Executing [s@nway-invite:1] Answer("DAHDI/i1/1182-f9f", "") in new stack
[2018-05-15 17:22:01] VERBOSE[20059][C-00001cdb] bridge_channel.c: Channel DAHDI/i1/1482-fa0 left 'simple_bridge' basic-bridge <841f88f5-2caa-4fc2-a13d-c4aa4eba7a7d>
[2018-05-15 17:22:01] VERBOSE[20007][C-00001cdb] pbx.c: Executing [s@nway-invite:2] Read("DAHDI/i1/1182-f9f", "NEW_CALL,dial,,i,3,5") in new stack
[2018-05-15 17:22:01] VERBOSE[20059][C-00001cdb] pbx.c: Executing [41182@nway:1] Answer("DAHDI/i1/1482-fa0", "") in new stack
[2018-05-15 17:22:01] VERBOSE[20059][C-00001cdb] pbx.c: Executing [41182@nway:2] Set("DAHDI/i1/1482-fa0", "__CONFNO=41182") in new stack
[2018-05-15 17:22:01] VERBOSE[20059][C-00001cdb] pbx.c: Executing [41182@nway:3] NoOp("DAHDI/i1/1482-fa0", "Transfer DAHDI/i1/1482-fa0 to conference: 1182 !--comtext--nway--!") in new stack
[2018-05-15 17:22:01] VERBOSE[20059][C-00001cdb] pbx.c: Executing [41182@nway:4] MeetMe("DAHDI/i1/1482-fa0", "1182,Md") in new stack
[2018-05-15 17:22:01] VERBOSE[20059][C-00001cdb] app_meetme.c: Created MeetMe conference 1023 for conference '1182'
[2018-05-15 17:22:01] VERBOSE[20059][C-00001cdb] file.c: <DAHDI/i1/1482-fa0> Playing 'conf-onlyperson.ulaw' (language 'ru')
[2018-05-15 17:22:04] VERBOSE[20059][C-00001cdb] res_musiconhold.c: Started music on hold, class 'moh2', on channel 'DAHDI/i1/1482-fa0'
[2018-05-15 17:22:04] VERBOSE[20059][C-00001cdb] res_musiconhold.c: Stopped music on hold on DAHDI/i1/1482-fa0
[2018-05-15 17:22:05] VERBOSE[20059][C-00001cdb] res_musiconhold.c: Started music on hold, class 'moh2', on channel 'DAHDI/i1/1482-fa0'
[2018-05-15 17:22:05] VERBOSE[20007][C-00001cdb] app_read.c: User entered '1164'
[2018-05-15 17:22:05] VERBOSE[20007][C-00001cdb] pbx.c: Executing [s@nway-invite:3] NoOp("DAHDI/i1/1182-f9f", "Read DTMF from var 1164") in new stack
[2018-05-15 17:22:05] VERBOSE[20007][C-00001cdb] pbx.c: Executing [s@nway-invite:4] Dial("DAHDI/i1/1182-f9f", "DAHDI/g0/1164,90") in new stack
[2018-05-15 17:22:05] VERBOSE[20007][C-00001cdb] sig_pri.c: Requested transfer capability: 0x00 - SPEECH
[2018-05-15 17:22:05] VERBOSE[20007][C-00001cdb] app_dial.c: Called DAHDI/g0/1164
[2018-05-15 17:22:05] VERBOSE[20007][C-00001cdb] app_dial.c: DAHDI/i1/1164-fa3 is proceeding passing it to DAHDI/i1/1182-f9f
[2018-05-15 17:22:06] VERBOSE[20007][C-00001cdb] app_dial.c: DAHDI/i1/1164-fa3 is ringing
[2018-05-15 17:22:06] VERBOSE[20007][C-00001cdb] app_dial.c: DAHDI/i1/1164-fa3 is making progress passing it to DAHDI/i1/1182-f9f
[2018-05-15 17:22:08] VERBOSE[20007][C-00001cdb] app_dial.c: DAHDI/i1/1164-fa3 answered DAHDI/i1/1182-f9f
[2018-05-15 17:22:08] VERBOSE[20096][C-00001cdb] bridge_channel.c: Channel DAHDI/i1/1164-fa3 joined 'simple_bridge' basic-bridge <f3aa9851-f85e-4f2e-baf4-6c81a316dc04>
[2018-05-15 17:22:08] VERBOSE[20007][C-00001cdb] app_macro.c: Spawn extension (nway-invite, s, 4) exited non-zero on 'DAHDI/i1/1182-f9f' in macro 'conf'
[2018-05-15 17:22:08] VERBOSE[20007][C-00001cdb] bridge_channel.c: Channel DAHDI/i1/1182-f9f left 'simple_bridge' basic-bridge <841f88f5-2caa-4fc2-a13d-c4aa4eba7a7d>
[2018-05-15 17:22:08] VERBOSE[20007][C-00001cdb] pbx.c: Spawn extension (nway-invite, s, 4) exited non-zero on 'DAHDI/i1/1182-f9f'
[2018-05-15 17:22:08] VERBOSE[20007][C-00001cdb] chan_dahdi.c: Hungup 'DAHDI/i1/1182-f9f'
[2018-05-15 17:22:11] VERBOSE[20037][C-00001cdb] sig_pri.c: Span 1: Channel 0/3 got hangup request, cause 31
[2018-05-15 17:22:11] VERBOSE[20059][C-00001cdb] res_musiconhold.c: Stopped music on hold on DAHDI/i1/1482-fa0
[2018-05-15 17:22:11] VERBOSE[20059][C-00001cdb] chan_dahdi.c: Hungup 'DAHDI/pseudo-2042242837'
[2018-05-15 17:22:11] VERBOSE[20059][C-00001cdb] pbx.c: Spawn extension (nway, 41182, 4) exited non-zero on 'DAHDI/i1/1482-fa0'
[2018-05-15 17:22:11] VERBOSE[20059][C-00001cdb] chan_dahdi.c: Hungup 'DAHDI/i1/1482-fa0'
[2018-05-15 17:22:13] VERBOSE[20037][C-00001cdb] sig_pri.c: Span 1: Channel 0/5 got hangup request, cause 16
[2018-05-15 17:22:13] VERBOSE[20096][C-00001cdb] bridge_channel.c: Channel DAHDI/i1/1164-fa3 left 'simple_bridge' basic-bridge <f3aa9851-f85e-4f2e-baf4-6c81a316dc04>
[2018-05-15 17:22:13] VERBOSE[20096][C-00001cdb] chan_dahdi.c: Hungup 'DAHDI/i1/1164-fa3'


By: Roman (forextazy) 2018-05-15 09:33:15.731-0500

DialPlan

[macro-conf]
exten => s,1,NoOp(---START---ChannelRedirect---)
same => n,Set(__CONFNO=4${CALLERID(num)})
same => n,NoOp(BRIDGEPEER: ${BRIDGEPEER} for number CALLERID(num): ${CALLERID(num)})
same => n,ChannelRedirect(${BRIDGEPEER},nway,${CONFNO},1)
same => n,NoOp(---END---ChannelRedirect---)
same => n,GoSub(nway-invite,s,1)


[nway-invite]
exten => s,1,Answer()
same => n,Read(NEW_CALL,dial,,i,3,5)
same => n,NoOp(Read DTMF from var ${NEW_CALL})
same => n,Dial(DAHDI/g0/${NEW_CALL},90)
same => n,ChannelRedirect(${BRIDGEPEER},nway,${CONFNO},1)
same => n,GoSub(nway,${CONFNO},1)


[nway]
exten => _4XXXX,1,Answer()
same => n,Set(__CONFNO=${EXTEN})
same => n,NoOp(Transfer ${CHANNEL(name)} to conference: ${EXTEN:1} !--comtext--nway--!)
same => n,MeetMe(${EXTEN:1},Md)


By: Joshua C. Colp (jcolp) 2018-05-15 09:34:49.990-0500

Please don't file issues for the same thing. As indicated on the original linked issue, the nway macro that exists out there is not supported as of Asterisk 13. This itself is not a bug. An option was presented there to do similar functionality, if this is not what you need then you'll need to experiment/explore options or use community resources to discuss things.