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?
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users