Hi again everyone!
Thanks to my lack knowledge and general incompetence, I’m still sat here literally pulling my hair out with this problem. Hoping someone could point out my configuration problem… if you could I’ll love you forever more
Asterisk V1.4.18, pretty much out of the box configuration.
Added registration line into ‘sip.conf’ which appears to have done the trick:
register => 123456:mypassword@sip.gradwell.net/5000
(For the record, yes, in reality the correct username and password has been entered).
Incoming calls work fine. But as the title suggests, outgoing calls don’t work.
‘users.conf’ has the following:
[quote][5000]
fullname = Colin
email = thisis@myemail.com
secret = 1234
hasvoicemail = yes
vmsecret = 1234
hassip = yes
hasiax = no
hash323 = no
hasmanager = no
callwaiting = no
context = numberplan-custom-1
cid_number = 123456789
hasagent = yes
hasdirectory = no
deletevoicemail = no
host = dynamic
mailbox = 5000
threewaycalling = no
registeriax = no
registersip = yes
canreinvite = no
nat = yes
dtmfmode = rfc2833
allow = ulaw,alaw,g726
[Gradwell]
allow = ulaw,gsm,g729,g726
context = DID_Gradwell
dialformat = ${EXTEN:1}
hasexten = no
hasiax = no
hassip = yes
host = sip.gradwell.net
port = 5060
registeriax = no
registersip = yes
secret = mypassword
trunkname = Custom - Gradwell
trunkstyle = customvoip
username = 123456
callerid = 123456789
fromdomain = sip.gradwell.net
fromuser = 123456
insecure = very
disallow = alaw,ilbc,speex,adpcm,lpc10
[/quote]
And in ‘extensions.conf’ I’ve got:
[quote][numberplan-custom-1]
plancomment = DialPlan1
include = default
include = parkedcalls
exten = _0X!,1,Macro(trunkdial,${Gradwell}/${EXTEN:0})
comment = _0X!,1,Gradwell,standard
[DID_Gradwell]
include = default
include = default
exten = _123456789,1,Goto(default|5000|1)
[/quote]
Everytime I attempt to make a call, I’ve presented with:
Most of the configuration was generated by the Asterisk GUI. Sorry to stick all this code in here, but any pointers would be helpful. Thanks for your time in advance!
Colin