Members Login
Username 
 
Password 
    Remember Me  
Post Info TOPIC: Help on Click To Call


Member

Status: Offline
Posts: 9
Date: Aug 6, 2009
Help on Click To Call
Permalink   
 


Hi ,

I'm new to IfByPhone , i want to make a phone call to a US no and i'm using ASP.NET for this .I followed one of the documentation provided by IfByPhone that uses HttpWebRequest and HttpWebResponse object as enclosed below .

I'm afraid that this code doesn't work and would like to know if I'm missing anything in there like code or any configuration.


String strUrl = "https://secure.ifbyphone.com/clickto_getphone.php?key=XXXX&click_id=1234";
strUrl = strUrl + "&phone_to_call=" + txtNPA.Text + txtNNX.Text + txtLine.Text;
HttpWebRequest oWebRequest = (HttpWebRequest)WebRequest.Create(strUrl);
HttpWebResponse oWebResponse = (HttpWebResponse)oWebRequest.GetResponse();
StreamReader st = new StreamReader(oWebResponse.GetResponseStream());
String strRes = st.ReadToEnd();
lblMsg.Text = strRes;

When i try to execute this,it returns a response that is similar to Click to Call screen in the web site ,that contains an Image with the 3 text boxes and a Click to call button .Please,find the attached file to look into same .

Unable to get message like 'Success' or something .

Your help is appreciated .

Thanks ,

Krishna Prasad H

Attachments
__________________


Veteran Member

Status: Offline
Posts: 45
Date: Aug 13, 2009
Permalink   
 

Please use the following URL instead:
String strUrl = "https://secure.ifbyphone.com/click_to_xyz.php?key=XXXX&click_id=1234";
strUrl = strUrl + "&phone_to_call=" + txtNPA.Text + txtNNX.Text + txtLine.Text;


__________________
-Phil Seguin
pseguin@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