i mean file extensions.conf
I want to read from the database, I made my settings. But it reads from the file
[internal]
exten => _2000XXXXXX,1,NoOp()
exten => _2000XXXXXX,2,Set(GLOBAL(user)=${PJSIP_HEADER(read,user_id)})
exten => _2000XXXXXX,3,Set(GLOBAL(with)=${PJSIP_HEADER(read,with_id)})
exten => _2000XXXXXX,4,Set(GLOBAL(stanza)=${PJSIP_HEADER(read,stanza_message)})
exten => _2000XXXXXX,5,MixMonitor(/var/www/html/files/VoIP/${user}/${with}/${stanza}.wav,ab)
exten => _2000XXXXXX,6,Dial(PJSIP/${EXTEN},30,ge)
exten => _2000XXXXXX,7,StopMixMonitor()
exten => _2000XXXXXX,8,HangUp()
I have no experience with that, sorry. I will add that the more you tightly couple your Asterisk with a database the more you increase the blast area of issues. If your database has any problem (or is slow) then that can and will cause issues in Asterisk.