DIAL with m flag - heard music only after playback()

It’s my first config for asterisk and I have a strange thing.
Incoming channel is SIP.
When I have such dialplan for incoming connection

exten => s,1,Dial(SIP/2001,30)
exten => s,n,Hangup

Caller is hears a ring tone - good :smiley:

When I have such dialplan

exten => s,1,Dial(SIP/2001,30,m)
exten => s,n,Hangup

Caller is hears only silence - bad :frowning:

When I have

exten => s,1,Playback(somefile)
exten => s,n,Dial(SIP/2001,30,m)
exten => s,n,Hangup

Caller is hears a music - everything good.
If I change Playback to Answer - silence again.

Can anybody explain me why?
Why I have music only after playback?

This appears to have been misdirected from Asterisk Support.

You will probably need an explicit call of Progress to use early media.

The upstream system may not support early media, especially if it charges for calls.

If early media isn’t supported, you will need an explicit call of Answer (not legal in Gemany, I believe), which will start charging for the caller. Playback implicitly answers unless you set an option to prevent this.

david55, thank you for answer.
I think about early media too.
But I not understand if Answer() and Playback() answers the call, why after Answer() I have a silence but after Playback() I have music?

I don’t know. The channel state should be the same in both cases.

(There may be a delay between the answer and when audio actually starts being accepted, but that should just truncate the start of the music.)

magic :smiley: