I have a VFX sip trunk installed on a ubuntu 12.04 amd64 box, and having trouble with dial out and receive calls in May 2012.
Appologies if another post covers this, but I couldn't find any. Pointers appreciated.
Asterisk/1.8.10.1~dfsg-1ubuntu1
Asterisk GUI-version : SVN--r5209
The original posts at
http://www.geekzone.co.nz/forums.asp?forumid=65&topicid=29072
http://www.geekzone.co.nz/forums.asp?forumid=65&topicid=17174
are 4 years out of date, and some parts are hard to relate to the current settings.
GUI forces use of users.conf, not sip.conf.
I can make outbound calls if I run with
username = cms*****user*********rr (ie the long version)
but register status shows Rejected
chan_sip.c: Got 404 Not found on SIP register to service cms******user******rr@pan.wxnz.net, giving up
This matches with the VFX instructions in the original post
Calls work fine...
Called SIP/somecontext/123
-- SIP/somecontext-00000050 is making progress passing it to SIP/6000-0000004f
-- SIP/somecontext-00000050 answered SIP/6000-0000004f
I can register successfully if I run with
username = 99506***
This matches with GUI settings.
But then I can't make outbound calls.
I understand the compound register statement is needed for vfx, but how to make Asterisk do this correctly with all the GUI config in place, since you can't put the register bit in sip.conf?
register=9950****:cm*****user*********rr:1N******secret*****@pan.wxnz.net/9950****
Can anyone clarify the settings in users.conf and how they correspond with the gui, with respect to vfx.
users.conf settings
[code]
[somecontext]
host = pan.wxnz.net
username = cms******user*******rr
secret = 1N****secret************
trunkname = somecontext ; GUI metadata
context = DID_somecontext
hasexten = no
hasiax = no
hassip = yes
registeriax = no
registersip = yes
trunkstyle = voip
canreinvite = no
insecure = invite,port
nat = no
fromuser = 99506***
fromdomain = pan.wxnz.net
authuser = cms*****user************rr
disallow = all
allow = g729,ulaw,alaw
dtmfmode = rfc2833
registertimeout = 20
regseconds = 180
[/code]
Note NAT=no for this box because it happens to be a full public internet host on a single real IP address and is not behind a nat firewall.
And the GUI box fields, transcribed from the screen are
Provider Name: somecontext
Hostname: pan.wxnz.net
Username: cm**********user*********rr
Password: 1N**********secret***********
Codes: First: g.729 second: u-law third: a-law fourth: none fifth: none
CallerId: 099506***
FromDomain: pan.wxnz.net
FromUser: 99506***
AuthUser: cm****************rr
Insecure: offers only port/very/no. Overridden in users conf to invite,port
Outbound proxy: (blank)
Enable Remote MWI: (unchecked)
So to clarify...
Asterisk 1.8
Asterisk GUI
Settings to enter
conf files to mangle
changes to make
so vfx trunk will register, call out and receive calls in.
Clean install of asterisk, no nat firewall, a few remote extensions on snom phones, nothing complex.
I'm also having similar troubles with several Yeastar MyPBX, which is mostly Asterisk & GUI in a small dedicated box with integrated FXS and FXO modules.
David.
