[Asterisk-Users] Asterisk Ignoring [User] in SIP.CONF

Andre Sharpe andre.sharpe at habitaz.com
Mon Oct 3 12:56:30 MST 2005


Hi,


I have a SIP.CONF with a user section like this:-

[1234]
accountcode=HABITAZ
type=friend
callerid="HABITAZ/1234"
context=milkshake
userName=1234
secret=1234
host=dynamic
dtmfmode=rfc2833
qualify=yes
callgroup=1
pickupgroup=1
canreinvite=no


When I login from a X-Lite phone, with "Username", "Authentication User" and "Password" set to '1234', everything works fine. The
account code is set to 'HABITAZ' and everything seems fine.

But when the "Username" on X-Lite is changed to pretty much anything else, eg. '4321' - and the "Authentication User" and "Password"
left to be '1234', Asterisk still allows calls to be made from the phone, but the CDR countains a blank accountcode.

How can I disallow login if the "Username" field on X-Lite is not set to a valid user section in SIP.conf?

Andre






More information about the asterisk-users mailing list