diff options
-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: |