[asterisk-dev] Simple new feature

Leif Madsen leif.madsen at asteriskdocs.org
Tue Aug 10 15:16:11 CDT 2010


On 10-08-09 08:39 PM, Steve Edwards wrote:
> Un-top-posting...
>
>
> On Mon, 9 Aug 2010, Gabriel Ortiz Lour wrote:
>
>> OK. Thanks for the comments, I will do the patch against trunk, with
>> the sugested modifications
>
> ) Is there a command to "un-highlight" a matching channel?
>
> ) How about companion dialplan applications so a channel can highlight
> or un-highlight itself. For example:
>
> exten = *,n,execif($["${ANI}" = "5555553867"],highlight-me(red))

If this was going to be implemented, I think a dialplan function would be better.


same => n,ExecIf($["${ANI}" = "4165551337"]?Set(HIGHLIGHT(red)=on):NoOp())


...or


exten => start,1,NoOp()
    same => n,GotoIf($["${ANI}" = "4165551337"]?skip_highlight)
    same => n,Set(HIGHLIGHT(green)=on)
    same => n(skip_highlight),NoOp()
    same => n,...

Or something like that.

Leif Madsen.



More information about the asterisk-dev mailing list