AdminGuide:Service:EventsNotification
Return to AdminGuide:Service
Notifications
Description
This service lets you monitor the selected events by receiving notifications.
You can associate each selected event to a notification action such as an email or a call to a web service.
To enable the service you will need to set an email or web service in the Notification Action List page and the text of the email you wish to receive, then associate the event to the desired notification action in the Notification List page.
When the event occurs, you will be notified via email or web service call.
Esempio
See the following example for further clarification.
For the "Unserved Call" event, if 103 calls 201, who is a member of the queue QueueTest, and after 5 seconds the caller leaves the service, we can request an email containing information on:
- the id of the event
- the name of the event
- the name of the queue and waiting time
- the reason the call was not served
by inserting the corresponding placeholders in the body of the email.
In the Notification List, we associate the "pbx.queue.unservedcall" event to the previously created notification action.
We will then receive an email with the following information:
Unserved
1511212918.0
1
Default
103
201
5
CANCELLED
Or we can receive the following response by inserting the placeholders:
%call_params[<JASON>]% :
{"reason":"CANCELED","queue_id":"1","uniqueid":"1511212918.0","called_num":"201","caller_num":"103","queue_name":"QueueTest","waiting_time":"5"}
%call_params[<XML>]%
> <?xml version="1.0"?>
> <response><reason>CANCELED</reason><queue_id>1</queue_id><uniqueid>1511212918.0</uniqueid><called_num>201</called_num><caller_num>103</caller_num><queue_name>QueueTest</queue_name><waiting_time>5</waiting_time></response>
> %call_params[AVP]%:
> reason=CANCELED&queue_id=1&uniqueid=1511212918.0&called_num=201&caller_num=103&queue_name=QueueTest&waiting_time=5