#!/bin/sh SIPNATPATH=/etc/asterisk/sip_nat.conf echo "externaddr = ${HOST}" > ${SIPNATPATH} echo "externhost = ${HOST}" >> ${SIPNATPATH} echo "externrefresh = 60" >> ${SIPNATPATH} echo "localnet = 192.168.0.0/255.255.0.0" >> ${SIPNATPATH} [ -f /etc/scripts/extension_gen ] && /etc/scripts/extension_gen 0 [ -f /etc/scripts/extension_gen ] && /etc/scripts/extension_gen 1 [ -f /etc/scripts/generate_trunk_conf ] && /etc/scripts/generate_trunk_conf trunk [ -f /etc/scripts/generate_trunk_conf ] && /etc/scripts/generate_trunk_conf did [ -f /etc/scripts/generate_trunk_conf ] && /etc/scripts/generate_trunk_conf dod [ -f /etc/scripts/generate_group_conf ] && /etc/scripts/generate_group_conf [ -f /etc/scripts/generate_context_conf ] && /etc/scripts/generate_context_conf [ -f /etc/scripts/generate_extension_conf ] && /etc/scripts/generate_extension_conf