L
L
ld66666666666662019-04-10 12:00:11
Asterisk
ld6666666666666, 2019-04-10 12:00:11

How to implement switching radio stream 1 back 3 forward in an asterisk?

Hello, I have the following code:

exten => 0,1,Macro(blkvm-clr,)
exten => 0,n,Set(__NODEST=)
exten => 0,n(ivrsel-0),Goto(ext-queues,708,1)

exten => 1,1,Macro(blkvm-clr,)
exten => 1,n,Set(__NODEST=)
exten => 1,n(ivrsel-1),Goto(ext-queues,700,1)

exten => 2,1,Macro(blkvm-clr,)
exten => 2,n,Set(__NODEST=)
exten => 2,n(ivrsel-2),Goto(ext-queues,701,1)

exten => 3,1,Macro(blkvm-clr,)
exten => 3,n,Set(__NODEST=)
exten => 3,n(ivrsel-3),Goto(ext-queues,702,1)

listening to different streams of radio stations is inconvenient to press from 1 to 9, Is it possible to somehow switch to 1 is back, 3 is forward?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Baidin, 2019-04-10
@zeronice

arithmetic operations are available in the dialplan:
Accordingly, pull the current value and increment / decrement it depending on 1/3

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question