[asterisk-users] Providing Ringback

Grey Man
Sat, 08 Nov 2008 03:44:39 -0000

Hi Igor,

We had an interconnect with a carrier that generated early media for
progress indications but the carrier's switch, in this case a Cerpack,
would only start sending the RTP for the early media AFTER it received
an RTP packet from the Asterisk end. Completely stupid behaviour since
early media is generally only one way but that's what it did.

We worked around it by recording 200ms of silence and playing that
back to the carrier's Cerpack with the Background command whenever we
received an incoming call. This got two way RTP set up and allowed the
progress tones to be correctly passed through to the user.

[noringback]
exten => _X.,1,Background(/var/lib/asterisk/custom-sounds/silence_200,n)
exten => _X.,2,Goto(incoming, ${EXTEN}, 1)

Regards,

Greyman.