This is all done using ARI.
When making an outbound call I will listen to ChannelStateChange events and when I receive an event state of ‘Ringing’, I will start playing ringback to the caller, and when I get the event state ‘Up’, I will create a bridge and add both ends to the bridge.
My problem is that there is a few Telecom providers here in Denmark that does not send the SIP reply “180 Ringing” before they send “183 Progress” with SDP, telling Asterisk to bridge the 2 parties for early media because they themself are playing the callback tones.
Because ARI does not know about “183 Progress”, I do not know when to bridge the 2 parties for early media, and thus I have no callback and no audio before I get the event state ‘Up’.
How can I get around this problem or is there another event I can listen to that will tell me about progress on a SIP channel?