Thank you.

May be a nice feature in the future to send an indication event when the call 
is answered.

The reason is if call A needs to be transferred to destination.
When calling the destination B (originate the call).
Some companies/departments play inband recordings instead of ringing.  We have 
a customer who plays “Your call will be recorded for legal purposes”.
Because call A needs to hear that message, we currently place both calls in a 
ConfBridge.  Call A now hears the recording.
If/when the call is really answered, we want to remove the calls from the 
ConfBridge and transfer A to B.  (Successful transfer removes call from 
Asterisk and patches them internally in their switch NEC, Cisco, Avaya, etc)

Currently, we require an agent to listen into the ConfBridge and decide when 
they believe it’s answered.
Agent kicks everyone from the ConfBridge and the REFER (transfer) is sent.
On some occasions the agent is incorrect or makes a mistake in doing this too 
soon, so the transfer fails.
At that point, add everyone back into the ConfBridge, waiting for the agent to 
decide when to retry.

Dan


From: asterisk-users <asterisk-users-boun...@lists.digium.com> On Behalf Of 
Joshua C. Colp
Sent: Thursday, September 1, 2022 11:41 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion 
<asterisk-users@lists.digium.com>
Subject: Re: [External] [asterisk-users] Question on Originate with EarlyMedia

On Thu, Sep 1, 2022 at 1:32 PM Dan Cropp 
<d...@amtelco.com<mailto:d...@amtelco.com>> wrote:
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?

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.

--
Joshua C. Colp
Asterisk Project Lead
Sangoma Technologies
Check us out at www.sangoma.com<http://www.sangoma.com> and 
www.asterisk.org<http://www.asterisk.org>
-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
      https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to