mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Minor formatting fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5271 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2204,17 +2204,14 @@ static struct ast_channel *sip_new(struct sip_pvt *i, int state, char *title)
|
||||
tmp->nativeformats = ast_codec_choose(&i->prefs, global_capability, 1);
|
||||
ast_mutex_unlock(&i->lock);
|
||||
fmt = ast_best_codec(tmp->nativeformats);
|
||||
|
||||
if (title)
|
||||
snprintf(tmp->name, sizeof(tmp->name), "SIP/%s-%04x", title, rand() & 0xffff);
|
||||
else
|
||||
if (strchr(i->fromdomain,':'))
|
||||
{
|
||||
else if (strchr(i->fromdomain,':'))
|
||||
snprintf(tmp->name, sizeof(tmp->name), "SIP/%s-%08x", strchr(i->fromdomain,':')+1, (int)(long)(i));
|
||||
}
|
||||
else
|
||||
{
|
||||
snprintf(tmp->name, sizeof(tmp->name), "SIP/%s-%08x", i->fromdomain, (int)(long)(i));
|
||||
}
|
||||
|
||||
tmp->type = channeltype;
|
||||
if (ast_test_flag(i, SIP_DTMF) == SIP_DTMF_INBAND) {
|
||||
i->vad = ast_dsp_new();
|
||||
|
Reference in New Issue
Block a user