Solved

Asterisk - Static Realtime vs. Realtime

Posted on 2010-08-20
5
960 Views
Last Modified: 2013-12-21
Hello All,

  I am running Asterisk 1.6.2.x and am trying to weigh the benefits etc of static realtime config vs. realtime.

  I have read that extensions are generally better off in static realtime.  Any thoughts on this?

  How about sip, queues, voicemail, etc etc?  

  I will eventually have a few asterisk servers sharing a central mysql db..

  The feedback I received in the IRC #asterisk was pretty much static realtime for everything, but I am not convinced.

  Thoughts? Debate??  Thanks ahead of time for the feedback!
0
Comment
Question by:jkockler
  • 2
  • 2
5 Comments
 
LVL 36

Accepted Solution

by:
grblades earned 500 total points
Comment Utility
It really depends on what you want to do.
Using static realtime the configuration is loaded when the asterisk module loads. If you change anything then you need to reload the module in order to see the changes. Its not much different to using flat files except that you can have a single database for all boxes which hold common configuration.

Anything that you want to change and have it made active immediatly you will want in normal realtime. Adding new users for example you probably want to take effect straight away so you dont want to use static realtime and then reload the sip config on each asterisk box.
Voicemail is a special case as asterisk normally modifies the file itself to change pin codes etc... and so this is something you really always want in normal realtime.

0
 
LVL 4

Author Comment

by:jkockler
Comment Utility
Great stuff.  

So when you say "normal realtime" , are you referring to static or no static?  I think they should have come up with a different name for non static realtime, like "live realtime" or something.

Is there anything other than extensions that simply has problems, or slows down the system when using realtime, as opposed to static realtime?  

Lastly, referring to func_odbc, will it have a problem working with either realtime method for extensions?  I have not really dove in on func_odbc yet, but from what I am reading it is a very powerful tool.
0
 
LVL 36

Assisted Solution

by:grblades
grblades earned 500 total points
Comment Utility
By 'normal realtime' I am referring to non static.
Other than voicemail there is nothing that works better with static or non static realtime. It depends what you want to do whether you should use static or non static.

For things which dont change very much use static. When you make a change you will need to log into each asterisk box and issue a reload command,

For things which may change often for example if you allow end users to change the passwords on their sip accounts you will need to use non static realtime so the change happens straight away.

If you are using any non static realtime then make sure the database connection is reliable. With static realtime if the database fails then asterisk carries on working normally with the copy of the data it already has but if you use non static then the database connection will fail and your asterisk system will stop working properly.

I havent used func_odbc. I normally use the straight func_mysql for the database backend.
0
 
LVL 32

Expert Comment

by:DrDamnit
Comment Utility
The only reason I would ever use realtime configs is in a clustering situation. :-)
0
 
LVL 4

Author Comment

by:jkockler
Comment Utility
Grblades, thanks for the in depth analysis.

DrDamnit - You know it... I am battling through on my own.. lol .. I have opensips up and running too, but not so sure I really need it yet.  However I at least want to try it for the sake of experience.

0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

So you think no one can listen in on your VOIP conversations, eh? Well... if you haven't setup Secure Real Time Transport (SRTP), your voice communications can be hacked into by just about anyone! First, let's talk about the intended audience for…
I recently purchased a Bluetooth headset called the Music Jogger (model BSH10). The control buttons on it look like this: One of my goals is to use it as the microphone and speakers for Skype calls. In that respect, it works well. However, I …
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now