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,
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
Visit Digigram at IBC2015 at Stand 8.C51, Sept. 11-15 in Amsterdam Register here http://www.ibc.org/page.cfm/link=478 for your *FREE* pass with Digigram's Exhibitor Customer Code *4462*
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
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:
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,
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
Visit Digigram at IBC2015 at Stand 8.C51, Sept. 11-15 in Amsterdam Register here http://www.ibc.org/page.cfm/link=478 for your *FREE* pass with Digigram's Exhibitor Customer Code *4462*
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierlahttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Book: SIP Routing With Kamailio - http://www.asipto.com Kamailio Advanced Training, Sep 28-30, 2015, in Berlin - http://asipto.com/u/kat
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
On Friday 25 September 2015 10:24:18 Loïc Boissy wrote:
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...
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:24:18 Loïc Boissy wrote:
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...
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.
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
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).