Configuring Asterisk for a SPA5xx IP Phone The sip.conf and extensions.conf File

Before you configure your Asterisk server for the SPA5xx IP phone, you need to gather some basic
information:

1-Extension numbers and assignments for each SPA5xx extension to be configured ,In this article, I use 151, 152 for line keys 1 and 2 of the 5 available on the SPA525G.
2. Line 1 will be display "Fred 151".
3. Line 2 will display "Sally".
4. The phone will display "Asterisk" at the top-right.


Once you have gathered all of the basic information, configure the Asterisk server. Edit the sip.conf and the extensions.conf file on the Asterisk server.
1-The sip.conf File :Following is a sample of the minimum sip.conf content:

[151]
type=friend
nat=no
secret=151secret
context=fxsgroup
host=dynamic
regext=151
;
[152]
type=friend
nat=no
secret=152secret
context=fxsgroup
host=dynamic
regext=152
;

2-The extensions.conf File :Following is a sample of the minimum extensions.conf content:
...
[fxsgroup]
...
;
exten => 151,1,Dial(SIP/151,60,rT)
exten => 152,1,Dial(SIP/152,60,rT)
;
;inbound calls from ITSP
[itsp1]
...
exten =>3615551212,2,Dial(SIP/101&SIP/102&SIP/152&SIP/151&SIP/200&SIP/242,25,rt)

3-Loading the Modified Configuration
a.Connect to the Asterisk console:
$ sudo asterisk –r
*CLI>
b.Use the reload command to load the changed configuration:
*CLI> module reload
This completes the Asterisk server configuration. You must now configure the SPA5xx to register to
the Asterisk server.


Related post



Newer Post Older Post

0 comments:

Post a Comment

 

Wiki Voip And Fax Tutorials Copyright © 2010 Labloub