[asterisk-users] Dynamic hint from db?

Roland asterisk at rolandow.com
Tue Mar 27 06:25:43 CDT 2012

I would like to fetch my extensions from the database. I created a dynamic
hint, but doesn't seem to work. The BLF on my phone doesn't change when the
state of the extension changed.

This is in my dialplan:

exten => _ZXX!,hint,${SIP_BYEXT(${EXTEN},${CONTEXT})}
exten => _ZXX!,1,Verbose(3, Search extension ${EXTEN} in context ${CONTEXT})
  same => n,Set(SIP=${SIP_BYEXT(${EXTEN},${CONTEXT})})
  same => n,GotoIf(${SIP}?:notFound)
  same => n,SIPAddHeader(Alert-Info: internal)
  same => n,Dial(${SIP})
  same => n(notFound),Playback(you-dialed-wrong-number)
  same => n,Hangup

Is something like this possible?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120327/6f51a68a/attachment.htm>

More information about the asterisk-users mailing list