asterisk -r
*CLI> core set verbose 3
tcpdump -i tun0 -vnn host 82.119.129.210 -c 1000
tcpdump -i eth0 -vnn host 82.119.129.210 -c 1000
<param name="enable-timer" value="false"/>
[test]
exten => s,1,Set(DN=${SIP_HEADER(TO):5})
same => n,Set(TO=${CUT(DN,@,1)})
same => n,NoOp(Dialed to: ${TO})
далее использовать ${TO} где угодно su USER_NAME -c '/usr/bin/tightvncserver -localhost -geometry 1000x760 :1'
...
same => n,Queue(taxi,t,,,450,,,sub-operator-answer)
...
[sub-operator-answer]
exten => s,1,MSet(AGENTCHAN=${CUT(CHANNEL(Name),\-,1)},CONLINE=${CONNECTEDLINE(number)})
same => n,NoOp(${CURL(http://ipadress:port/script?id=${AGENTCHAN}&number=${CONLINE})})
same => n,Hangup()
<include>
<gateway name="23*****">
<param name="username" value="23*****"/>
<param name="realm" value="voip.noutek.com"/>
<param name="from-user" value="23*****"/>
<param name="from-domain" value="voip.noutek.com"/>
<param name="password" value="123*******"/>
<param name="extension" value="23*****"/>
<param name="proxy" value="193.106.215.230"/>
<param name="register-proxy" value="193.106.215.230"/>
<param name="outbound-proxy" value="193.106.215.230"/>
<param name="expire-seconds" value="170"/>
<param name="register" value="true"/>
<param name="register-transport" value="udp"/>
<param name="retry-seconds" value="94"/>
<param name="caller-id-in-from" value="false"/>
<param name="extension-in-contact" value="true"/>
</gateway>
</include>
второй телефон недавно перекинули с одного порта на другой (выход к этим портам на АТС один)
apt-get -y install git dpkg-dev devscripts
git clone http://anonscm.debian.org/cgit/pkg-tigervnc/pkg-tigervnc.git tigervnc
cd tigervnc
dpkg-buildpackage -b -uc