Hello,
I am new to SIP and SIP PBX’s; I do however work in IT as an infrastructure analyst.
I have just installed Asterisk now with free PBX Asterisk 1.6.2.11. I have setup all the extensions in Free PBX and can login from SIP phones and call other extensions.
I have a SIP provider called Draytel that I would like to use to call outside lines.
I have been given a set of lines by this provider to add to the individual configuration files.
Here is the configuration I was given:
Setup Guide for Asterisk on DrayTEL:
Outgoing PSTN SIP Trunk ----------------------- The preferred method of configuring Asterisk is by using a combination of the sip.conf and extensions.conf files. The sip.conf file enables you to have much more configuration control over your SIP connection, allowing you to control things such as codec priorities, trunking, etc.
For connection to DrayTEL, a basic sip.conf entry would be:
[general] register => USERID:[email protected]/USERID
[draytel] type=friend username=USERID secret=PW fromuser=USERID host=draytel.org dtmfmode=rfc2833 fromdomain=draytel.org context=default insecure=very
The corresponding entry in extensions.conf would be:
exten => USERID,1,Dial(SIP/extension) exten => _0[1-9].,1,Dial(SIP/draytel/${EXTEN}) exten => _00[1-9].,1,Dial(SIP/draytel/${EXTEN})
where USERID is your DrayTEL ID, PW is your DrayTEL password and DrayTEL is the name of the SIP entity created in sip.conf for your DrayTEL account.
SIP to SIP Calls To make free SIP calls to any DrayTEL ID add the following to extensions.conf:
exten=> _8[1-9].,1,Dial(SIP/${EXTEN}@draytel)
Dialling Other Networks -----------------------
Please configure your extensions.conf locally for other networks.
Incoming PSTN Number -------------------- 1. Create an entry in iax.conf as follows: [DrayTEL Incoming Number] type=friend username=DrayTEL Incoming Number context=[XXXXXXXX]
2. Create an entry in extensions.conf as follows: [XXXXXXXX] exten => DrayTEL Incoming Number,1,Dial(SIP/XXX)
3. Example For example, if your incoming number is: 0870 068 0000:
iax.conf entry would look like this:
[08700680000] type=friend username=08700680000 context=default
extensions.conf entry would look like this:
[default] exten => 08700680000,1,Dial(SIP/1001)
As a result, all calls on that number would be routed to a SIP Phone with extension 1001
I am a little hesitant to add these configuration lines to my sip.conf directly as with this install the configuration should be done from FREEPBX itself??
I have attempted to fill out the fields for the SIP trunk in freepbx but this does not work and I can no loner get any SIP phones to connect to the server.
Any help with this would really be appreciated.