Dial multiple numbers: which one answered

I am using the following to dial multiple extensions. How to know which one channel is answered?


pls kindly advise.

You can use something like the following:

[code]exten => 637,1,Dial(SIP/15&SIP/30,20,M(macro637))

exten => s,1,Set(EXTENSION=${CUT(CHANNEL,-,1)})
exten => s,2,Verbose(${EXTENSION})
The variable EXTENSION will have the information on which phone picks up.

Hope this helps, Alex.