[SR-Users] kamcmd uac.* commands dont find records
Karsten Horsmann
khorsmann at gmail.com
Fri Jun 21 11:10:06 CEST 2019
Hi Daniel,
of course - this version shows it up.
But most people overlooked that and take a look at the kamcmd examples in
uac module page.
And for example:
kamcmd uac.reg_info auth_username 1111111111
error: 404 - Record not found
But with kamcmd uac.reg_info auth_username s:1111111111
it works. How is 1111111111 a "string"? -
I assume its a string of varchar(64) in all *_* fields in my mysql
kamailio-db.
Maybe i fill a feature request for the documentation examples.
kamcmd -h
version: kamcmd 1.5
Usage: kamcmd [options][-s address] [ cmd ]
Options:
-s address unix socket name or host name to send the commands on
-R name force reply socket name, for the unix datagram socket mode
-D dir create the reply socket in the directory <dir> if no reply
socket is forced (-R) and a unix datagram socket is selected
as the transport
-f format print the result using format. Format is a string containing
%v at the places where values read from the reply should be
substituted. To print '%v', escape it using '%': %%v.
-v Verbose
-V Version number
-h This help message
address:
[proto:]name[:port] where proto is one of tcp, udp, unixs or unixd
e.g.: tcp:localhost:2048 ,
unixs:/tmp/kamailio_ctl
cmd:
method [arg1 [arg2...]]
arg:
* string or number; to force a number to be interpreted as string
prefix it by "s:", e.g. s:1*
Examples:
kamcmd -s unixs:/tmp/kamcmd_ctl system.listMethods
kamcmd -f "pid: %v desc: %v\n" -s udp:localhost:2047 core.ps
kamcmd ps # uses default ctl socket
kamcmd # enters interactive mode on the default socket
kamcmd -s tcp:localhost # interactive mode, default port
Am Fr., 21. Juni 2019 um 10:59 Uhr schrieb Daniel-Constantin Mierla <
miconda at gmail.com>:
> Hello,
>
> just sake of completion, do not forget '-h' for these apps:
>
> kamcmd -h
>
> I think it should be also noted in 'man kamcmd', if not, it should be
> added.
>
> Cheers,
> Daniel
> On 21.06.19 10:45, Karsten Horsmann wrote:
>
> Hi List,
>
> dunno why my google skills get better after writing you an email.
> If its look like an number but your backend
> is saved as string, you need an s: as prefix - so my understanding.
>
> I need to prefix all with s: for string then and it works.
>
> kamcmd uac.reg_enable auth_username s:FFFFFFFFFFFF
>
> https://lists.kamailio.org/pipermail/sr-users/2017-August/098168.html
>
>
> Am Fr., 21. Juni 2019 um 10:18 Uhr schrieb Karsten Horsmann <
> khorsmann at gmail.com>:
>
>> Good morning List!
>>
>> I have an issue with my kamcmd from kamailio 5.2.3 on CentOS 7.6 with
>> kamailio-rpms.
>>
>> The kamcmd util can not find my registrations via command
>> kamcmd uac.reg_enable auth_username FFFFFFFFFFFF
>> kamcmd uac.reg_info l_username +49XXXXXXXX
>> and soone. Only global commands for uac works.
>>
>> Whats going wrong with my kamcmd? Any ideas? Thank for your hints!
>>
>> # kamcmd uac.reg_dump
>> {
>> l_uuid: 49XXXXXXX
>> l_username: +49XXXXXXXX
>> l_domain: sip-trunk.telekom.de
>> r_username: +49XXXXXXXX
>> r_domain: sip-trunk.telekom.de
>> realm: sip-trunk.telekom.de
>> auth_username: FFFFFFFFFFFF
>> auth_password: ***************
>> auth_proxy: sip:reg.sip-trunk.telekom.de
>> expires: 360
>> flags: 20
>> diff_expires: 129
>> timer_expires: 1561103682
>> reg_init: 1561101919
>> reg_delay: 3
>> }
>> # kamcmd uac.reg_enable auth_username FFFFFFFFFFFF
>> error: 404 - Record not found
>>
>>
>> --
>> Kind regards
>> Mit freundlichen Grüßen
>> *Karsten Horsmann*
>>
>
>
> --
> Mit freundlichen Grüßen
> *Karsten Horsmann*
>
> _______________________________________________
> Kamailio (SER) - Users Mailing Listsr-users at lists.kamailio.orghttps://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
> --
> Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- www.linkedin.com/in/miconda
>
>
--
Mit freundlichen Grüßen
*Karsten Horsmann*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20190621/1b1d81ce/attachment.html>
More information about the sr-users
mailing list