Members Login
Username 
 
Password 
    Remember Me  
Post Info TOPIC: Issues with gathering data using C# and using information in a different servo


Member

Status: Offline
Posts: 8
Date: Feb 2, 2013
Issues with gathering data using C# and using information in a different servo
Permalink   
 


I am currently trying to make a servo to call and get data from my webservice.

It is a GET to service which returns

<action>
<app>SurVo</app>
<parameters>
<id>593064</id>
<user_parameters>
<first name>Joshua</first name>
<last name>McCloskey</last name>
<Package>$1 Activation Card - 25 min$1 Activation Card - 25 min</Package>
<Status>Active</Status>
<transfer_to>8475551234</transfer_to>
<MinutesRemaining>2.0000000000</MinutesRemaining>
</user_parameters>
<p_t>user_id|12345||step|call_user</p_t>
</parameters>
</action>

The next servo it goes to then should read
Hello joshua mccloskey
but it is still saying
hello {first_name} {Last_name}

Ive also tried using all of the calls as p_t and it still doesnt seem to work
Is there something i need to do with the id?


__________________


Member

Status: Offline
Posts: 15
Date: Feb 6, 2013
Permalink   
 

Joshua,

It looks like your Survo parameters have underscores, but the xml parameter names do not.



__________________

Kevin Wilson

Customer Engineer

kwilson@ifbyphone.com



Member

Status: Offline
Posts: 8
Date: Feb 6, 2013
Permalink   
 

Ive updated it to take care of that but still no luck,


2013-02-05T14:06:18-05:00 INFO (6): API Request: Array ( [phone_to_call] => 8143121929 [acct] => 272664 [app] => CTVR [menu_id] => 8970064 [key] => 7572198d8f66119600811cd1fbb66eee678c18a7 [referrer] => Unknown [usr_clickto_log_id] => 172179584 [api_key] => 836de559794f56f35e88bc8a8b2e611c72bdd5c6 [action] => clickto.vr [user_agent] => Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/20100101 Firefox/18.0 [api_url] => /click_to_xyz.php?phone_to_call=8143121929&acct=272664&app=CTVR&menu_id=8970064&key=7572198d8f66119600811cd1fbb66eee678c18a7&referrer=Unknown&usr_clickto_log_id=172179584 ) 2013-02-05T14:07:16-05:00 INFO (6): NetGet setting URL to: http://asynctest.coast2coastcellular.com/GetPhoneNumber.aspx?Type=GetPhoneNumber&=&PhoneNumber=8147929765&ServoID=593064 2013-02-05T14:07:18-05:00 INFO (6): NetGet response (up to 2000 characters): <action><app>SurVo</app><parameters><id>599284</id><user_parameters><first_name>Joshua</first_name><last_name>McCloskey</last_name><Package>$1 Activation Card - 25 min$1 Activation Card - 25 min</Package><Status>Active</Status><transfer_to>8475551234</transfer_to><MinutesRemaining>2.0000000000</MinutesRemaining></user_parameters><p_t>user_id|12345||first_name|Joshua||last_name|Mccloskey</p_t></parameters></action> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><title> </title></head> <body> <form method="post" action="GetPhoneNumber.aspx?Type=GetPhoneNumber&=&PhoneNumber=8147929765&ServoID=593064" id="form1"> <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTE2MTY2ODcyMjlkZLc2n52WoqRm0pCcjvaGj8ao+we+GjE49cLm5sbZ+rD7" /> <div> </div> </form> </body> </html>

So far ive tried

            string respXML = "";             respXML += "<action>\n";             respXML += "<app>SurVo</app>\n";             respXML += "<parameters>\n";             respXML += "<id>" + "599284" + "</id>\n";             respXML += "<user_parameters>\n";             respXML += "<first_name>Joshua</first_name>\n";
            respXML += "<last_name>McCloskey</last_name>\n";
            respXML += "<Package>" + "Package1" + "</Package>\n";
            respXML += "<Status>" + "Active" + "</Status>\n";
            respXML += "<transfer_to>8475551234</transfer_to>\n";
            respXML += "<MinutesRemaining>" +  "55" + "</MinutesRemaining>\n";
            respXML += "</user_parameters>\n";
            respXML +="<p_t>user_id|12345||first_name|Joshua||last_name|Mccloskey</p_t>\n";
            respXML += "</parameters>\n";
            respXML += "</action>";
            Response.Write(respXML);
 
and
 
 
            Response.Write("<action>");
            Response.Write("<app>SurVo</app>");
            Response.Write("<parameters>");
            Response.Write("<id>" + 599284 + "</id>");
            Response.Write("<user_parameters>");
            Response.Write("<first_name>Joshua</first_name>");
            Response.Write("<last_name>McCloskey</last_name>");
            Response.Write("<Package>" + Linepackagestring + "</Package>");
            Response.Write("<Status>" + line.LineStatus + "</Status>");
            Response.Write("<transfer_to>8475551234</transfer_to>");
            Response.Write("<MinutesRemaining>" +line.BalanceAmount.ToString() + "</MinutesRemaining>");
            Response.Write("</user_parameters>");
            Response.Write("<p_t>user_id|12345||first_name|Joshua||last_name|Mccloskey</p_t>");
            Response.Write("</parameters>");
            Response.Write("</action>");
 
neither seem pass through the variables to the next servo
 
599284 is the second servo it is sending to.
 


__________________


Member

Status: Offline
Posts: 15
Date: Feb 6, 2013
Permalink   
 

I just looked at the Survos in your account. You can remove the "Go to another app" option from the first Survo, as the XML response will handle that.

__________________

Kevin Wilson

Customer Engineer

kwilson@ifbyphone.com



Member

Status: Offline
Posts: 8
Date: Feb 6, 2013
Permalink   
 











__________________


Member

Status: Offline
Posts: 8
Date: Feb 14, 2013
Permalink   
 

Figured it out, i had some extra asp code that was writing to your api that was blowing it up.

__________________


Member

Status: Offline
Posts: 8
Date: Feb 19, 2013
It seems as if the issue has come back, would it be possible to look into this for me?
Permalink   
 


2013-02-18T17:07:24-05:00 INFO (6): NetGet setting URL to: http://ivrtest.coast2coastcellular.com/coastivr.aspx?RequestType=GetEnteredNumber&PhoneNumber=8143121929&ServoID=604614&PassThroughData=
2013-02-18T17:07:26-05:00 INFO (6): NetGet response (up to 2000 characters): <action>
<app>Servo</app>
<parameters>
<id>605304</id>
<user_parameters/>
<p_t>Status|Active||ResellerName|Test Prepaid||ResellerCustomerServiceNumber|8143121929||Balance|10.0000000000||Package1|C2C Test||PCost1|10.0000||PDBID1|1130||Package2|data||PCost2|1.0000||PDBID2|1145||HasCreditCard|False</p_t>
</parameters>
</action>

ive tried this with
2013-02-18T17:07:24-05:00 INFO (6): NetGet setting URL to: http://ivrtest.coast2coastcellular.com/coastivr.aspx?RequestType=GetEnteredNumber&PhoneNumber=8143121929&ServoID=604614&PassThroughData= 2013-02-18T17:07:26-05:00 INFO (6): NetGet response (up to 2000 characters): <action> <app>Servo</app> <parameters> <id>605304</id> <user_parameters>
</user_parameters> <p_t>Status|Active||ResellerName|Test Prepaid||ResellerCustomerServiceNumber|8143121929||Balance|10.0000000000||Package1|C2C Test||PCost1|10.0000||PDBID1|1130||Package2|data||PCost2|1.0000||PDBID2|1145||HasCreditCard|False</p_t> </parameters> </action>
and still no luck


__________________
Anonymous

Date: Feb 19, 2013
RE: Issues with gathering data using C# and using information in a different servo
Permalink   
 


Josh,

I noticed you have "Servo" instead of "Survo" in the response.

 



__________________


Member

Status: Offline
Posts: 8
Date: Feb 19, 2013
Permalink   
 

AHh, youre a genius! Thanks



-- Edited by joshua89m on Tuesday 19th of February 2013 08:05:23 AM

__________________


Member

Status: Offline
Posts: 8
Date: Feb 23, 2013
Permalink   
 

Is there any possible way to find the id of a virtual receptionist?

__________________


Newbie

Status: Offline
Posts: 3
Date: Feb 23, 2013
Permalink   
 

The virtual receptionist id can be found in "Building Block IDs" under the "Developer Tools" tab

__________________

Nik Jacobs

Customer Engineer

NJacobs@ifbyphone.com



Member

Status: Offline
Posts: 8
Date: Mar 2, 2013
Permalink   
 

OK, Now one more thing with dynamic Variables. Is there any way to make the phone number validation and variables entered slow down in the TTS?



__________________


Member

Status: Offline
Posts: 15
Date: Mar 2, 2013
Permalink   
 

Josh, your best bet is to break-up the data you're reading back into multiple parameters if possible. That way you can add spacing inside the Survo question between the parameters to slow it down.

Also, refer to the attached TTS guide for how to add a pause(s) before or after the parameters.



Attachments
__________________

Kevin Wilson

Customer Engineer

kwilson@ifbyphone.com

Page 1 of 1  sorted by
 
Quick Reply

Please log in to post quick replies.

Post to Digg Post to Del.icio.us


Create your own FREE Forum
Report Abuse
Powered by ActiveBoard