<html>
<head>
<script type="text/javascript">


function webcall_win(sip,realm,phone,user,serviceName) 
{
//You can have your ajax code here communicating with your site...
//XMLHttpRequest...


var URL  = "http://doddle.com.br/endoddle.jsp?sipserver="+sip+"&siprealm="+realm+"&callto="+phone+"&username="+user+"&provider="+serviceName;



window.open(URL,"MyWindow")

}
</script>
</head>
<body>
<h3>My Asterisk Applications web site here...</h3>


<p>Use our Asterisk to call right now!
<a
        href="javascript:webcall_win('asteriskIP','asterisk','123456','myuser','myServiceName')";"><u>Web-driven
Call</u></a>
</body>
</html>