Page 1 of 1

Values not getting updated for a lead_id

PostPosted: Thu Apr 05, 2012 11:58 pm
by notifiythaslim
We use the update_lead method to update values but the values are not getting updated though the disposition is getting updated.

The API Call for Update
/vicidial/non_agent_api.php?source=test&user=6666&pass=dial12345&function=update_lead&lead_id=$lead_id1&first_name=$movieName1&last_name=$songName1"

The first_name and last_name values are not getting updated.

Please help to resove.

4 API calls used in order everything is working fine except values getting updated for first_name and last_name
/vicidial/non_agent_api.php?source=test&user=6666&pass=dial12345&function=update_lead&lead_id=$lead_id1&first_name=$movieName1&last_name=$songName1";

/agc/api.php?source=test&user=6666&pass=dial12345&agent_user=$user&function=external_pause&value=PAUSE";

/agc/api.php?source=test&user=6666&pass=dial12345&agent_user=$user&function=external_hangup&value=1";

/agc/api.php?source=test&user=6666&pass=dial12345&agent_user=$user&function=external_status&value=$disposition" ;

PostPosted: Fri Apr 06, 2012 5:21 am
by mflorell
non_agent_api.php?function=version

PostPosted: Fri Apr 06, 2012 7:12 am
by notifiythaslim
Reply for function=version

VERSION: 2.4-40|BUILD: 120127-1331|DATE: 2012-04-06 17:40:37|EPOCH: 1333714237|DST: 0|TZ: -5.00|TZNOW: -5.00|

PostPosted: Fri Apr 06, 2012 12:27 pm
by mflorell
If you are positive you are sending everything properly then I would recommend upgrading to a more recent svn/trunk version of the non_agent_api.php script and then changing the $api_url_log = 0; variable to equal '1' instead of '0'.

This will log every request as it comes in to the vicidial_url_log so you can see what the api is seeing come in.