[asterisk-dev] Intention of truncating the channel information ?

Kannaiyan Natesan gbpnkans at gmail.com
Fri May 29 11:49:41 CDT 2009


In chan_agent.c,

the actual channel of the agent is truncated, Can someone explain why
the actual channel name is not exposed?

Line Number: 2761

                if (agent->chan) {
                        ast_copy_string(buf, agent->chan->name, len);
                        tmp = strrchr(buf, '-');
                        if (tmp)
                                *tmp = '\0';
                }


If I supply the given channel information to perform the AMI
operations it gets failed.

/Kannaiyan

-- 
The best things in life are free



More information about the asterisk-dev mailing list