[asterisk-dev] channel name uniqueness

Tim Ringenbach tim.ringenbach at gmail.com
Wed May 20 12:16:42 CDT 2009


On Wed, May 20, 2009 at 11:33 AM, Atis Lezdins <atis at iq-labs.net> wrote:

> That's exactly how it was designed.
>
> There is going to be LinkedID soon (perhaps it's already merged in
> some 1.6.x branch), that will basically be uniqueid of first channel
> for a call. For now, You can just do
>
> if ("${call_id}"="") Set(__call_id=${UNIQUEID});
>
>
LinkedID isn't really the same thing though, it serves a different purpose.
Consider that what you said can't even be done (in the dialplan anyway) on a
channel not in the dialplan. The LinkID is for figuring out which channel
created which other channels. It doesn't uniquely identify a channel. But
nothing does because even it's uniqueid can change.

Now there are some cases where it's sort of nice that the uniqueid doesn't
change. Consider following queue events where an attended transfer completes
after the join but before the connect. But if you were trying to track a
certain channel by unqueid id, well the uniqueid changing is certainly going
to cause you problems.

And Rename events don't do much to help really. Lets say you were logging
certain events to a database. Image trying to do a sql join between two
events based on their unqiueid, but they had multiple unqiue id's over the
lifetime of the call, so you have to somehow factor in that it's uniqueid
was X if the timestamp is between Y and Z, but it's A if the timestamp is
because B and C.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20090520/2191cd29/attachment.htm 


More information about the asterisk-dev mailing list