Asterisk SIP Trunk Registration Example

Asterisk SIP Trunk Registration Example

 

Below you see Asterisk SIP trunk registration simple example.

 

So edit sip.conf file and add register string to register Asterisk SIP trunk in [general] section.

register=>SIP_ID:[email protected]_SIP_Provider_Host_or_IP

 

Then fill host, username, secret with your SIP trunk provider credentials.

 

Example sip.conf file:

[general]

register=>SIP_ID1:[email protected]_SIP_Provider_Host_or_IP_1
register=>SIP_ID2:[email protected]_SIP_Provider_Host_or_IP_2

[trunk]
type=peer
username=SIP_ID1
secret=Password1
host=Your_SIP_Provider_Host_or_IP_1
dtmfmode=rfc2833
nat=yes
qualify=yes
context=default

[trunk1]
type=peer
username=SIP_ID2
secret=Password2
host=Your_SIP_Provider_Host_or_IP_2
dtmfmode=rfc2833
nat=yes
qualify=yes
context=default

I set qualify=yes it will changing SIP peer status ‘unmonitored’ to OK, and Asterisk will check periodically trunk status.

Asterisk SIP Trunk Registration

 

 

If you like what you are reading, please:

Buy me a coffeeBuy me a coffee

Summary
Asterisk SIP Trunk Registration Example
Article Name
Asterisk SIP Trunk Registration Example
Description
Asterisk SIP Trunk Registration Example. Basic example how to register Asterik SIP Trunk.
Author
Publisher Name
ARSTECH
Publisher Logo

arstech

Leave a Reply

Your email address will not be published. Required fields are marked *