function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
jburns12jburns12 

Simple Problem, send Sip command from java

Basically what we need is a dial button, I have been able to get it to work by simply having the button navigate to sip:{!Landing_Page_Lead__c.Dial__c}.... However then the user has to close the new window. What I would like to do is send an http request with java...I cannot seem to get it to work: Please help

 

{!requireScript("/soap/ajax/13.0/connection.js")}

{
URL sip = new URL("sip:{!Landing_Page_Lead__c.Dial__c}");
URLConnection yahooConnection = sip.openConnection();
sipConnection.connect();

} catch (MalformedURLException e) { // new URL() failed
. . .
} catch (IOException e) { // openConnection() failed
. . .
}

 

 

SuperfellSuperfell

From java or javascript (the requestScript line is throwing me) ?

jburns12jburns12

either one, doesnt make a difference to me, i was under the impression it needed to be there to pass the custom field values. I just need to get this working, I have tried opening a popup and closing it automatically...cant get that work either

SuperfellSuperfell

You can't write java in the browser (without compiling it to an applet), so how exactly are you trying to run the java code ?

jburns12jburns12

thanks for your help we solved the problem by opening and autoclosing a popup window