Ami events again

I collect some call event history (AMI)

10247eef-b43a-4d7d-a314-8419f04c6206=history: [
name: Newchannel; channel: 10247eef-b43a-4d7d-a314-8419f04c6206,
name: NewCallerid; channel: 10247eef-b43a-4d7d-a314-8419f04c6206,
name: Newstate; channel: 10247eef-b43a-4d7d-a314-8419f04c6206(Ringing),
name: Newstate; channel: 10247eef-b43a-4d7d-a314-8419f04c6206(Up),
name: Newchannel; channel: asterisk-1757579206.5205,
name: DialBegin; channel: 10247eef-b43a-4d7d-a314-8419f04c6206,
name: NewCallerid; channel: asterisk-1757579206.5205,
name: NewCallerid; channel: 10247eef-b43a-4d7d-a314-8419f04c6206,
name: DialEnd; channel: 10247eef-b43a-4d7d-a314-8419f04c6206 (NO_ANSWER),
name: Hangup; channel: asterisk-1757579206.5205,
name: Hangup; channel: 10247eef-b43a-4d7d-a314-8419f04c6206,
name: Cdr; channel: 10247eef-b43a-4d7d-a314-8419f04c6206,
name: Cdr; channel: 10247eef-b43a-4d7d-a314-8419f04c6206
];

i see Newstate - ringung, up

but where Newstate for a down channel 10247eef-b43a-4d7d-a314-8419f04c6206?

I would not expect there to be a Newstate for that, as it probably started in that state and Newstate is only raised when the state changes.

ou. i’m fogot detail:

this call is back and channel 10247eef-b43a-4d7d-a314-8419f04c6206 is answered, asterisk-1757579206.5205 is no_answer

also i see non-channel event devicestatechange for 10247eef-b43a-4d7d-a314-8419f04c6206

That doesn’t really change my answer…

[Event: DeviceStateChange, Privilege: call,all, SystemName: asterisk, Device: PJSIP/16, State: NOT_INUSE]

i thought then newstate is a devicestate in channel context

It is not[1].

[1] Channel State - Asterisk Documentation

ari model non equal ami

in ami not exist event channeldestroyed

I was more linking the description of channel states, which are the same across ARI, AMI, the core.

i’m hope too

but where newstate for channel down? after ringing, up must be down. or channel upped forever?

It remains up for the lifetime of the channel.

it’s some strange for lifecycle.

but ok, will do crutch

Channels are not permanent, unlike devices. They are created and destroyed as calls are placed and hung up. Putting the state back to down would be a waste.

unsure. at ari this event was be released)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.