Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Sample php Click to Call Code:

Code Block

<?php

...


	$to="101";		//Number to dial

...


	$from="5001";	//userid in sipx

...


	$pass="1234";	//sipx pin (NOT SIP password)

...


	
	//replace sipx.gcgov.local with your sipx server

...


	$url = "http://sipx.gcgov.local:6667/callcontroller/".$from."/".$to."?isForwardingAllowed=true";

...

 
	$ch = curl_init();

...

     
	curl_setopt($ch, CURLOPT_URL, $url);

...

  
	curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);

...

 
	curl_setopt($ch, CURLOPT_POST, 1);

...


	curl_setopt($ch, CURLOPT_USERPWD, $from.":".$pass);

...


	$result = curl_exec($ch);

...

  
	curl_close($ch);

...

  
?>

...

 		

Future Services

User ('my') services (those are services needed to implement functionality available through current user portal)

...