Fix multiple SIP realtime issues
authorTerry Wilson <twilson@digium.com>
Tue, 7 Feb 2012 21:33:42 +0000 (21:33 +0000)
committerTerry Wilson <twilson@digium.com>
Tue, 7 Feb 2012 21:33:42 +0000 (21:33 +0000)
commit8ba2d706028093cad1ab8ddbc25d16fef5aa03fc
treed33019a8af8069204ba3de150f747a61d55385a8
parent994d4d019cb568be738b3f907538354eb88ea806
Fix multiple SIP realtime issues

1. Set lastms to 0 when clearing instead of ""
2. Don't set ipaddr or port to the string "(null)" when they are empty
3. Add missing required fields, set default for lastms to 0, and modify
   the length of the ipaddr field to 45 in the Postgresql realtime.sql
   file.

(closes issue ASTERISK-19172)
Review: https://reviewboard.asterisk.org/r/1703/
........

Merged revisions 354348 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 354349 from http://svn.asterisk.org/svn/asterisk/branches/10

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@354360 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_sip.c
contrib/realtime/postgresql/realtime.sql