<div dir="ltr"><div dir="ltr"><div>Asterisk 16.0, PJSIP</div><div><br></div><div>For the first caller to a conference, I want to dial out and bridge that conference to a new PJSIP external call.</div><div><br></div><div>For the next callers, I just want them to join the local Asterisk conference.</div><div><br></div><div>After the last caller leaves the conference, I want to hangup the call it initiated. </div><div><br></div><div>Most of this works, but there are two problems - after the dial string and username is done sending, no further audio flows between the Confbridge conference and the external call.</div><div><br></div><div>Secondly, I understand that I need the name of the "dialling out" channel:</div><div><br></div><div><a href="https://wiki.asterisk.org/wiki/display/AST/Pre-Bridge+Handlers" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Pre-Bridge+Handlers</a></div><div>> This application sets the following channel variables:</div><div>> DIALEDPEERNAME - The name of the outbound channel that answered the call.</div><div><br></div><div>But
DIALEDPEERNAME is empty. Can anyone please suggest where I might be going wrong here, and how to complete this? Thank you!</div><div><br></div><div>[bcab-dial-zoom]</div><div>exten => s,1,Answer()</div><div>same => n,Dial(PJSIP/0203456789@voipfone-201,,U(bcab-send-dtmf))</div><div><br></div><div>[bcab-send-dtmf]</div><div> exten => s,1,Wait(1)</div><div> same => n,Verbose(1,***Dialled channel is ${DIALEDPEERNAME}); just gives :**Dialled channel is</div><div> same => n,Set(dialedname=${DIALEDPEERNAME}) </div><div> same => n,SendDTMF(WW123456#WWWWW#WWWWW)</div><div> same => n,Playback(technical-support)</div><div> same => n,SendDTMF(#)</div><div><br></div><div> same => n,SET(GOSUB_RESULT=GOTO:bcab-bridge-conference^s^1)</div><div> same => n,Return() </div><div><br></div><div>[bcab-bridge-conference]</div><div>exten => s,1,Verbose(1,*** Entered bcab-bridge-conference)</div><div> same => n,Answer()</div><div> same => n,ConfBridge(1234) </div><div> same => n,Wait(55)</div><div> same => n,Hangup()</div><div><br></div></div></div>