[asterisk-users] are channel names unique

Philipp Kempgen philipp.kempgen at amooma.de
Thu May 15 06:52:56 CDT 2008


Philipp Kempgen schrieb:
> Benjamin Jacob schrieb:
> 
>> Can anyone point me to the lines of code where the channel name is generated/calculated? I tried looking, but it looks like quite a big maze.
> 
> ast_channel_alloc() in main/channel.c
> 
> ---cut---
> 	if (ast_strlen_zero(ast_config_AST_SYSTEM_NAME)) {
> 		ast_string_field_build(tmp, uniqueid, "%li.%d", (long) time(NULL),
> 			ast_atomic_fetchadd_int(&uniqueint, 1));
> 	} else {
> 		ast_string_field_build(tmp, uniqueid, "%s-%li.%d", ast_config_AST_SYSTEM_NAME,
> 			(long) time(NULL), ast_atomic_fetchadd_int(&uniqueint, 1));
> 	}
> ---cut---

Er, sorry, I thought a bit too far. That is for the UNIQUEID.


Grüße,
Philipp Kempgen
-- 
Asterisk-Tag.org 2008, 26.-27. Mai   ->  http://www.asterisk-tag.org
amooma GmbH - Bachstr. 126 - 56566 Neuwied  ->  http://www.amooma.de
Geschäftsführer: Stefan Wintermeyer, Handelsregister: Neuwied B14998



More information about the asterisk-users mailing list