How to set up Asterisk? Connecting via SIP-Trunk
This page relates to stage 2 of the set-up, please see stage one first:
Asterisk Configuration
The Asterisk SIP-Trunk configuration is done via the sip.conf file, please backup your configuration file before making any changes:
cp sip.conf sip.conf.bakup
cp extensions.conf extensions.conf.bakup
Add this to the sip.conf file (replacing SIPSERVER with the server address we give you when purchasing):
[aql]
type=peer
host=SIPSERVER
context=from-trunk
And this to the extensions.conf file:
exten => _91.,1,Set(CALLERID(num)=98${CALLERID(num)})
exten => _91.,2,Dial(SIP/aql/${EXTEN:2},20,rt)
Then reload the config:
reload chan_sip.so
More help available from technicians via our online support system.
Back to list of faq categories«