[asterisk-users] Buddy watch and the hint priority - brain teaser
Mike
list at virtutel.ca
Wed Aug 8 07:56:08 CDT 2007
Apologies if this is a resend, but I've sent this 12 hours ago and still
can't see it on the list.
Hi,
I've just started to setup my phones with Buddy watch. Basically, it all
works fine when using the simple example on the wiki:
exten => 123,hint, SIP/some_sip_reg
exten => 123,1,SIP/some_sip_reg
BUT, what I need to do is dynamically decide where the hint checks for buddy
status, because I am using patterns in this context.
In other words, I need to find out the values of ${some_sip_reg} before the
using the hint priority. Ideally, something sort of like this:
exten => _XXX,hint,Set(hint_reg=${EXTEN}-reg}
exten => _XXX,hint,SIP/${hint_reg}
exten => _XXX,SIP/${EXTEN}-reg}
Or, even easier (if it can even be done) is write a function:
exten => _XXX,hint,SIP/ReturnCorrectRegistration()
What's the best way to approach my problem?
Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070808/cef3c53a/attachment.htm
More information about the asterisk-users
mailing list