Cisco Systems OL-27172-01 Mobility Aid User Manual


 
18-3
Cisco Broadband Access Center 3.8 Administrator Guide
OL-27172-01
Chapter 18 Scripting Framework
Integrating Extension Scripts in BAC
// With continuation support, the script gets the
// response the in the same line as if using
// a synchronous interface
// sendAndReceive() sends the give message to the
// device and receives the response message.
return scriptSupport.sendAndReceive(response,
scriptSupport.newGetParameterValuesMessage(params));
}
return null;
}
Integrating Extension Scripts in BAC
The extension scripts are added to RDU database from the admin UI.
To add a new extension script to the Cisco BAC RDU:
Step 1 Choose Configuration on the primary navigation bar.
Step 2 Choose Files on the secondary navigation bar. The View Files page appears.
Step 3 Click Add.
The Add Files page appears.
Step 4 Choose DPE Extension Script / Helper Script from the File Type drop-down list.
Step 5 Browse for the Source File Name.
Step 6 Add the .js file in the File Name field.
Step 7 Click Submit.
The View Files page appears with the new file.
The extension scripts can be viewed only after exporting the .js script file from the admin UI to your
local machine. For more information on exporting extension scripts, see Exporting Files, page 17-19.
Adding Extension Points to the Device Property
Extensions can be configured in the device property hierarchy at Class of Service (CoS), Device, Group,
Provisioning group and CWMP defaults.
The following extension points can be configured in the device:
/IPDevice/extensions/soapRequestSender - The extension scripts configured are executed, when a
request is received from the CPE.
/IPDevice/extensions/soapResponseSender - The extension scripts configured are executed, when a
response is sent to the CPE.
/IPDevice/extensions/incomingEventViewer - The extension scripts configured are executed, when
the event (existing configuration) is received from the CPE.
/IPDevice/extensions/outgoingEventViewer - The extension scripts configured are executed, when
the event (required configuration) is sent to the CPE.