From 18f0e3efb46368cfa21125c19a9a76cf678d17ca Mon Sep 17 00:00:00 2001 From: pcadach Date: Fri, 29 Sep 2006 18:35:44 +0000 Subject: Merged revisions 44009 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ........ r44009 | pcadach | 2006-09-30 00:30:34 +0600 (Сбт, 30 Сен 2006) | 1 line Pass TON/PRESENTATION information too ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44010 f38db490-d61c-443f-a65b-d21fe96a405b --- channels/chan_h323.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'channels/chan_h323.c') diff --git a/channels/chan_h323.c b/channels/chan_h323.c index 836093f44..adc0dcd3f 100644 --- a/channels/chan_h323.c +++ b/channels/chan_h323.c @@ -629,6 +629,9 @@ static int oh323_call(struct ast_channel *c, char *dest, int timeout) strncpy(pvt->options.cid_rdnis, c->cid.cid_rdnis, sizeof(pvt->options.cid_rdnis)); } + pvt->options.presentation = c->cid.cid_pres; + pvt->options.type_of_number = c->cid.cid_ton; + if ((addr = pbx_builtin_getvar_helper(c, "PRIREDIRECTREASON"))) { if (!strcasecmp(addr, "UNKNOWN")) pvt->options.redirect_reason = 0; @@ -1084,6 +1087,8 @@ static struct ast_channel *__oh323_new(struct oh323_pvt *pvt, int state, const c ch->cid.cid_rdnis = ast_strdup(pvt->cd.redirect_number); pbx_builtin_setvar_helper(ch, "PRIREDIRECTREASON", redirectingreason2str(pvt->cd.redirect_reason)); } + ch->cid.cid_pres = pvt->cd.presentation; + ch->cid.cid_ton = pvt->cd.type_of_number; if (!ast_strlen_zero(pvt->exten) && strcmp(pvt->exten, "s")) { ch->cid.cid_dnid = strdup(pvt->exten); -- cgit v1.2.3