Page 1 of 1

Auto schdeuling -outbound call

Posted: Fri Nov 26, 2004 8:59 am
by prasanth
Hi Team,

I used fsockopen in php to post outbound calls to the plum server.
this file will be scheduled in linux CRON scheduler.

When i am trying to execute the code following error occures,
-------------------------------------
Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/ssenior/public_html/ivr/callfunctions.php on line 23

Warning: fsockopen(): unable to connect to http://outbound.plumgroup.com:80 in /home/ssenior/public_html/ivr/callfunctions.php on line 23

-------------------------------------

Following is the code I used,

$fp = fsockopen("http://outbound.plumgroup.com", 80, $errno, $errstr, 60);
if (!$fp)
{
return "error1";
}
else
{
if ($method == 'GET') {
$path .= '?' . $data;
}

fputs($fp, $method /webservice/queuecall.php HTTP/1.1\r\n");
......
.......

I would like to know that the method i used is write or wrong?
And what is the reason for the error.

What url used for posting the request to plum? Now i am using the demo account? What url i should use when i purchase the orginal version?

Also please give me the links related to scheduling files in plum.

I expect your answer. Thanking you

Pt

Advice for PHP programming on IVR system

Posted: Tue Nov 30, 2004 5:47 pm
by support
I would recommend visiting http://www.php.net for excellent advice on programming in PHP for outbound IVR systems.