Index: channels/chan_sip.c =================================================================== RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v retrieving revision 1.629 diff -u -r1.629 chan_sip.c --- channels/chan_sip.c 12 Jan 2005 15:23:06 -0000 1.629 +++ channels/chan_sip.c 17 Jan 2005 05:59:42 -0000 @@ -8623,6 +8623,14 @@ ast_set_flag(mask, SIP_PROMISCREDIR); ast_set2_flag(flags, ast_true(v->value), SIP_PROMISCREDIR); res = 1; + } else if (!strcasecmp(v->name, "astdb")) { + char *value = ast_strdupa(v->value); + char *family, *key; + family = strsep(&value, "/"); + key = strsep(&value, "="); + if (value) { + ast_db_put(family, key, value); + } } return res; Index: configs/sip.conf.sample =================================================================== RCS file: /usr/cvsroot/asterisk/configs/sip.conf.sample,v retrieving revision 1.54 diff -u -r1.54 sip.conf.sample --- configs/sip.conf.sample 11 Jan 2005 18:39:48 -0000 1.54 +++ configs/sip.conf.sample 17 Jan 2005 06:26:18 -0000 @@ -249,6 +249,7 @@ ;allow=alaw ;allow=g723.1 ; Asterisk only supports g723.1 pass-thru! ;allow=g729 ; Pass-thru only unless g729 license obtained +;astdb=chan2ext/SIP/grandstream1=1234 ; ensures an astDB entry exists ;[xlite1]