Terminate outgoing call after 183 Session Progress

Hi all

I’m using originate and local channel to make an outgoing call. I want to terminate that call if I receive a 183 Session Progress message from the other side. Is this possible ? How ?

Short answer no. It is quite common for ringback to be provide by early media, so 183 doesn’t indicate a failure (it would be a 4xx if it did).

However, as Asterisk is open source, you could always modify the source code so that 183 is treated as a failure. You need to be careful though, as the UAS will not consider the call failed, so Asterisk will need to issue a CANCEL.