Answer the question
In order to leave comments, you need to log in
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
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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question