Welcome to the Ifbyphone Developers zone. This forum provides a place for the community of advanced Ifbyphone users and developers to share ideas, exchange code, and ask questions.  

Additional Resources

Ifbyphone Company Blog - Ifbyphone Twitter Page - Ifbyphone Company Web Site - Ifbyphone Partners Page
Ifbyphone's CEO's (Irv Shapiro's) Personal Blog - Irv Shapiro Twitter Page

It has been brought to our attention that the NEW MEMBER link does not always display in IE7. If you do not see the new member link in the login box on the right, please try another browser. (Firefox works fine.) In addition please note that Phonemashup accounts are completely separate from Ifbyphone accounts.

If you need help fast, call 877 295 5100 to reach the Ifbyphone "Success Team".   (Support is option 2.)

Members Login
Username 
 
Password 
    Remember Me  
Chatbox
Please log in to join the chat!
Post Info TOPIC: Help on Click To Call


Member

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


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
  
 

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 Facebook Post to Digg Post to Del.icio.us

This is an open and public forum so Ifbyphone is unable to ensure that all code and suggestions posted to this forum are correct. Please use all code posted here at your own risk. Ifbyphone assumes no liability for code, recommendations and suggestions posted to this forum.

Users and developers will find hundreds of useful posts at the Ifbyphone company blog.