IsCalleeAllowed Method



 
The IsCalleeAllowed method returns whether a destination user name or phone number is allowed to be called.


Syntax

    [boolean=] SiteKiosk.Plugins("SitePhone").IsCalleeAllowed(destination)
    
Parameters
    destination String that specifies the destination user name or phone number.
Return Value
    Returns a Boolean that is true if the call is allowed and false if not.
Remarks
    None.
Examples
    The following example proofs whether a call to (918) 555-5000 is allowed and calls if possible.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    SitePhone = SiteKiosk.Plugins("SitePhone");
    
    destination = "+1 918 555 5000";
    if (SitePhone.IsCalleeAllowed(destination))
       SitePhone.StartCall(destination);
    </SCRIPT>
    

Applies to
    SiteKiosk v7.0 (and later versions).

Back to top