Skip to content

Instantly share code, notes, and snippets.

@pmint93
Last active May 4, 2016 09:23
Show Gist options
  • Save pmint93/32d136587c690d35d739a966b1ed1db5 to your computer and use it in GitHub Desktop.
Save pmint93/32d136587c690d35d739a966b1ed1db5 to your computer and use it in GitHub Desktop.

Make IP phone call

METHOD: SOAP
URL: http://remote_host/TPCDialOut2/services/CallCenter?wsdl
PARAMS:
  agent_code: <Staff email>
  mobile_phone: <Customer mobile phone to call to>
  station_id: <Ip phone station ID>
  datetime_request: <Timestamp>
  message_code: "001"
  call_id: "001"
Response:
  {
    data: {
      message_code: "001",
      agent_code: <agent_code>,
      station_id: <station_id>,
      mobile_phone: <mobile_phone>,
      datetime_response: <timestamp>,
      call_id: <call_id>,
      error_code: <"0"|"1">,
      error_desc: <"success"|"error">
    }
  }

Get call log

METHOD: SOAP
URL: http://remote_host/TPCDialOut2/services/CallCenter?wsdl
PARAMS:
  agent_code: <Staff's email>
  mobile_phone: <Customer mobile phone to call to>
  station_id: <Ip phone station ID>
  datetime_request: <Timestamp>
  message_code: "004"
  call_id: <Call ID>
Response:
  {
    data: {
      message_code: "004",
      agent_code: <agent_code>,
      station_id: <station_id>,
      mobile_phone: <mobile_phone>,
      datetime_response: <timestamp>,
      call_id: <call_id>,
      error_code: <"0"|"1">,
      start_time: <call start timestamp>,
      end_time: <call end timestamp>,
      duration: <call duration in second>,
      ringtime: <ringtime in second>,
      link_down_record: <direct link to voice record>,
      status: "1",
      error_code: <"0"|"1">,
      error_desc: <"success"|"error">
    }
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment