sipgate team & trunking Help

How Do I Set Up Asterisk with secure trunking?

These are the settings for the advanced configuration of Asterisk for secure trunking. By following this guide, your asterisk should encrypt the signalling and voice data. 

For the basic configuration of Asterisk without encryption, please instead see this guide.

Note: This configuration is an example and can only be used on Asterisk with PJSIP version 13.10 and higher. 

 For pjsip.conf please use the following:

[global]
type=global
debug=yes

; Registration Object
[sipgatetrunkuk]
type=registration
outbound_auth=sipgatetrunkuk
server_uri=sip:sipconnect.sipgate.co.uk\;transport=tls
client_uri=sip:SIPID@sipconnect.sipgate.co.uk\;transport=tls
contact_user=SIPID
retry_interval=60
expiration=120
line=yes
endpoint=sipgatetrunkuk

; Auth Object
[sipgatetrunkuk]
type=auth
auth_type=userpass
username=SIPID
password=SIPPASSWORD
realm=sipconnect.sipgate.co.uk

; Trunk Endpoint
[sipgatetrunkuk]
type=endpoint
context=from-sipgate
disallow=all
allow=alaw
outbound_auth=sipgatetrunkuk
aors=sipgatetrunkuk
from_user=SIPID
rtp_symmetric=yes
dtmf_mode=rfc4733
media_encryption=sdes

; AOR
[sipgatetrunkuk]
type=aor
contact=sip:sipconnect.sipgate.co.uk\;transport=tls

; Identifier
[sipgatetrunkuk]
type=identify
endpoint=sipgatetrunkuk
match=sipconnect.sipgate.co.uk

 

 For your dial plan, you can use this extensions.ael snippet:

 

context from-internal {
          _X. => {
                       Dial(PJSIP/${EXTEN}@sipgatetrunkuk);
                       Hangup();
          }
}

context from-sipgate {
          _X. => {
                       NoOp(Call coming in from sipgate, send to phone);
                       Dial(PJSIP/${YOUPHONE});
                       Hangup();
          }
}

 

Have more questions? Submit a request
Powered by Zendesk