Hi Guys,
I have 1 trunk with sipstation but want to set this provider as a back up trunk but can’t get the trunk to work from webgui. The provider require to modify the sip.conf and exten.conf. Here is their setup sample. My question is where do I insert these code?
Sample Asterisk 1.6 Configuration
The following configuration works for Asterisk/Trixbox 1.6:
on sip.conf
[GRNVoIP]
type=peer
dtmfmode=rfc2833
promiscredir=yes
canreinvite=no
username=
secret=
fromdomain=.paygvoip.com
host=.paygvoip.com
outboundproxy=sbc.ezcallinc.com
insecure=port,invite
disallow=all
allow=g729
allow=g723
allow=ulaw
allow=alaw
*if md5secret is preferred, replace secret with the md5 hash value, eg: md5secret=bd405bf86c4cf427f7ca5466668961e7, where md5secret is md5 of username:realm:password
on extensions.conf (to set a fix CLI)
[grnvoip]
exten => _Z.,1,NoOP
exten => _Z.,2,Set(CALLERID(number)=1234567890)
exten => _Z.,3,NoOP($(CALLERID(number))
exten => _Z.,n,Dial(SIP/999999${EXTEN}@GRNVoIP,R)
exten => _Z.,n,Hangup
on extensions.conf (for asterisk to pass through CLI)
[grnvoip]
exten => _Z.,1,NoOP
exten => _Z.,n,Dial(SIP/999999${EXTEN}@GRNVoIP,R)
exten => _Z.,n,Hangup
Note: replace 999999 with the prefix assigned
thanks in advance…