[Asterisk-Users] auto load SIP peers on startup

Moises Silva moises.silva at gmail.com
Tue Jan 17 12:21:34 MST 2006


i cannot take any responsability if your computer explodes or
something, but im attaching you a patch that you may want to give a
try.

regards

On 1/17/06, Reto Kortas <retokortas at gmx.de> wrote:
>
>
> In extconfig.conf I have:
>
> voicemail => odbc,asterisk,voicemail_users
> sipusers => odbc,asterisk,sip_users
> sippeers => odbc,asterisk,sip_users
>
> Asterisk version is 1.2.1
>
> When asterisks starts, I don't saw any SQL queries in my mysql log.
> First, when a user calls his own mailbox, I saw a sql querie and the sip
> peer is created from db.
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: asterisk-users-bounces at lists.digium.com
> [mailto:asterisk-users-bounces at lists.digium.com] Im Auftrag von Moises Silva
> Gesendet: Dienstag, 17. Januar 2006 17:39
> An: Asterisk Users Mailing List - Non-Commercial Discussion
> Betreff: Re: [Asterisk-Users] auto load SIP peers on startup
>
> hum. I tought that as long as you have a "real time engine"  in
> extconfig.conf the peers should be loaded at start up. What do you have in
> your extconfig.conf?
>
> Regards
>
> On 1/17/06, Reto Kortas <retokortas at gmx.de> wrote:
> > Hi all,
> >
> > we use OpenSER together with Asterisk.
> > All SIP users registers with OpenSER and asterisk is doing the
> > voicemail thing.
> >
> > We use the Asterisk RealtimeArchitecture for voicemail users and SIP
> peers.
> > The database table for the sip peers is a view from the OpenSER
> > subscriber table.
> >
> > The MWI for a user will only work, if the user object (sip peer) is
> > loaded into memory and visible with the CLI command "sip show peers".
> > This happens, for example, if the user call his own mailbox for checking
> voicemail.
> >
> > Is their a possibility to load all peers from database on asterisk
> > startup so that the users will get their NOTIFY without calling their
> > own mailbox first?
> >
> > Another question for me is, how long a SIP peer object will stay in
> > memory without being used? Is their a kind of "garbage collector" for
> > old, unused peer objects?
> >
> > Thx Reto
> >
> >
> >
> > _______________________________________________
> > --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
> >
>
>
> --
> "Su nombre es GNU/Linux, no solamente Linux, mas info en http://www.gnu.org"
> _______________________________________________
> --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
>


--
"Su nombre es GNU/Linux, no solamente Linux, mas info en http://www.gnu.org"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: asterisk-1.2.1-sip-autoload.patch
Type: application/octet-stream
Size: 981 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20060117/91426955/asterisk-1.2.1-sip-autoload.obj


More information about the asterisk-users mailing list