Страница 1 из 1

Зависает канал после прослушки через Chanspy

Добавлено: 30 дек 2016, 12:30
Al8
Есть макрос для прослушки:

Код: Выделить всё

;--== begin of [app-chanspy] ==--;
[app-chanspy]
exten => 441,1,Authenticate(9999)
exten => 441,2,Read(SPYNUM,agent-newlocation)
exten => 441,3,ChanSpy(SIP/${SPYNUM},wqv(-1))
exten => 441,5,Hangup()
;--== end of [app-chanspy] ==--;
Например есть два номера 200 и 300.
Номер 200 прослушивает 300, для этого на телефоне вводится комбинация 441# + 9999# + 300

После того как номер 200 (абонент) закончил просулишать, ложится трубка.
Но есть проблема, канал 200 висит как занятый.

Убить его можно через команду:

Код: Выделить всё

channel request hangup SIP/200-xxxxxxxxxxx (табуляция поможет)
Как можно сделать авто отключение, чтобы канал не вис?

Re: Зависает канал после прослушки через Chanspy

Добавлено: 30 дек 2016, 13:26
virus_net
Al8 писал(а):После того как номер 200 (абонент) закончил просулишать, ложится трубка.
SIP debug ?
Al8 писал(а):канал 200 висит как занятый
А номер 300 продолжает общение ?

P.S. Для однозначного понимания и трактования настоятельно рекомендуется называть вещи своими именами.
Al8 писал(а):Есть макрос
это не макрос, это контекст. макрос начитается с обязательного macro-.

Re: Зависает канал после прослушки через Chanspy

Добавлено: 30 дек 2016, 13:48
ded
Изучаем опции ChanSpy вместе!
o: Only listen to audio coming from this channel.

q: Don't play a beep when beginning to spy on a channel, or speak the
selected channel name.

r([basename]): Record the session to the monitor spool directory. An
optional base for the filename may be specified. The default is 'chanspy'.

s: Skip the playback of the channel type (i.e. SIP, IAX, etc) when speaking
the selected channel name.

S: Stop when no more channels are left to spy on.

u: The 'chanprefix' parameter is a channel uniqueid or fully specified
channel name.

v([value]): Adjust the initial volume in the range from '-4' to '4'. A
negative value refers to a quieter setting.

w: Enable 'whisper' mode, so the spying channel can talk to the spied-on
channel.

W: Enable 'private whisper' mode, so the spying channel can talk to the
spied-on channel but cannot listen to that channel.

x(digit):
digit - Specify a DTMF digit that can be used to exit the application
while actively spying on a channel. If there is no channel being spied
on, the DTMF digit will be ignored.


X: Allow the user to exit ChanSpy to a valid single digit numeric extension
in the current context or the context specified by the ${SPY_EXIT_CONTEXT}
channel variable. The name of the last channel that was spied on will be
stored in the ${SPY_CHANNEL} variable.