trogers-twilio / plugin-external-conference-warm-transfer

Enable adding external conference participants to existing calls and the agent dropping without ending the conference
MIT License
22 stars 17 forks source link

Setting Outbound CLI #2

Open moretalk opened 4 years ago

moretalk commented 4 years ago

This plugin is working perfectly apart from I cannot find how to set the outbound CLI? Currently Unknown. Where is it getting this from or where should it be set?

Also whats the best way to call for example the add participent function from say a custom worker directory?

shageevan commented 4 years ago

@moretalk Line 49: Remove the from variable

Then add let from = YOUR_TWILIO_NUMBER;

kkamikawa commented 4 years ago

@moretalk This works fine for me. Line 49:

    const to = this.state.conferenceTo;
    // const { from, task, task: { taskSid } } = this.props;
    const { task, task: { taskSid, attributes } } = this.props;
    console.log('★task★', task);
    // YOUR_TWILIO_NUMBER from task.attributes
    const from = attributes.to;