Set the Broadcast Type
Inputs: Parm1 = UJP pathname
Parm2 = Empty, or one of the values below
Returns: 0 = success
-1 = cannot lock UJP
-2 = cannot open UJP
-3 = cannot read UJP
-4 = cannot write UJP
-5 = UJP is an active job instance
This function sets the BROADCAST_TYPE variable in the UJP.
If the second parameter is empty, the function will analyse the UJP commands $fax_phone, $voice_phone, $poll_phone, $sms_phone, and $email_address to determine the type of broadcast. The function should therefore always be called after directly adding or changing one of these commands using the direct UJP access functions.
You may also call this function to set one of the values FB, VB, PB, EB, SB, SEB1, FEB1 or FEB2 which are the only valid values for this variable. This action is necessary if there is a $fax_phone command present but no $email_address command with the same column data, and the broadcast is to be set explicitly to FEB1, or if there is a $sms_phone command present but no $email_address command with the same column data and the broadcast is to be set explicitly to SEB1.
Topic url: http://www.copia.com/support/refmanual/index.html?setbroadcasttype.htm