[OpenSIPS-Users] TextDB and Registrant issues

Ovidiu Sas osas at voipembedded.com
Mon Jun 2 17:04:38 CEST 2014

It seems that you are using multiple databases at the same time.
If you use dbtext with uac_registrant and the dbtext/registrant file is empty,
then you will have no records :)

Check the content of your opensipsctlrc (see DBENGINE).

Ovidiu Sas

> On May 30, 2014 at 9:23 PM Kurtis Heimerl <kheimerl at endaga.com> wrote:
>  Hey List,
>  Here's my current conundrum:
>  I have opensips running with textdb pointed at
>/usr/local/etc/opensips/dbtext. I've enabled the uac_registrant module and
>pointed it at the same directory (though it should be noted that this was done
>manually, as it wouldn't use the default for some reason).
>  I've put a registrant into the db:
>  sudo opensipsctl db show registrant
>  [1, 'sip:<http://sip.DOMAIN.com> ', '', ' sip:NAME at sip.DOMAIN.com
><mailto:sip%3ANAME at sip.DOMAIN.com> ', '', 'NAME', 'PASSWORD',
>'sip:opensips at localhost', '', 600, '']
>  However, the uac_registrant module doesn't seem to read this:
>  sudo opensipsctl fifo reg_reload
>  May 31 01:20:27 ip-172-31-27-53 /usr/sbin/opensips[6034]:
>INFO:uac_registrant:load_reg_info_from_db: loading [0] records from db
>  This is actually confirmed by actually going through the textdb itself,
>there's nothing in the registrant table!
>  cat dbtext/registrant
>  id(int,auto) registrar(string) proxy(string,null) aor(string)
>third_party_registrant(string,null) username(string,null) password(string,null)
>binding_URI(string) binding_params(string,null) expiry(int,null)
>  What's going on here? I've double checked that they are reading from the same
>db, and they should be, unless there's another one somewhere that's outside of
>configuration? The log seems to think it's fine:
>  May 30 22:00:28 ip-172-31-27-53 /usr/sbin/opensips[6033]:
>INFO:db_text:dbt_init: using database at: /usr/local/etc/opensips/dbtext
>  Any suggestions/directions would be appreciated.
>  _______________________________________________
>  Users mailing list
>  Users at lists.opensips.org
>  http://lists.opensips.org/cgi-bin/mailman/listinfo/users


More information about the Users mailing list