Re: how to kamcmd ul.add ?

Bastian Triller via sr-users <[email protected]>
Newsgroups gmane.comp.voip.ser
Message-ID <CALJ8HB7a-KKYu+nCS97aBj=82avc6ddNnYBcaugOa7EOmEyo+w@mail.gmail.com>
You can check values for methods here

https://github.com/kamailio/kamailio/blob/8d00b20e553302b9c3c182c786739a9daf64f506/src/core/parser/msg_parser.h#L62

On Tue, Sep 16, 2025, 16:53 Benoit Panizzon via sr-users <
[email protected]> wrote:

> Hi Fred
>
> Thanks for your quick reply.
>
> > Could be a CLI thing maybe?
>
> Stumbled over an old issue with an example which helped me a lot:
>
> https://github.com/kamailio/kamailio/issues/1586
>
> usage via shell was part of the issue. Using kamcmd in interactive
> mode helped.
>
> With some more testing I got this working:
>
> kamcmd> ul.add location AORUSER@dummy sip:[email protected]:5077;transport=tcp
> 0 0.44 <sip:sbc-hostname;lr> 0 0 16351 . .
>
> AOR requires a host part - which is ignored.
>
> Port an transport are optional, I added them as example.
>
> 0.44 is the default Q value we use so this ensures parallel forking in
> case there are multiple contacts.
>
> I took the Methods mask (16351) from dynamic registered contacts - I
> have not yet found the documentation for it.
> Setting it to zero results in the lookup failing with 'no matching
> methods'.
>
> So - back to testing ;-)
>
> Mit freundlichen Grüssen
>
> -Benoît Panizzon-
> --
> I m p r o W a r e   A G    -    Leiter Commerce Kunden
> ______________________________________________________
>
> Zurlindenstrasse 29             Tel  +41 61 826 93 00
> CH-4133 Pratteln                Fax  +41 61 826 93 01
> Schweiz                         Web  http://www.imp.ch
> ______________________________________________________
> __________________________________________________________
> Kamailio - Users Mailing List - Non Commercial Discussions --
> [email protected]
> To unsubscribe send an email to [email protected]
> Important: keep the mailing list in the recipients, do not reply only to
> the sender!
>

__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the sender!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.