[asterisk-dev] Check if channel exists
Julian Lyndon-Smith
asterisk at dotr.com
Tue Oct 28 17:29:32 CDT 2008
Johan Wilfer wrote:
> I need to get a channel name to be able to use the ChannelRedirect
> application. The group function doesn't provide this, it is however
> handy for a lot of other things.
>
Slightly confused then : you originally said:
"I thinking about a function ChanActive(channel)"
Don't you already need to know the channel name at this point, then ?
Or are you looking for a way of knowing what channel is associated with
an extension (SIP/576) or line (ZAP/1)
Julian
> Thanks anyway...
> /Johan
>
> Julian Lyndon-Smith skrev:
>
>> Have a look at the GROUP function.
>>
>> Julian
>>
>> Johan Wilfer wrote:
>>
>>
>>> Hi,
>>> I'm in need of a application / function that check if a channel is
>>> active or not. The functionality already exists in "core show channel
>>> <name>" and "sip show channel <name>", but I have not found any function
>>> / application that does the trick. Does anyone have a similar need that
>>> I should consider? Any other way to deal with this?
>>>
>>> I thinking about a function ChanActive(channel) that returns true/false
>>> or ChanInfo(channel,item) like sipchaninfo. If I'm the only one with
>>> this particular need I will implement the first one.
>>>
>>> Another related question (maybe user-ish, sorry): I've tried to
>>> understand in witch cases a channel can change it's name (Manager Rename
>>> event). I'm I correctly assuming that this happens only when bridging to
>>> another channel? Or are there other cases that I should be aware of?
>>> Is this documented somewhere?
>>>
>>> Greetings
>>> Johan
>>>
>>> _______________________________________________
>>> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>>>
>>> asterisk-dev mailing list
>>> To UNSUBSCRIBE or update options visit:
>>> http://lists.digium.com/mailman/listinfo/asterisk-dev
>>>
>>>
>>>
>>>
>>
>> ______________________________________________________________________
>> This email has been scanned by the MessageLabs Email Security System.
>> For more information please visit http://www.messagelabs.com/email
>> ______________________________________________________________________
>>
>> _______________________________________________
>> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>>
>> asterisk-dev mailing list
>> To UNSUBSCRIBE or update options visit:
>> http://lists.digium.com/mailman/listinfo/asterisk-dev
>>
>>
>
>
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-dev
>
>
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
More information about the asterisk-dev
mailing list