[OpenSIPS-Users] backport for dialog profile for 1.5
Thomas Gelf
thomas at gelf.net
Tue Jul 7 10:10:25 CEST 2009
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
More information about the Users
mailing list