Prompt playback failing

OK, as a FYI for others I am starting to see what is happening but not sure yet how to fix it.
Seems ‘Progress’ may have been added to newer versions of Asterisk.
Can’t find any instance in my old 1.8 configs

Here’s the bad-number context

[bad-number]|

include => bad-number-custom|
exten => _X.,1,ResetCDR()|
exten => _X.,n,NoCDR()|
exten => _X.,n,Progress|
exten => _X.,n,Wait(1)|
exten => _X.,n,Progress|
exten => _X.,n,Playback(silence/1&cannot-complete-as-dialed&check-number-dial-again,noanswer)|
exten => _X.,n,Wait(1)|
exten => _X.,n,Congestion(20)|
exten => _X.,n,Hangup|

The Progress ‘app’ is called prior to playing the media.

OK, so how do we fix that?

First, what config settings are there in Asterisk to enable/disable it. Quite frankly this is completely buried and has been a nightmare to try and understand. The assumption is you want it, whether you do or not. Worse is there are no apparent setting I can so far see in FreePBX to allow you to configure it or tell you about it.

https://wiki.asterisk.org/wiki/display/AST/Early+Media+and+the+Progress+Application

I can see the following config options:

progressinband=yes|no|never

You can set progressinband to yes, no, or never, to configure whether or not to generate in-band ringing. Normally, Asterisk will send the progress of a call via a few methods, such as 183 Session Progress, 180 Ringing, 486 Busy, and so on. If you set progressinband=yes, Asterisk will indicate the call progress in band by generating tones:

For pjsip:

https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Configuration_res_pjsip#Asterisk13Configuration_res_pjsip-endpoint_inband_progress

inband_progress

If set to yes, chan_pjsip will send a 183 Session Progress when told to indicate ringing and will immediately start sending ringing as audio.

If set to no, chan_pjsip will send a 180 Ringing when told to indicate ringing and will NOT send it as audio.

There was another option in sip.conf but i am not sure if this is still in Asterisk

prematuremedia=

In older versions I believe the defaults were:

progressinband=never
prematuremedia=legacy

So it looks like Progress has been enabled by default in the new version and that is what has caused my problems.

Solutions.

OK, so we could potentially disable this in Asterisk/FreePBX.

I can’t find a setting anywhere. The only place I can see you could do that is adding a custom setting in Settings/Asterisk SIP Settings/ Chan SIP Settings but I think I must have missed something.

Here’s another possibility:

Or this:
http://thesipguide.com/pbx-trunking/asterisk/
Add progressinband=no to the trunk

What I don’t get is where in FreePBX you can disable Progress in extensions_additoinal.conf ?

Then there is the phone itself.

I noticed this in Settings/Advanced Settings:

“Use bad-number Context Yes/No
KEYWORD:AMPBADNUMBER
Generate the bad-number context which traps any bogus number or feature code and plays a message to the effect. If you use the Early Dial feature on some Grandstream phones, you will want to set this to false.”

Nope - Early Dial is disabled as far as I can see does not affect this issue

So I have no idea what Progess it is set to in my Grandstream phones (and a couple of old Mitel and Cisco phones that almost certainly won’t I guess). Neither do I know how to get them to check ‘Progress’ either - I’ve read all the docs and there is no mention that I can see and a search doesn’t reveal anything so far.

Sigh…