[asterisk-users] asterisk hints

Tilghman Lesher tilghman at meg.abyt.es
Thu Apr 7 12:32:06 CDT 2011


On Wednesday 06 April 2011 10:09:07 satish patel wrote:
> I used following hint dialplan and i ran show hints but its showing only
> one extension what about other 200 phones status ?
> 
> 
> exten => _7[456]XX,hint,SIP/${EXTEN}
> exten => _7[456]XX,1,Macro(stdexten,${EXTEN},sip/${EXTEN})
> 
> shirley*CLI> core show hints
> 
>     -= Registered Asterisk Dial Plan Hints =-
>               _7[456]XX at ora-cam-extensions  : SIP/${EXTEN}         
> State:Idle            Watchers  0 ----------------
> - 1 hints registered

It's actually just showing the pattern, which is not any.  In order for the
pattern to generate individual items, something must query an individual
hint state.  The usual method of doing this would be for a SIP phone to
subscribe to that extension state, but you can also use EXTENSION_STATE
in the dialplan to query individual extensions.

Just note that if you query an extension that comes back with an invalid
devicename, you've still queried that extension, so the Invalid state will
be preserved in your hint list.  The pattern match is intended to be a
shortcut for configuring a lot of phones (and allowing new ones to be
populated on the fly), not a shortcut for making a pretty list for the
command line.

-- 
Tilghman



More information about the asterisk-users mailing list