This post follows on from the one on using the GoIP for outbound calls
You should check that post for some general advice. We are going to use the same software and devices for this guide. This guide was written using a clean SysAdminMan VPS – http://sysadminman.net/sysadminman-freepbx-a2billing-hosting.html
SET UP THE TRUNK IN ASTERISK
Setting up the trunk in Asterisk is the same as for outbound calls, apart from we are going to set a ‘context’ to pass the incoming call to A2Billing. These lines are added to /etc/asterisk/sip_custom.conf –
don’t forget to apply those settings with –
SET UP THE GOIP
Now we configure the GoIP with the account details we just created in Asterisk.
You need to enter the settings highlighted. We only need 4 bits of information –
Finally we need to tell the GoIP what to do with incoming GSM calls. We are going to send them to the registered SIP account on Asterisk, and we are going to use the GSM SIM mobile phone number to identify the call when it is passed to Asterisk. In the UK mobile phone numbers start with 07.
Finally check the status of the GoIP to make sure both the GSM and SIP line say LOGIN. If not something went wrong!
GIVE IT A TRY!
You should be ready to give it a try now. Ring your mobile number and the green ‘Channel’ light on the GoIP should go solid. The call should then be passed to Asterisk and you will be asked for your A2Billing PIN number – “Please enter your complete PIN number”