【问题标题】:Twilio TwiML Set Participant LabelTwilio TwiML 设置参与者标签
【发布时间】:2020-11-19 04:55:53
【问题描述】:

Twilio Conference Participant Labels

我正在尝试拨出电话,但在此之前我希望将我的客户添加到会议中

VoiceResponse response = new VoiceResponse();
var dial = new Twilio.TwiML.Voice.Dial();
var conf = new Twilio.TwiML.Voice.Conference("blah_blah_conf", muted: true);
conf.Append(new Twilio.TwiML.Voice.Parameter("label", "firstparticipant"));
conf.Append(new Twilio.TwiML.Voice.Parameter("name", "firstparticipant"));
response.Append(conf);
response.Append(dial);

生成此TwiML

<Response>
    <Dial>
        <Conference muted="true">
            <Parameter name="label" value="firstparticipant"></Parameter>
            <Parameter name="name" value="firstparticipant"></Parameter>
                blah_blah_conf
        </Conference>
    </Dial>
</Response>

但后来当我查询参与者列表时,我看不到参与者标签。

谁能指出我做错了什么

注意:Similar Question,但我想通过 TwiML 进行此操作

【问题讨论】:

    标签: twilio twilio-twiml


    【解决方案1】:

    语法如下:

    from twilio.twiml.voice_response import Conference, Dial, VoiceResponse
    
    response = VoiceResponse()
    dial = Dial()
    dial.conference('moderated-conference-room', start_conference_on_enter=False, participant_label="memow")
    response.append(dial)
    
    print(response)
    

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-01-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多