plintus
September 11, 2025, 8:48am
1
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?
jcolp
September 11, 2025, 9:04am
2
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.
plintus
September 11, 2025, 9:07am
3
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
jcolp
September 11, 2025, 9:08am
4
That doesn’t really change my answer…
plintus
September 11, 2025, 9:16am
5
[Event: DeviceStateChange, Privilege: call,all, SystemName: asterisk, Device: PJSIP/16, State: NOT_INUSE]
i thought then newstate is a devicestate in channel context
jcolp
September 11, 2025, 9:20am
6
plintus
September 11, 2025, 9:24am
7
ari model non equal ami
in ami not exist event channeldestroyed
jcolp
September 11, 2025, 9:27am
8
I was more linking the description of channel states, which are the same across ARI, AMI, the core.
plintus
September 11, 2025, 9:31am
9
i’m hope too
but where newstate for channel down? after ringing, up must be down. or channel upped forever?
jcolp
September 11, 2025, 9:33am
10
It remains up for the lifetime of the channel.
plintus
September 11, 2025, 9:38am
11
it’s some strange for lifecycle.
but ok, will do crutch
jcolp
September 11, 2025, 9:42am
12
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.
plintus
September 11, 2025, 9:44am
13
unsure. at ari this event was be released)
system
Closed
October 11, 2025, 9:45am
14
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.