Language: JavaScript
Label: safe
CWE: CWE-829 \u2014 Inclusion of Functionality from Untrusted Control Sphere
The product imports, requires, or includes executable functionality (such as a library) from a source that is outside of the intended control sphere.

Code:
function dial(number) {
    

    if( phone.isConnected() ) {

        // Disable input filed after dial
        $(".numberSearch").prop("disabled", true);
        $(".number-dialer-div .input-group-addon").addClass("disable-number-dialer-div");
        
        // BMS.fn.play("outgoing_call", true);
        session = phone.call( number.trim() , callOptions);

        $("#status").html(`Call is being send to ${number}...`).show();

        // hide the call button and show the hang button
        $("#callButton, #hangButton").toggle();


        // Show the caller details
        showCallerDetails(caller);

        // Empty the feedback area and remove previous fired for savings
        $("#callFeedback, #feedbackReviewer").val("");
        $(document).off("change", "#callFeedback, #feedbackReviewer");


        // Hide the  suggestion number if it is shown
        $(".suggestion-numbers").html("").hide();


    } else {

        $("#status").html(`<div style="font-size: 16px;" class='alert alert-danger'>Sorry! The signaling server is disconnected.</div>`).show();

    }


}