Early Media Issue

Home » Asterisk Users » Early Media Issue
Asterisk Users 2 Comments

Hi all

I’ve got an issue where when I call a number that just plays early media back to me. Instead of hearing the full sequence of tones I hear a short ringing then part of the sequence. What seems odd is that I can see the telephone-event/8000 being passed up the chain but when it gets to Asterisk, it is never sent back to the phone. Instead I just see the usual RTP flows.

I’ve been trying to fix this for hours, does anyone have any ideas how to get this working correctly?

Asterisk version is 13.25.0

The settings I think are relevant (I’m using chan_sip):

(sip.conf)
ignoresdpversion=yes internal_timing=yes progressinband=never silencesuppression=no prematuremedia=no

(Per peer)
progressinband=yes directrtpsetup=no dtmfmode=rfc2833
directmedia=no silencesuppression=no prematuremedia=no

TIA
Mark.

2 thoughts on - Early Media Issue

  • SnVzdCBhIGd1ZXNzLCBidXQgSSBzdXNwZWN0IHRoYXQgdGhpcyBtaWdodCBiZSByZWxhdGVkIHdp dGggc3RyaWN0cnRwIHNldHRpbmcgaW4gcnRwLmNvbmYsIHdoaWNoIGxlYXJucyB0aGUgY29ycmVj dCBzb3VyY2UgaW4gZG9pbmcgc28gZHJvcHMgYSBmZXcgcGFja2V0cy4NCkkgd291bGQgdHJ5IHRv IGRpc2FibGUgc3RyaWN0cnRwIGZvciB0ZXN0aW5nIHB1cnBvc2VzIGFuZCBpZiB0aGlzIHdvcmtz IGFkZCBzb21lIGRlbGF5IGJlZm9yZSBwbGF5aW5nIGJhY2sgdGhlIG1lZGlhLg0KDQoNCg0KV2l0
    aCBiZXN0IHJlZ2FyZHMNCg0KRmxvcmlhbiBGbG9pbWFpcg0KSW5ub3ZhdGlvbiAtIFNvZnR3YXJl LURldmVsb3BtZW50DQoNCkNPTU1FTkQgSU5URVJOQVRJT05BTCBHTUJIDQpBLTUwMjAgU2FsemJ1
    cmcsIFNhYWxhY2hzdHJhw59lIDUxDQpodHRwOi8vd3d3LmNvbW1lbmQuY29tPGh0dHA6Ly93d3cu Y29tbWVuZC5jb20vPg0KDQpTZWN1cml0eSBhbmQgQ29tbXVuaWNhdGlvbiB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G9uZS4gSW5zdGVhZCBJIGp1c3Qgc2VlIHRoZSB1c3VhbCBS
    VFAgZmxvd3MuDQoNCkkndmUgYmVlbiB0cnlpbmcgdG8gZml4IHRoaXMgZm9yIGhvdXJzLCBkb2Vz IGFueW9uZSBoYXZlIGFueSBpZGVhcyBob3cgdG8gZ2V0IHRoaXMgd29ya2luZyBjb3JyZWN0bHk/
    DQoNCkFzdGVyaXNrIHZlcnNpb24gaXMgMTMuMjUuMA0KDQpUaGUgc2V0dGluZ3MgSSB0aGluayBh cmUgcmVsZXZhbnQgKEknbSB1c2luZyBjaGFuX3NpcCk6DQoNCihzaXAuY29uZikNCmlnbm9yZXNk cHZlcnNpb249eWVzDQppbnRlcm5hbF90aW1pbmc9eWVzDQpwcm9ncmVzc2luYmFuZD1uZXZlcg0K
    c2lsZW5jZXN1cHByZXNzaW9uPW5vDQpwcmVtYXR1cmVtZWRpYT1ubw0KDQooUGVyIHBlZXIpDQpw cm9ncmVzc2luYmFuZD15ZXMNCmRpcmVjdHJ0cHNldHVwPW5vDQpkdG1mbW9kZT1yZmMyODMzDQpk aXJlY3RtZWRpYT1ubw0Kc2lsZW5jZXN1cHByZXNzaW9uPW5vDQpwcmVtYXR1cmVtZWRpYT1ubw0K
    DQoNClRJQQ0KTWFyay4NCg0KLS0NCk1hcmsgRmFybWVyDQpmYXJtb3JnQGdtYWlsLmNvbTxtYWls dG86ZmFybW9yZ0BnbWFpbC5jb20+DQo

  • It’s a good shout but sadly hasn’t helped. Thanks anyway!

    The issue seems to be that our provider expects to be able to send inband early media. There is an OpenSIPS box between the provider & Asterisk which essentially just routes SIP traffic so the behaviour at our end is still controlled by Asterisk which makes the call.

    Using dtmfmode=auto it seems to be possible to switch to inband if RFC2833
    is not advertised in SDP but the provider just honours what we set in the call setup, which, since we only use RFC2833 is always advertised in SDP.

    ATM I think it’s a provider issue, according to another environment they should never send us inband but it seems to not be working correctly in the case.

    Regards Mark.