Call Modes
Call modes define how Phone Password Manager initiates telephone calls with users.
There are three different call modes in Phone Password Manager:
Auto-answer mode
Inbound mode
Outbound mode
In order to specify a call mode, edit the idtel.cfg file, and change how the ScriptName is defined. The syntax for each ScriptName entry is as follows:
"<script-name>" = "LineNo|[,LineNo]|[BeginLineNo-EndLineNo]:[mode]"
The call mode can be:
a|0 – auto-answer mode (default mode)
i|1 – inbound ( call can be answered selectively)
o|2 – outbound
The line mode can also be retrieved and set using global variable ’lineMode’, when configuring the Psynch.psl call logic script.
Auto-answer mode
Auto-answer mode is the default mode. IVR calls are answered by default, call logic scripts run and audio plays according to the scripts.
Inbound mode
Inbound mode is similar to auto-answer mode, but instead of calls being answered by default, calls are only answered if the PSLang function "setHookOff" is triggered. This allows calls to be answered selectively.
The "setHookOff" PSLang function for this call mode is specified in the psynch.psl script .
In this example, the inbound call is answered if the callerID is "123":
if ( $callerID == "123" ) { setHookOff(); }
The callerID is one of several global variables that contain information about the current call. See Chapter 16 for details on call logic global variables.
Outbound mode
Outbound mode allows the IVR system to make outbound calls, and is configured in the psynch.psl script. When this is configured, the IVR system can forward the call to another phone number. Once the call is received, it proceeds according to the call logic scripts.
The phone number to which the calls are forwarded is specified in the psynch.psl script .
For example:
for( var $i = 0; $i < 30; $i++ ) { sleep( 1000 ); } $ret = MakeCall( "9,403-2737373", 30, $errbuf ); log( "MakeCall returned: " + $ret + ", error: " + $errbuf );
In order for outbound mode to function, idtel.cfg must be modified as follows:
Comment-out the "Registration" part of the script. For example, if your configuration does not include a proxy server, then the part to comment-out appears as follows:
Registration "" = { Server = 10.0.59.100 Realm = bravurasecurity.com //SIP only PhoneNumber = 168 Password = "168" }
Set the value of ipSignalPort, which differs depending on the protocol you use:
H.323 ("ipProtocolName = 0") – set ipSignalPort to "1720"
SIP ("ipProtocolName = 1") – set ipSignalPort to "5060"
Modify
idtel.cfg
to include the following:ScriptNames "" = { "filename.psl" = "2-2:o" }
This loads "filename.psl" from the \<instance>\script\ directory of the VoIP instance, and uses line 2 with Outbound mode. The two numbers specify the range of lines, and o specifies outbound mode. By default, this call is included in idtel.cfg , but is commented-out.