Child pages
  • Getting the current number of active calls with PHP
Skip to end of metadata
Go to start of metadata

Make sure you've installed php-soap

<?php

$client = new SoapClient(NULL, array('cache_wsdl' => WSDL_CACHE_NONE, 'location' => "http://IP.ADDR.OF.SIPX:8130", 'uri' => "urn:CdrService"));
print "Number of Active Calls:\n";
print count($client->__soapCall("getActiveCalls", array(), array('soapaction' => "getActiveCalls")));
print "\n";
?>
  • No labels