This is on an IIS/PHP/Curl box.  User sweeks is not on our voip system - so 
I've added a 'phantom user' and enabled call forwarding to reach our old phone 
system via an analog gateway.  Running this php code will contact his NEC phone 
and ring my extension.

Our plan is to query a database with our internal/external contacts and make 
them all click to dial.  We will have to create a link based on their windows 
userid to sipxecs extension...

Thanks for this feature Ranga!

CODE:

<?php
$url = 
"http://sipx.gcgov.local:6667/callcontroller/sweeks/5001?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, 'sweeks:9999);
$result = curl_exec($ch);
curl_close($ch);
?>

This message and any files transmitted with it are intended only for the 
individual(s) or entity named. If you are not the intended individual(s) or 
entity named you are hereby notified that any disclosure, copying, distribution 
or reliance upon its contents is strictly prohibited. If you have received this 
in error, please notify the sender, delete the original, and destroy all 
copies. Email transmissions cannot be guaranteed to be secure or error-free as 
information could be intercepted, corrupted, lost, destroyed, arrive late or 
incomplete, or contain viruses. Garrett County Government therefore does not 
accept any liability for any errors or omissions in the contents of this 
message, which arise as a result of email transmission.


 Garrett County Government,
203 South Fourth Street, Courthouse, Oakland, Maryland 21550 
www.garrettcounty.org
_______________________________________________
sipx-users mailing list sipx-users@list.sipfoundry.org
List Archive: http://list.sipfoundry.org/archive/sipx-users
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-users
sipXecs IP PBX -- http://www.sipfoundry.org/

Reply via email to