[Home]

Summary:ASTERISK-12600: [patch] Column width with cli command sip/iax2 show registry
Reporter:Jesper (ib2)Labels:
Date Opened:2008-08-16 14:37:58Date Closed:2009-07-20 11:15:41
Priority:TrivialRegression?No
Status:Closed/CompleteComponents:Channels/chan_iax2
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) bug13326_1.4_20080822.diff
( 1) bug13326_20080819.patch
( 2) bug13326_trunk_20080822.diff
Description:I'm trying monitor iax registries using the command:
#asterisk -r -x "iax2 show registry"
Host                  dnsmgr  Username    Perceived             Refresh  State
129.129.129.129:4569  N       ABCDEFGHIJ  213.213.213.213:4569       60  Registered
129.129.129.129:4569  N       1234567890  213.213.213.213:4569       60  Registered

But the column width of the Username is too small.
Most of my Usernames are 22 characters, where the 10 first characters could be equal.

****** ADDITIONAL INFORMATION ******

It seems that sip registries have the same problem:
#asterisk -r -x "sip show registry"
Host                            Username       Refresh State
voice-gw.net.dk:5060            ABCDEFGHIJKL       105 Registered
connectionserver.voipbuster.co  123456789012       105 Registered

I have tried using the Asterisk Call Manager for the query, but it is all the same !
Is there an other way of showing the registry state?
How do I query the registry status with full Usernames ?

Asterisk SVN-branch-1.4-r138360
Revision: 138471
Last Changed Rev: 138360
CentOS release 5.2 on i686 SMP
Comments:By: snuffy (snuffy) 2008-08-16 16:59:14

Does the same problem happen when using the 'asterisk manager interface' as well ?


By: Jesper (ib2) 2008-08-17 01:40:43

Yes. Same problem using the Asterisk Call Manager for the query.
# cat clicommand.txt | nc localhost 5038
Asterisk Call Manager/1.0
Response: Success
Message: Authentication accepted

Response: Follows
Privilege: Command
Host                  dnsmgr  Username    Perceived             Refresh  State
129.129.129.129:4569  N       ABCDEFGHIJ  213.213.213.213:4569       60  Registered
129.129.129.129:4569  N       1234567890  213.213.213.213:4569       60  Registered
--END COMMAND--

Response: Goodbye
Message: Thanks for all the fish.

By: snuffy (snuffy) 2008-08-17 18:14:30

Try the attached patch
I've changed the width of the command output to 20 chars for username (sip/iax registry)



By: Jesper (ib2) 2008-08-19 14:31:32

The supplied patch didn't work on SVN-branch-1.4-r138886M.
I followed your pattern and made the changes manually.
bug13326_20080819.patch attached
It seems to work as expected, but I will do some more testing the following days.

By: snuffy (snuffy) 2008-08-19 21:14:53

ib2.. I have come up with a better solution
There is already a AMI version of the registry for SIP command (SIPshowregistry)
I will work on creating one for IAX rather than just changing the cli version.

By: snuffy (snuffy) 2008-08-20 08:32:35

I've uploaded a patch for new manager command called 'IAXshowregistry' which should work for you, please test that the above 'SIPshowregistry' works as well (rather than a cli command) these should both show the whole name of the user without issues

By: Jesper (ib2) 2008-08-20 13:53:02

I think you are right. The AMI commands 'IAXshowregistry' and 'SIPshowregistry' are much better than the cli command modification. The problem is now that 'SIPshowregistry' is not in the branch-1.4 and the 'IAXshowregistry' patch does not work in the branch-1.4. Can you assist me here ?

By: snuffy (snuffy) 2008-08-22 08:50:31

I have added a version that should patch against 1.4 for you, but realise that this patch will never be included in 1.4 because it is a new feature.

This command would appear in trunk and 1.6.2 when it is released.

By: Digium Subversion (svnbot) 2008-10-16 19:07:31

Repository: asterisk
Revision: 150311

U   trunk/CHANGES
U   trunk/channels/chan_iax2.c
U   trunk/doc/manager_1_1.txt

------------------------------------------------------------------------
r150311 | mmichelson | 2008-10-16 19:07:31 -0500 (Thu, 16 Oct 2008) | 9 lines

Add an IAXregistry manager command. See doc/manager_1_1.txt
for more details of this command.

(closes issue ASTERISK-12600)
Reported by: ib2
Patches:
     bug13326_trunk_20080822.diff uploaded by snuffy (license 35)


------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=150311

By: Jesper (ib2) 2009-07-16 03:16:01

The AMI command 'SIPshowregistry' are working in ast 1.6,
but can't find any trace of the AMI command 'IAXshowregistry' in ast 1.6.2 channels/chan_iax2.c
Message: Invalid/unknown command: IAXshowregistry

By: Russell Bryant (russell) 2009-07-20 11:15:41

The command is "IAXregistry".