Hi
I have installed and configured Version 1.2 with realtime for sipusers using a postgres database (odbc). My sip clients are registering and dialing ok, but when they log off, I get this messages in the CLI:
– SIP Seeding peer from astdb: ‘2100’ at 2100@10.0.0.1:5062 for 1800
– Unregistered SIP '2100’
Dec 7 00:12:44 WARNING[3517]: res_odbc.c:171 odbc_smart_execute: SQL Execute returned an error -1: 01000: [unixODBC]Error while executing the query (non-fatal);
ERROR: value too long for type character varying(5) (107)
Dec 7 00:12:44 WARNING[3517]: res_odbc.c:171 odbc_smart_execute: SQL Execute returned an error -1: 00000: [unixODBC]Error while executing the query (non-fatal);
ERROR: value too long for type character varying(5) (107)
Dec 7 00:12:44 WARNING[3517]: res_config_odbc.c:399 update_odbc: SQL Execute error!
[UPDATE sip_friends SET ipaddr=?, port=?, regseconds=?, username=? WHERE name=?]
This is not affecting my SIP users, but is kind of unconfortable to get this warnings and obviously something is not working ok.
I found out that asterisk was triying to update a SIP record but the ‘port’ field wasnt big enough, so I made it varchar(128) and now the warning is gone. But something is still wrong because whenever a users deregisters, his IP adrress goes into the ‘port’ field , and I get garbage into the ‘ipaddr’ field:
select name, ipaddr, port from sip_friends where id=200;
name | ipaddr | port
------±-------±---------
2100 | ìIW | 10.0.0.1
Can someone tell me how can I fix this?, and what could be wrong ?
Thanks in advance,
Juan