--- channels/chan_sip.c-original 2006-05-31 19:09:41.000000000 +0100 +++ channels/chan_sip.c 2006-05-31 19:11:51.000000000 +0100 @@ -2760,7 +2760,7 @@ fmt = ast_best_codec(tmp->nativeformats); if (title) - snprintf(tmp->name, sizeof(tmp->name), "SIP/%s-%04x", title, thread_safe_rand() & 0xffff); + snprintf(tmp->name, sizeof(tmp->name), "SIP/%s-%s", title, strrchr(tmp->uniqueid,'.')+1); else if (strchr(i->fromdomain,':')) snprintf(tmp->name, sizeof(tmp->name), "SIP/%s-%08x", strchr(i->fromdomain,':')+1, (int)(long)(i)); else