Answer the question
In order to leave comments, you need to log in
And how to check the callgroup when making a call?
Hello!
As far as I know, callgroup is used to intercept calls coming to this group.
And how to use the callgroup value for an outgoing call? I want to direct different groups through different channels. I do this: I put in users.conf callgroup=12
in the dialplan I write:
exten => 89997778888,1,NoOp()
exten => 89997778888,n,Verbose(${CHANNEL(callgroup)})
exten => 89997778888,n,GotoIf($["${CHANNEL(callgroup)}" = "11"]?loccall)
exten => 89997778888,n,Hangup()
exten => 89997778888,n(loccall),Dial(SIP/gsm_gate/${EXTEN},60,tT))
exten => 89997778888,n,Hangup()
-- Executing [[email protected]_WorkDialPlan:1] NoOp("SIP/1042-00000281", "") in new stack
-- Executing [[email protected]_WorkDialPlan:2] Verbose("SIP/1042-00000281", "11") in new stack
11
-- Executing [[email protected]_WorkDialPlan:3] GotoIf("SIP/1042-00000281", "1?loccall") in new stack
-- Goto (DLPN_WorkDialPlan,89997778888,5)
-- Executing [[email protected]_WorkDialPlan:5] Dial("SIP/1042-00000281", "SIP/gsm_gate/89997778888,60,tT)") in new stack
== Using SIP RTP CoS mark 5
-- Called SIP/gsm_gate/89997778888
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question