[Asterisk-Dev] need help: how do I get the channel info for a call on a particular extension

Kevin P. Fleming kpfleming at digium.com
Tue Jul 5 12:44:18 MST 2005


Swapna Gupta wrote:

> Channel no./id that the current user's call is on. I have the phone
> extension, and based on that I need to get the channel number. I have
> looked everywhere I could think of, but in vain. Any help would be
> greatly appreciated.

There is no way to turn an extension number into a channel name, unless 
you have constructed your dialplan to record that information in some 
sort of storage system. Then again, any given extension could be 
involved in multiple channels, so it will be difficult to do well even 
with that sort of technique.



More information about the asterisk-dev mailing list