Func_ODbc Exten=> sql query

is it possible that use exten like this
exten=> (“Func_odbc(where i have select”),1,Dial
i tried some of them but i have errors
bassicly i want to asterisk asked db Route where to go

No. The extension and priority are parsed at configuration time and cannot be parametrised Doing so would make run time processing of dialplan very slow.

ok but withour that function i will usee Realtime 1 but there _X. << this don’t works i have posted question about that too mby you know the answear of it

id  context     exten   priority  app   appdata
25  from_all    _270.   1         Dial  SIP/${EXTEN:0}@XX

this is extentions table in my database but it not workig :confused: i don’t know why

This is how I have extensions but it isn’t working when I am calling 27070 it is not calling and saying that

27070’ rejected because extension not found in context ‘from_all’.

That should work, If you do a ‘dialplan show from_all’ do you see the extensions you have added to the database?

Have you done a realtime switch in your from_all context?

[ Context 'from_all ’ created by ‘pbx_config’ ]
Alt. Switch => ‘Realtime/from_all @extensions’ [pbx_config]

-= 0 extensions (0 priorities) in 1 context. =-
i have this … if i type in database 27070 instead of _270. it is working perfectly but i need make prefixes not all numbers