Question On Originate With EarlyMedia

Home » Asterisk Users » Question On Originate With EarlyMedia
Asterisk Users 2 Comments

Using AMI, we send an Originate with EarlyMedia: true setting

If the other end sends a 183, Asterisk When the 183 is received, Asterisk indicates the ChannelState: 6 and ChannelStateDesc: Up values. All is fine up to this point.

It may take the caller several seconds before the called party answers. When the called party answers (200 OK received), in the debugging I see Asterisk processing this and debugging show TSX State: Terminated Inv State: EARLY
At this point, the call is truly connected.

Is there a configuration setting to indicate whether Asterisk should send an event indicating when the early media ends and the call is really Up?

Dan

2 thoughts on - Question On Originate With EarlyMedia

  • There is no option. The Originate code makes the channel appear as answered when the 183 arrives, everything reflects that afterwards. Even if a second answer occurs it gets ignored. The log message you refer to is internal state information to do with the SIP side.

  • VGhhbmsgeW91Lg0KDQpNYXkgYmUgYSBuaWNlIGZlYXR1cmUgaW4gdGhlIGZ1dHVyZSB0byBzZW5k IGFuIGluZGljYXRpb24gZXZlbnQgd2hlbiB0aGUgY2FsbCBpcyBhbnN3ZXJlZC4NCg0KVGhlIHJl YXNvbiBpcyBpZiBjYWxsIEEgbmVlZHMgdG8gYmUgdHJhbnNmZXJyZWQgdG8gZGVzdGluYXRpb24u DQpXaGVuIGNhbGxpbmcgdGhlIGRlc3RpbmF0aW9uIEIgKG9yaWdpbmF0ZSB0aGUgY2FsbCkuDQpT
    b21lIGNvbXBhbmllcy9kZXBhcnRtZW50cyBwbGF5IGluYmFuZCByZWNvcmRpbmdzIGluc3RlYWQg b2YgcmluZ2luZy4gIFdlIGhhdmUgYSBjdXN0b21lciB3aG8gcGxheXMg4oCcWW91ciBjYWxsIHdp bGwgYmUgcmVjb3JkZWQgZm9yIGxlZ2FsIHB1cnBvc2Vz4oCdLg0KQmVjYXVzZSBjYWxsIEEgbmVl ZHMgdG8gaGVhciB0aGF0IG1lc3NhZ2UsIHdlIGN1cnJlbnRseSBwbGFjZSBib3RoIGNhbGxzIGlu IGEgQ29uZkJyaWRnZS4gIENhbGwgQSBub3cgaGVhcnMgdGhlI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