Mike
2007-Aug-08 12:56 UTC
[asterisk-users] Buddy watch and the hint priority - brain teaser
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
Paul Hales
2007-Aug-09 03:40 UTC
[asterisk-users] Buddy watch and the hint priority - brain teaser
I posted a bug and also asked for Asterisk to allow for patterns in the hints (to remove the need to key a hundred hints in one instance) and got told that it wasn't going to happen. Does devstate help you at all? http://www.voip-info.org/wiki/view/Asterisk+func+Devstate later, PaulH On Wed, 2007-08-08 at 08:56 -0400, Mike wrote:> 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 > > > _______________________________________________ > --Bandwidth and Colocation Provided by http://www.api-digital.com-- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users