############################################################################################################################ Below are some configuration examples for the open source PBX AsteriskTM. These examples may vary depending on your software versions, implementation type, and more. These are examples taken from most common customer configurations. ############################################################################################################################ ____________________________________________________________________________________________________________________________ SIP.conf or IAX.conf Sample Entry - Inbound Service (Listed below is an example of what you would put in your sip.conf or iax.conf files.) ____________________________________________________________________________________________________________________________ [xxx.xxx.xxx.xxx] type=user host=xxx.xxx.xxx.xxx context=from-xxx.xxx.xxx.xxx nat=yes dtmfmode=rfc2833 allow=all xxx.xxx.xxx.xxx is the IP address of IPC's originating gateway. ____________________________________________________________________________________________________________________________ Sample Extensions.conf Entry - Inbound Service (Listed below is an example of what you would put in your extensions.conf file based on the entry above. Function is generic depending on what you are trying to do with the phone number(s) once they hit your network.) ____________________________________________________________________________________________________________________________ [from-xxx.xxx.xxx.xxx] exten => 6784601475,1,Function xxx.xxx.xxx.xxx is the IP address of IPC's originating gateway. ____________________________________________________________________________________________________________________________ Sample Extensions.conf Entry - Outbound Service (Listed below is an example of what you would put in your extensions.conf file. You will need the following entry in the context you are originating traffic from.) ____________________________________________________________________________________________________________________________ For a SIP configuration: exten => _.,1,Dial(SIP/xxx.xxx.xxx.xxx/yyyy${EXTEN}) For a IAX configuration: exten => _.,1,Dial(IAX2/xxx.xxx.xxx.xxx/yyyy${EXTEN}) "xxx.xxx.xxx.xxx" is the IP address of IPC's destination gateway and needs to match exactly what you have entered in brackets for IPC in your sip.conf or iax.conf files. yyyy is the prefix assigned to your account. Note: For IPC's entry in your sip.conf or iax.conf files, please be sure to change the type to friend. Friend will allow both inbound and outbound traffic. Also, the entry above is set to send everything. You can make it more specific if needed. ____________________________________________________________________________________________________________________________ What do I do if my asterisk server has a private IP Address? Asterisk Server has a private IP address. Please enter the following two commands in the general section of your sip.conf file. Depending on your setup, you might need to forward all ports to your Asterisk server's private IP address or put the private IP address of the Asterisk server on the DMZ. externip=WAN IP address localnet=192.168.1.0/255.255.255.0 (or whatever your private LAN is configured for) ############################################################################################################################