Using a GoIP for an A2Billing access number

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 –

[goip]
type=peer
secret=ej44frhjdf23
username=goip
host=dynamic
canreinvite=no
qualify=yes
nat=force_rport,comedia
context=a2billing

don’t forget to apply those settings with –

asterisk -rv
sip reload

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 –

  • Asterisk user account (goip) – this goes in the Phone Number and Authentication ID box
  • Asterisk server IP address – this goes in the SIP Proxy and SIP Registrar Server box
  • SIP secret – this goes in the Password box
  • Under advanced setting we should set the DTMF settings to Outband/RFC2833

GoIP Call Settings

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.

GoIP Call Divert settings

Finally check the status of the GoIP to make sure both the GSM and SIP line say LOGIN. If not something went wrong!

GoIP Status

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”

2 thoughts on “Using a GoIP for an A2Billing access number

  1. hamada

    i need help to get g400p gsm card work with a2billing

    i have elastix 3.0 installed then installed a2billing 1 .9.4 now the g400p is working fine with elastix and i can make outgoing call through the card but when a2billing comes in the middle i got ” the number you have dialed currently unavailable ”

    my setting is :

    custom trunk ” openvox012″ with dial string ” EXTRA/1/$OUTNUM$ ”

    custom trunk ” a2billing ” with dial string ” Local/[email protected]/n”

    outbound route ” out2a2billing ” with trunk sequence ” a2billing ”

    in a2billing i setup customer,ratecarde,callplan,rate and trunk

    in trunk setting

    provider tech = local
    ip/host = openvox012

Comments are closed.