Summary:ASTERISK-10971: Long usernames doesn't appear in manager or CLI
Reporter:Marcos Jose Setim (msetim)Labels:
Date Opened:2007-12-04 09:36:08.000-0600Date Closed:2007-12-04 15:20:51.000-0600
Versions:Frequency of
Environment:Attachments:( 0) chan_sip.c.patch
( 1) sip_show_lengths.diff
Description:Hi guys,

I've registered a new sip account and sip registry account when I found some issues that I will explain below.

First. My username have many chars like it:



localhost*CLI> sip show user 123456789123456789123456789123
* Name       : 123456789123456789123456789123

Second. When I run:

1. sip show registry
2. sip show users
3. action=command&command=sip show registry ( by manager )

Then, the username is trunked.

Thirty. Why this is bad?

Because I have an application using this commands and it need the full data :)

Thanks in advance
Comments:By: Eliel Sardanons (eliel) 2007-12-04 09:40:26.000-0600

I think the solution of this should be to add a manager action: SIPShowRegistry to make a verbose output and don't truncate the names.

By: Caio Begotti (caio1982) 2007-12-04 09:40:33.000-0600

I've talked to msetim on IRC and it seems this changes attached did the issue vanish in my box. This patch is trunk and chan_sip only.

By: Tilghman Lesher (tilghman) 2007-12-04 09:55:48.000-0600

eliel is correct.  The correct solution here is to add a native Manager command.

By: Tilghman Lesher (tilghman) 2007-12-04 10:12:02.000-0600

Finally, this is a feature request.  If we don't get a candidate patch in the next few days, this will be suspended.

By: Caio Begotti (caio1982) 2007-12-04 11:50:34.000-0600

I still believe it's unwise to show half information on CLI but if that's a design decision as discussed on IRC I drop it. I'm not interested on it as a feature request, I just fixed it on my own environment.

By: Eliel Sardanons (eliel) 2007-12-04 13:31:49.000-0600

Try this manager action... and let me know if it solves your problem.

By: Daniel Kühl Lima (dklima) 2007-12-04 13:53:37.000-0600

Tomorrow I'll be testing and posting the results.


By: Digium Subversion (svnbot) 2007-12-04 15:20:46.000-0600

Repository: asterisk
Revision: 90991

U   trunk/CHANGES
U   trunk/channels/chan_sip.c

r90991 | qwell | 2007-12-04 15:20:45 -0600 (Tue, 04 Dec 2007) | 4 lines

Add manager action 'sipshowregistry'.

Closes issue ASTERISK-10971, patch by eliel.