For Outbound Calls
1. For username and password based Authentication
Registration String : register =>username:password@209.97.129.114:5060
[Incorpus] disallow=all allow=gsm secret=(SIP password) username=(username) Allow=ulaw type=friend dtmfmode=rfc2833 context=trunkinbound qualify=yes insecure=very nat=yes host=209.97.129.114 allow=g729 allow=alaw
1.1 For IP based Authentication
Registration String: (KEEP IT BLANK)
[Incorpus] disallow=all allow=g729 allow=g726 type=peer dtmfmode=rfc2833 context=trunkinbound qualify=no insecure=invite nat=no host=51.161.51.150
DialPlan for both SIP authentication & IP Authentication
exten => _11123X.,1,AGI(agi://127.0.0.1:4577/call_log) exten => _11123X.,2,Dial(SIP/${EXTEN:1}@Incorpus,,tTo) exten => _11123X.,3,Hangup
For Inbound Calls
1. For username and password based Authentication
Registration String : register =>username:password@209.97.129.114:5060
[Incorpus] disallow=all allow=gsm secret=(SIP password) username=(username) Allow=ulaw type=peer dtmfmode=rfc2833 context=trunkinbound qualify=no insecure=invite nat=force_rport,comedia host=209.97.129.114 allow=g729 allow=alaw
1.1 For IP based Authentication
Registration String: (KEEP IT BLANK)
[Incorpus] disallow=all allow=gsm allow=ulaw type=peer dtmfmode=rfc2833 context=trunkinbound qualify=no insecure=invite nat=force_rport,comedia host= 192.99.145.210 allow=g729 allow=alaw
Dialplan should be blank for default config, you can configure dialplan if you want to divert calls to specific extensions or if you want to change SIP Header.