[asterisk-users] Phone Inventory

Dale Noll dnoll at wi.rr.com
Thu Feb 23 09:52:01 CST 2012


On 02/23/2012 09:39 AM, Danny Nicholas wrote:
> +1 Dale - p.s. the grep -P '\d\d\d\d' killed the output on my 1.4 box.
> P.P.S if you change grep -P "(Useragent|Contact)" to grep -P
> "(Username|Contact|Username)" it produces a "nice" 4 line report like this:
>    Def. Username: Danny Nicholas
>    Useragent    : PolycomSoundPointIP-SPIP_501-UA/3.1.2.0392
>    Reg. Contact : sip:104 at 192.168.23.114
> =====

Oops.  I forgot that not everyone uses 4+ digit extensions as their 
peers.  (Yes, I am aware of enumeration concerns but my servers do not 
have direct connection to the Internet.)



More information about the asterisk-users mailing list