Hello,
As mentionned in the doc, ul.dump command dumps the content of the location table.
I use MULTIDOMAIN domain configuration, and i would like to use a RPC command to recover all contact present in my database (for all domains).
Is there a solution to do that? Thanks you for you help. Loic BOISSY
Hello,
it doesn't matter if you enable multidomain, the records will be in the same location table. Have you tried and you didn't get the records?
Cheers, DAniel
On 23/09/15 18:07, Loïc Boissy wrote:
Hello,
Yes i do some test, The "ul.dump" command seems return only actif user (connected user). But I would like to dump all contacts present in my database...
Best regards Loic
2015-09-25 9:44 GMT+02:00 Daniel-Constantin Mierla miconda@gmail.com:
On Friday 25 September 2015 10:24:18 Loïc Boissy wrote:
Well, the location table only has active users, so the output is correct. If you want to get all subscribers it seems you have to query the database directly. That is something you'll have to do anyway depending on the usrloc db_mode. If that is db only, ul.dump returns nothing, since ul.dump returns the memory state of the kamailio instance.
Well, does it possible to query the database directly using JSON RPC request?
Best regards Loic
2015-09-25 10:40 GMT+02:00 Daniel Tryba d.tryba@pocos.nl:
On Friday 25 September 2015 10:54:28 Loïc Boissy wrote:
Well, does it possible to query the database directly using JSON RPC request?
Apparently not if you want to use kamailio to receive/process the request. But you could install a httpd and some scripting engine to do these requests to the database (eg: apache/php/mysql).