[asterisk-users] How to set Name/username to something like 229/john instead of 229/229

Zeeshan Zakaria zishanov at gmail.com
Tue May 15 05:48:28 MST 2007


Hi,

'sip show peers' display info this way

Name/username              Host            Dyn Nat ACL Port     Status
229/229                    xxx.39.12.58      D   N      63969    OK (26 ms)
228/228                    xxx.39.12.58      D   N      63961    OK (32 ms)

But this makes is difficult to understand which extension belongs to whom,
and I want to set it so I can see it like this:

Name/username              Host            Dyn Nat ACL Port     Status
229/john                    xxx.39.12.58      D   N      63969    OK (26 ms)
228/mike                    xxx.39.12.58      D   N      63961    OK (32 ms)

In case of Grandstream GXP-2000 phones, I've setup in sip.conf extensions
declaration like this:

[229]
username=john
fromuser=229
type=friend
secret=229
host=dynamic
dtmfmode=rfc2833
dial=SIP/229
context=mycontext

And in Grandstream account setting:

SIP User ID: john
Authenticate ID: 229

But it doesn't work and I see the following

Name/username              Host            Dyn Nat ACL Port     Status
229/john                (Unspecified)    D   N      0        UNKNOWN

I've tried to play around with the settings, but no success and the phone
doesn't get registered.

Anybody who has done this before successfully please help.


-- 
Zeeshan A Zakaria
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070515/75896684/attachment.htm


More information about the asterisk-users mailing list