telephony@jonjay.com
2005-Nov-07 00:42 UTC
[Asterisk-Users] What's the purpose of the "username=" line?
After some experimentation and posting, I have concluded that in the file sip.conf, the line: username = irrelevant has no effect whatsoever on SIP registration. Any entry on the right hand side will make no difference, and the line can even be avoided altogether (as the O'Reilly book example does). The only effect of that line that have I found is to be displayed under the output of the host*CLI> sip show peers command. So, what is that line good for? TIA, -Ramon F Herrera
Olle E. Johansson
2005-Nov-07 02:28 UTC
[Asterisk-Users] What's the purpose of the "username=" line?
telephony@jonjay.com wrote:> After some experimentation and posting, I have concluded > that in the file sip.conf, the line: > > username = irrelevant >Please read sip.conf.sample in your distribution for updates on configuration parameters. The username parameter has nothing at all to do with a username for registrations... It should be named "defaultuser" since it is used in combination with "defaultip" to construct an URI to user if we want to call a peer with "host=dynamic" before registration or when registration expired. It is by far the most misunderstood parameter in sip.conf, but also a hint that you should not guess, but read available documentation ;-) /Olle