To use my new setup with the VFX service, the asterisk config settings need to be modified from those discussed in:
I couldn't find anything around discussing the issues I had so I thought I'd post here in case it helps others.
The GUI puts everything into users.conf. When the trunk is defined the following is required to be entered into the GUI
- make sure the username is your phone number with the leading zero from the area code removed
- fromdomain is as.wxcnz.net
- fromuser same as username just mentioned. Possibly this could be left blank
- insecure set to very in the drop down box
- password as given by xnet
- hostname is as.wxcnz.net
Remember to set as.wxcnz.net in your hosts file as per post referenced above.
Now what this all does is create a channel definition in your users.conf file with the name [username] and sets the registersip=yes so that registration will occur. You no longer need a separate register=> entry in the sip.conf file - indeed the entry shouldn't exist.
However registration will fail at this stage because the REGISTER messages and the INVITE messages will user the username (your phone number) as the authenticationuser in the authentication digest section. VFX has a separate authentication username that is different than your phone number (that other long number/alpha string supplied by support).
To get this to be used instead you need to add the following to the sip.conf file:
auth = authusername:email@example.com authusername and secret are those long numbers given by support when you signed up to asterisk. What this does is replace the authuser and secret defined in the channel definition if the realm matches xport.co.nz - which it will for the VFX service.