[asterisk-users] How can I connect an existing Confbridge to a new SIP channel when DIALEDPEERNAME is empty?

2018-10-24 Thread Jonathan H
Asterisk 16.0, PJSIP

For the first caller to a conference, I want to dial out and bridge that
conference to a new PJSIP external call.

For the next callers, I just want them to join the local Asterisk
conference.

After the last caller leaves the conference, I want to hangup the call it
initiated.

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.

Secondly, I understand that I need the name of the "dialling out" channel:

https://wiki.asterisk.org/wiki/display/AST/Pre-Bridge+Handlers
> This application sets the following channel variables:
> DIALEDPEERNAME - The name of the outbound channel that answered the call.

But  DIALEDPEERNAME is  empty. Can anyone please suggest where I might be
going wrong here, and how to complete this? Thank you!

[bcab-dial-zoom]
exten => s,1,Answer()
same => n,Dial(PJSIP/0203456789@voipfone-201,,U(bcab-send-dtmf))

[bcab-send-dtmf]
exten => s,1,Wait(1)
same => n,Verbose(1,***Dialled channel is ${DIALEDPEERNAME});  just
gives :**Dialled channel is
same => n,Set(dialedname=${DIALEDPEERNAME})
same => n,SendDTMF(WW123456#W#W)
same => n,Playback(technical-support)
same => n,SendDTMF(#)

same => n,SET(GOSUB_RESULT=GOTO:bcab-bridge-conference^s^1)
same => n,Return()

[bcab-bridge-conference]
exten => s,1,Verbose(1,*** Entered bcab-bridge-conference)
same => n,Answer()
same => n,ConfBridge(1234)
same => n,Wait(55)
same => n,Hangup()
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Astricon is coming up October 9-11!  Signup is available at: 
https://www.asterisk.org/community/astricon-user-conference

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

[asterisk-users] Missing audio on playback in 16.0

2018-10-24 Thread Karsten Wemheuer
Hi,

I am currently evaluating asterisk 16. I have noticed an issue using
application playback. The beginning and the end of the audio file are
missing. If I use answer and wait(1) before playback, the beginning is
correct. I am using chan_sip, if this is of interest.

Best regards
Karsten

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Astricon is coming up October 9-11!  Signup is available at: 
https://www.asterisk.org/community/astricon-user-conference

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users