Hanging up after Originate while still ringing

Hi

I’m trying to use AMI to initialize a call and then hang up while the called phone is still ringing.

But after starting the call with:

Action: Originate
Channel: SIP/test3
Priority: 1
Context: default
Exten: 1001

I get no information (like the “SIP/test3-XXXXXXXX” channel) over the socket until I answer / hangup the phone (I can see the ringing channel with ‘core show channels’ in another terminal).

What would be the best/easiest way to get this information as soon as possible?
Would I really have to watch the open connections over a 2. TCP connection?

Why do I want to do that?:
I try to recreate an existing (non-Asterix) system where the “initiator” start a conference call by calling a specific number and the systems then calls the other participants and routes them into the conference.

I could recreate most of it with callfiles and “end_marked”/“wait_market”, but it also should have the same behavior when the “initiator” ends the call before the participants answer their phones.

If you want to do complex things before answer, you need to use a local channel, although I don’t know why you can’t use a timeout.

Asterisk dialplans don’t get told when the alerting condition is reported, so have to dead reckon anything like this.