Setting up trunk with ezcall provider

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…

You don’t have to worry about the extensions.conf stuff, FreePBX takes care of that for you.

Create a SIP trunk called GRNVoip and put these settings in:

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

I personally would leave the g723 and alaw CODEC lines out. You can only use the g729 if you have the licenses installed.