Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] sip show peers


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
geisj at pagestation.com
Guest





PostPosted: Fri May 02, 2008 9:51 am    Post subject: [asterisk-users] sip show peers Reply with quote

When doing a "sip show peers" I might see something like:
Name/username Host Dyn Nat ACL Port
Status
devcentos5x64_to_mmfirepa 192.168.1.177 5060
Unmonitored
devcentos5x64_to_bt610tMM 192.168.1.159 5060
Unmonitored
devcentos5x64_to_am2mm/de 192.168.1.178 5060
Unmonitored

Where the Name/username is truncated.

Is there a method to display this information and to NOT have that
truncated?

Jerry
Back to top
oej at edvina.net
Guest





PostPosted: Fri May 02, 2008 10:32 am    Post subject: [asterisk-users] sip show peers Reply with quote

2 maj 2008 kl. 16.51 skrev Jerry Geis:

Quote:
When doing a "sip show peers" I might see something like:
Name/username Host Dyn Nat ACL Port
Status
devcentos5x64_to_mmfirepa 192.168.1.177 5060
Unmonitored
devcentos5x64_to_bt610tMM 192.168.1.159 5060
Unmonitored
devcentos5x64_to_am2mm/de 192.168.1.178 5060
Unmonitored

Where the Name/username is truncated.

Is there a method to display this information and to NOT have that
truncated?

The manager interface is an excellent source, or "sip show peer xxxx"

I don't think you use the "username" so in most cases it's not
important. We should propably remove it
from "sip show peers" not to confuse people. It did really confuse me
when I started to use Asterisk
many years ago.

Regards,
/Olle
Back to top
philipp.kempgen at amo...
Guest





PostPosted: Fri May 02, 2008 12:35 pm    Post subject: [asterisk-users] sip show peers Reply with quote

Jerry Geis schrieb:
Quote:
Quote:

Quote:
/ When doing a "sip show peers" I might see something like:
/>/ Name/username Host Dyn Nat ACL Port
/>/ Status
/>/ devcentos5x64_to_mmfirepa 192.168.1.177 5060
/>/ Unmonitored
/>/ devcentos5x64_to_bt610tMM 192.168.1.159 5060
/>/ Unmonitored
/>/ devcentos5x64_to_am2mm/de 192.168.1.178 5060
/>/ Unmonitored
/>/
/>/ Where the Name/username is truncated.
/>/
/>/ Is there a method to display this information and to NOT have that
/>/ truncated?
/
The manager interface is an excellent source, or "sip show peer xxxx"

I don't think you use the "username" so in most cases it's not
important. We should propably remove it
from "sip show peers" not to confuse people. It did really confuse me
when I started to use Asterisk
many years ago.
Olle,

I am using the first field to "lookup" information about my client
asterisk connections.
Problem is the FULL name is not given. I am using it to look up IP
address of the client.
So I need the FULL name in the first column and the IP address of course.

Is there another way to get it? Is there a way not to truncate the
name/username?

Yeah, sometimes it would be helpful if asterisk -rx 'command' didn't
pretty print but instead fall back to an easily parseable output
format (like TSV with cslashes) if stdout isn't connected to a tty
(isatty()).

Regards,
Philipp Kempgen

--
amooma GmbH - Bachstr. 126 - 56566 Neuwied - http://www.amooma.de
Let's use IT to solve problems and not to create new ones.
Asterisk? -> http://www.das-asterisk-buch.de

Gesch?ftsf?hrer: Stefan Wintermeyer
Handelsregister: Neuwied B 14998
Back to top
tilghman at mail.jeffa...
Guest





PostPosted: Fri May 02, 2008 2:31 pm    Post subject: [asterisk-users] sip show peers Reply with quote

On Friday 02 May 2008 12:35:48 Philipp Kempgen wrote:
Quote:
Yeah, sometimes it would be helpful if asterisk -rx 'command' didn't
pretty print but instead fall back to an easily parseable output
format (like TSV with cslashes) if stdout isn't connected to a tty
(isatty()).

The CLI is intended to be used by a human. If you want machine parseable
output, I would suggest using AMI, as that's what it's meant for.

--
Tilghman
Back to top
enunez at netoneint.com
Guest





PostPosted: Fri May 02, 2008 2:50 pm    Post subject: [asterisk-users] sip show peers Reply with quote

Anyone has any good ideas on how to parse the CDR events and QUEUEs log
events from AMI connection?

Thank you

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Tilghman
Lesher
Sent: Friday, May 02, 2008 3:31 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] sip show peers

On Friday 02 May 2008 12:35:48 Philipp Kempgen wrote:
Quote:
Yeah, sometimes it would be helpful if asterisk -rx 'command' didn't
pretty print but instead fall back to an easily parseable output
format (like TSV with cslashes) if stdout isn't connected to a tty
(isatty()).

The CLI is intended to be used by a human. If you want machine parseable
output, I would suggest using AMI, as that's what it's meant for.

--
Tilghman

_______________________________________________
-- 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
Back to top
tilghman at mail.jeffa...
Guest





PostPosted: Fri May 02, 2008 3:06 pm    Post subject: [asterisk-users] sip show peers Reply with quote

On Friday 02 May 2008 14:50:38 Ed Nunez wrote:
Quote:
Anyone has any good ideas on how to parse the CDR events and QUEUEs log
events from AMI connection?

There is a cdr_manager module, for generating CDRs directly to AMI. Queue
events are also sent, as a matter of course.

--
Tilghman
Back to top
oej at edvina.net
Guest





PostPosted: Fri May 02, 2008 3:12 pm    Post subject: [asterisk-users] sip show peers Reply with quote

2 maj 2008 kl. 21.31 skrev Tilghman Lesher:

Quote:
On Friday 02 May 2008 12:35:48 Philipp Kempgen wrote:
Quote:
Yeah, sometimes it would be helpful if asterisk -rx 'command' didn't
pretty print but instead fall back to an easily parseable output
format (like TSV with cslashes) if stdout isn't connected to a tty
(isatty()).

The CLI is intended to be used by a human. If you want machine
parseable
output, I would suggest using AMI, as that's what it's meant for.

To clarify: We made a decision about this earlier this year and
deprecated
all the CLI commands made for parsing ("concise"), to be able to focus
on the CLI
for humans and AMI for applications.

Now, when you can reach AMI both over TCP and over HTTP/TCP and HTTP/TLS
we have many alternatives.

All CLI commands will somehow be adjusted for display on a terminal.

/O
Back to top
martins at bebr.ufl.edu
Guest





PostPosted: Fri May 02, 2008 3:16 pm    Post subject: [asterisk-users] sip show peers Reply with quote

You'll also find a ton of libraries that know how to do parsing from the
AMI -- see http://www.voip-info.org/wiki/view/Asterisk+manager+API.

Under "see also," you'll find links to Java and PHP libraries. There's
also many examples at
http://www.voip-info.org/wiki/view/Asterisk+manager+Examples.

Martin Smith, Systems Developer
martins at bebr.ufl.edu
Bureau of Economic and Business Research
University of Florida
(352) 392-0171 Ext. 221



Quote:
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Ed Nunez
Sent: Friday, May 02, 2008 3:51 PM
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Subject: Re: [asterisk-users] sip show peers

Anyone has any good ideas on how to parse the CDR events and
QUEUEs log
events from AMI connection?

Thank you



-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Tilghman
Lesher
Sent: Friday, May 02, 2008 3:31 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] sip show peers

On Friday 02 May 2008 12:35:48 Philipp Kempgen wrote:
Quote:
Yeah, sometimes it would be helpful if asterisk -rx 'command' didn't
pretty print but instead fall back to an easily parseable output
format (like TSV with cslashes) if stdout isn't connected to a tty
(isatty()).

The CLI is intended to be used by a human. If you want
machine parseable
output, I would suggest using AMI, as that's what it's meant for.

--
Tilghman

_______________________________________________
-- 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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services