D
D
Dmitry Shitskov2016-08-15 15:00:14
Asterisk
Dmitry Shitskov, 2016-08-15 15:00:14

How to identify groups of SIP devices in a dialplan?

Good afternoon.
I need to record conversations only for phones of some departments, for example, managers and those. support. By what criteria, set in sip.conf, could I identify the necessary devices in the dialplan to decide whether to enable MixMonitor and with what parameters?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
j3st3r, 2016-08-25
@Zarom

I would probably do this:
In sip.conf, I scattered users across different callgroups (in principle, it is useful for the normal operation of hooks, etc.). Let the users we need for recording be in callgroup=1
In the dialplan, we do the following: using the channel function, we pull out the value callgroup
exten => s,1,Set(monty=${CHANNEL(callgroup)})
Well, then check that with this variable: GotoIf($["${monty}" = "1"]?monit:nomonit)
Something like that.

L
Leks, 2016-08-16
@Leksnsk

The easiest way is to make them different outgoing contexts

[1000](!)
context=out_with_record

[2000](!)
context=out_without_record

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question