[asterisk-users] SIP-Realtime and sip reload

2007-12-05 Thread Henrik Buchholz
Hi,

I use SIP-Realtime to store my SIP-users and I keep the informations
about the SIP-Providers my Asterisk registers to in sip.conf.

I'm running into the following problem. If I set rtcachefriends="yes"
because I want to use MWI and run a "sip reload" because I changed
something in sip.conf, Asterisk forgets about all registrations of the
users which are all unavailable after that.

How can I use rtcachefriends="yes" to allow MWI (isn't it needed for
NAT-keepalive as well?) and don't break everything with a sip reload?

thanks for your help

Henrik


___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

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


Re: [asterisk-users] SIP-Realtime and sip reload

2007-12-06 Thread Henrik Buchholz
Am Mittwoch, den 05.12.2007, 17:14 -0600 schrieb JR Richardson:
> > I use SIP-Realtime to store my SIP-users and I keep the informations
> > about the SIP-Providers my Asterisk registers to in sip.conf.
> >
> > I'm running into the following problem. If I set rtcachefriends="yes"
> > because I want to use MWI and run a "sip reload" because I changed
> > something in sip.conf, Asterisk forgets about all registrations of the
> > users which are all unavailable after that.
> >
> > How can I use rtcachefriends="yes" to allow MWI (isn't it needed for
> > NAT-keepalive as well?) and don't break everything with a sip reload?
> 
> The short answer is, this is how it works, don't reload sip.conf or
> loose your cache.
> You can set your phone registration time lower that 3600 so phones
> re-register quicker.

Yes, that was my workaround which might be a solution unless you do a
reload on the busiest time of the day ;-)
Thanks for the clarification.

Henrik


___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

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


Re: [asterisk-users] SIP-Realtime and sip reload

2007-12-07 Thread Henrik Buchholz
Am Donnerstag, den 06.12.2007, 21:06 +0100 schrieb Torbjörn Abrahamsson:

> Our current approach is to use the #exec directive, and call a script which
> creates static friends by reading information from the DB. We still use the
> remote ITSP peers with realtime, as they do not need the OPTIONS. This way
> when we call a reload the users registration is still there, and we have the
> flexibility of using a DB as the user database.
> 

Could you explain that a litte bit to me? I just tried to find something
about #exec, but not very successfully. Is there any documentation?

Do you reload asterisk and generate the sip.conf by reading the users
from a database with a script? And omit the usage of realtime for these
users?

Could you perhaps post/send your configuration/script?

thanks Henrik


___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

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