Skip to content

Label not being applied on participant after conference is created #832

@johnpaulmedina

Description

@johnpaulmedina

Issue Summary

Label for the second participant is not being applied to the call participant. I even tried participantLabel. When creating the conference the first call accepts the participantLabel value.

Steps to Reproduce

  1. Client initiates new outbound call
  2. Application hits app url which establishes a new conference via $response->dial()->conference($name, [])
  3. Wait url triggers logic to add second participant while setting the label attribute

Code Snippet

public function callParticipantFromConference(TelAccount $account, $callType, $conference, $toPhone) {
    
    $client = new Client($this->account->sid, $this->account->token);

    $client->conferences($this->request->ConferenceSid)->participants->create(
    normalize_phone_to_E164(env('DEFAULT_CALLER_ID')), // From
    normalize_phone_to_E164($toPhone), // To
    [   
        "label" => "customer",
        "earlyMedia" => true,
        "beep" => "onEnter",
        "endConferenceOnExit" => true,
        "record" => true,
    ]);

    $response = new VoiceResponse;
    
    echo $response;
}

Exception/Log

No exception

Technical details:

  • twilio-php version: 8.3.7 & 8.3.8
  • php version: 8.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: mediumImportant but not urgent; Workaround availabletype: bugbug in the library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions