diff options
author | may <may@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-05-23 18:23:38 +0000 |
---|---|---|
committer | may <may@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-05-23 18:23:38 +0000 |
commit | 16f7f9022b2cb4818818f84e9d024a451a71f63f (patch) | |
tree | 2c9e28e4b6d2e01d565473c282bad2b404f4be28 /addons | |
parent | 84d5816a42791389d944b2670e647d9c59fe306a (diff) |
small changes to avoiding 'freeing unused memory...'
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@265227 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'addons')
-rw-r--r-- | addons/chan_ooh323.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/addons/chan_ooh323.c b/addons/chan_ooh323.c index fdb2dfc93..0024b596c 100644 --- a/addons/chan_ooh323.c +++ b/addons/chan_ooh323.c @@ -1238,11 +1238,13 @@ static int ooh323_indicate(struct ast_channel *ast, int condition, const void *d case AST_CONTROL_SRCCHANGE: ast_rtp_instance_change_source(p->rtp); break; - case AST_CONTROL_CONNECTED_LINE: - if (gH323Debug) - ast_log(LOG_DEBUG, "Sending connected line info for %s (%s)\n", + case AST_CONTROL_CONNECTED_LINE: + if (!ast_strlen_zero(ast->connected.id.name)) { + if (gH323Debug) + ast_log(LOG_DEBUG, "Sending connected line info for %s (%s)\n", callToken, ast->connected.id.name); - ooSetANI(callToken, ast->connected.id.name); + ooSetANI(callToken, ast->connected.id.name); + } break; case AST_CONTROL_T38_PARAMETERS: |