sipgate team & trunking Help

How Do I Configure Asterisk for sipgate trunking?

These are the settings for the basic configuration of Asterisk for sipgate trunking.

For the advanced configuration of Asterisk and to encrypt your trunk, please instead see this guide.

For general Asterisk configuration instructions with sipgate team accounts please click here instead.

Note: Please replace your SIPID to SIP-ID and PASSWD to SIP-Password respectively.

Please enter the following in sip.conf:

  • [sipconnect.sipgate.co.uk]
  • type = peer
  • host = sipconnect.sipgate.co.uk
  • outboundproxy=sipconnect.sipgate.co.uk
  • port = 5060
  • username = SIP ID
  • fromuser = SIP ID
  • fromdomain = sipconnect.sipgate.co.uk
  • secret = SIP Password
  • dtmfmode = rfc2833
  • insecure = port,invite
  • canreinvite = no
  • registertimeout = 600
  • disallow=all
  • allow=alaw
  • allow=ulaw

The information under "outboundproxy" is particularly important as it ensures your PBX is connected with the correct server. Your Asterisk must be registered with our server in order to receive incoming calls.

Equally important is that the peer sipconnect.sipgate.co.uk is:

  • register => SIPID:SIPpassword@sipconnect.sipgate.co.uk/SIPID

If you now run the debug command on your Asterisk console, the REGISTER packets should be sent to the IP address 217.10.68.149.

For outgoing calls, please enter the sender number in E.164 format (i.e. international format without the leading zeros or plus (+) sign) as a new header P-Preferred-Identity:

  • SIPAddHeader(P-Preferred-Identity: <sip:4420300000000@sipconnect.sipgate.co.uk>)

Important: Only sipgate-provided phone numbers can be set as the outgoing identity at this time.

Should you wish to block your telephone number, you can do so by using:

  • SipAddHeader(P-Preferred-Identity: <sip:4420300000000@sipconnect.sipgate.co.uk>)
  • SipAddHeader(Privacy: id)

Incoming calls are signaled to you with the fully selected E.164 number in the Request URI. This way you can work with the the variable $ {EXTEN} without issue. It is not necessary to remove the number for the To-URI.

It is also possible to enable call forwarding on your PBX. To do this, please use the Diversion-Header and enter the originally dialled number. 

Note: The following example was written in ORIGEXTEN:

  • SipAddHeader(Diversion: <${ORIGEXTEN}@sipconnect.sipgate.co.uk>)
Have more questions? Submit a request
Powered by Zendesk