[OpenSIPS-Users] uac registrant module issue

J E H A N Z A I B jehanzaib.kiani at gmail.com
Mon Feb 18 03:52:27 EST 2019


Hi Johan,

This is a registrar field which does not have @ do you want me to change it
to username at host?

On Mon, Feb 18, 2019 at 9:32 PM Johan De Clercq <Johan at democon.be> wrote:

> where is @ ?
>
> Op ma 18 feb. 2019 om 09:14 schreef J E H A N Z A I B <
> jehanzaib.kiani at gmail.com>:
>
>> Hi folks,
>>
>> I am facing a weird issue. can anyone help me please?
>>
>> opensips 2.2.2 with the below config. Trying to register my sip provider
>> trunk on our opensips.
>>
>> loadmodule "uac_registrant.so"
>> modparam("uac_registrant", "hash_size", 2)
>> modparam("uac_registrant", "timer_interval", 120)
>> modparam("uac_registrant", "db_url", "mysql://mydbuser:pass@databasename
>> /mydb")
>> modparam("uac_registrant", "table_name", "registrant")
>> modparam("uac_registrant", "username_column", "username")
>> modparam("uac_registrant", "password_column", "password")
>> modparam("uac_registrant", "expiry_column", "expiry")
>> modparam("uac_registrant", "aor_column", "aor")
>> modparam("uac_registrant", "proxy_column", "proxy")
>>
>> Here is the table structure.
>> | id | registrar | proxy   | aor | third_party_registrant | username |
>> password| binding_URI | binding_params | expiry | forced_socket
>> When i reload: opensipsctl fifo reg_reload
>> Feb 18 20:39:56 sbc1 /usr/sbin/opensips[14223]:
>> DBG:db_mysql:db_mysql_str2val: converting INT [180]
>> Feb 18 20:39:56 sbc1 /usr/sbin/opensips[14223]:
>> INFO:uac_registrant:load_reg_info_from_db: loading [1] records from db
>> Feb 18 20:39:56 sbc1 /usr/sbin/opensips[14223]: ERROR:core:parse_uri: bad
>> uri, state 0 parsed: <test01> (4) / <test0102-p01.mytestprovider.com>
>> (22)
>> Feb 18 20:39:56 sbc1 /usr/sbin/opensips[14223]:
>> ERROR:uac_registrant:load_reg_info_from_db: cannot parse registrar uri [
>> test0102-p01.mytestprovider.com]
>>
>>
>> Regards,
>> Jehanzaib
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>


-- 
Regards,
Jehanzaib
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20190218/a4fba8c5/attachment.html>


More information about the Users mailing list