My Asterisk configuration for use with Engin
This is the relevant bits of my sip.conf:
register => 073117xxxx:passwoid@byo.engin.com.au [engin] canreinvite=yes dtmfmode=inband fromdomain=voice.mibroadband.com.au fromuser=073117xxxx host=byo.engin.com.au insecure=very musiconhold=framed nat=yes port=5060 qualify=1000 realm=mobileinnovations.com.au reinvite=yes secret=passwoid type=friend username=073117xxxx context=default
Obviously the number is the number provided by Engin, as is the password (as opposed to the password you provide when you create your website account).
This sends inbound calls to the default context in extensions.conf, which for me looks like:
[default] exten => s,1,Wait,1 ; Wait a second, just for fun exten => s,n,Answer ; Answer the line exten => s,n,Goto(menu,s,1) exten => t,1,Goto(s,1)
For routing outbound calls via Engin I have:
[internal]
; for standard Australian 8 digit numbers
exten => _01161XXXXXXXXX,1,Dial(SIP/engin/0${EXTEN:5},60)
exten => _01161XXXXXXXXX,n,Hangup()
; for 1800/1300 style numbers (10 digits)
exten => _01161XXXXXXXXXX,1,Dial(SIP/engin/${EXTEN:5},60)
exten => _01161XXXXXXXXXX,n,Hangup()
; for 13 style numbers (6 digits)
exten => _01161XXXXXX,1,Dial(SIP/engin/${EXTEN:5},60)
exten => _01161XXXXXX,n,Hangup()
And I make my internal SIP handsets use the internal context like this:
[sipura] type=friend secret=passwoid nat=yes host=dynamic reinvite=no ; this canreinvite=no ; and this may be unnecessary qualify=1000 dtmfmode=inband regexten=1000 realm=andrew.net.au disallow=all allow=ulaw allow=alaw allow=gsm context=internal
I'm fairly happy with everything now. When I get time, I'll implement QoS, for what it's worth, and tweak the dialplan to send telemarketers to hell. I also need to get a card to hook it up to the PSTN. So far an X100P via ebay seems the cheapest way to do it. I'm actually surprised at how difficult it seems to be to purchase a Wildcard TDM400P online (none of the resellers seem to offer online purchasing), and how expensive they are (at the Digium store).





