Playback to analog port

Hi,

i want to call out to my tam b connected to a loudspeaker and then play a message

however when i dial instead of the background being played - my phone channel is connected to the loudspeaker instead

same => n,Dial(DAHDI/15/)
same => n,Background(get_the_door)

what am i doing wrong - why can i not play background (or play) to an outgoing call ?

Thanks!

Background will not get called unless and until the Dial application fails, and, in any case will only produce output on the channel on which it is being run. If Dial gets answered, it continues to run until one side hangs up, and only if the g option is used and it is the called party that hangs up, will it run the next “priority”. As the called party is hungup at this stage, the next priority cannot do anything to the called party.

Background is interruptible by DTMF; you would normally use Playback.

I think that you have so many misunderstandings of how Asterisk works that you need to read the documentation again, or employ someone else to configure it for you.

(Dial has options to play recordings on called channels.)