为什么在Twilio请求中重复所有传入的短信/电话呼叫数据?

时间:2015-06-03 17:44:44

标签: twilio

当我收到来自Twilio处理通信的请求时,我看到来电和短信重复的所有相关数据:

{
  AccountSid: [ 'xxx', 'xxx' ],
  ToZip: [ '30680', '30680' ],
  FromState: [ 'NY', 'NY' ],
  Called: [ '+111', '+111' ],
  FromCountry: [ 'US', 'US' ],
  CallerCountry: [ 'US', 'US' ],
  CalledZip: [ '30680', '30680' ],
  Direction: [ 'inbound', 'inbound' ],
  FromCity: [ 'NEW YORK', 'NEW YORK' ],
  CalledCountry: [ 'US', 'US' ],
  CallerState: [ 'NY', 'NY' ],
  CallSid: [ 'xxx', 'xxx' ],
  CalledState: [ 'GA', 'GA' ],
  From: [ '+222', '+222' ],
  CallerZip: [ '10028', '10028' ],
  FromZip: [ '10028', '10028' ],
  ApplicationSid: [ 'xxx', 'xxx' ],
  CallStatus: [ 'ringing', 'ringing' ],
  ToCity: [ 'STATHAM', 'STATHAM' ],
  ToState: [ 'GA', 'GA' ],
  To: [ '+111', '+111' ],
  ToCountry: [ 'US', 'US' ],
  CallerCity: [ 'NEW YORK', 'NEW YORK' ],
  ApiVersion: [ '2010-04-01', '2010-04-01' ],
  Caller: [ '+222', '+222' ],
  CalledCity: [ 'STATHAM', 'STATHAM' ]
}

1 个答案:

答案 0 :(得分:0)

发生这种情况是因为我的网络服务器将所有http流量重定向到https。重定向导致twilio重复信息(如to和from数字)。我希望这可以节省别人将来解决这个问题的麻烦。