diff options
author | may <may@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-01-24 22:42:11 +0000 |
---|---|---|
committer | may <may@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-01-24 22:42:11 +0000 |
commit | 901630e56d49150925387fe59ec07fbdfd6e6021 (patch) | |
tree | 9f6b57f17d4c31304e70c47817e22f4cbde87ded /addons/chan_ooh323.c | |
parent | e9e6d14932447cf2767a8abdae04eef0017f3d8a (diff) |
AST_CONTROL_CONNECTED_LINE frame type processing added to setup DisplayIE field
incorrect q.931 message order filtered on incoming calls (first msg must be setup,
next must be not setup)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@242645 f38db490-d61c-443f-a65b-d21fe96a405b
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 }; |