Twilio状态回调文件是什么样子的?

Twilio状态回调文件是什么样子的?,twilio,Twilio,我正在通过Twilio发送一条语音消息,并为所有状态指定一个回调url,但我认为它实际上没有被调用,因为我无法找到回调文件应该是什么样子。回调文件查找什么?这是寄来的表格吗?我的“CallBackpleName”代码是什么样子的?我在任何地方都找不到那个信息。谢谢 这些是我的情妇: params["StatusCallback"]= "http://XXXX.com/events/callbackfilename"; params["StatusCallbackMethod"]="POST"

我正在通过Twilio发送一条语音消息,并为所有状态指定一个回调url,但我认为它实际上没有被调用,因为我无法找到回调文件应该是什么样子。回调文件查找什么?这是寄来的表格吗?我的“CallBackpleName”代码是什么样子的?我在任何地方都找不到那个信息。谢谢

这些是我的情妇:

 params["StatusCallback"]= "http://XXXX.com/events/callbackfilename";
 params["StatusCallbackMethod"]="POST";
 params["StatusCallbackEvent"]="initiated"; 
 params["StatusCallbackEvent"]="ringing";
 params["StatusCallbackEvent"]="answered"; 
 params["StatusCallbackEvent"]="completed"; 
 params["IfMachine"] = "Continue";

这里是Twilio开发者福音传道者

StatusCallback与TwiML对传入呼叫的请求基本相同。它作为表单编码数据(
application/x-www-form-urlencoded
)发送,并包括所有

你也会得到一份工作。您也可以在下面看到这些参数:

CallStatus          A descriptive status for the call. The value is one of queued, initiated, ringing, in-progress, busy, failed, or no-answer. See the CallStatus section for more details.
CallDuration        The duration in seconds of the just-completed call. Only present in the completed event.
RecordingUrl        The URL of the phone call's recorded audio. This parameter is included only if Record=true is set on the REST API request and does not include recordings from <Dial> or <Record>. RecordingUrl is only present in the completed event.
RecordingSid        The unique ID of the Recording from this call. RecordingSid is only present in the completed event.
RecordingDuration   The duration of the recorded audio (in seconds). RecordingDuration is only present in the completed event.
Timestamp           The timestamp when the event was fired, given as UTC in RFC 2822 format.
CallbackSource      A string that describes the source of the webhook. This is provided to help disambiguate why the webhook was made. On Status Callbacks, this value is always call-progress-events.
SequenceNumber      The order in which the events were fired, starting from 0. Although events are fired in order, they are made as separate HTTP requests and there is no guarantee they will arrive in the same order.
CallStatus调用的描述性状态。该值是排队、已启动、正在振铃、正在进行、忙碌、失败或无应答中的一个。有关更多详细信息,请参阅CallStatus部分。
CallDuration刚刚完成的呼叫的持续时间(以秒为单位)。仅出现在已完成的事件中。
RecordingUrl电话录音的URL。仅当REST API请求上设置了Record=true且不包括来自或的录制时,才包括此参数。RecordingUrl仅存在于已完成的事件中。
RecordingSid此调用中录制的唯一ID。RecordingSid仅存在于已完成的事件中。
录制持续时间录制音频的持续时间(以秒为单位)。RecordingDuration仅存在于已完成的事件中。
Timestamp事件触发时的时间戳,以RFC 2822格式的UTC表示。
CallbackSource描述webhook源的字符串。这有助于消除webhook产生的歧义。在状态回调时,此值始终为call progress events。
SequenceNumber事件的触发顺序,从0开始。虽然事件是按顺序触发的,但它们是作为单独的HTTP请求发出的,并且不能保证它们将以相同的顺序到达。
如果您想检查这些参数并确认它们正在被发送,您可以设置一个类似于的程序来记录请求,以便您可以轻松地检查它们


让我知道这是否有帮助。

这里是Twilio开发者福音传道者

StatusCallback与TwiML对传入呼叫的请求基本相同。它作为表单编码数据(
application/x-www-form-urlencoded
)发送,并包括所有

你也会得到一份工作。您也可以在下面看到这些参数:

CallStatus          A descriptive status for the call. The value is one of queued, initiated, ringing, in-progress, busy, failed, or no-answer. See the CallStatus section for more details.
CallDuration        The duration in seconds of the just-completed call. Only present in the completed event.
RecordingUrl        The URL of the phone call's recorded audio. This parameter is included only if Record=true is set on the REST API request and does not include recordings from <Dial> or <Record>. RecordingUrl is only present in the completed event.
RecordingSid        The unique ID of the Recording from this call. RecordingSid is only present in the completed event.
RecordingDuration   The duration of the recorded audio (in seconds). RecordingDuration is only present in the completed event.
Timestamp           The timestamp when the event was fired, given as UTC in RFC 2822 format.
CallbackSource      A string that describes the source of the webhook. This is provided to help disambiguate why the webhook was made. On Status Callbacks, this value is always call-progress-events.
SequenceNumber      The order in which the events were fired, starting from 0. Although events are fired in order, they are made as separate HTTP requests and there is no guarantee they will arrive in the same order.
CallStatus调用的描述性状态。该值是排队、已启动、正在振铃、正在进行、忙碌、失败或无应答中的一个。有关更多详细信息,请参阅CallStatus部分。
CallDuration刚刚完成的呼叫的持续时间(以秒为单位)。仅出现在已完成的事件中。
RecordingUrl电话录音的URL。仅当REST API请求上设置了Record=true且不包括来自或的录制时,才包括此参数。RecordingUrl仅存在于已完成的事件中。
RecordingSid此调用中录制的唯一ID。RecordingSid仅存在于已完成的事件中。
录制持续时间录制音频的持续时间(以秒为单位)。RecordingDuration仅存在于已完成的事件中。
Timestamp事件触发时的时间戳,以RFC 2822格式的UTC表示。
CallbackSource描述webhook源的字符串。这有助于消除webhook产生的歧义。在状态回调时,此值始终为call progress events。
SequenceNumber事件的触发顺序,从0开始。虽然事件是按顺序触发的,但它们是作为单独的HTTP请求发出的,并且不能保证它们将以相同的顺序到达。
如果您想检查这些参数并确认它们正在被发送,您可以设置一个类似于的程序来记录请求,以便您可以轻松地检查它们

让我知道这是否有帮助