Values not getting updated for a lead_id

Discussions about development of VICIDIAL and astGUIclient

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Values not getting updated for a lead_id

Postby notifiythaslim » Thu Apr 05, 2012 11:58 pm

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" ;
notifiythaslim
 
Posts: 2
Joined: Thu Apr 05, 2012 11:24 pm

Postby mflorell » Fri Apr 06, 2012 5:21 am

non_agent_api.php?function=version
mflorell
Site Admin
 
Posts: 18386
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby notifiythaslim » Fri Apr 06, 2012 7:12 am

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|
notifiythaslim
 
Posts: 2
Joined: Thu Apr 05, 2012 11:24 pm

Postby mflorell » Fri Apr 06, 2012 12:27 pm

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.
mflorell
Site Admin
 
Posts: 18386
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida


Return to Development

Who is online

Users browsing this forum: No registered users and 25 guests