Use the following command to send a notification using the APAgent:
APClient.bin --map-data HelloWorld HelloWorld companyadmin 5001 1
The “Hello World!” message should be sent to the SMTP Email Device, the Text Pager and the Virtual Phone, and should be viewable from a browser. As in Example 4, the presentation is specific to each Device, including the Virtual Phone. The “HelloWorld-5.log” file should resemble the following:
2006-05-08 09:34:12,177 [processBroker.10] INFO - Processing notifications...
2006-05-08 09:34:13,755 [processBroker.10] INFO - Presentation script called for device = VOICE
2006-05-08 09:34:14,380 [processBroker.10] INFO - Presentation script called for device = BROWSER
2006-05-08 09:34:17,161 [processBroker.10] INFO - Presentation script called for device = EMAIL
2006-05-08 09:34:18,177 [processBroker.10] INFO - Presentation script called for device = VOICE
2006-05-08 09:34:18,880 [processBroker.10] INFO - Presentation script called for device = TEXT_PAGER
2006-05-08 09:34:38,770 [notificationResolutionEngine.10] INFO - Response script called with response event SUCCESSFUL_DELIVERY
2006-05-08 09:34:41,474 [notificationResolutionEngine.9] INFO - Response script called with response event SUCCESSFUL_DELIVERY
2006-05-08 09:34:51,333 [notificationResolutionEngine.9] INFO - Response script called with response event RECEIVED_RESPONSE
2006-05-08 09:34:51,380 [notificationResolutionEngine.9] INFO - Response from recipient companyadmin: Greeting Pager World, we come in peace
2006-05-08 09:35:01,380 [DeviceEngineWorker-PSTN-9] INFO - Interaction script called
2006-05-08 09:35:12,442 [notificationResolutionEngine.9] INFO - Response script called with response event RECEIVED_RESPONSE
2006-05-08 09:35:12,505 [notificationResolutionEngine.9] INFO - Response from recipient companyadmin: Hello from Voice Device
2006-05-08 09:35:14,536 [DeviceEngineWorker-PSTN-9] INFO - Ending script callout.callout.
2006-05-08 09:35:27,083 [notificationResolutionEngine.9] INFO - Response script called with response event RECEIVED_RESPONSE
2006-05-08 09:35:27,145 [notificationResolutionEngine.9] INFO - Response from recipient companyadmin: Greeting Email World, we come in peace