summaryrefslogtreecommitdiff
path: root/contrib/realtime/postgresql
diff options
context:
space:
mode:
authorTerry Wilson <twilson@digium.com>2012-02-08 21:28:55 +0000
committerTerry Wilson <twilson@digium.com>2012-02-08 21:28:55 +0000
commit3342183016a4dfb7dd0d2c950e51a021659f647b (patch)
treead7b19042306164249b6b1d8d462af7863025595 /contrib/realtime/postgresql
parentf0e321b88ac5be7c36cbd5770886a43e33ee3525 (diff)
Add callbackextension matching & realtime callbackextensions
This patch is based on the one by David Vossel, developer extrodinaire, at https://reviewboard.asterisk.org/r/344/. If multiple peers are defined with the same host/port, but differing callbackextensions, it chooses the peer with the matching callbackextension. Since callbackextension creates an outbound registration with the callbackextension as the Contact address, matching an incoming request by that (in addition to the host/port) makes a lot of sense. This patch also adds support for callbackextension to realtime by querying all peers with callbackextensions on reload and adding registrations for them. (closes issue ASTERISK-13456) Review: https://reviewboard.asterisk.org/r/344/ Review: https://reviewboard.asterisk.org/r/1717/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@354458 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'contrib/realtime/postgresql')
-rw-r--r--contrib/realtime/postgresql/realtime.sql3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/realtime/postgresql/realtime.sql b/contrib/realtime/postgresql/realtime.sql
index d6619061e..abcadd2fd 100644
--- a/contrib/realtime/postgresql/realtime.sql
+++ b/contrib/realtime/postgresql/realtime.sql
@@ -71,7 +71,8 @@ lastms integer DEFAULT 0 NOT NULL,
defaultuser character varying(80),
fullcontact character varying(80),
regserver character varying(30),
-useragent character varying(40)
+useragent character varying(40),
+callbackextension character varying(40)
);
drop table voicemail_users;