Use the extension, and use grep to determine which account uses which phone. For example I provision my spa9xx phones from a subdirectory on apache called spa which on slackware is at: /var/www/htdocs/spa/ doing: grep 123 /var/www/htdocs/spa/* will tell you which phone it is.
On 9/18/07, Erik Anderson <[EMAIL PROTECTED]> wrote: > All - I've been wrestling with how to best structure the sip device > accounts on a new asterisk server I'm deploying. All of the sip > devices (currently only Linksys SPA941s) will reside on the same > subnet as the server, and I have already set up a decent automatic > provisioning system for the phones. When the rollout is complete, > there will be about 100 SIP devices authenticating and routing calls > through this server. The question is what to use for the username > portion of the SIP account. > > Part of me says that I should standardize on using each phone's MAC > address as the sip account UID, like so: > > ; Joe Smith, x123 > [000E08DA0409] > secret = blahblah > ... and so on and so forth > > Doing it that way is nice for standardization's sake, but it makes the > dialplan quite a bit more complex. > > The obvious alternative is to use the extension as the sip UID: > > ; Joe Smith, x123 > [123] > secret = blahblah > ... > > This makes the dialplan *much* more simple, but when looking through > sip.conf, it's not as immediately obvious what device should be > authenticating with that account. > > Since this is my first large-ish asterisk deployment, I'm seeking the > advice of those who have gone before me. What tactic (one of the > above options or otherwise) is best to keep your sip.conf sane? > > Thanks! > -Erik > > -- > Erik Anderson > http://andersonfam.org > > _______________________________________________ > > Sign up now for AstriCon 2007! September 25-28th. http://www.astricon.net/ > > --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 > _______________________________________________ Sign up now for AstriCon 2007! September 25-28th. http://www.astricon.net/ --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
