Updated on 2023-10-12 GMT+08:00

Developing the Function of Making One-Click Outbound Calls

  1. Execute a one-click outbound call.

    AICCSupport.clickToOutbound({mediaType: 'audio',calledNum: '12345678'});

    audio is the value of the mediaType sub-attribute of the outboundParam object parameter of the clickToOutbound method.

    12345678 is the value of the calledNum sub-attribute of the outboundParam object parameter of the clickToOutbound method.

    Table 1 Input parameter of the clickToOutbound method

    Parameter

    Type

    Name

    Mandatory or Not

    Description

    outboundParam

    Object

    Outbound parameter

    Yes

    Outbound parameter.

    Table 2 outboundParam parameters

    outboundParam

    Type

    Name

    Mandatory or Not

    Description

    mediaType

    String

    Media type

    Yes

    The options are audio, video, email, and whatsapp.

    calledNum

    String

    Called number

    Yes

    Called number.

  2. Press F12 to open the browser console. If the output log "[AICCSupport Log] -Info- clickToOutbound - execute One-click out call" can be found, the one-click outbound call function is developed successfully.