[asterisk-users] The most efficient way to know SIP phones IP addresses ?

Olivier oza-4h07 at myamail.com
Mon Mar 31 04:56:27 CDT 2008


2008/3/31, Simon Elliston Ball <simon at simonellistonball.com>:
>
> You could try:
>
> asterisk -rx "database get SIP/Registry 101" | cut -f 2 -d ':'
>
> Which is not much shorter, but probably more efficient


That's fine !
Too bad one cannot  input more specific database queries such as "database
get SIP/Registry/Addr->IP 101".

Simon Elliston Ball
> simon at simonellistonball.com
> http://www.simonellistonball.com/
>
>
>
>
>
> On 31 Mar 2008, at 10:02, Olivier wrote:
> > Hi,
> >
> > Sometimes, you need to send requests to SIP phones either from Linux
> > command line or from Asterisk dialplan.
> > Which is the most efficient way to know a SIP phone IP address ?
> >
> > Today, I think I would use :
> > asterisk -rx "sip show peer 692" | grep "Addr->IP" | awk '{print $3}'
> >
> > I'm wondering if anything more concise and efficient exists ?
> >
> > Regards
>
> > _______________________________________________
> > -- 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
>
>
> _______________________________________________
> -- 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080331/32213f11/attachment.htm 


More information about the asterisk-users mailing list