Tag: twilio api

Twilio – logging一个排队的电话

我正在使用NodeJS与Twilio一起编写语音演示。 使用<enqueue>动词 ,传入的呼叫被放置在队列中,如下所示: <?xml version="1.0" encoding="UTF-8"?> <Response> <Enqueue waitUrl="/wait.xml">support</Enqueue> </Response> 在wait.xml中,我暂停并等待第二个客户端从队列中接收呼叫: <?xml version="1.0" encoding="UTF-8" ?> <Response> <Say voice="alice">Connecting to representative</Say> <Pause length="100"/> <Leave/> </Response> 当第二个客户端启动时,它使用<Dial>来使呼叫出列: <?xml version="1.0" encoding="UTF-8"?> <Response> <Dial record="record-from-answer" action="./record" method="GET"> <Queue>support</Queue> </Dial> </Response> 除通话logging外,所有function都按预期工作。 调用<client>时使用相同的原则,工作正常。 我错过了什么?

在twilio action url中查询参数

我正在尝试通过twilio的Record动作动作url传递数据。 当有两个或多个查询string参数时,它会失败,但是只有一个成功。 成功: var response = '<Response><Say>STUFF TO SAY</Say><Pause length="1"/><Record maxLength="3600" timeout="30" action="/service/training/call/recording?test1=test&test2=test"></Record></Response>'; 失败: var response = '<Response><Say>STUFF TO SAY</Say><Pause length="1"/><Record maxLength="3600" timeout="30" action="/service/training/call/recording?test1=test"></Record></Response>'; 错误: Error on line 1 of document : The reference to entity "test2" must end with the ';' delimiter. 有没有一种方法,我可以传递数据通过查询string,或者我不得不诉诸使用URL参数? "/service/training/call/recording/test/test