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:Password@Your_SIP_Provider_Host_or_IP
Then fill host, username, secret with your SIP trunk provider credentials.
Example sip.conf file:
[general] register=>SIP_ID1:Password1@Your_SIP_Provider_Host_or_IP_1 register=>SIP_ID2:Password2@Your_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.
