Incoming Voice Webhook is getting called twice for the same call

好久不见. 提交于 2020-04-30 05:11:32

问题


Trying to understand why the incoming voice call webhook is getting called twice.

The phone numbers's voice webhook url is set up to point to my backend and the api endpoint rejects the call right away as follows.

const voiceResponse = new VoiceResponse();
voiceResponse.reject({ reason: 'busy' });
res.type('text/xml');
res.end(voiceResponse.toString());

However, the same call with a different CallSid is pinging the webhook again after a couple of seconds.

来源:https://stackoverflow.com/questions/52157834/incoming-voice-webhook-is-getting-called-twice-for-the-same-call

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!