<div dir="ltr"><div dir="ltr">Would really appreciate some help here - into day 4 of trying to bridge a PJSIP call to an existing confbridge.<div><br></div><div>There's a fair amount of dialplan and log to show which doesn't really work well via plain text email, so I've taken it over to the forum at <a href="https://community.asterisk.org/t/bridging-an-existing-conference-to-a-new-call/76806/7">https://community.asterisk.org/t/bridging-an-existing-conference-to-a-new-call/76806/7</a></div><div><br></div><div>Many thanks in advance.</div></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, 24 Oct 2018 at 17:17, Jonathan H <<a href="mailto:lardconcepts@gmail.com">lardconcepts@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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>
</blockquote></div>