[asterisk-dev] ast_do_masquerade, zombie channels and the ami
Russell Bryant
russell at digium.com
Wed Sep 17 11:08:09 CDT 2008
On Sep 17, 2008, at 4:04 AM, Marcus Hunger wrote:
> Hi,
> I have got a minor problem with ast_do_masquerade. When this
> function renames channels, in order to mark them as zombies, it
> appends the string <ZOMBIE> to the name. This is sufficient to
> recognise these channels with AMI. The problem with this is, that
> when the length of the channel's name + the length of "<ZOMBIE>"
> exceeds AST_CHANNEL_NAME, the resulting channelname gets truncated,
> and so the channel can not be identified using AMI correctly. Trying
> to keep track of renamed/cloned channels seems difficult enough for
> me, but when this strange effect occurs, that gets even harder, if
> not impossible.
>
> I'd like to suggest changing the renaming to something, that keeps
> the "<ZOMBIE>" suffix intact, so it can be tracked correctly as what
> it is or introducing another way to track them. Maybe just
> publishing the effective renaming and omitting the masquerading
> magic would also be a good solution. A zombie channel does not seem
> so useful anyway.
How about if on your system you use really long channel names, you
increase AST_CHANNEL_NAME?
--
Russell Bryant
Senior Software Engineer
Open Source Team Lead
Digium, Inc.
More information about the asterisk-dev
mailing list