Skip to main content

NewState

When the status of a user in Simotel changes, a NewState event is generated. For example, when a user is idle (Idle or waiting for a call), and a call is sent to them, the event with state=Ringing will be created and sent to the web service when the ringtone is heard. Upon answering, the same event will be created again with state=InUse and sent to the web service.

caution

Warning
No information will be sent to the web service unless the desired events are selected in the API Events section.


Parameters of the Event

DescriptionDefined DataSample DataParameters
Event Name-NewStateevent_name
Extension (The user for whom the event is generated)-553exten
New StatusIdle - InUse Pause - Ringing - UnavailableInUsestate
Opposite Party of the Call-09991101756participant
Incoming or Outgoing Callin-outindirection
If the user was in a queue, the queue name is sent-900queue
Unique Call ID generated by PBX-1510564538.919cuid
If the operator is dialing and the status is state=InUse (This parameter is populated when the operator starts dialing)yes-noyesdialer

Sample Output of the NewState Event

	{
"event_name": "NewState",
"exten": "991",
"state": "InUse",
"participant": "992",
"direction": "out",
"queue": "902",
"unique_id": "1610778625.386"
}