Hi Sorry to hijack this thread I have a similar problem been struggling for 2 days now, cannot get any outgoing calls to work.
EXTENSIONS.CONF
[sip]
exten => 2001,1,Dial(SIP/2001,20,tr)
exten => 2002,1,Dial(SIP/2002,20,tr)
exten => 1777102506,1,Dial(SIP/2001&SIP/2002,20,tr)
; Create an extension, 600, for evaluating echo latency.
;
exten => 600,1,Playback(demo-echotest) ; Let them know what’s going on
exten => 600,n,Echo ; Do the echo test
exten => 600,n,Playback(demo-echodone) ; Let them know it’s over
exten => 600,n,Goto(s,6) ; Start over
[myvsp-out]
exten => _X.,1,Dial(SIP/${EXTEN:1}@sip.myvsp.com.au,30,r)
; I have change the above to>
;[exten => _X.,1,Dial(SIP/${EXTEN}@sip.myvsp.com.au-out,30,r)]
;[exten => _X.,1,Dial(SIP/${EXTEN}@myvsp-out,30,r)]
still same results
SIP.CONF
[general]
port = 5060 ; Port to bind to (SIP is 5060)
bindaddr = 0.0.0.0 ; Address to bind to (all addresses on machine)
disallow=all
allow=ulaw
allow=alaw
context = sip ;Default for incoming calls
register =>177710XXXX:PASSWORD@myvsp.com.au/177710XXXX
[myvsp-out]
type=peer
secret=PASSWORD
username=177710XXXX
host=myvsp.com.au
fromuser=177710XXXX
canrenvite=no
insecure=very
qualify=yes
context=sip ; this section will be defined in extensions.conf
[2001]
type=friend
host=dynamic
defaultip=192.168.1.116
username=2001
secret=PASSWORD
dtmfmode=rfc2833
;mailbox=2001@device
context=sip
callerid=SPA3000
[2002]
type=friend
host=dynamic
defaultip=192.168.1.134
username=2002
secret=PASSWORD
dtmfmode=rfc2833
;mailbox=2002@device
context=sip
callerid=Laptop <2002>
I can call from extension 2001 to 2002 and the other way around, I can also
call into my server from another VSP number set-up on a PAP2 into my box and
it rings ok with audio as well. What I have been struggling is trying to
dial out I cannot call my PAP2 VSP number from any of the extensions from my
server i.e 2001 and 2002 I get a reorder tone, when I use my softphone on my
Laptop which is extension 2002 a message pops up [no route to destination
for a second or so] What am I doing wrong here. Please help me if possible
as I am really stuck.
EDIT:
I have now fixed this problem all working good.
Thanks