app.py
def conference_call_api(conference_name):
    """
    Parameters -
    to : The number to be called.
    clid : The caller id to be used when making the call.

    1. Make an outbound call
    2. Put the call in the conference
    """
    if not config.ALLOW_OUTBOUND_PSTN:
        return jsonify(success=False, message='Calls are disabled')

    if conference_exists(conference_name):
        to_number = request.form.get('to', None)
        clid = request.form.get('clid', config.PLIVO_CALLER_ID)
        answer_url = url_for('conf', _external=True, conference_name=conference_name)
        plivo_conn = get_plivo_connection()
        status, _ = plivo_conn.make_call({'to': to_number, 'from': clid, 'answer_url': answer_url, 'answer_method': 'POST'})
        if status == 201:
            return jsonify(success=True, message='Call has been queued')
    return jsonify(success=False, message='Call could not be made')

    Parameters -
    to : The number to be called.
    clid : The caller id to be used when making the call.

    1. Make an outbound call
    2. Put the call in the conference
    
Parameters
to : The number to be called.
clid : The caller id to be used when making the call.

1. Make an outbound call
2. Put the call in the conference
Parameters to : The number to be called . clid : The caller id to be used when making the call . 1 . Make an outbound call 2 . Put the call in the conference
def conference_call_api(conference_name):
    if not config.ALLOW_OUTBOUND_PSTN:
        return jsonify(success=False, message='Calls are disabled')
    if conference_exists(conference_name):
        to_number = request.form.get('to', None)
        clid = request.form.get('clid', config.PLIVO_CALLER_ID)
        answer_url = url_for('conf', _external=True, conference_name=conference_name)
        plivo_conn = get_plivo_connection()
        status, _ = plivo_conn.make_call({'to': to_number, 'from': clid, 'answer_url': answer_url, 'answer_method': 'POST'})
        if status == 201:
            return jsonify(success=True, message='Call has been queued')
    return jsonify(success=False, message='Call could not be made')
def conference_call_api ( conference_name ) : if not config . ALLOW_OUTBOUND_PSTN : return jsonify ( success = False , message = 'Calls are disabled' ) if conference_exists ( conference_name ) : to_number = request . form . get ( 'to' , None ) clid = request . form . get ( 'clid' , config . PLIVO_CALLER_ID ) answer_url = url_for ( 'conf' , _external = True , conference_name = conference_name ) plivo_conn = get_plivo_connection ( ) status , _ = plivo_conn . make_call ( { 'to' : to_number , 'from' : clid , 'answer_url' : answer_url , 'answer_method' : 'POST' } ) if status == 201 : return jsonify ( success = True , message = 'Call has been queued' ) return jsonify ( success = False , message = 'Call could not be made' )
Parameters
to : The number to be called.
Parameters to : The number to be called .
"""
    Parameters -
    to : The number to be called.
    clid : The caller id to be used when making the call.

    1. Make an outbound call
    2. Put the call in the conference
    """
conference_name