diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2006-06-26 17:24:14 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2006-06-26 17:24:14 +0000 |
commit | 93385c0fab661ffb58967c712352cc1bdfe84c0b (patch) | |
tree | f35ace06cb28f21039d65ae969e24f3e15a225f5 /channels | |
parent | f8311adcdafbe3e8692f99e2e064112a591972da (diff) |
fix for issue #7245
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@36079 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index b2afd12ea..233c53c09 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -3617,11 +3617,11 @@ static struct ast_channel *sip_new(struct sip_pvt *i, int state, const char *tit if (title) - ast_string_field_build(tmp, name, "SIP/%s-%04lx", title, ast_random() & 0xffff); + ast_string_field_build(tmp, name, "SIP/%s-%08x", title, (int)(long) i); else if (strchr(i->fromdomain,':')) - ast_string_field_build(tmp, name, "SIP/%s-%08x", strchr(i->fromdomain,':')+1, (int)(long)(i)); + ast_string_field_build(tmp, name, "SIP/%s-%08x", strchr(i->fromdomain,':') + 1, (int)(long) i); else - ast_string_field_build(tmp, name, "SIP/%s-%08x", i->fromdomain, (int)(long)(i)); + ast_string_field_build(tmp, name, "SIP/%s-%08x", i->fromdomain, (int)(long) i); if (ast_test_flag(&i->flags[0], SIP_DTMF) == SIP_DTMF_INBAND) { i->vad = ast_dsp_new(); |