Loading...
 

History: Asterisk Configuration

Preview of version: 34

The following are snippets of Asterisk configuration files to assist you in configuring your Asterisk set-up to use SIP Broker.

TrixBox Trunk Setup

[sip_nat.conf]
externip=blah.dyndns.org
localnet=192.168.0.1/255.255.255.0

Trunk Name - sipbroker

PEER Details
[sipbroker-out]
type=peer
fromuser=<sipbroker username>
fromdomain=dyndns.org
host=sipbroker.com
port=5060
canreinvite=yes

Incoming Settings - Leave Blank
Registration - Leave Blank

Create an Outbound Route
Include in your Dial Pattern - an outbound Trunk Select Prefix (Ex: 86|. )
Test SipBroker - Select your Trunk 86, Dial *266-300 to hear Monkeys - Ex: Dial 86*266300
Dial: 86*011188888 to hear Sipbroker Test Announcement


sip.conf

[general]
externip=blah.dyndns.org
localnet=192.168.0.1/255.255.255.0

[sipbroker-out]
type=peer
fromuser=<URI username>
fromdomain=<URI domain>
host=sipbroker.com
port=5060
canreinvite=yes

OR

[sipbroker]
type=peer
context=sipbroker_inbound
fromuser=<URI username>
fromdomain=<URI domain>
host=sipbroker.com
port=5060
incominglimit=3
insecure=invite
nat=yes
canreinvite=no


extensions.conf (Asterisk 1.2.x)

[general]
priorityjumping=yes

; This macro dials SIP Broker and if ENUM fails falls back to VoIP provider 1.
[macro-dialprovider]
exten => s,1,Dial(SIP/${MACRO_EXTEN}@sipbroker-out) ; Call SIP Broker for ENUM lookup
exten => s,2,Congestion
exten => s,102,Dial(SIP/${MACRO_EXTEN}@provider-context) ; If failed then Dial provider
exten => s,103,Congestion
exten => s,203,Busy

; This macro dials SIP Broker.
[macro-dialsipbroker]
exten => s,1,Dial(SIP/${ARG1}@sipbroker-out)
exten => s,2,Congestion
exten => s,102,Busy

[examples]
exten => _X.,1,Macro(dialprovider) ; e164 dialing
exten => _*X.,1,Macro(dialsipbroker,${EXTEN:0}) ; SIP-Code dialing



The extensions.conf option "priorityjumping" was depreciated in Asterisk 1.2, and support has been (apparently) completely removed in 1.4.

extensions.conf (Asterisk 1.4.x)

; This macro dials SIP Broker and if ENUM fails falls back to VoIP provider 1.
[macro-dialprovider]
exten => s,1,Set(CALLERID(all)=<${CALLERID(num)}>) ; Set outbound CallerID
exten => s,n,Dial(SIP/sipbroker-out/${MACRO_EXTEN},30) ; Call SIP Broker for ENUM lookup
exten => s,n,NoOp( Dial Status: ${DIALSTATUS})
exten => s,n,Goto(s-${DIALSTATUS},1)
exten => s-NOANSWER,1,Hangup
exten => s-CONGESTION,1,Congestion
exten => s-CANCEL,1,Hangup
exten => s-BUSY,1,Busy
exten => s-CHANUNAVAIL,1,Dial(SIP/provider-context/${MACRO_EXTEN},30) ; If failed then Dial provider
exten => s,n,Hangup

[macro-dialsipbroker]
exten => s,1,Set(CALLERID(all)=<${CALLERID(num)}>) ; Set outbound CallerID
exten => s,n,Dial(SIP/sipbroker-out/${ARG1}) ; Call SIP Broker for ENUM lookup
exten => s,n,Hangup

[examples]
exten => _X.,1,Macro(dialprovider) ; e164 dialing
exten => _*X.,1,Macro(dialsipbroker,${EXTEN:0}) ; SIP-Code dialing


extensions.conf (Asterisk 1.4.x) - incoming

In extensions.conf, you need to define the context [sipbroker_inbound]. For example, if you want to enable calling *1234 567890 from SIP Broker's partners, the extension 567890 must exist in [sipbroker_inbound] in your dialplan

See this thread on the sipbroker /make money online
internet tips
work from home
video tips
shopping tips
Fuel
Seo Services
car tips
Energy
computer tips
travel tips
vanzari auto
Dissertation
Essay
Thesis
Assignment
Book Report
professional resumes
Coursework
Term Paper
Research Paper
finance tips
essay writers
Web hosting Wiki resources for webmasters


To discuss this web page, see here.

History

Information Version
Sun 15 of Jul, 2012 16:50 AEST pinazo 76
Tue 03 of Apr, 2012 01:14 AEST teofeel 75
Tue 03 of Apr, 2012 01:13 AEST teofeel 74
Sun 11 of Mar, 2012 02:50 AEST zedraken 73
Sun 11 of Mar, 2012 02:45 AEST zedraken 72
Thu 16 of Feb, 2012 14:43 AEST eti1206 71
Tue 03 of Jan, 2012 19:35 AEST Soruk Despam. 70
Thu 08 of Dec, 2011 21:36 AEST ChruseArroyo 69
Tue 22 of Nov, 2011 02:28 AEST jauhis 68
Fri 28 of Oct, 2011 17:49 AEST seoagent 67

Last-Visited Pages

No records to display

Google Search

Online Users

1 online user

Online Users