PWGatewayVoice
Click here for a complete list of operations.
MPG_Status_Voice
Consulta de Status da chamada de Voz.
Parâmetros da MPG_Status_Voice: Versão:v_3_00
-----------------------------------------------------------------------------------------------------------------------------------
Credencial - Obrigatório - Chave de 40 posições para acesso ao Mobile Pronto Gateway.
Token - Obrigatório - Chave de 6 posições para acesso ao Mobile Pronto Gateway.
IDMSG - Obrigatório - (até 40 posições) da Voz enviada (vide MPG_SendandFollowUp_Voice)
Tipos de Retorno com Erro.
-----------------------------------------------------------------------------------------------------------------------------------
001 - Credencial Inválida.
019 - Token Inválido.
022 - Conta do Mobi Pronto não encontrada.
023 - IDMSG de Voz não encontrado.
024 - IDMSG ainda sem Status de Voz ou Status ainda não gerado.
De 800 a 899 - Falha no MPGateway. Avise ao Suporte Mobi Pronto
900 - Erro de autenticação ou Limite de Segurança excedido/Authentication Error or Security Limitation
De 901 a 999 - Erro no acesso as operadoras.Contate Equipe MobilePronto/Contact customer center
-----------------------------------------------------------------------------------------------------------------------------------
Tipos de Status em caso de existir o Status.
SIP - Session Initiation Protocol - http://en.wikipedia.org/wiki/List_of_SIP_response_codes
-----------------------------------------------------------------------------------------------------------------------------------
ok:999.99 - mensagem enviada com sucesso e a duração da mesma em segundos. Exemplo: ok:85.00 ou ok:103.03
failed:XXX - falha na chamada e o código SIP.
error:XXX - erro durante a chamada e o código SIP.
blocked:XXX - chamada bloqueada e o código SIP.
machine:XXX - chamada parou ao se detectar alguma máquina ao se fazer a chamada e o código SIP. Ex: secretária eletrônica).
-----------------------------------------------------------------------------------------------------------------------------------
Test
The test form is only available for requests from the local machine.SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /voice/v_3_00/service.asmx HTTP/1.1 Host: pw-api.com Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "PWGatewayVoice/MPG_Status_Voice" <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <MPG_Status_Voice xmlns="PWGatewayVoice"> <Credencial>string</Credencial> <Token>string</Token> <IDMSG>string</IDMSG> </MPG_Status_Voice> </soap:Body> </soap:Envelope>
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <MPG_Status_VoiceResponse xmlns="PWGatewayVoice"> <MPG_Status_VoiceResult>string</MPG_Status_VoiceResult> </MPG_Status_VoiceResponse> </soap:Body> </soap:Envelope>
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /voice/v_3_00/service.asmx HTTP/1.1 Host: pw-api.com Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <MPG_Status_Voice xmlns="PWGatewayVoice"> <Credencial>string</Credencial> <Token>string</Token> <IDMSG>string</IDMSG> </MPG_Status_Voice> </soap12:Body> </soap12:Envelope>
HTTP/1.1 200 OK Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <MPG_Status_VoiceResponse xmlns="PWGatewayVoice"> <MPG_Status_VoiceResult>string</MPG_Status_VoiceResult> </MPG_Status_VoiceResponse> </soap12:Body> </soap12:Envelope>