diff options
Diffstat (limited to 'addons/chan_ooh323.c')
-rw-r--r-- | addons/chan_ooh323.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/addons/chan_ooh323.c b/addons/chan_ooh323.c index 1d012a9eb..9c2ce6fa1 100644 --- a/addons/chan_ooh323.c +++ b/addons/chan_ooh323.c @@ -902,6 +902,10 @@ static int ooh323_call(struct ast_channel *ast, char *dest, int timeout) if(p->callerid_name) free(p->callerid_name); p->callerid_name = strdup(ast->connected.id.name); + } else if (ast->connected.id.number) { + if(p->callerid_name) + free(p->callerid_name); + p->callerid_name = strdup(ast->connected.id.number); } else { ast->connected.id.name = strdup(gCallerID); if(p->callerid_name) @@ -1206,6 +1210,13 @@ static int ooh323_indicate(struct ast_channel *ast, int condition, const void *d ast_rtp_instance_new_source(p->rtp); break; + case AST_CONTROL_CONNECTED_LINE: + 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); + break; + case AST_CONTROL_T38_PARAMETERS: if (p->t38support != T38_ENABLED) { struct ast_control_t38_parameters parameters = { .request_response = 0 }; |