Channel number

May 4, 2014 at 3:53 PM
Again sorry for maybe stupid question, but exist any function how take channel number for individual extension.

I need start Monitor, but what I know is only extension number. Is sollution take all channels and find channel with start SIP/myext? or any idea? I will have more than 150 parallel calls and I think that is no good idea read everything....
May 4, 2014 at 4:32 PM
I found StatusAction, lets modifiy my question :-)

is way how to load channels as response of this calling, not in events, I mean something like

Dim SA As New StatusAction
nr = mn.SendAction(SA, 3000)

and somwhere in nr find list of channels....

OK, maybe is better to load statusaction after app start and during run monitor status event and add/remove channels dynamically...

Is a good Idea?
May 5, 2014 at 4:44 PM
Yes, generally AMI is designed for you to build an in memory model of the state of Asterisk! This helps you determine the state of objects quickly. asterisk will always update you on state changes so it should be easy.