Thought about converting across to PJSIP? here are some helpful hints and configuration examples to connect your vanilla Asterisk to our environment.

The main part of the conversion is the population of the pjsip.conf file. There will also need to be changes made to your extensions.conf file to dial out using the PJSIP channel’s.

To start with you will need to get your system to register and set up a contact/AOR for Simtex.

For this to work we need to set up the following:

  • A Registration type
  • An Auth type
  • An AOR type

To be able to use this registration you will need an endpoint associated and also and Identify type.

1. Setting up an Registration Type:

[Simtex]
type = registration
server_uri=sip:[email protected]
client_uri=sip:[email protected]
contact_user=7XXXXXXX
outbound_auth=Simtex_Auth
auth_rejection_permanent = no
retry_interval = 30
forbidden_retry_interval = 290
max_retries = 20
2. An Auth type

[Simtex_Auth]
type=auth
username=7XXXXXXX
password=XXXXXXXX
3. An AOR type
[Simtex_Aor]
type=aor
contact=sip:sip.simtex.com.au
qualify_timeout=4.0
qualify_frequency=50

From here we need to set up a transport for an endpoint to use after that an endpoint and a Identify type can be set up.

1. Transport:

[Transport-UDP]
type=transport
protocol=udp
bind=0.0.0.0
Note: This is a very simple Transport and may need to be change based on your own setup.
2. Endpoint type:

[Simtex_Endpoint]type=endpoint
context=From_Simtex
disallow=all
allow=ulaw
outbound_auth=Simtex_Auth
aors=Simtex_Aor
from_user=7XXXXXXX
send_pai=yes
send_rpid=yes
trust_id_inbound=yes
transport=Transport-UDP

3. Identify type:

[Simtex_Identify]
type=identify
endpoint=Simtex_Endpoint
match=sip.simtex.com.au

Now that we have that setup an extension will need to be configured to be able to make and receive calls form the Simtex endpoint.

The following is a basic extension and will need to be changed based on your particular setup:

[6001]
type=endpoint
context=default
disallow=all
allow=ulaw
transport=Transport-UDP
auth=6001_Auth
aors=6001_Aors
[6001_Auth]
type=auth
auth_type=userpass
password=6001
username=6001
[6001_Aors]
type=aor
max_contacts=1
qualify_timeout=4.0
qualify_frequency=50
Note: The username and password used is just there as an example and not what we recommend using.
To follow on from this The Method to dial a PJSIP extension is different and information about this can be found here: PJSIP tips and Tricks