Uwe Kastens wrote:
>> What you want to retrieve is however available via MI-modules, I'm
>> for example preferring the XML-RPC one.
>
> I will try this out. Looks simple from the docs - is it that simple?
It is. Short example using PHP with ZF libraries:
$client = new Zend_XmlRpc_Client('http://sip.proxy.tld:8000/RPC2');
$proxy = $client->getProxy();
$dialog_list = $proxy->dlg_list();
Should return more or less what you get on commandline running
opensipsctl fifo dlg_list
The rest is just a text-parsing task, you'll not get structured data.
Cheers,
Thomas Gelf
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users