flush
auth iponly
allow *
maxconn 5000
proxy -n -a -p53201 -e192.168.101.1
route add -p 10.1.1.1 10.1.1.101
route add -p 10.1.1.2 10.1.1.102
route add -p 0.0.0.0 mask 0.0.0.0 192.168.1.1
route add -p 0.0.0.0 mask 0.0.0.0 192.168.1.2
route add 0.0.0.0 mask 0.0.0.0 192.168.101.1
cat /etc/libvirt/qemu/instance-00000004.xml
<!--
WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE
OVERWRITTEN AND LOST. Changes to this xml configuration should be made using:
virsh edit instance-00000004
or other application using the libvirt API.
-->
<domain type='kvm'>
<name>instance-00000004</name>
<uuid>0c5587b3-ef69-4391-a5db-a61d1f4327a2</uuid>
<metadata>
<nova:instance xmlns:nova="http://openstack.org/xmlns/libvirt/nova/1.0">
<nova:package version="12.0.2"/>
<nova:name>OPS-DEV1</nova:name>
<nova:creationTime>2016-08-09 12:58:10</nova:creationTime>
<nova:flavor name="flav.4.8.150">
<nova:memory>8192</nova:memory>
<nova:disk>150</nova:disk>
<nova:swap>0</nova:swap>
<nova:ephemeral>0</nova:ephemeral>
<nova:vcpus>4</nova:vcpus>
</nova:flavor>
<nova:owner>
<nova:user uuid="875274c8c0d04631a81d04f510abf913">admin</nova:user>
<nova:project uuid="9c73611099ac49a88a710967d1f03e6c">admin</nova:project>
</nova:owner>
<nova:root type="image" uuid="123d774d-d2d9-435a-a40f-7705be95a400"/>
</nova:instance>
</metadata>
<memory unit='KiB'>8388608</memory>
<currentMemory unit='KiB'>8388608</currentMemory>
<vcpu placement='static'>4</vcpu>
<cputune>
<shares>4096</shares>
</cputune>
<sysinfo type='smbios'>
<system>
<entry name='manufacturer'>OpenStack Foundation</entry>
<entry name='product'>OpenStack Nova</entry>
<entry name='version'>12.0.2</entry>
<entry name='serial'>cf690690-3230-299b-dc7b-34e25710d941</entry>
<entry name='uuid'>0c5587b3-ef69-4391-a5db-a61d1f4327a2</entry>
<entry name='family'>Virtual Machine</entry>
</system>
</sysinfo>
<os>
<type arch='x86_64' machine='pc-i440fx-vivid'>hvm</type>
<boot dev='hd'/>
<smbios mode='sysinfo'/>
</os>
<features>
<acpi/>
<apic/>
</features>
<cpu mode='host-model'>
<model fallback='allow'/>
<topology sockets='4' cores='1' threads='1'/>
</cpu>
<clock offset='utc'>
<timer name='pit' tickpolicy='delay'/>
<timer name='rtc' tickpolicy='catchup'/>
<timer name='hpet' present='no'/>
</clock>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>destroy</on_crash>
<devices>
<emulator>/usr/bin/qemu-system-x86_64</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2' cache='none'/>
<source file='/var/lib/nova/instances/0c5587b3-ef69-4391-a5db-a61d1f4327a2/disk'/>
<target dev='vda' bus='virtio'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
</disk>
<controller type='usb' index='0'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
</controller>
<controller type='pci' index='0' model='pci-root'/>
<interface type='bridge'>
<mac address='fa:16:3e:d7:70:45'/>
<source bridge='brq2622cc26-34'/>
<target dev='tap08efa004-54'/>
<model type='virtio'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</interface>
<serial type='file'>
<source path='/var/lib/nova/instances/0c5587b3-ef69-4391-a5db-a61d1f4327a2/console.log'/>
<target port='0'/>
</serial>
<serial type='pty'>
<target port='1'/>
</serial>
<console type='file'>
<source path='/var/lib/nova/instances/0c5587b3-ef69-4391-a5db-a61d1f4327a2/console.log'/>
<target type='serial' port='0'/>
</console>
<input type='tablet' bus='usb'/>
<input type='mouse' bus='ps2'/>
<input type='keyboard' bus='ps2'/>
<graphics type='vnc' port='-1' autoport='yes' listen='10.10.10.100' keymap='en-us'>
<listen type='address' address='10.10.10.100'/>
</graphics>
<video>
<model type='cirrus' vram='16384' heads='1'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
</video>
<memballoon model='virtio'>
<stats period='10'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
</memballoon>
</devices>
</domain>
cat /usr/sbin/ast-playlinein
#!/bin/bash
/usr/bin/arecord -q -c 1 -r 8000 --buffer-size=2048 -f S16_LE -t raw
user=user6
defaultuser=6
type=peer
secret=xxxxx
qualify=300
port=5060
nat=force_rport
host=vpbx300303979.mangosip.ru
fromuser=user1
fromdomain=vpbx300303979.mangosip.ru
dtmfmode=rfc2833
disallow=all
deaultuser=user6
context=from-trunk
allow=ulaw&alaw
insecure=invite
directmedia=no
transport=tcp
autocreatepeer=yes