asterisk


Why is dynamic real time not recommended as per asterisk?


In extconfig.conf they have mentioned that
"However, note that using dynamic realtime extensions is not recommended anymore as a best practice; instead, you should consider writing a static dialplan with proper data abstraction via a tool like func_odbc."
1) Why asterisk is not recommending dynamic realtime extensions?
2) How to do static dialplan with data abstraction using tool liek func_odbc?
My requirement is having have more extensions (in this case mobile number) coming up, how can I dynamically add them to sip.conf and get it registered to the SIP server
There are some issues with dynamic realtime
Most important issue is dialplan.
When/if you use EXACT dialplan like full number match - it work ok. But when you use pattern, it search for pattern in context. To do that it request all records in this context from db EVERY time when you access dialplan. That is really bad, but no easy way fix it. For example you have dialplan of 10 lines for pattern _011. and enother patterns/numbers in same dialplan, overal number of lines 1000. You call 011123456788, it request priority 1 line(db do 1000 rows check), after that priority 2(db do 1000 rows check). So you got 10x1000=10000 db rows for EVERY new call.
If you want dynamic dialplan with hi-load, use db config storage (for dialplan change,reload it for example once every 10 minutes) and check in extension/dialplan for features using func_odbc. That way you have much more control over sql query. Sure that require you understand mysql and able build queries, but no other way for any dynamic pbx with more then 10-20 calls.
sippeers realtime is other thing. It have issues with db update with enabled peer update, or not update peer info if cache enabled. You just have live with that.

Related Links

Can not configure adhearsion with asterisk
Asterisk WAN Issues
Unable to establish two way Asterisk call
Asterisk GotoIf comparison variable exists in Array
Call Limit (call-limit) in Asterisk 13 with PJSIP
Asterisk call recording not showing any logs and file
Asterisk 13.7 GROUP_COUNT always returns 1
How to write asterisk application
how to write application to freepbx
Asterisk: format of the lines logged
asterisk PAMI Originate Call issue
Route a provider's numbers to specific extensions
Merging multiple RTP using asterisk for conferences
Send Multiple Invites with sipsak
Response “488 Not Acceptable here” in Asterisk
ARI - wscat getting error: Error: connect ECONNREFUSED

Categories

HOME
repository
mobile
formatting
okhttp3
css-selectors
uml-designer
swap
procmon
install
promotions
wkhtmltopdf
point-of-sale
dat.gui
jsfiddle
google-street-view
ng-tags-input
connection-pooling
angular2-changedetection
proof-general
scripting-language
spock
azure-table-storage
language-detection
directions
rtos
ilog
restler
fastadapter
http-proxy
javafxports
dotnetnuke-module
jslider
compiled-query
collation
directadmin
compiler-warnings
irr
angular-fullstack
jenkins-2
infovis
opos
appcmd
playframework-2.3
photoshop-script
node.js-client
wicketstuff
settext
class-design
boost-range
django-celery
user-profile
std
markerspiderfier
opendolphin
kramdown
mojolicious
database-project
php-gd
self-join
musicbrainz
vectordrawable
fiware-health
method-overloading
unityvs
os.walk
register-allocation
parallel-port
banana-pi
farpoint-spread
nativequery
grunt-wiredep
grunt-contrib-imagemin
backbone-views
coinbase-php
brew
nserror
isgl3d
auto-compile
functional-specifications
hwnd
cryptolicensing
quazip
dongle
for-xml
data-formats

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App