[asterisk-users] sip.conf register in realtime DB

Carlos Chavez cursor at telecomabmex.com
Fri Aug 6 11:45:35 CDT 2010


	You cannot use realtime static and the other realtime tables at the
same time.  You will need to use realtime and then use something like
the EXEC command in sip.conf to execute a script that then pulls the
register statement from your database.  Or use the realtime static table
for everything.

On Fri, 2010-08-06 at 10:57 +0200, Jonas Kellens wrote:
> Please can anyone help me with this ?!
> 
> I have tried renaming the sip.conf file, or tried including another
> file into sip.conf like sippy.conf and then add sippy.conf =>
> mysql,AsteriskDB,ast_config to extconfig.conf but all this is not
> working.
> 
> The only thing that changes something is my example listed below, but
> then I always have that nasty WARNING which I find odd.
> 
> I need realtime sip registrations (so without having to do a sip
> reload).
> 
> 
> 
> 
> Kind regards,
> 
> Jonas.
> 
> 
> On 08/03/2010 10:13 AM, Jonas Kellens wrote: 
> > Hello list,
> > 
> > scrambling different pieces of info together I've come with the
> > following :
> > 
> > I want to have my "register =>" statements in a MySQL-database, so
> > I've made the following table.
> > 
> > table ast_config :
> > id  1
> > cat_metric  0
> > var_metric  0
> > commented  0
> > filename  sip.conf
> > category  general
> > var_name  register
> > var_val  username:password at sip.provider.net
> > 
> > 
> > In ext_config (text file) I have :
> > 
> > sipusers => mysql,AsteriskDB,sip_buddies
> > sippeers => mysql,AsteriskDB,sip_buddies
> > sip.conf => mysql,AsteriskDB,ast_config
> > 
> > In sip.conf (text file) I have also :
> > 
> > sip.conf :
> > rtcachefriends=yes             ; Cache realtime friends by adding
> > them to the internal list
> >                                 ; just like friends added from the
> > config file only on a
> >                                 ; as-needed basis? (yes|no)
> > 
> > 
> > After a reload I noticed that the registration came through when I
> > executed "sip show registrations". This realtime works.
> > But I then get a lot of the following messages :
> > 
> > [Aug  2 20:05:05] WARNING[29850]: chan_sip.c:18187 build_peer:
> > Qualify is incompatible with dynamic uncached realtime.  Please
> > either turn rtcachefriends on or turn qualify off on peer 'user2'
> > [Aug  2 20:05:05] WARNING[29850]: chan_sip.c:18187 build_peer:
> > Qualify is incompatible with dynamic uncached realtime.  Please
> > either turn rtcachefriends on or turn qualify off on peer 'user2'
> > 
> > 
> > rtcachefriends is turned on (see above)
> > qualify is on on every peer (and I want it to stay that way)
> > 
> > 
> > 
> > Can anyone tell me what I need to configure to get a 100% working
> > example ?!
> > 
> > 
> > 
> > Kind regards,
> > 
> > Jonas.
> -- 
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>                http://www.asterisk.org/hello
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users

-- 
Telecomunicaciones Abiertas de México S.A. de C.V.
Carlos Chávez Prats
Director de Tecnología
+52-55-91169161 ext 2001
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20100806/30229605/attachment.pgp 


More information about the asterisk-users mailing list