Skip to content

Instantly share code, notes, and snippets.

@davehorton
Last active August 29, 2015 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davehorton/040f2b4eceb782e92ea2 to your computer and use it in GitHub Desktop.
Save davehorton/040f2b4eceb782e92ea2 to your computer and use it in GitHub Desktop.
response object provided in drachtio req#proxy callback when 'wantsFullResponse' is set on the proxy request
{
"connected": false, //final result -- was the call connected or not?
"responses": [ //all responses received from all destinations
{
"address": "192.168.100.129",
"port": 49579,
"msgs": [{
"time": "18:04:50.978089",
"status": 404,
"msg": {
"headers": {
"via": "SIP/2.0/UDP 192.168.100.129;received=192.168.100.129;branch=z9hG4bK8f3a59ee-172a-4015-81df-83408ed368d2,SIP/2.0/UDP 127.0.0.1:23524;rport=23524;branch=z9hG4bK-d8754z-251e3a6832e27b20-1---d8754z-",
"record-route": "<sip:192.168.100.129;lr>",
"call-id": "YzM1Yjc5NWQ3ZWU1OGNhMDlmMmJjYTg4Y2IxY2UyZjk",
"from": "\"Dave Horton\" <sip:1234@localhost>;tag=3be90e52",
"to": "<sip:11@localhost>;tag=lnhBHW.lHhQgcjcT1ehUJGvwAGZwfXGH",
"cseq": "1 INVITE",
"server": "Blink Pro 4.1.0 (MacOSX)",
"content-length": "0"
},
"body": "",
"version": "2.0",
"status": 404,
"reason": "Not Found",
"raw": "SIP/2.0 404 Not Found\r\nVia: SIP/2.0/UDP 192.168.100.129;received=192.168.100.129;branch=z9hG4bK8f3a59ee-172a-4015-81df-83408ed368d2\r\nVia: SIP/2.0/UDP 127.0.0.1:23524;rport=23524;branch=z9hG4bK-d8754z-251e3a6832e27b20-1---d8754z-\r\nRecord-Route: <sip:192.168.100.129;lr>\r\nCall-ID: YzM1Yjc5NWQ3ZWU1OGNhMDlmMmJjYTg4Y2IxY2UyZjk\r\nFrom: \"Dave Horton\" <sip:1234@localhost>;tag=3be90e52\r\nTo: <sip:11@localhost>;tag=lnhBHW.lHhQgcjcT1ehUJGvwAGZwfXGH\r\nCSeq: 1 INVITE\r\nServer: Blink Pro 4.1.0 (MacOSX)\r\nContent-Length: 0\r\n\r\n"
}
}]
},
"finalStatus": 404, //final status forwarded upstream
"finalResponse": { //details of final response forwarded upstream
"time": "18:04:50.978089", //NB: all times UTC
"status": 404,
"msg": {
"headers": {
"via": "SIP/2.0/UDP 192.168.100.129;received=192.168.100.129;branch=z9hG4bK8f3a59ee-172a-4015-81df-83408ed368d2,SIP/2.0/UDP 127.0.0.1:23524;rport=23524;branch=z9hG4bK-d8754z-251e3a6832e27b20-1---d8754z-",
"record-route": "<sip:192.168.100.129;lr>",
"call-id": "YzM1Yjc5NWQ3ZWU1OGNhMDlmMmJjYTg4Y2IxY2UyZjk",
"from": "\"Dave Horton\" <sip:1234@localhost>;tag=3be90e52",
"to": "<sip:11@localhost>;tag=lnhBHW.lHhQgcjcT1ehUJGvwAGZwfXGH",
"cseq": "1 INVITE",
"server": "Blink Pro 4.1.0 (MacOSX)",
"content-length": "0"
},
"body": "",
"version": "2.0",
"status": 404,
"reason": "Not Found",
"raw": "SIP/2.0 404 Not Found\r\nVia: SIP/2.0/UDP 192.168.100.129;received=192.168.100.129;branch=z9hG4bK8f3a59ee-172a-4015-81df-83408ed368d2\r\nVia: SIP/2.0/UDP 127.0.0.1:23524;rport=23524;branch=z9hG4bK-d8754z-251e3a6832e27b20-1---d8754z-\r\nRecord-Route: <sip:192.168.100.129;lr>\r\nCall-ID: YzM1Yjc5NWQ3ZWU1OGNhMDlmMmJjYTg4Y2IxY2UyZjk\r\nFrom: \"Dave Horton\" <sip:1234@localhost>;tag=3be90e52\r\nTo: <sip:11@localhost>;tag=lnhBHW.lHhQgcjcT1ehUJGvwAGZwfXGH\r\nCSeq: 1 INVITE\r\nServer: Blink Pro 4.1.0 (MacOSX)\r\nContent-Length: 0\r\n\r\n"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment