[Asterisk-Users] astdb entry in sip.conf

Watkins, Bradley Bradley.Watkins at compuware.com
Thu Jun 1 05:21:41 MST 2006


I've never attempted to use this feature, so I can neither confirm nor
deny whether it works/doesn't work/used to work/etc.

But what I find really odd, is that the code doesn't even appear to try
and parse "astdb" when it's loading the config, at least insofar as I
can tell. A quick grep -i astdb shows only two lines:

#include "asterisk/astdb.h"
                ast_verbose(VERBOSE_PREFIX_3 "SIP Seeding peer from
astdb: '%s' at %s@%s:%d for %d\n",

Neither of which, obviously, is doing what you want it to.  I get the
same result both with the 1.2.8 tarball and svn trunk from this morning.

I would file a bug, I guess.


- Brad

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Julian
Lyndon-Smith
Sent: Thursday, June 01, 2006 5:02 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [Asterisk-Users] astdb entry in sip.conf

Err, I'm not trying to write to the db using the dialplan. In sip.conf
there seems to be the ability to automatically create a db entry on
startup. The line in sip.conf is

astdb=chan2ext/SIP/grandstream1=1234	; ensures an astDB entry exists

But it doesn't ensure an astDB entry exists :)

Julian.

turby wrote:
> use DBput a DBget  
> (http://www.voip-info.org/wiki/view/Asterisk+database)
> 
> astdb=chan2ext/SIP/grandstream1=1234 is only variable
> 
> turby
> 
> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com
> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Julian 
> Lyndon-Smith
> Sent: Thursday, June 01, 2006 9:39 AM
> To: asterisk-users at lists.digium.com
> Subject: [Asterisk-Users] astdb entry in sip.conf
> 
> Using svn trunk, I was trying to see what the astdb entry in the 
> sip.conf file does.
> 
> Nothing :)
> 
> I presume that it's meant to create an entry in the astdb.
> 
> so, I have
> 
> astdb=chan2ext/SIP/grandstream1=1234
> 
> in sip.conf
> 
> But database show only gives
> 
> *CLI> database show
> /SIP/Registry/706                                 : 
> 192.168.0.200:5060:3600:706:sip:706 at 192.168.0.200:5060
> /SIP/Registry/731                                 : 
> 192.168.6.156:5060:3600:731:sip:731 at 192.168.6.156:5060
> /dundi/secret                                     : 
> RpC4PXLxxxxxxxxxxxxxxxxxtslY5OZOza7OSws60yzaA
> /dundi/secretexpiry                               : 1149149129
> 
> Do I need to have anything else configured or should I report this as 
> a bug ?
> 
> 
> Julian
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
> 
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
> 
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
> 
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
> 
> 

_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it. 



More information about the asterisk-users mailing list