rheeley planetFreshman
Joined: 11 Mar 2009 Posts: 1
|
Posted: Wed Mar 11, 2009 4:43 pm Post subject: External Calls |
|
|
Hi,
I've got an Asterisk box installed and internal calls are working fine, I (think) I have also got it to register with Sipgate, however I can't seem to make or receive external calls, below are copies of my extensions.conf and sip.conf
Code: | [general]
port = 5060
bindaddr = 0.0.0.0
context = incoming_calls
qualify = no
disallow = all
allow = ulaw
allow = alaw
allow = g729
allow = gsm
allow = slinear
srvloopup = yes
register => 3145520:xxxxxxx@sipgate.co.uk/3145520
[sipgate-out]
type = friend
insecure = very
nat = yes
username = 3145520
fromuser = 3145520
fromdomain = sipgate.co.uk
secret = xxxxxxx
host = sipgate.co.uk
qualify = yes
canreinvite = no
dtmfmode = rfc2833
context = from_sipgate
[1000]
type=friend
context=phones
host=dynamic
[1001]
type=friend
context=phones
host=dynamic
|
Code: |
[global]
ALL = SIP/1000&SIP/1001
[general]
autofallthrough=yes
[incoming_calls]
exten => s,1,Dial(SIP/1000,30,tr)
exten => s,n,Answer()
exten => s,n,Wait(1)
exten => s,n,Playback(tt-weasels)
exten => s,n,Hangup()
[incoming_calls]
exten => h,1,Hangup
exten => 3145520,1,Dial(SIP/1000,20,tr)
[sipout]
exten => _X.,1,Set(CALLERID(num)=3145520)
exten => _X.,2,Dial(SIP/${EXTEN}@sipgate-out,30,trg)
exten => _X.,3,Hangup
[internal]
exten => 500,1,Verbose(1|Echo test application)
exten => 500,n,Echo()
exten => 500,n,Hangup()
exten => 1000,1,Verbose(1|Extension 1000)
exten => 1000,n,Dial(SIP/1000,30)
exten => 1000,n,Hangup()
exten => 1001,1,Verbose(1|Extension 1001)
exten => 1001,n,Dial(SIP/1001,30)
exten => 1001,n,Hangup()
[phones]
include => internal
include => sipgate
include => sipout
|
It feels like I'm so close yet so far, any help would be very much appreciated.
Rich |
|