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

How to disable auto update in FREEPBX
Custom solution to call telehones from within broswers (webRTC <-> telephony link) [closed]
A2billing Readout Balance
How to write VoiceMail dialplans in asterisk
Problems with string pattern matching
asterisk hangup call when hold
Cant place outgoing call en E1
Dial via SIP -> IAX2
asterisk send event to a web app when the phone ring
how to add one SIP Extension by command line in Asterisk
Is there a way to get the ${DEVICE_STATE(SIP/${EXTEN})} output on asterisk AMI before making originate call
How to hang up the calls before calling AGI script?
Mixmonitor command is not working in asterisk dialplan
Asterisk and A2billing
Can I match in a context and then include other contexts in an asterisk dialplan?
Asterisk cannot hear sound on Wifi network only

Categories

HOME
spring-boot
kendo-ui-angular2
cluster-analysis
wifi
reference
ebay-api
app-store
mailchimp
css-selectors
psexec
procmon
travis-ci-cli
doctrine2
box-api
ldap-query
filehelpers
oracle10g
rollupjs
emr
arp
ios-autolayout
ibm-bpm
choco
webspeech-api
imageprocessor
mkdir
android-databinding
hippocms
mongoid5
libconfig
observer-pattern
logan-square
emacs24
spring-cloud-bus
serialversionuid
critical-section
trusted-computing
scrollmagic
qt3d
optional-parameters
android-tabs
glade
mavlink
git-push
jspx
virtualenvwrapper
mate-desktop
vitamio
diameter-protocol
django-celery
mrunit
avaudiorecorder
pebble-js
calc
alchemy
hana-sql-script
dynamics-nav
skscene
magnet-uri
transport
first-order-logic
roslyn-code-analysis
nmock
playn
pdcurses
avd
mergecursor
data-quality-services
conkeror
douglas-peucker
random-access
fxmlloader
cocos2d-x-2.x
dotcmis
visual-studio-setup-proje
iwork
mahara
maven-webstart-plugin
android-library
http-compression
windows-scheduler
mysql2
rbm
inflate
netbiscuits
optimistic-concurrency
towerjs
umfpack
digg
xpolog
opendir
windows-xp-embedded
sipdroid
auto-compile
functional-specifications
mass-emails
onunload
p4.net
helios
morfik
rpxnow
j++
tracd

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