REALTIME SIP account

From AstBillWiki

Jump to: navigation, search

When you create a SIP account for a sip phone you don't have to create a friend. AstBill will do that automatically. As long as the Account is Active. All Accounts are stored in the table astaccount.

We have the following in the file /etc/asterisk/extconfig.conf

; Realtime configuration engine
iaxusers => mysql,astbill,asv_iax
iaxpeers => mysql,astbill,asv_iax 
sipusers => mysql,astbill,asv_sip
sippeers => mysql,astbill,asv_sip
voicemail => mysql,astbill,asv_voicemail

For SIP accounts the MySQL View asv_sip contains the records Asterisk will use to authenticate. If you check the view definition of asv_sip you can see that it is just a sub version of astaccounts. What you get in asv_sip is all astaccounts where astaccount.active = 1;

Login as AstBill Administrator Click on AstBill Admin and Choose Edit of any account

You have a field called: Set the Account Status: You can choose: DISABLED, REALTIME, STATIC, ANI/CLI

REALTIME:
When REALTIME is chosen the field astaccount.active = 1 and the account is visible in the MySQL view asv_sip.

STATIC:
If we chose STATIC astaccount.active = 5 and the Perl Script astcreateaccount.pl will create entries for this accounts in the file sip_additional.conf. The STATIC option is not normally needed when using Asterisk 1.2.

DISABLE:
Disable is clear. The Disabled account is not in use.

ANI/CLI:
Allows authenticating using Caller ID. This is useful when Asterisk works together with Sip Express Server (SER).

Personal tools