t
 

iiNet Asterisk/Trixbox configuration – Outbound not working

4

Posted by Cameron | Posted in Blog | Posted on 08-05-2009

After months (on and off) of attempting to get a Asterisk 1.5 or Trixbox 2.6 installation working in both directions… with earlier versions of asterisk my existing config would ring out but not in.. with the migration to version 1.5, I could ring in, but not out.. It was extremely frustrating..

I finally cracked it.. Below is a example of my working iiNet SIP trunk config.. Hope it helps someone as much as it would have helped me ages ago!

*******************************************
General Settings

Outbound Caller ID: 089XXXXXXX

Dial rules:
000
0011.
04XXXXXXXX
13XX.
6XXXXXXX
9XXXXXXX

(yes I know some STD rules are missing)

******************************************
Outgoing Settings

Trunk name: iinettrunk

disallow=all
allow=alaw&ulaw
canreinvite=no
context=from-trunk
fromdomain=iinetphone.iinet.net.au
host=sip.<YOURSTATE>.iinet.net.au
insecure=very
dtmfmode=auto
nat=yes
pedantic=no
secret=<password>
type=friend
registersip=yes
username=089XXXXXX

*******************************************
Incoming Trunk

canreinvite=no
context=from-trunk
fromuser=089XXXXXXX
insecure=very
secret=<password>
type=friend
username=089XXXXXXX
qualify=yes
nat=no

*****************************************

Register string (all on one line – no spaces)

:<password>:089XXXXXXX@iinettrunk/089XXXXXXX

****************************************************

This config has been tested by me 3 times now, in virtual servers and physical ones, over various connections (even mobile broadband connections).. it works perfectly both directions (so long as your other config is OK)

Thanks

Comments (4)

Can’t get mine to work with iiNet. Have spent hours but keep getting the following erro when tyring to call out:

————————————–
[Jan 1 00:07:54] WARNING[79]: chan_sip.c:12330 handle_response_invite: Received response: “Forbidden” from ‘”asterisk”
;tag=as3208cb28’
————————————–

Any clues?

Hi Aaron

I’m not sure – cant say I’ve hit that error before.. Its a shame you are over east, I’d pop in and have a look… Happy to have a look if you can organise remote access..

My first guess would be password or routing.. Try loading your iinet voip settings into XLite and see if it registers and calls in and out OK.. If that works its then either routing/firewall or asterisk config..

Sorry I cant just wave a magic want and say “this is your fix” 🙂
Cheers for reading and commenting
Cameron

One thing I have noticed with a new setup that I’ve done is that when ringing other iiNet Naked DSL lines, it rings a few times then goes dead.. I’m working on a solution.. will post here if I figure it out

Aaron – not sure if you are still checking this thread – but I get the “forbidden” error that you were having when I have “Intra Company Route” selected as on/ticked… Make sure that is not selected