Outbound API changed?
Posted: Tue Jun 29, 2004 7:11 pm
The Application Programmer's Guide for Outbound Notification ( available at: http://outbound.plumgroup.com/outbound/ ... pi_pg.html), in section 4.3 describes the parameters that are returned to the script specified as 'postCallResultUrl' when you first queue a call. Specifically, the 'result' parameter is advertised to be "success" or "failure", and when it is "success", 'calleeType' is advertised to be one of {"voice" | "answeringmachine"}, and when 'result' is "failure", 'calleeType' is advertised to be one of {"fax" | "busy" | "noanswer" | "operator"}.
Unfortunately, in practice, that's not actually what happens. Are there recent changes going on that aren't yet covered in the API Guide? If so, can you give us the skinny in some temporary document so we can develop to what the system is currently doing? What sort of values (if any) can we expect in 'calleeType'?
Some debug dumps of the parameters I am actually receiving follow to demonstrate (with actual phone numbers changed). The code to capture such things might be useful to other readers in their developments efforts and so that's here:
# capture var_dump() to buffer
ob_start(); # start buffering
var_dump($_POST); # dump to buffer
$dump = ob_get_contents(); # grab contents
ob_end_clean(); # stop buffering
var_dump($_POST) = "array(7) {
["phone"]=>
string(11) "15055551234"
["callID"]=>
string(3) "994"
["msgReference"]=>
string(1) "3"
["result"]=>
string(9) "completed"
["calleeType"]=>
string(0) ""
["nTries"]=>
string(1) "1"
["time"]=>
string(19) "2004-06-29 19:25:08"
}
"
var_dump($_POST) = "array(7) {
["phone"]=>
string(11) "15551112222"
["callID"]=>
string(3) "995"
["msgReference"]=>
string(1) "3"
["result"]=>
string(6) "failed"
["calleeType"]=>
string(0) ""
["nTries"]=>
string(1) "1"
["time"]=>
string(19) "2004-06-29 19:28:01"
}
"
Thanks in advance for any help,
-ej
Unfortunately, in practice, that's not actually what happens. Are there recent changes going on that aren't yet covered in the API Guide? If so, can you give us the skinny in some temporary document so we can develop to what the system is currently doing? What sort of values (if any) can we expect in 'calleeType'?
Some debug dumps of the parameters I am actually receiving follow to demonstrate (with actual phone numbers changed). The code to capture such things might be useful to other readers in their developments efforts and so that's here:
# capture var_dump() to buffer
ob_start(); # start buffering
var_dump($_POST); # dump to buffer
$dump = ob_get_contents(); # grab contents
ob_end_clean(); # stop buffering
var_dump($_POST) = "array(7) {
["phone"]=>
string(11) "15055551234"
["callID"]=>
string(3) "994"
["msgReference"]=>
string(1) "3"
["result"]=>
string(9) "completed"
["calleeType"]=>
string(0) ""
["nTries"]=>
string(1) "1"
["time"]=>
string(19) "2004-06-29 19:25:08"
}
"
var_dump($_POST) = "array(7) {
["phone"]=>
string(11) "15551112222"
["callID"]=>
string(3) "995"
["msgReference"]=>
string(1) "3"
["result"]=>
string(6) "failed"
["calleeType"]=>
string(0) ""
["nTries"]=>
string(1) "1"
["time"]=>
string(19) "2004-06-29 19:28:01"
}
"
Thanks in advance for any help,
-ej