I am using the following to dial multiple extensions. How to know which one channel is answered?
Dial(SIP/4029&SIP/4027&sip/1234)
pls kindly advise.
I am using the following to dial multiple extensions. How to know which one channel is answered?
Dial(SIP/4029&SIP/4027&sip/1234)
pls kindly advise.
You can use something like the following:
[code]exten => 637,1,Dial(SIP/15&SIP/30,20,M(macro637))
[macro-macro637]
exten => s,1,Set(EXTENSION=${CUT(CHANNEL,-,1)})
exten => s,2,Verbose(${EXTENSION})
[/code]
The variable EXTENSION will have the information on which phone picks up.
Hope this helps, Alex.