Hi David, Sorry for the delay.. You are missing parameters:
root@sbc02:~# kamctl rpc ul.add location [email protected] sip:[email protected] 3600 1 sip:4.3.2.1:5060 { "jsonrpc": "2.0", "error": { "code": 500, "message": "Not enough parameters or wrong format" }, "id": 31201 } root@sbc02:~# root@sbc02:~# kamctl rpc ul.add location [email protected] sip:[email protected] 3600 1 sip:4.3.2.1:5060 0 0 13279 . . { "jsonrpc": "2.0", "result": { }, "id": 31249 } root@sbc02:~# root@sbc02:~# kamctl rpc ul.dump { "jsonrpc": "2.0", "result": { "Domains": [{ "Domain": { "Domain": "location", "Size": 1024, "AoRs": [{ "Info": { "AoR": "361119997", "HashID": 1820329880, "Contacts": [{ "Contact": { "Address": "sip:[email protected]", "Expires": 3592, "Q": 1, "Call-ID": "[email protected]", "CSeq": 1, "User-Agent": "kamailio SIP Router - RPC Server", "Received": "[not set]", "Path": "sip:4.3.2.1:5060", "State": "CS_SYNC", "Flags": 0, "CFlags": 0, "Socket": "[not set]", "Methods": 13279, "Ruid": "ulcx-5bd875a3-712-1", "Instance": "[not set]", "Reg-Id": 0, "Server-Id": 0, "Tcpconn-Id": 0, "Keepalive": 0, "Last-Keepalive": 0, "Last-Modified": 0 } }] } } ], "Stats": { "Records": 1, "Max-Slots": 1 } } }] }, "id": 31347 } root@sbc02:~# More info: https://kamailio.org/docs/modules/5.1.x/modules/usrloc.html#usrloc.r.add On Wed, Oct 31, 2018 at 10:05 AM David Villasmil < [email protected]> wrote: > Ok, I checked my config and i had > > save("location","0x01") > > which disables saving the location in db, now when i register i see the > location in the table... > But i still can't add a location: > > Some help would be appreciated! > > David > > > Regards, > > David Villasmil > email: [email protected] > phone: +34669448337 > > ᐧ > > On Wed, Oct 31, 2018 at 3:22 PM David Villasmil < > [email protected]> wrote: > >> Hello all, >> >> I'm trying to add a permanent location. >> >> i’m using db_mode 1, use_domain = 1, i tried that command >> >> kamctl rpc ul.add location [email protected] sip:[email protected] >> 3600 0 sip:4.3.2.1:5060 >> >> >> Response is: >> >> { >> "jsonrpc": "2.0", >> "error": { >> "code": -32000, >> "message": "Execution Error" >> }, >> "id": 25950 >> } >> >> >> Anyone knows what this might be? >> >> David >> > _______________________________________________ > Kamailio (SER) - Users Mailing List > [email protected] > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users >
_______________________________________________ Kamailio (SER) - Users Mailing List [email protected] https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
