[SR-Users] Can't show single location via kamctl

Daniel-Constantin Mierla miconda at gmail.com
Tue Mar 9 12:32:19 CET 2021


The domain in the jsonrpc response refers to the location table --
somehow internally the name of the table storing the contacts is also
referred as domain. I just pushed a patch to add table to the response text.

Do you use save("location") and lookup("location") or another table
name? The kamctl uses "location", if you use something else, you need to
adjust kamctl.

Cheers,
Daniel

On 09.03.21 11:52, Jon Bonilla (Manwe) wrote:
> El Tue, 9 Mar 2021 09:32:00 +0100
> Daniel-Constantin Mierla <miconda at gmail.com> escribió:
>
>> Hello,
>>
>> the error message from kamctl, not from kamailio. You need to set
>> SIP_DOMAIN inside kamctlrc file or do: kamctl ul show username at domain,
>> where domain can be localhost or anything else. The kamctl is built that
>> way, is not really aware that the kamailio is multi-domain enabled or
>> not. Actually, kamailio still needs sip addresses with user at domain, just
>> ignores the domain for queries.
>
> If I use user at anydomain I always get 
>
> {
>   "jsonrpc":  "2.0",
>   "error":  {
>     "code": 500,
>     "message":  "Domain not found"
>   },
>   "id": 3826
> }
>
>> You can make kamctl to be more flexible here, it is a shell script, if
>> you provide a patch, can be merged. On the other hand, it might be
>> better to just go for kamcli, it is planned that at some point is going
>> to replace kamctl.
>>
>
> Will check. Will also try kamcli
>
>
>
>
>
> -- 
> PekePBX, the multitenant PBX solution
> https://pekepbx.com

-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Funding: https://www.paypal.me/dcmierla




More information about the sr-users mailing list