N-way conference


#1

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 after “same => n,Goto(nway-invite,s,1)” go down

What i made wrong?

[2018-05-15 10:44:33] VERBOSE[4496][C-000019e2] pbx.c: Executing [s@macro-conf:6] Goto(“DAHDI/i1/1182-d79”, “nway-invite,s,1”) in new stack
[2018-05-15 10:44:33] VERBOSE[4496][C-000019e2] pbx_builtins.c: Goto (nway-invite,s,1)
[2018-05-15 10:44:33] VERBOSE[4496][C-000019e2] app_macro.c: Channel ‘DAHDI/i1/1182-d79’ jumping out of macro ‘conf’
[2018-05-15 10:44:33] VERBOSE[4496][C-000019e2] bridge_channel.c: Channel DAHDI/i1/1182-d79 left ‘simple_bridge’ basic-bridge
[2018-05-15 10:44:33] VERBOSE[4496][C-000019e2] pbx.c: Spawn extension (nway-invite, s, 0) exited non-zero on 'DAHDI/i1/1182-d79’
[2018-05-15 10:44:33] VERBOSE[4496][C-000019e2] chan_dahdi.c: Hungup ‘DAHDI/i1/1182-d79’
[2018-05-15 10:44:37] VERBOSE[20037][C-000019e2] sig_pri.c: Span 1: Channel 0/4 got hangup request, cause 31

[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,Goto(nway-invite,s,1)

[nway-invite]
exten => s,1,Answer()
same => n,Set(__DYNAMIC_FEATURES=custom-features)
same => n,Read(NEW_CALL,dial,i,3,5)
same => n,NoOp(Read DTMF from var ${NEW_CALL})
same => n,GoSub(cos-all,${NEW_CALL},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,Set(CONFBREDGE(user,music_on_hold_when_empty)=yes)
same => n,ConfBridge(${EXTEN:1},nway_menu)
same => n,Goto(test-call,s,1)


#2

You cannot goto from a custom feature.


#3

Thanks, i changed to GoSub. Now going to context [nway-invite]. Start new call. But i have new issue. Call dropped after the answer.

[2018-05-15 12:55:33] VERBOSE[13477][C-00001ae3] app_dial.c: Called DAHDI/g0/1164
[2018-05-15 12:55:34] VERBOSE[13477][C-00001ae3] app_dial.c: DAHDI/i1/1164-e2a is proceeding passing it to DAHDI/i1/1182-e28
[2018-05-15 12:55:34] VERBOSE[13477][C-00001ae3] app_dial.c: DAHDI/i1/1164-e2a is ringing
[2018-05-15 12:55:34] VERBOSE[13477][C-00001ae3] app_dial.c: DAHDI/i1/1164-e2a is making progress passing it to DAHDI/i1/1182-e28
[2018-05-15 12:55:39] VERBOSE[13477][C-00001ae3] app_dial.c: DAHDI/i1/1164-e2a answered DAHDI/i1/1182-e28
[2018-05-15 12:55:39] VERBOSE[13518][C-00001ae3] bridge_channel.c: Channel DAHDI/i1/1164-e2a joined ‘simple_bridge’ basic-bridge
[2018-05-15 12:55:39] VERBOSE[13477][C-00001ae3] app_macro.c: Spawn extension (trk-1, 1164, 5) exited non-zero on ‘DAHDI/i1/1182-e28’ in macro ‘conf’
[2018-05-15 12:55:39] VERBOSE[13477][C-00001ae3] bridge_channel.c: Channel DAHDI/i1/1182-e28 left ‘simple_bridge’ basic-bridge <9b8551b8-3775-4f4e-b642-ef5a8d098c9a>
[2018-05-15 12:55:39] VERBOSE[13477][C-00001ae3] pbx.c: Spawn extension (trk-1, 1164, 5) exited non-zero on ‘DAHDI/i1/1182-e28’
[2018-05-15 12:55:39] VERBOSE[13477][C-00001ae3] pbx.c: Executing [h@trk-1:2] Hangup(“DAHDI/i1/1182-e28”, “”) in new stack