Make sure we don't send display if callername is set to a 0 length string.

git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@351 2fbb986a-6c06-0410-b554-c9c1f0a7f128
This commit is contained in:
Matthew Fredrickson 2006-06-08 22:16:55 +00:00
parent de008c4d60
commit 2ce7890fdd

3
q931.c
View File

@ -1061,6 +1061,9 @@ static FUNC_SEND(transmit_display)
{
int i;
if (!call->callername[0])
return 0;
if ((pri->switchtype == PRI_SWITCH_QSIG)
|| ((pri->switchtype == PRI_SWITCH_EUROISDN_E1) && (pri->localtype == PRI_CPE)) ||
!call->callername[0])