...
Code Block |
---|
[general] context=guest ; Default context for incoming calls (non authenticated) realm=somecompany.com domain=somecompany.com disallow=all ; First disallow all codecs ;allow=g729 allow=gsm allow=alaw allow=ulaw language=xx ; Default language setting for all users/peers localnet=192.168.0.0/255.255.0.0; All RFC 1918 addresses are local networks localnet=10.0.0.0/255.0.0.0 ; Also RFC1918 localnet=172.16.0.0/12 ; Another RFC1918 with CIDR notation localnet=169.254.0.0/255.255.0.0 ;Zero conf local network jbenable=yes jbforce=yes jbimpl = fixed [200] username=200 secret=somesecret200 type=friend host=dynamic context=sip [201] username=201 secret=somesecret201 type=friend host=dynamic context=sip [...] ... ... |
Next, we have to glue all things together. Calls from E1 are directed into context sip, calls from SIP are directed into context sip. Now we should define routing rules for this contexts.
extensions.conf
...
Code Block |
---|
[general]
static=yes
writeprotect=yes
|